gnatfind.adb, [...]: Minor reformatting and code clean up.
[gcc.git] / gcc / ada / ChangeLog
1 2009-07-27 Robert Dewar <dewar@adacore.com>
2
3 * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
4 and code clean up.
5
6 2009-07-27 Ed Schonberg <schonberg@adacore.com>
7
8 * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
9 Ravenscar mode. Error has already been posted on specification.
10
11 * sem.adb: Further code clean ups.
12
13 2009-07-27 Robert Dewar <dewar@adacore.com>
14
15 * g-sse.ads: Minor reformatting
16
17 2009-07-27 Arnaud Charlet <charlet@adacore.com>
18
19 * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
20 alternate ali extension.
21 * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
22 account Osint.ALI_Suffix.
23 * osint.ads (ALI_Suffix): Make visible.
24 * gnatfind.adb (Gnatfind): Add support for --ext= switch.
25 * gnat_ugn.texi: Document new gnatfind --ext= switch.
26
27 2009-07-27 Ed Schonberg <schonberg@adacore.com>
28
29 * sem.adb (Walk_Library_Items): If main unit is an instance body, do
30 its spec first.
31
32 2009-07-27 Javier Miranda <miranda@adacore.com>
33
34 * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
35 the dispatching call has is expanded.
36
37 2009-07-27 Ed Schonberg <schonberg@adacore.com>
38
39 * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
40 Is_Known_Valid flag on the temporary created for the value whose
41 validity is being checked.
42
43 * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
44 handle properly main units that are package specifications.
45
46 2009-07-27 Geert Bosch <bosch@adacore.com>
47
48 * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
49 * sem_aux.ads: Fix typo in comment
50 * sem_util.ads (Is_LHS): Adjust comment to match body
51
52 2009-07-27 Sergey Rybin <rybin@adacore.com>
53
54 * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
55 rule definition.
56
57 2009-07-27 Olivier Hainque <hainque@adacore.com>
58
59 * g-sse.ads, g-ssvety.ads: Update comments.
60
61 2009-07-27 Sergey Rybin <rybin@adacore.com>
62
63 * gnat_ugn.texi: Update gnatcheck doc.
64
65 2009-07-27 Arnaud Charlet <charlet@adacore.com>
66
67 * lib-xref.ads: Allocate/document 'o' char for use by references to
68 spark 'own' variables.
69
70 2009-07-27 Gary Dismukes <dismukes@adacore.com>
71
72 * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
73 objects, since these are implicitly referenced by the return statement.
74 * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
75 Is_Return_Object in this procedure, as return objects will never make
76 it here since they're now marked as Referenced.
77
78 2009-07-27 Robert Dewar <dewar@adacore.com>
79
80 * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
81
82 2009-07-27 Robert Dewar <dewar@adacore.com>
83
84 * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
85
86 * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
87
88 2009-07-27 Geert Bosch <bosch@adacore.com>
89
90 * checks.adb (Find_Check): Minor streamlining of logic.
91 * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
92 * debug.adb: Document -gnatdX debug flag
93 * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
94 list information about reads from scalar entities.
95 Also slightly simplify condition for Expand_Current_Value.
96 * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
97 functions.
98
99 2009-07-26 Dave Korn <dave.korn.cygwin@gmail.com>
100
101 PR bootstrap/40578
102 * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
103 (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
104 to these.
105 (__gnat_stat): Adjust reference to STAT in prototype.
106 * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
107 __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
108 __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
109 __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
110 __gnat_is_writable_file, __gnat_is_executable_file,
111 __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
112 __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
113 __gnat_copy_attribs): Adjust all references to the above.
114 * cstreams.c (__gnat_is_regular_file_fd): Likewise.
115
116 2009-07-23 Ed Schonberg <schonberg@adacore.com>
117
118 * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
119 done at the same time, guard against listing a body more than once.
120
121 2009-07-23 Robert Dewar <dewar@adacore.com>
122
123 * exp_ch6.adb: Minor reformatting
124
125 2009-07-23 Ed Schonberg <schonberg@adacore.com>
126
127 * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
128 static expression is known valid.
129 * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
130 operands of a subtype with a single value.
131
132 2009-07-23 Ed Schonberg <schonberg@adacore.com>
133
134 * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
135 are in the context of the main unit body.
136
137 2009-07-23 Sergey Rybin <rybin@adacore.com>
138
139 * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
140 misprint in rule description.
141
142 2009-07-23 Gary Dismukes <dismukes@adacore.com>
143
144 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
145 test that the object declaration is within an extended return statement
146 with direct test of whether the declared object associated with the
147 build-in-place call is a return object, since the enclosing function
148 might not even be a build-in-place function.
149
150 2009-07-23 Robert Dewar <dewar@adacore.com>
151
152 * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
153 Minor code reorganization
154
155 2009-07-23 Arnaud Charlet <charlet@adacore.com>
156
157 * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
158 for static analysis, only packed arrays are causing troubles.
159
160 2009-07-23 Gary Dismukes <dismukes@adacore.com>
161
162 * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
163 ancestor part is a call to a limited function with an unconstrained
164 result subtype unless the aggregate has a null extension type.
165 * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
166 the parent type declaration to avoid blowups on subtype cases.
167
168 2009-07-23 Robert Dewar <dewar@adacore.com>
169
170 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
171 comma.
172
173 * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
174
175 * s-regexp.adb: Minor reformatting
176 * scos.ads: Minor reformatting.
177
178 2009-07-23 Arnaud Charlet <charlet@adacore.com>
179
180 * freeze.adb (Set_Small_Size): Remove extra space for consistency with
181 other similar messages.
182 * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
183 messages/implicit packing in CodePeer mode.
184 (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
185 * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
186 CodePeer mode.
187
188 2009-07-23 Pascal Obry <obry@adacore.com>
189
190 * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
191 systems.
192
193 2009-07-23 Robert Dewar <dewar@adacore.com>
194
195 * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
196 Minor reformatting.
197
198 2009-07-23 Yannick Moy <moy@adacore.com>
199
200 * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
201 pattern.
202 (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
203 string.
204 (Raise_Exception): Ditto.
205
206 2009-07-23 Olivier Hainque <hainque@adacore.com>
207
208 * g-sse.ads: Simplify comment.
209
210 2009-07-23 Olivier Hainque <hainque@adacore.com>
211
212 * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
213 low level internal type definitions for distinct higher level
214 binding development activities (user type definitions and
215 operations).
216 * gnat_rm.texi: Document it.
217 * g-ssvety.ads: Use it.
218 * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
219 g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
220 * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
221 for the "may_alias" attribute.
222
223 2009-07-23 Thomas Quinot <quinot@adacore.com>
224
225 * scos.ads: Minor typo fix
226 * gcc-interface/decl.c (validate_alignment): For the case of an
227 implicit array base type, look for alignment clause on first subtype.
228 Code clean up.
229
230 2009-07-23 Ed Schonberg <schonberg@adacore.com>
231
232 * sem.adb (Walk_Library_Units): Handle properly the case where a unit
233 in the context depends on the spec of the main unit, by delaying
234 processing of the main unit body until all other units have been
235 processed.
236
237 2009-07-23 Arnaud Charlet <charlet@adacore.com>
238
239 * a-convec.adb: Add comments about suspicious/subtle code.
240
241 2009-07-23 Ed Schonberg <schonberg@adacore.com>
242
243 * einfo.ads: Document use of Alias in private overriding
244
245 2009-07-23 Thomas Quinot <quinot@adacore.com>
246
247 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
248 an array type, propagate alignment from first subtype to implicit base
249 type so that other subtypes (such as the itypes for aggregates of the
250 type) also receive the expected alignment.
251
252 * g-comlin.ads: Minor documentation clarification/rewording.
253 * scos.ads: Minor comments update.
254 * lib-writ.ads: Minor reformatting
255
256 2009-07-23 Gary Dismukes <dismukes@adacore.com>
257
258 * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
259 of a class-wide interface type that is a return object of a
260 build-in-place function, bypass the interface-related expansions into
261 renamings with displacement conversions, etc.
262 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
263 for the case where a renaming occurs in a build-in-place context, to
264 assert that the bypassing of the build-in-place treatment only occurs
265 in the case of a renaming that is an expansion of a return expression
266 that is itself a build-in-place function call.
267
268 2009-07-23 Ed Schonberg <schonberg@adacore.com>
269
270 * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
271 valid candidate interpretation in a prefixed view if it is hidden, but
272 overrides an inherited operation declared in the visible part.
273
274 2009-07-23 Robert Dewar <dewar@adacore.com>
275
276 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
277 division operands to 64-bit at all in any circumstances.
278
279 2009-07-23 Robert Dewar <dewar@adacore.com>
280
281 * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
282 checking ranges for mod/rem to see if conditional jump will be
283 generated.
284 (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
285 generating special -1 test for rem, generate it whenever both
286 operands can be negative (match circuit in Sem_Res).
287 (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
288 destroys memory of positive range.
289 * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
290 checking ranges for mod/rem to see if conditional jump will be generated
291
292 2009-07-23 Ed Schonberg <schonberg@adacore.com>
293
294 * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
295 scalar components has non-static bounds, the equivalent aggregate
296 cannot be built, even if the expression is static, because range checks
297 will be generated.
298
299 2009-07-23 Robert Dewar <dewar@adacore.com>
300
301 * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
302 division operands to 64-bit inside a conversion if 64-bit division not
303 available.
304
305 2009-07-23 Sergey Rybin <rybin@adacore.com>
306
307 * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
308
309 2009-07-23 Javier Miranda <miranda@adacore.com>
310
311 * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
312 (Entity/Set_Entity): not available in N_Null_Statement nodes
313 (Is_Scil_Node): renamed as Is_SCIL_Node
314 (Scil_Nkind): renamed as SCIL_Nkind
315 (Scil_Related_Node): renamed as SCIL_Related_Node
316 (Scil_Target_Prim): renamed as SCIL_Target_Prim
317 (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
318 (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
319 (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
320 Update documentation
321 * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
322 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
323 (New_Scil_Node): Renamed as New_SCIL_Node
324 * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
325 (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
326 (New_Scil_Node): Renamed as New_SCIL_Node
327 * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
328
329 2009-07-23 Robert Dewar <dewar@adacore.com>
330
331 * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
332 * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
333 * einfo.adb: Minor reformatting
334
335 2009-07-23 Robert Dewar <dewar@adacore.com>
336
337 * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
338 cross-referencing the new related code in
339 Exp_Ch4.Expand_N_Type_Conversion.
340 * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
341
342 * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
343 Add comment.
344
345 2009-07-23 Javier Miranda <miranda@adacore.com>
346
347 * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
348 Scil_Target_Prim, N_Has_Entity): Add missing documentation.
349 * exp_disp.ads (Scil_Node_Kind): Ditto.
350 * exp_disp.adb (Make_DT, Make_Tags): Ditto.
351 * exp_ch3.adb (Build_Init_Procedure): Ditto.
352
353 2009-07-23 Javier Miranda <miranda@adacore.com>
354
355 * einfo.adb (Component_Type): Add missing assertion.
356 * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
357 reading attribute Component_Size.
358 * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
359 before reading attributes Component_Size and Component_Type.
360 * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
361 before reading attribute Component_Type.
362
363 2009-07-23 Olivier Hainque <hainque@adacore.com>
364
365 * gnat_rm.texi: Document the GNAT.SSE units.
366
367 2009-07-23 Ed Schonberg <schonberg@adacore.com>
368
369 * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
370 not null return if it appears on a subunit.
371
372 2009-07-23 Robert Dewar <dewar@adacore.com>
373
374 * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
375 check right away so it does not get skipped for early returns, e.g.
376 array assignments.
377 (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
378 left-side unless we really know the value is valid.
379
380 * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
381 reformatting. Minor code reorganization. Add comments.
382
383 2009-07-23 Robert Dewar <dewar@adacore.com>
384
385 * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
386 complex condition.
387
388 2009-07-23 Gary Dismukes <dismukes@adacore.com>
389
390 * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
391 with test of coverage, to allow specific type objects in extended
392 returns of class-wide functions. Remove now-unnecessary special-case
393 tests that allowed this in certain cases of expanded extended returns.
394
395 2009-07-23 Javier Miranda <miranda@adacore.com>
396
397 * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
398 N_Null_Statements (for SCIL nodes).
399 (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
400 (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
401 (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
402 nodes).
403 (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
404 * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
405 associated with dispatching call.
406 (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
407 (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
408 initialization of dispatch tables and initialization of tags.
409 (New_Scil_Node): New function that creates a new SCIL node.
410 (Build_Init_Procedure): Add generation of SCIL node associated with the
411 initialization of tags done in the IP subprogram.
412
413 2009-07-23 Ed Schonberg <schonberg@adacore.com>
414
415 * errout.adb (Error_Msg_NEL): If the entity in the initial message has
416 Warnings_Off, do not emit continuation messages.
417
418 * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
419 spec.
420
421 2009-07-23 Emmanuel Briot <briot@adacore.com>
422
423 * ali.adb: Minor comment update
424
425 2009-07-23 Vasiliy Fofanov <fofanov@adacore.com>
426
427 * s-win32.ads (HANDLE): Define to be the same size as address type.
428 Fix copyright.
429
430 2009-07-23 Olivier Hainque <hainque@adacore.com>
431
432 * g-sse.ads: New file. Root of the SSE facilities trees, with
433 general description and common declarations.
434 * g-ssvety.ads: New file. Expose user level SSE vector types.
435 * impunit.adb (Non_Imp_File_Names_95): Register new units.
436 * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
437 EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
438
439 2009-07-23 Ben Brosgol <brosgol@adacore.com>
440
441 * gnat_ugn.texi: Wordsmithing.
442
443 2009-07-23 Arnaud Charlet <charlet@adacore.com>
444
445 * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
446
447 2009-07-22 Eric Botcazou <ebotcazou@adacore.com>
448
449 * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
450 they are already of the base type of the index.
451
452 2009-07-22 Brett Porter <porter@adacore.com>
453
454 * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
455
456 2009-07-22 Robert Dewar <dewar@adacore.com>
457
458 * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
459 * gnat_ugn.texi: Add documentation for -gnateS switch
460 * ug_words: Add entry for -gnateS /SCO_OUTPUT
461 * gcc-interface/Make-lang.in: Update dependenciest.3
462
463 * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
464 par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
465 complete information for SCO input/output.
466
467 2009-07-22 Sergey Rybin <rybin@adacore.com>
468
469 * gnat_ugn.texi: Update doc for some gnatcheck rules.
470
471 2009-07-22 Robert Dewar <dewar@adacore.com>
472
473 * par_sco.adb, par_sco.ads (pscos): New debug routine to output
474 contents of SCO tables.
475 * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
476 scos.adb, scos.ads: New files.
477 * gcc-interface/Make-lang.in: Update dependencies.
478
479 * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
480 fixes and reformatting.
481
482 2009-07-22 Robert Dewar <dewar@adacore.com>
483
484 * g-socket.ads: Minor reformatting
485
486 2009-07-22 Gary Dismukes <dismukes@adacore.com>
487
488 * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
489 include the entity kind for following cases of unreferenced entities:
490 E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
491
492 2009-07-22 Ed Falis <falis@adacore.com>
493
494 * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
495 with taskSuspend.
496
497 2009-07-22 Arnaud Charlet <charlet@adacore.com>
498
499 * adadecode.c: Make this file compilable outside of GCC.
500
501 2009-07-22 Thomas Quinot <quinot@adacore.com>
502
503 * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
504 (partially) default-initialized socket sets are handled properly by
505 clearing their Set component.
506
507 2009-07-22 Bob Duff <duff@adacore.com>
508
509 * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
510
511 2009-07-22 Robert Dewar <dewar@adacore.com>
512
513 * gnat_ugn.texi: Minor reformatting
514
515 2009-07-22 Ed Schonberg <schonberg@adacore.com>
516
517 * errout.adb (Error_Msg): A style message within an instantiation
518 should not be labelled as an error.
519
520 2009-07-22 Ed Schonberg <schonberg@adacore.com>
521
522 * freeze.adb (Freeze_Entity): Do not generate extra formal for function
523 in initialization expression if function does not have convention Ada.
524
525 2009-07-22 Sergey Rybin <rybin@adacore.com>
526
527 * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
528 '--separate-label' to control label layout.
529
530 2009-07-22 Robert Dewar <dewar@adacore.com>
531
532 * exp_tss.ads, sem_eval.adb: Minor reformatting
533
534 2009-07-22 Bob Duff <duff@adacore.com>
535
536 * exp_dist.adb, exp_dist.ads: Update comments.
537
538 2009-07-22 Brett Porter <porter@adacore.com>
539
540 * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
541 FPSCR.
542 * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
543
544 2009-07-22 Gary Dismukes <dismukes@adacore.com>
545
546 * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
547 exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
548 Minor reformatting.
549 * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
550 used poor terminology.
551
552 2009-07-22 Robert Dewar <dewar@adacore.com>
553
554 * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
555 * sem_eval.adb, exp_tss.adb: Minor comment update.
556 * stylesw.adb: Code clean up.
557
558 2009-07-22 Ed Schonberg <schonberg@adacore.com>
559
560 * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
561 component size is an exact number of bytes, an array type can have a
562 size clause that forces packing even though the array type itself is
563 not bit-packed.
564
565 2009-07-22 Thomas Quinot <quinot@adacore.com>
566
567 * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
568 if there is a previous entity with the same name in the scope, ignore
569 it if it is the renaming declaration for a generic package introduced
570 in instances.
571
572 2009-07-22 Nicolas Roche <roche@adacore.com>
573
574 * seh_init.c: use RtlAddFunctionTable to register our SEH exception
575 handler on x86_64 windows.
576
577 2009-07-22 Arnaud Charlet <charlet@adacore.com>
578
579 * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
580 false positives in CodePeer, so ignore this pragma in this mode.
581
582 2009-07-22 Thomas Quinot <quinot@adacore.com>
583
584 * sem_util.adb, sem_ch10.adb: Minor reformatting
585
586 * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
587 special handling for the case of no data received and Item'First =
588 Stream_Element_Offset'First.
589 (Last_Index): New subprogram factoring the above special handling
590 over the various locations where it is required.
591
592 2009-07-22 Arnaud Charlet <charlet@adacore.com>
593
594 * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
595 checks in CodePeer_Mode.
596 * gcc-interface/Make-lang.in: Update dependencies.
597
598 2009-07-22 Ed Schonberg <schonberg@adacore.com>
599
600 * sem_aggr.adb: Improve error message.
601
602 * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
603 of an address representation clause.
604 * freeze.adb (Freeze_Static_Object): An local imported object is legal
605 if it has an address clause.
606
607 2009-07-22 Thomas Quinot <quinot@adacore.com>
608
609 * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
610 expression to insert an elab check using a conditional expression, be
611 sure to carry the original list of interpretations to the new location.
612
613 2009-07-22 Gary Dismukes <dismukes@adacore.com>
614
615 * gnat1drv.adb: Fix spelling error.
616
617 2009-07-22 Javier Miranda <miranda@adacore.com>
618
619 * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
620 at the library level and fix a hidden bug in its implementation: its
621 functionality for renaming objects was broken because
622 N_Object_Renaming_Declarations nodes are not a subclass of
623 N_Declaration nodes (as documented in sinfo.ads).
624 * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
625 check nodes that are actuals of generic instantiations.
626
627 2009-07-22 Ed Schonberg <schonberg@adacore.com>
628
629 * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
630 context of a compilation unit is being analyzed. Used to detect
631 circularities created by with_clauses that are not detected by the
632 loading machinery.
633 * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
634 analyzing the context of the current compilation unit, to detect
635 possible circularities created by with_clauses.
636
637 2009-07-22 Thomas Quinot <quinot@adacore.com>
638
639 * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
640
641 2009-07-22 Robert Dewar <dewar@adacore.com>
642
643 * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
644 * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
645 procedure.
646 * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
647 * gnat_ugn.texi: Add documentation of -gnatyB
648 * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
649
650 2009-07-22 Robert Dewar <dewar@adacore.com>
651
652 * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
653 make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
654 s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
655 s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
656 errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
657 a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
658 s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
659 a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
660 erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
661 obey short-circuit style rule.
662
663 2009-07-20 Bob Duff <duff@adacore.com>
664
665 * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
666 instead of "and", because otherwise Parent_Last_Bit is read
667 uninitialized in the case where it's not a tagged type, or the tagged
668 parent does not have a complete rep clause.
669
670 2009-07-20 Robert Dewar <dewar@adacore.com>
671
672 * stylesw.ads: Minor documentation change.
673
674 * types.ads: Minor reformatting
675
676 2009-07-20 Javier Miranda <miranda@adacore.com>
677
678 * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
679 generating the tag checks associated with dispatching calls.
680 * exp_disp.adb (Apply_Access_Checks): New subprogram.
681 (New_Value): This routine was previously local to expand dispatching
682 calls but it is now used also by Apply_Access_Checks.
683 (Expand_Dispatching_Calls): Cleanup code because the functionality of
684 tag checks is now provided by Apply_Access_Checks.
685 * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
686 case of dispatching calls.
687
688 2009-07-20 Arnaud Charlet <charlet@adacore.com>
689
690 * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
691 CodePeer_Mode.
692
693 2009-07-20 Gary Dismukes <dismukes@adacore.com>
694
695 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
696 for VMS, only rewrite the first component of the associated exception's
697 aggregate init (as 'V'), and eliminate the bogus rewrites of the second
698 and third components that were being replaced with 'M' and 'S'.
699
700 2009-07-20 Arnaud Charlet <charlet@adacore.com>
701
702 * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
703 Also do not generate error when parsing a spec in CodePeer mode.
704
705 2009-07-20 Javier Miranda <miranda@adacore.com>
706
707 * checks.adb (Apply_Access_Check): Avoid checks on availability of
708 runtime function Offset_To_Top_Ptr when compiling with no tagged
709 types expansion.
710 * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
711 adding code to the init proc when compiling for VM backends.
712
713 2009-07-20 Vincent Celier <celier@adacore.com>
714
715 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
716 account switches -gnatw.?
717
718 2009-07-20 Thomas Quinot <quinot@adacore.com>
719
720 * sem_dist.adb, exp_dist.adb: Minor reformatting
721
722 * Make-generated.in: New file.
723
724 * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
725
726 2009-07-20 Javier Miranda <miranda@adacore.com>
727
728 * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
729 subprogram.
730 * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
731 dynamically tagged expression.
732 * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
733 factorizes code.
734 * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
735 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
736
737 2009-07-20 Arnaud Charlet <charlet@adacore.com>
738
739 * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
740 CodePeer_Mode is set, to benefit from full front-end expansion
741 (e.g. generics).
742
743 2009-07-20 Ed Schonberg <schonberg@adacore.com>
744
745 * sem_res.adb: Add guard.
746
747 * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
748 for possible attribute definition of External_Tag, in case clause
749 appears in the private part of a package.
750
751 2009-07-20 Jerome Guitton <guitton@adacore.com>
752
753 * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
754
755 2009-07-20 Vadim Godunko <godunko@adacore.com>
756
757 * a-coorma.adb: Minor reformatting.
758
759 2009-07-20 Ed Schonberg <schonberg@adacore.com>
760
761 * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
762 access return types.
763 * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
764 provide an itype reference to gigi to force elaboration of the subtype
765 at the proper point.
766
767 2009-07-20 Tristan Gingold <gingold@adacore.com>
768
769 * g-expect.adb: Avoid closeing already closed handle.
770
771 2009-07-20 Robert Dewar <dewar@adacore.com>
772
773 * sprint.adb (Write_Subprogram_Name): New procedure to output
774 subprogram name with possible preceding $ (replaces
775 Note_Implicit_Run_Time_Call).
776
777 2009-07-20 Robert Dewar <dewar@adacore.com>
778
779 * vms_data.ads: Minor reformatting
780
781 * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
782 applies to base type.
783 (Parent_Subtype): Now allowed on record subtype, applies to base type
784 * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
785 for case of fully repped tagged type.
786 (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
787 tag save/restore for fully repped tagged type case.
788 * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
789 * fe.h (Is_Fully_Repped_Tagged_Type): New function
790 * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
791 overlap of tagged type components with parent type if parent type is
792 fully repped.
793 * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
794
795 * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
796 comparisons.
797 (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
798 (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
799
800 * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
801 logical operators (AND/OR/XOR), not comparison operators.
802
803 * sprint.ads: Minor reformatting
804
805 2009-07-20 Ed Schonberg <schonberg@adacore.com>
806
807 * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
808 intrinsics, check that argument is a string literal, rather than
809 checking for staticness.
810
811 2009-07-20 Robert Dewar <dewar@adacore.com>
812
813 * sem_ch13.adb: Minor reformatting
814
815 * einfo.ads: Minor reformatting
816 Component_Bit_Offset is no longer considered obsolescent
817
818 2009-07-20 Nicolas Roche <roche@adacore.com>
819
820 * a-calend.adb: Redefine time_t as signed integer with same size as
821 Address type.
822 * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
823 Address type
824 * adaint.h: On Windows 64bits declare OS_Time as long long instead of
825 long
826
827 2009-07-20 Javier Miranda <miranda@adacore.com>
828
829 * exp_tss.adb (Init_Proc): Add missing support for non-default C++
830 constructors that have anonymous access type formals.
831
832 * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
833 class-wide arguments in case of imported C++ subprograms.
834
835 * exp_ch3.adb (Build_Initialization_Call): Add assertion.
836
837 2009-07-20 Sergey Rybin <rybin@adacore.com>
838
839 * vms_data.ads: Update qualifiers.
840
841 2009-07-20 Robert Dewar <dewar@adacore.com>
842
843 * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
844 reformatting
845
846 2009-07-17 Richard Guenther <rguenther@suse.de>
847
848 PR c/40401
849 * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
850 state. Remove unused parameter.
851 (gnat_gimplify_function): Do not gimplify here.
852 Fold into its only caller and remove.
853 (gnat_builtin_function): Adjust for end_subprog_body signature change.
854 (gnat_write_global_declarations): Also finalize the CU.
855 * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
856 * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
857 (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
858 change.
859 * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
860
861 2009-07-15 Arnaud Charlet <charlet@adacore.com>
862
863 * gcc-interface/Make-lang.in: Update dependencies
864
865 * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
866
867 2009-07-15 Robert Dewar <dewar@adacore.com>
868
869 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
870 N_Label. Remove SCO table entry for entry point (not used).
871
872 * par_sco.ads: Remove SCO entry point type (not used)
873
874 * switch.adb: Minor code clean up.
875
876 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
877
878 * exp_dbug.ads (Base Record Types): Document enhanced encoding.
879
880 2009-07-15 Thomas Quinot <quinot@adacore.com>
881
882 * gnatls.adb: Minor reformatting
883
884 * gnatcmd.adb: Minor code reorganization
885
886 2009-07-15 Ed Schonberg <schonberg@adacore.com>
887
888 * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
889 determine whether a component of a private type has a composite type.
890
891 2009-07-15 Robert Dewar <dewar@adacore.com>
892
893 * sem_ch10.adb: Minor reformatting throughout
894 Minor code reorganization (put nested subprograms in alpha order)
895
896 2009-07-15 Ed Schonberg <schonberg@adacore.com>
897
898 * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
899 when compiling a call to a protected function that returns a controlled
900 object.
901
902 2009-07-15 Hristian Kirtchev <kirtchev@adacore.com>
903
904 * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
905 one. Add task locking and unlocking around the critical region which
906 mentions localtime_r and global variable timezone for various targets.
907 Comment reformatting.
908
909 2009-07-15 Robert Dewar <dewar@adacore.com>
910
911 * gnat_rm.texi: Document s-ststop.ads
912
913 * impunit.ad: (Map_Array): New table of alternative names
914 (Get_Kind_Of_Unit): Return possible suggested alternative name
915
916 * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
917 alternative name.
918
919 * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
920 alternative unit if an implementation unit is with'ed.
921
922 2009-07-15 Robert Dewar <dewar@adacore.com>
923
924 * gnat_ugn.texi: Minor updates.
925
926 * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
927
928 2009-07-15 Ed Schonberg <schonberg@adacore.com>
929
930 * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
931 conditions of a derived boolean type.
932 Minor reformatting
933
934 2009-07-15 Robert Dewar <dewar@adacore.com>
935
936 * gnat1drv.adb: Initialize SCO tables
937
938 * par-load.adb: Call SCO_Record for main unit spec
939
940 * par.adb: Make call to SCO_Record for main unit
941
942 * par_sco.adb (Unit_Table): Change format to facilitate sort
943 (Process_Decisions): New procedure with list argument
944 (Traverse_Generic_Package_Declaration): New procedure
945 (Initialize): New procedure, replaces Init
946 (SCO_Output): Sort unit table before output
947 (SCO_Record): Avoid duplications
948 (SCO_Record): Handle remaining cases of units
949 (Traverse_Declarations_Or_Statements): Handle generics
950
951 * par_sco.ads (Initialize): New peocedure (replaces Init)
952
953 * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
954 subunit.
955
956 2009-07-15 Arnaud Charlet <charlet@adacore.com>
957
958 * debug.adb: Add -gnatd.J switch for now to support scil generation in
959 parallel. Add missing doc for -gnatd.I and -gnatd.O
960
961 2009-07-15 Robert Dewar <dewar@adacore.com>
962
963 * lib-load.adb: Minor reformatting
964
965 * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
966
967 2009-07-15 Robert Dewar <dewar@adacore.com>
968
969 * par.adb: Minor reformatting
970 Add ??? comment for possible bad comment
971
972 * par-ch10.adb: Minor reformatting
973
974 2009-07-15 Ed Schonberg <schonberg@adacore.com>
975
976 * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
977 is a literal of a derived boolean type, it appears as an unchecked
978 conversion. Retrieve actual value from expression of conversion.
979
980 2009-07-15 Robert Dewar <dewar@adacore.com>
981
982 * sem_ch3.adb: Minor reformatting
983
984 * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
985 lib-writ.ads, lib-writ.adb: Minor reformatting.
986 Fix problem with SCO format in ALI files
987
988 2009-07-15 Robert Dewar <dewar@adacore.com>
989
990 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
991 exp_aggr.adb: Minor code reorganization (better calling sequence for
992 Make_Temporary).
993
994 2009-07-15 Thomas Quinot <quinot@adacore.com>
995
996 * opt.ads: Minor comment edits
997
998 2009-07-15 Tristan Gingold <gingold@adacore.com>
999
1000 * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
1001 needed.
1002
1003 2009-07-15 Robert Dewar <dewar@adacore.com>
1004
1005 * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
1006 information.
1007
1008 * lib-writ.ads: Document addition of SCO lines to ALI file
1009
1010 * par_sco.ads, par_sco.adb: New files.
1011
1012 * opt.ads (Generate_SCO): New switch
1013
1014 * par.adb (Par): Call SCO_Record to record SCO information
1015
1016 * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
1017
1018 * switch-c.adb: Recognize -gnateS to generate SCO information
1019
1020 * usage.adb: Add line for -gnateS
1021
1022 * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
1023
1024 2009-07-15 Robert Dewar <dewar@adacore.com>
1025
1026 * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
1027 reformatting.
1028
1029 2009-07-15 Thomas Quinot <quinot@adacore.com>
1030
1031 * g-socthi-mingw.adb: Minor comment addition
1032
1033 * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
1034
1035 2009-07-15 Robert Dewar <dewar@adacore.com>
1036
1037 * g-htable.ads, s-htable.ads: Minor reformatting
1038
1039 2009-07-15 Robert Dewar <dewar@adacore.com>
1040
1041 * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
1042 new switch -gnatw.g.
1043 (Set_GNAT_Mode_Warnings): New procedure.
1044
1045 * lib-xref.adb: Minor reformatting
1046
1047 2009-07-15 Robert Dewar <dewar@adacore.com>
1048
1049 * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
1050 Minor code reorganization
1051
1052 2009-07-14 Taras Glek <tglek@mozilla.com>
1053 Rafael Espindola <espindola@google.com>
1054
1055 * gcc-interface/Make-lang.in (ada.install-plugin): New target for
1056 installing plugin headers.
1057
1058 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1059
1060 * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1061 exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
1062 and link it to the expression whose value it captures.
1063
1064 2009-07-13 Robert Dewar <dewar@adacore.com>
1065
1066 * output.adb: Minor comment addition for last change
1067
1068 * sinfo.ads: Minor reformatting
1069
1070 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1071
1072 * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
1073 spawn failed like on all other targets.
1074
1075 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1076
1077 * exp_ch7.adb: Indicate origin of temporary for transient expression.
1078
1079 2009-07-13 Thomas Quinot <quinot@adacore.com>
1080
1081 * s-oscons-tmplt.c: Add comment.
1082
1083 2009-07-13 Robert Dewar <dewar@adacore.com>
1084
1085 * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
1086 reformatting. Minor code reorganization (add 9 argument version of
1087 Nkind_In).
1088
1089 * impunit.adb: Remove s-os_lib from list of system extensions.
1090
1091 * sem_util.ads: Minor reformatting
1092
1093 * output.adb: Add warnings off/on around System.OS_Lib.
1094
1095 2009-07-13 Bob Duff <duff@adacore.com>
1096
1097 * exp_dist.adb: Minor comment updates.
1098
1099 2009-07-13 Gary Dismukes <dismukes@adacore.com>
1100
1101 * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
1102 several references to CodePeer.
1103
1104 2009-07-13 Bob Duff <duff@adacore.com>
1105
1106 * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
1107 Build_TypeCode_Function_All): Do not recurse if the type is the base
1108 type.
1109
1110 2009-07-13 Robert Dewar <dewar@adacore.com>
1111
1112 * exp_ch4.adb: Minor comment change
1113
1114 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1115
1116 * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
1117 type of iteration, to prevent spurious warnings.
1118
1119 2009-07-13 Nicolas Roche <roche@adacore.com>
1120
1121 * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
1122 included.
1123
1124 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1125
1126 * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
1127 gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
1128 Generate_SCIL.
1129 (CodePeer_Mode): New -gnatC switch.
1130 (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
1131 CodePeer_Mode.
1132
1133 2009-07-13 Eric Botcazou <ebotcazou@adacore.com>
1134
1135 * checks.adb (Selected_Range_Checks): Do not consider that a non-static
1136 integer bound forces the check if it is compared to its subtype range.
1137
1138 2009-07-13 Robert Dewar <dewar@adacore.com>
1139
1140 * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
1141 prj-strt.ads: Minor reformatting
1142
1143 2009-07-13 Thomas Quinot <quinot@adacore.com>
1144
1145 * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
1146 set the type of the From_Any call to the base type.
1147
1148 2009-07-13 Doug Rupp <rupp@adacore.com>
1149
1150 * symbols-processing-vms-ia64.adb (Process): Add variables and
1151 constants to retrieve and check for symbol visibility.
1152
1153 2009-07-13 Javier Miranda <miranda@adacore.com>
1154
1155 * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
1156 the identical type we remove the conversion completely because
1157 it is useless.
1158
1159 2009-07-13 Emmanuel Briot <briot@adacore.com>
1160
1161 * prj-err.adb (Error_Msg): One more case where a message should be
1162 considered as a warning.
1163
1164 * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
1165
1166 2009-07-13 Thomas Quinot <quinot@adacore.com>
1167
1168 * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
1169 calling stubs in the (library level) scope of the RCI locator, where it
1170 is attached, not in the caller's scope.
1171
1172 2009-07-13 Javier Miranda <miranda@adacore.com>
1173
1174 * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
1175 interface object declarations we delay the generation of the equivalent
1176 record type declarations until its expansion because there are cases in
1177 which they are not required.
1178
1179 * sem_util.adb (Implements_Interface): Add missing support for subtypes.
1180
1181 * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
1182 addition of assertion.
1183
1184 * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
1185 interface types require no equivalent constrained type declarations
1186 because the expanded code only references the tag component associated
1187 with the interface.
1188 (Find_Interface_Tag): Improve management of interfaces that are
1189 ancestors of tagged types.
1190
1191 * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
1192 class-wide object declarations to add missing support to statically
1193 displace the pointer to the object to reference the tag component
1194 associated with the interface.
1195
1196 * exp_disp.adb (Make_Tags) Avoid generation of internally generated
1197 auxiliary types associated with user-defined dispatching calls if the
1198 type has no user-defined primitives.
1199
1200 2009-07-13 Vasiliy Fofanov <fofanov@adacore.com>
1201
1202 * mingw32.h: Make it explicit that we need XP or later.
1203
1204 * initialize.c: Remove useless extern symbol declaration.
1205
1206 * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
1207 code reuse in expect.c.
1208
1209 * adaint.c: Changes throughout the Windows section to redesign storage
1210 of the child process list and the process identification.
1211
1212 * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
1213 for interfacing, fix errors.
1214 (__gnat_expect_portable_execvp): use function in adaint.c
1215
1216 2009-07-13 Emmanuel Briot <briot@adacore.com>
1217
1218 * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
1219 prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
1220 prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
1221 errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
1222 (Prj.Nmsc.Report_Error): Removed, no longer needed.
1223 Always use Prj.Err.Report_Message.
1224
1225 2009-07-13 Robert Dewar <dewar@adacore.com>
1226
1227 * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
1228 & comment edits.
1229
1230 2009-07-13 Robert Dewar <dewar@adacore.com>
1231
1232 * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1233 prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
1234
1235 2009-07-13 Emmanuel Briot <briot@adacore.com>
1236
1237 * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
1238 mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
1239 Ada_Prj_Include_File_Set): Removed, since not needed
1240 Code clean up.
1241
1242 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1243
1244 * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
1245 Analyze_Membership_Op.
1246
1247 * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
1248 Resolve_Membership_Op.
1249
1250 * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
1251 Expand_N_In.
1252
1253 2009-07-13 Robert Dewar <dewar@adacore.com>
1254
1255 * clean.adb: Minor reformattting
1256
1257 2009-07-13 Emmanuel Briot <briot@adacore.com>
1258
1259 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
1260 gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
1261 prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
1262 prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
1263 and attributes in a project tree.
1264 (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
1265 Remove last remaining mode-specific code (ada_only or
1266 multi_language). This was duplicating code
1267 (Get_Mode, Set_Mode): removed, no longer used.
1268 (Initialize_Project_Path): all tools will now take into account both
1269 GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
1270 Remove some global variables and subprograms no longer used
1271 Make temporary files tree-specific, to avoid interferences between
1272 trees loaded in memory at the same time.
1273 (Prj.Delete_Temporary_File): new subprogram
1274 (Object_Paths, Source_Paths): fields no longer stored in the project
1275 tree, since they are only needed locally in Set_Ada_Paths.
1276 (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
1277 effect in practice.
1278 (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
1279 by local variables in the appropriate subprograms
1280 (Has_Foreign_Sources): removed.
1281
1282 * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
1283
1284 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1285
1286 * gnat1drv.adb (Adjust_Global_Switches): No longer set
1287 Back_Annotate_Rep_Info in inspector mode.
1288 (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
1289
1290 * opt.ads: Update comment.
1291
1292 2009-07-13 Robert Dewar <dewar@adacore.com>
1293
1294 * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
1295 prj.ads: Minor reformatting and code reorganization.
1296
1297 * par-ch3.adb (Check_Restricted_Expression): New procedure
1298
1299 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1300
1301 * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
1302 attribute into a call of the corresponding suprogram, create extra
1303 formals for the subprogram, because it may be a renaming whose
1304 analysis does not create extra formals.
1305
1306 2009-07-13 Emmanuel Briot <briot@adacore.com>
1307
1308 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1309 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1310 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1311 prj-tree.ads: Minor reformatting.
1312 (Processing_Flags): new record to encapsulate the set of common
1313 parameters to several subprograms in the project manager.
1314 (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1315 Remove the need for the Current_Dir parameter in subprograms.
1316 (Look_For_Sources): minor refactoring, now that we no longer need to
1317 share subprograms between the two Ada_Only and Multi_Language modes
1318 (Processing_Flags): New field Error_On_Unknown_Language.
1319 Merge tests for library project between gnatmake and gprbuild.
1320
1321 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1322
1323 * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1324 Minor reformatting.
1325
1326 2009-07-13 Emmanuel Briot <briot@adacore.com>
1327
1328 * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1329 than units.
1330
1331 2009-07-13 Thomas Quinot <quinot@adacore.com>
1332
1333 * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1334 Write,Input,Output} from private view to full view.
1335
1336 * sem_type.adb, sem_type.ads: Minor reformatting
1337
1338 2009-07-13 Nicolas Setton <setton@adacore.com>
1339
1340 * exp_dbug.ads: Add documentation note on the utility of
1341 DW_AT_GNAT_encoding for IDEs.
1342
1343 2009-07-13 Robert Dewar <dewar@adacore.com>
1344
1345 * g-socthi-vxworks.adb: Minor reformatting
1346
1347 * gnatcmd.adb: Minor reformatting
1348
1349 2009-07-13 Thomas Quinot <quinot@adacore.com>
1350
1351 * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1352 removed, not used anymore.
1353 (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1354 New subprogram, implements copy of an Any value into a limited object.
1355 (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1356 Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1357 Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1358 of parameters of a limited type, use the above new subprogram.
1359
1360 2009-07-13 Emmanuel Briot <briot@adacore.com>
1361
1362 * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1363 Location.
1364 (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1365 allocated space.
1366 (Error_Report): Remove global variable, replaced by parameters.
1367
1368 2009-07-13 Thomas Quinot <quinot@adacore.com>
1369
1370 * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
1371 standard sendto(2) interface for connected sockets (passing a null
1372 destination address). Use send(2) instead for that case.
1373
1374 2009-07-13 Pascal Obry <obry@adacore.com>
1375
1376 * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
1377
1378 2009-07-13 Emmanuel Briot <briot@adacore.com>
1379
1380 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1381 prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
1382 variables and tables in prj-nmsc.adb.
1383 (Tree_Processing_Data): Renames Processing_Data, some new fields added
1384 (Project_Processing_Data): New record
1385 Simplify/unify check for missing sources.
1386
1387 2009-07-13 Emmanuel Briot <briot@adacore.com>
1388
1389 * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
1390 prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1391 prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
1392 prj-tree.ads (Immediate_Directory_Of): Removed.
1393 (Prj.Pars): Now parse the project simulating a default config file.
1394 (Add_Default_GNAT_Naming_Scheme): New subprogram
1395 (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
1396 Remove gnatmake-specific parsing of source files.
1397 (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
1398 the error itself to provide more precise diagnostics.
1399 (Process_Exceptions_Unit_Based): Avoid duplicate error message when
1400 a unit belongs to several projects.
1401 (Copy_Interface_Sources): Search the full path of files to copy in the
1402 list of sources of the application rather than in the list of units.
1403 (Parse_Project_And_Apply_Config): Do not reset the name of the main
1404 project file.
1405 (Check_File): Use htables to find out whether a source is duplicated.
1406 (Add_Source): check whether the source or unit were already seen earlier
1407
1408 * gcc-interface/Makefile.in: Update gnatmake dependencies.
1409
1410 2009-07-13 Robert Dewar <dewar@adacore.com>
1411
1412 * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
1413 expression if extensions permitted.
1414
1415 * par-ch4.adb (P_Membership_Test): New procedure (implement membership
1416 set tests).
1417 (P_Relation): Use P_Membership_Test
1418
1419 * par.adb (P_Membership_Test): New procedure (implement membership set
1420 tests).
1421
1422 * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
1423
1424 * sprint.adb (Sprint_Node): Handle set form for membership tests.
1425
1426 2009-07-13 Thomas Quinot <quinot@adacore.com>
1427
1428 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
1429 Do not attempt to generate stubs for predefined primitives of
1430 synchronized interfaces.
1431 (Add_Stub_Type): Factor some code from the PCS-specific variants of
1432 Build_Stub_Type.
1433
1434 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1435
1436 * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
1437 Controlling_Result flag from the operation they override.
1438
1439 2009-07-13 Arnaud Charlet <charlet@adacore.com>
1440
1441 * gcc-interface/Make-lang.in: Update dependencies
1442
1443 2009-07-13 Robert Dewar <dewar@adacore.com>
1444
1445 * gnat_ugn.texi: The gnatf switch no longer is needed to get full
1446 details on unsupported constructs.
1447
1448 * rtsfind.adb: Remove references to All_Errors_Mode, give errors
1449 unconditionally.
1450
1451 * s-trafor-default.adb: Correct some warnings
1452
1453 * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
1454 sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
1455 Minor reformatting.
1456
1457 * par-ch4.adb (Conditional_Expression): Capture proper location for
1458 conditional expression, should point to IF.
1459
1460 * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
1461 s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
1462 g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
1463 reorganization (use conditional expressions).
1464
1465 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1466
1467 * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
1468 build-in-place function that returns an inherently limited type (not
1469 just a task type) create proper object declaration so that extra
1470 build-in-place actuals are properly added to the call.
1471
1472 2009-07-13 Robert Dewar <dewar@adacore.com>
1473
1474 * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
1475
1476 * gnat_ugn.texi: Add documentation for -gnatw.m/.M
1477
1478 * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
1479
1480 * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
1481 Warn_On_Suspicious_Modulus_Value.
1482
1483 * ug_words: Add entries for -gnatw.m/-gnatw.M.
1484
1485 * usage.adb: Add lines for -gnatw.m/.M switches.
1486
1487 * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
1488
1489 2009-07-13 Javier Miranda <miranda@adacore.com>
1490
1491 * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
1492 reading the Is_Interface attribute of the dispatching type.
1493
1494 2009-07-13 Robert Dewar <dewar@adacore.com>
1495
1496 * a-convec.adb: Minor code reorganization (use conditional expressions)
1497
1498 2009-07-13 Robert Dewar <dewar@adacore.com>
1499
1500 * freeze.adb (Check_Suspicious_Modulus): New procedure.
1501
1502 2009-07-13 Robert Dewar <dewar@adacore.com>
1503
1504 * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
1505 warning).
1506
1507 * par-ch4.adb: Minor reformatting
1508
1509 2009-07-13 Ed Schonberg <schonberg@adacore.com>
1510
1511 * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
1512 => Is_Atomic_Aggregate
1513
1514 2009-07-13 Emmanuel Briot <briot@adacore.com>
1515
1516 * prj-nmsc.adb: Avoid traversing the list of source files if
1517 we have already processed all locally removed files.
1518
1519 2009-07-13 Jose Ruiz <ruiz@adacore.com>
1520
1521 * gnat_ugn.texi: Fix typo.
1522
1523 2009-07-13 Robert Dewar <dewar@adacore.com>
1524
1525 * freeze.adb: Minor reformatting
1526 Minor code reorganization (use Nkind_In)
1527
1528 * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
1529
1530 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1531
1532 * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
1533 local variable and do not test it in Compile_Time_Bad_Alignment.
1534 Do not issue size or alignment warnings for the X'Address form.
1535 * sem_util.ads (Find_Overlaid_Object): Delete.
1536 (Find_Overlaid_Entity): New procedure.
1537 * sem_util.adb (Find_Overlaid_Object): Rename to...
1538 (Find_Overlaid_Entity): ...this and turn into a procedure. Report
1539 whether the address is offseted within the overlaid entity.
1540 (Has_Compatible_Alignment): Track the offset globally instead of
1541 passing it to Check_Offset. For an indexed component, compute the
1542 full offset when possible. If the resulting offset is zero, only
1543 check the prefix.
1544 (Check_Offset): Delete.
1545 * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
1546 (Address_Aliased_Entity): Delete.
1547 (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
1548 Find_Overlaid_Entity to find the overlaid entity and the offset.
1549 Adjust throughout for above change.
1550 (Validate_Address_Clauses): Always use attributes of entities, not of
1551 their type. Tweak message for warning. Call Has_Compatible_Alignment
1552 if the address is offseted to warn about incompatible alignments.
1553 * gcc-interface/gigi.h (annotate_object): Declare.
1554 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
1555 entity. Call annotate_object instead of annotating manually objects.
1556 (annotate_object): New function.
1557 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
1558 at the end.
1559
1560 2009-07-11 Eric Botcazou <ebotcazou@adacore.com>
1561
1562 * gcc-interface/ada-tree.h: Minor reorganization.
1563 * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
1564 (gnat_print_type): Likewise.
1565
1566 2009-07-11 Thomas Quinot <quinot@adacore.com>
1567
1568 * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
1569 Lvalue -> lvalue
1570
1571 * exp_ch6.adb: Minor reformatting
1572
1573 2009-07-11 Ed Schonberg <schonberg@adacore.com>
1574
1575 * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
1576 account possible type qualification to determine whether aggregate
1577 needs a target temporary to respect atomic type or object.
1578
1579 * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
1580 Expand_Atomic_Aggregate.
1581
1582 2009-07-11 Emmanuel Briot <briot@adacore.com>
1583
1584 * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
1585 algorithm.
1586 (Excluded_Sources_Htable): No longer a global table.
1587 Change error message to indicate which files are illegal in the list
1588 of excluded files, as opposed to only the location in the project
1589 file.
1590 (Find_Source): New subprogram.
1591
1592 2009-07-10 Thomas Quinot <quinot@adacore.com>
1593
1594 * exp_ch7.adb: Update comments.
1595
1596 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1597
1598 * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
1599 clause if -gnatI is set instead of crashing.
1600
1601 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1602
1603 * sem_ch11.adb (Same_Expression): Null is always equal to itself.
1604 Additional work to remove redundant successive raise statements, in
1605 this case access checks.
1606
1607 2009-07-10 Vincent Celier <celier@adacore.com>
1608
1609 * make.adb (Compile): Always create a deep copy of the mapping file
1610 argument (-gnatem=...) as it may be deallocate/reallocate by
1611 Normalize_Arguments.
1612
1613 2009-07-10 Javier Miranda <miranda@adacore.com>
1614
1615 * einfo.adb (Directly_Designated_Type): Add assertion.
1616
1617 * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
1618 access types before using attribute Directly_Designated_Type.
1619
1620 2009-07-10 Emmanuel Briot <briot@adacore.com>
1621
1622 * prj.ads: Minor typo fix
1623
1624 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1625
1626 * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
1627 special treatment.
1628
1629 * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
1630 subprogram is a function call, resolve properly, to ensure that extra
1631 actuals are added as needed.
1632
1633 2009-07-10 Thomas Quinot <quinot@adacore.com>
1634
1635 * sem_aggr.adb: Minor comments editing
1636
1637 * exp_tss.adb, exp_ch3.adb: Minor reformatting
1638
1639 2009-07-10 Robert Dewar <dewar@adacore.com>
1640
1641 * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
1642
1643 * exp_ch4.adb: Add ??? comment for conditional expressions on limited
1644 types.
1645
1646 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
1647 replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
1648 case of conditional expressions that may not be elaborated.
1649
1650 * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
1651 conditional expression where we may not execute then then or else
1652 branches.
1653
1654 2009-07-10 Arnaud Charlet <charlet@adacore.com>
1655
1656 * i-cexten.ads (bool): New type.
1657
1658 2009-07-10 Robert Dewar <dewar@adacore.com>
1659
1660 * sinfo.ads (N_Short_Circuit): New definition
1661
1662 * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
1663 treepr.adb: Minor code reorganization (use N_Short_Circuit)
1664
1665 2009-07-10 Javier Miranda <miranda@adacore.com>
1666
1667 * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
1668 non-tagged record types.
1669
1670 * sem_prag.adb
1671 (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
1672 with non-tagged types. Required to import C++ classes that have no
1673 virtual primitives.
1674 (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
1675 returning non-tagged types. For backward compatibility, if the
1676 constructor returns a class wide type we internally change the
1677 returned type to the corresponding non class-wide type.
1678
1679 * sem_aggr.adb
1680 (Valid_Ancestor_Type): CPP_Constructors code cleanup.
1681 (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
1682 (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
1683 (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
1684
1685 * sem_ch3.adb
1686 (Analyze_Object_Declaration): CPP_Constructors code cleanup.
1687
1688 * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
1689
1690 * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
1691
1692 * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
1693
1694 * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
1695 cleanup.
1696
1697 * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
1698
1699 * gnat_rm.texi
1700 (pragma CPP_Class): Document that it can be used now with non-tagged
1701 record types.
1702 (pragma CPP_Constructor): Document that it can be used now with
1703 functions returning specific types. For backward compatibility
1704 we also support functions returning class-wide types.
1705
1706 * gnat_ugn.texi
1707 (Interfacing with C++ constructors): Update the examples to incorporate
1708 the new syntax in which the functions used to import C++ constructors
1709 return specific types.
1710 (Interfacing with C++ at the Class Level): Update the examples to
1711 incorporate the new syntax in which the functions used to import
1712 C++ constructors return specific types.
1713
1714 2009-07-10 Thomas Quinot <quinot@adacore.com>
1715
1716 * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
1717 Make_Disp_Conditional_Select_Body,
1718 Make_Disp_Timed_Select_Body): For the case of a type that is neither an
1719 interface nor a concurrent type, the primitive body is empty. Generate
1720 a null statement so that it remains well formed.
1721
1722 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1723
1724 * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
1725 replace references to them in defaulted component expressions with
1726 references to the values of the discriminants of the target object.
1727
1728 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1729
1730 * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
1731 pragma, to capture global references if the context is generic.
1732
1733 * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
1734 appears within the initialization procedure for the corresponding
1735 record, replace it with the proper discriminal.
1736
1737 2009-07-10 Vincent Celier <celier@adacore.com>
1738
1739 * make.adb: Do not include object directories or library ALI
1740 directories of library projects in the object path.
1741
1742 2009-07-10 Javier Miranda <miranda@adacore.com>
1743
1744 * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
1745 Typ argument to ensure proper management of access types.
1746
1747 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1748
1749 * exp_ch7.adb (Build_Final_List): If the list is being built for a
1750 Taft-Amendment type, place the finalization list in the package body,
1751 to ensure that the tree for the spec is identical whenever it is
1752 compiled.
1753
1754 2009-07-10 Javier Miranda <miranda@adacore.com>
1755
1756 * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
1757 inheriting attributes from a private Parent_Base.
1758
1759 2009-07-10 Ed Schonberg <schonberg@adacore.com>
1760
1761 * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
1762 statements with the same condition.
1763
1764 2009-07-10 Robert Dewar <dewar@adacore.com>
1765
1766 * exp_ch4.adb (Raise_Accessibility_Error): New procedure
1767
1768 2009-07-09 Tom Tromey <tromey@redhat.com>
1769
1770 * raise-gcc.c: Include dwarf2h (unconditionally).
1771
1772 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1773
1774 * sem_ch10.adb (Install_Context): If the unit is a package body,
1775 install the private with_clauses of the corresponding package
1776 declaration.
1777
1778 2009-07-09 Robert Dewar <dewar@adacore.com>
1779
1780 * checks.adb: Minor reformatting
1781
1782 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1783
1784 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1785 into ug_words.
1786
1787 2009-07-09 Thomas Quinot <quinot@adacore.com>
1788
1789 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1790 Do not warn for a constant overlaying any constant object
1791
1792 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1793
1794 * sem_ch10.adb (Install_Context): If the unit is a package body,
1795 install the private with_clauses of the corresponding package
1796 declaration.
1797
1798 2009-07-09 Robert Dewar <dewar@adacore.com>
1799
1800 * checks.adb: Minor reformatting
1801
1802 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1803
1804 * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
1805 into ug_words.
1806
1807 2009-07-09 Thomas Quinot <quinot@adacore.com>
1808
1809 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
1810 Do not warn for a constant overlaying any constant object
1811
1812 2009-07-09 Arnaud Charlet <charlet@adacore.com>
1813
1814 * gcc-interface/Make-lang.in: Update dependencies
1815
1816 2009-07-09 Thomas Quinot <quinot@adacore.com>
1817
1818 * g-socket.adb (Check_Selector): Do not create local copies of the
1819 socket sets on the stack.
1820
1821 2009-07-09 Vasiliy Fofanov <fofanov@adacore.com>
1822
1823 * gnat_ugn.texi: Add missing VMS translations.
1824
1825 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1826
1827 * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
1828 condition, to prevent generation of visible code during expansion,
1829 when Check is not enabled.
1830
1831 2009-07-09 Gary Dismukes <dismukes@adacore.com>
1832
1833 * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
1834 the check gets registered for any available local handler
1835 (Set_Local_Raise).
1836
1837 * sem_util.adb: Add with and use of Exp_Ch11.
1838 (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
1839 that the check gets registered for any available local handler.
1840
1841 * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
1842 on slice ranges.
1843
1844 2009-07-09 Steve Baird <baird@adacore.com>
1845
1846 * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
1847 function.
1848 (Expand_N_Exception_Declaration): Fix handling of exceptions
1849 declared in a subprogram.
1850
1851 2009-07-09 Emmanuel Briot <briot@adacore.com>
1852
1853 * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
1854 multi-unit files.
1855
1856 2009-07-09 Thomas Quinot <quinot@adacore.com>
1857
1858 * freeze.adb: Minor reformatting
1859
1860 * exp_ch3.adb: Minor comment fix.
1861
1862 * sinfo.ads: Minor comment fix
1863
1864 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1865
1866 * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
1867
1868 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1869
1870 * freeze.adb (Freeze_Expression): If the expression is the name of a
1871 function in a call, and the function has not been frozen yet, create
1872 extra formals for it to ensure that the proper actuals are created
1873 when expanding the call.
1874
1875 2009-07-09 Emmanuel Briot <briot@adacore.com>
1876
1877 * prj-pp.adb (Print): Fix handling of source index when set on a
1878 declaration node.
1879
1880 2009-07-09 Ed Schonberg <schonberg@adacore.com>
1881
1882 * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
1883 a temporary to the source expression whose value it captures.
1884
1885 * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
1886
1887 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1888
1889 * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
1890 EXPR_LOCATION.
1891
1892 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1893
1894 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
1895 parameters when the subtype of the actual is not known to be a subrange
1896 of the formal's subtype.
1897 (Expand_Call): Generate a range check only in the E_In_parameter case
1898 (in out parameter range checks are now handled in Expand_Actuals).
1899
1900 * exp_ch4.adb (Expand_N_Slice): Restore code that calls
1901 Enable_Range_Check.
1902
1903 2009-07-07 Robert Dewar <dewar@adacore.com>
1904
1905 * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
1906
1907 2009-07-07 Javier Miranda <miranda@adacore.com>
1908
1909 * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
1910 designated type comes from a limited views.
1911
1912 2009-07-07 Emmanuel Briot <briot@adacore.com>
1913
1914 * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
1915 locally removed files that are later made visible again in an importing
1916 project.
1917
1918 2009-07-07 Robert Dewar <dewar@adacore.com>
1919
1920 * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
1921
1922 2009-07-07 Sergey Rybin <rybin@adacore.com>
1923
1924 * gnat_ugn.texi: Add an example to the description of gnatcheck
1925 'Style_Checks' rule option.
1926
1927 2009-07-07 Tristan Gingold <gingold@adacore.com>
1928
1929 * seh_init.c: Fix inline assembly statement in seh_init.c
1930
1931 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1932
1933 * sem_warn.adb (Check_References): Do not emit warnings on formals of
1934 an entry body. Only the formals of the entry declaration are traced.
1935
1936 2009-07-07 Robert Dewar <dewar@adacore.com>
1937
1938 * s-osprim-mingw.adb: Minor code reorganization
1939
1940 2009-07-07 Robert Dewar <dewar@adacore.com>
1941
1942 * prj-nmsc.adb: Minor reformatting
1943
1944 2009-07-07 Pascal Obry <obry@adacore.com>
1945
1946 * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
1947 cases where Pattern is longer than Source.
1948
1949 2009-07-07 Pascal Obry <obry@adacore.com>
1950
1951 * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
1952
1953 2009-07-07 Emmanuel Briot <briot@adacore.com>
1954
1955 * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
1956 project file.
1957
1958 2009-07-07 Ed Schonberg <schonberg@adacore.com>
1959
1960 * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
1961 primitive operations, in case one of them is called in the
1962 initialization procedure for the type.
1963
1964 2009-07-07 Robert Dewar <dewar@adacore.com>
1965
1966 * a-calend.adb: Minor code reorganization (use conditional expressions)
1967
1968 * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
1969 prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
1970 s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
1971 s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
1972 s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
1973 g-comlin.adb, exp_ch11.adb: Minor reformatting.
1974
1975 2009-07-07 Gary Dismukes <dismukes@adacore.com>
1976
1977 * checks.adb (Generate_Range_Check): Replace type conversions with
1978 unchecked conversions to support the case of performing range checks
1979 on Enum'Val (permits integer values to be converted to enumeration).
1980
1981 * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
1982 Attribute_Succ): Set Do_Range_Check to False before calling
1983 Expand_Pred_Succ, to prevent gigi from generating any range checks.
1984 (Expand_N_Attribute_Reference, case Attribute_Val):
1985 Generate a range check when needed (and set Do_Range_Check to False).
1986
1987 * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
1988 scalar object initialization if needed.
1989
1990 * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
1991 when needed on scalar allocators.
1992 (Expand_N_Qualified_Expression): Generate range check when needed.
1993 (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
1994 Checks on slice ranges handled in Resolve_Slice.
1995
1996 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
1997 when needed, for all scalar assignments, not just discrete.
1998 (Expand_Simple_Function_Return): Resolve the conversion created for a
1999 scalar function return so that the conversion will get expanded to
2000 generate a possible constraint check.
2001
2002 * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
2003 in out scalar actuals when subtypes don't match, to ensure generation
2004 of return checks (and set Do_Range_Check to False).
2005 (Expand_Call): Uncomment code to perform range checks, but make it apply
2006 only to in and in out parameters (checks on parameter returns are
2007 handled in Expand_Actuals). If a scalar actual for a call to a derived
2008 subprogram is marked as needing a range check, peform it here (and set
2009 Do_Range_Check to False).
2010
2011 * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
2012 range check on scalar component associations when needed.
2013
2014 * sem_eval.adb (In_Subrange_Of): Return False when the first type has
2015 infinities but the second type does not, as these aren't compatible
2016 floating-point types.
2017
2018 * sem_res.adb (Resolve_Slice): In the case where the prefix of the
2019 slice is itself a slice, pick up the Etype of the prefix. This handles
2020 the case where the prefix was an Image attribute expanded to a slice,
2021 and ensures that we get the subtype with the slice constraint rather
2022 than the unconstrained subbtype of the 'Image.
2023
2024 2009-07-07 Ed Schonberg <schonberg@adacore.com>
2025
2026 * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
2027 overloaded expressions in a conditional expressions.
2028
2029 * sem_res.adb (Resolve): Handle properly overloaded conditional
2030 expressions.
2031
2032 2009-07-07 Robert Dewar <dewar@adacore.com>
2033
2034 * scng.adb: Minor reformattting
2035
2036 * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
2037 association allows conditional expression without parens.
2038
2039 * par-ch4.adb (P_Name): Attribute arguments can be conditional
2040 expressions without enclosing parentheses, and also as parameters,
2041 indexing expressions etc.
2042 (P_Conditional_Expression): New procedure
2043 (P_Expression_If_OK): New procedure
2044
2045 * par.adb (P_Conditional_Expression): New procedure
2046 (P_Expression_If_OK): New procedure
2047
2048 * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
2049 form of conditional expression.
2050
2051 * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
2052 missing True argument if ELSE argument missing.
2053
2054 * sinfo.adb (Is_Elsif): New flag
2055
2056 * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
2057 part of the language, and the documentation is modified accordingly.
2058 (Is_Elsif): New flag
2059
2060 2009-07-06 Olivier Hainque <hainque@adacore.com>
2061
2062 * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
2063 setjmp_longjmp): Attach the exception propagation reraise fallback
2064 to the sequence end label location when we have it.
2065
2066 2009-07-04 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2067
2068 PR ada/40608
2069 * init.c (APPLE): Include <mach/mach_init.h>.
2070 (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
2071
2072 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
2073
2074 * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
2075 (SET_DECL_LANG_SPECIFIC): Likewise.
2076 (TYPE_RM_VALUE): New macro.
2077 (SET_TYPE_RM_VALUE): Likewise.
2078 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
2079 (TYPE_RM_MIN_VALUE): Likewise.
2080 (TYPE_RM_MAX_VALUE): Likewise.
2081 (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
2082 (SET_TYPE_RM_MIN_VALUE): Likewise.
2083 (SET_TYPE_RM_MAX_VALUE): Likewise.
2084 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
2085
2086 2009-07-04 Laurent GUERBY <laurent@guerby.net>
2087
2088 PR ada/40631
2089 * tracebak.c (__gnat_backtrace): Fix old-style definition.
2090
2091 2009-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2092
2093 * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
2094
2095 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2096
2097 PR ada/40609
2098 * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
2099 ucontext argument.
2100
2101 2009-07-01 Eric Botcazou <ebotcazou@adacore.com>
2102
2103 * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
2104
2105 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2106
2107 * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
2108 the type of the left operand if it pads a self-referential type when
2109 the right operand is a constructor.
2110
2111 * gcc-interface/lang-specs.h: Fix copyright date.
2112
2113 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2114
2115 * gcc-interface/decl.c: Include tree-inline.h.
2116 (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
2117 * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
2118 * gcc-interface/utils2.c: Include tree-inline.
2119 (known_alignment) <CALL_EXPR>: Likewise.
2120
2121 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
2122
2123 * raise-gcc.c: Include dwarf2.h conditionally.
2124
2125 2009-06-29 Tom Tromey <tromey@redhat.com>
2126
2127 * raise-gcc.c: Include elf/dwarf2.h.
2128
2129 2009-06-27 Laurent GUERBY <laurent@guerby.net>
2130
2131 * tb-gcc.c (trace_callback): Add casts to silence warning.
2132
2133 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2134
2135 * tb-gcc.c: Fix copyright notice.
2136
2137 2009-06-27 Eric Botcazou <ebotcazou@adacore.com>
2138
2139 * init.c (__gnat_set_globals): Add prototype.
2140 * adaint.c (__gnat_binder_supports_auto_init): Likewise.
2141 (__gnat_sals_init_using_constructors): Likewise.
2142 * gcc-interface/utils.c (gnat_pushlevel): Likewise.
2143 (get_block_jmpbuf_decl): Likewise.
2144 (gnat_poplevel): Likewise.
2145 (merge_sizes): Rename local variable.
2146 (copy_type): Likewise.
2147 (build_vms_descriptor32): Likewise.
2148 (build_vms_descriptor): Likewise.
2149 (convert_vms_descriptor64): Likewise.
2150 (convert_vms_descriptor32): Likewise.
2151 (convert_to_fat_pointer): Likewise.
2152 (maybe_unconstrained_array): Likewise.
2153 (def_fn_type): Use promoted type with va_arg.
2154 * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
2155 (substitute_in_type): Rename local variable.
2156 * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
2157
2158 2009-06-26 Laurent GUERBY <laurent@guerby.net>
2159
2160 * tb-gcc.c (trace_callback): Use char* instead of void*.
2161 * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
2162 * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
2163 (Attribute_to_gnu): Adjust for above change.
2164 (Subprogram_Body_to_gnu): Likewise.
2165 * gcc-interface/utils.c (merge_sizes): Rename local variable.
2166 (copy_type): Likewise.
2167 (build_vms_descriptor32): Likewise.
2168 (build_vms_descriptor): Likewise.
2169 (convert_vms_descriptor64): Likewise.
2170 (convert_vms_descriptor32): Likewise.
2171 (convert_to_fat_pointer): Likewise.
2172 (maybe_unconstrained_array): Likewise.
2173 * gcc-interface/decl.c (substitute_in_type): Likewise.
2174
2175 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2176
2177 * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
2178 (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
2179 of the upper bound of the index types.
2180
2181 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2182
2183 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
2184 out common predicate. Use the maximum to compute the upper bound of
2185 the index type only when it is not wider than sizetype. Perform the
2186 comparison in the index type for the generic expression. Use real
2187 precision to decide whether to generate special types for debugging
2188 information.
2189
2190 2009-06-26 Matthew Gingell <gingell@adacore.com>
2191
2192 * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
2193
2194 2009-06-26 Vincent Celier <celier@adacore.com>
2195
2196 * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
2197 default.
2198
2199 2009-06-26 Robert Dewar <dewar@adacore.com>
2200
2201 * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
2202
2203 2009-06-26 Eric Botcazou <ebotcazou@adacore.com>
2204
2205 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
2206 correct arguments to create_field_decl. Remove redundant iteration.
2207 Rewrite computation of the maximum size.
2208 <E_Array_Subtype>: Reorder and simplify handling of special cases.
2209 Rewrite computation of the maximum size. Use consistent naming.
2210 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
2211 comparison order for consistency. Use generic integer node to
2212 build the operator and fold the result.
2213
2214 2009-06-25 Vincent Celier <celier@adacore.com>
2215
2216 * vms_data.ads: Minor comment change
2217
2218 2009-06-25 Gary Dismukes <dismukes@adacore.com>
2219
2220 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
2221 assignment statement to targeting a caller-provided object when the
2222 result type is an interface type.
2223
2224 * exp_ch6.adb (Expand_Call): Remove redundant test of
2225 Is_Limited_Interface (Is_Inherently_Limited is sufficient).
2226 (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
2227
2228 * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
2229 to OK_For_Limited_Init.
2230
2231 * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
2232 condition so that True is returned for all limited interfaces, not
2233 just synchronized ones. Ignore components of an interface type when
2234 checking for limited components (such a component can be a parent
2235 component).
2236
2237 * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
2238 (OK_For_Limited_Init): Add type parameter.
2239
2240 * sem_ch3.adb (Check_Initialization): Add type in call to
2241 OK_For_Limited_Init.
2242 (OK_For_Limited_Init): Add new type param in call to
2243 OK_For_Limited_Init_In_05.
2244 (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
2245 nonlimited type when the context type is a limited interface. Add type
2246 on recursive calls.
2247
2248 * sem_ch4.adb (Analyze_Allocator): Add type in call to
2249 OK_For_Limited_Init.
2250
2251 * sem_ch6.adb (Check_Limited_Return): Add type in call to
2252 OK_For_Limited_Init.
2253
2254 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
2255 OK_For_Limited_Init.
2256 (Instantiate_Object): Add type in call to OK_For_Limited_Init.
2257
2258 * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
2259 class-wide interface, get the base type before applying Etype, in order
2260 to account for class-wide subtypes.
2261
2262 2009-06-25 Emmanuel Briot <briot@adacore.com>
2263
2264 * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
2265 prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
2266 between gnatmake and gprbuild.
2267 (Naming_Data): Removed, no longer used
2268 (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
2269 needed locally in one subprogram, no need to store forever in the
2270 structure.
2271 (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
2272 a similar role.
2273 (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
2274 Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
2275 Spec_Suffix_Id_Of): removed, no longer used.
2276
2277 2009-06-25 Javier Miranda <miranda@adacore.com>
2278
2279 * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
2280 types on qualified expression in calls to imported C++ constructors.
2281
2282 * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
2283 imported C++ constructors.
2284
2285 2009-06-25 Sergey Rybin <rybin@adacore.com>
2286
2287 * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
2288
2289 2009-06-25 Vincent Celier <celier@adacore.com>
2290
2291 * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
2292 provided, on Windows change all '/' to '\'.
2293
2294 * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
2295 used. Minor comment changes
2296
2297 * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
2298 Remove_Forbidden_File_Name.
2299
2300 2009-06-25 Quentin Ochem <ochem@adacore.com>
2301
2302 * prj.ads (Unit_Index): Now general access type.
2303
2304 2009-06-25 Pascal Obry <obry@adacore.com>
2305
2306 * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2307
2308 2009-06-25 Emmanuel Briot <briot@adacore.com>
2309
2310 * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2311 prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2312 computed efficiently from the other fields.
2313 (Object_To_Global_Archive): New subprogram
2314 (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2315 (Override_Kind): Fix handling of separates in Ada.
2316 (Create_Mapping_File): Remove duplicate code
2317 (Naming_Data.Implementation_Exception, Specification_Exception):
2318 field removed, since never used.
2319 (Naming_Data.Specs, .Bodies): field removed, since this is only
2320 used while processing the project and is not needed once the tree
2321 is in memory. This brings Naming_Data and Lang_Naming_Data
2322 closer (same content now, but different use still).
2323
2324 2009-06-25 Pascal Obry <obry@adacore.com>
2325
2326 * sem_ch4.adb: Minor reformatting.
2327
2328 * a-strsea.adb: Fix confusion between 'Length and 'Last.
2329
2330 2009-06-25 Ed Schonberg <schonberg@adacore.com>
2331
2332 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2333 Unchecked_Access): If the context is an interface type, and the prefix
2334 is of the corresponding class-wide type, do not insert a conversion
2335 because the pointer displacement has already taken place, and we must
2336 retain the class-wide type in a dispatching context.
2337
2338 2009-06-25 Emmanuel Briot <briot@adacore.com>
2339
2340 * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2341 the previous source file.
2342 (Create_Mapping): Iterate on sources rather than on units.
2343
2344 2009-06-25 Emmanuel Briot <briot@adacore.com>
2345
2346 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2347 prj-env.adb, prj-env.ads (Slash): removed, no longer used
2348 (Source_Data): no longer use Path.Name to point to a locally removed
2349 file. Instead we use the field Locally_Removed which is clearer
2350
2351 2009-06-25 Arnaud Charlet <charlet@adacore.com>
2352
2353 * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2354
2355 * sem_maps.adb, sem_maps.ads: Removed, not used.
2356
2357 2009-06-25 Ed Falis <falis@adacore.com>
2358
2359 * s-vxwext-rtp.ads: Add missing declaration
2360
2361 2009-06-25 Matthew Gingell <gingell@adacore.com>
2362
2363 * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2364 speed up unmapped case.
2365
2366 2009-06-25 Vincent Celier <celier@adacore.com>
2367
2368 * prj-nmsc.adb (Check): Change error message for illegal abstract
2369 projects.
2370
2371 2009-06-25 Robert Dewar <dewar@adacore.com>
2372
2373 * gnat_ugn.texi: Add note on use of -gnatct for ASIS
2374
2375 2009-06-25 Emmanuel Briot <briot@adacore.com>
2376
2377 * fmap.ads: Add documentation on mapping files
2378
2379 2009-06-25 Robert Dewar <dewar@adacore.com>
2380
2381 * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
2382 reformatting
2383
2384 2009-06-24 Robert Dewar <dewar@adacore.com>
2385
2386 * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
2387
2388 * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
2389 case.
2390 (Index): Ditto.
2391
2392 2009-06-24 Ed Schonberg <schonberg@adacore.com>
2393
2394 * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
2395 present when checking whether a call may be interpreted as an indexing
2396 of the result of a call.
2397
2398 * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
2399 body for a null procedure on the freeze actions for the procedure, so
2400 that it will be analyzed at the proper place without premature freezing
2401 of actuals.
2402
2403 * sem_ch3.adb (Check_Completion): Code cleanup.
2404 Do not diagnose a null procedure without a body, if previous errors
2405 have disabled expansion.
2406
2407 2009-06-24 Doug Rupp <rupp@adacore.com>
2408
2409 * init.c [VMS] Resignal C$_SIGKILL
2410
2411 2009-06-24 Ed Falis <falis@adacore.com>
2412
2413 * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
2414 Define ERROR in body for VxWorks 6 kernel
2415
2416 2009-06-24 Pascal Obry <obry@adacore.com>
2417
2418 * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
2419 in [Send/Receive]_Socket.
2420
2421 2009-06-24 Emmanuel Briot <briot@adacore.com>
2422
2423 * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2424 prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
2425 to several subprograms.
2426 (Source_Data.Other_Part): Removed, since can be computed from the
2427 language.
2428 (Other_Part): New subprogram.
2429
2430 2009-06-24 Emmanuel Briot <briot@adacore.com>
2431
2432 * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
2433 the full base name of the file when the suffix doesn't start with a '.'.
2434
2435 2009-06-24 Vincent Celier <celier@adacore.com>
2436
2437 * prj-nmsc.adb (Check): A project declared abstract is legal if no
2438 attribute Source_Dirs, Source_Files, Source_List_File or Languages is
2439 declared.
2440
2441 2009-06-24 Robert Dewar <dewar@adacore.com>
2442
2443 * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
2444 prj-env.adb: Minor reformatting
2445
2446 2009-06-24 Ed Falis <falis@adacore.com>
2447
2448 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
2449 s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
2450 s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
2451 support for VxWorks SMP.
2452
2453 * gcc-interface/Make-lang.in: Update dependencies
2454
2455 2009-06-24 Emmanuel Briot <briot@adacore.com>
2456
2457 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
2458 prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
2459 no longer useful.
2460 (Source_Data.Lang_Kind): Removed, since it duplicates information
2461 already available through Language.Config.
2462 (Source_Data.Compile): Removed, since information is already available
2463 through the language.
2464 (Is_Compilable): New subprogram.
2465 (Source_Data.Dependency): Removed, since already available through
2466 the language.
2467 (Source_Data.Object_Exist, Object_Linked): Removed since available
2468 through the language already.
2469 (Unit_Data.File_Names): Is now also set in multi_language mode, to
2470 bring the two modes closer in the resulting data structures.
2471 (Source_Data.Unit): Now a direct pointer to the unit data, rather than
2472 just the name that would point into a hash table.
2473 (Get_Language_From_Name): New subprogram.
2474
2475 2009-06-24 Javier Miranda <miranda@adacore.com>
2476
2477 * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
2478 visible through limited-with context clauses. In addition, avoid an
2479 extra tag check that is not required when the class-wide
2480 designated types of the operand and target types are
2481 the same entity.
2482 (Tagged_Membership): Handle entities from the limited view.
2483
2484 2009-06-24 Emmanuel Briot <briot@adacore.com>
2485
2486 * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
2487 prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
2488 (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
2489 different vocabularies for similar concepts (Impl/Body_Part and
2490 Spec/Specification).
2491 (Unit_Data): now points directly to a Source_Id, rather than duplicating
2492 some of the information in File_Name_Data. This also saves a bit of
2493 memory. However, since we are now using a pointer we need to test
2494 for null explicitly in several places of the code
2495
2496 2009-06-24 Javier Miranda <miranda@adacore.com>
2497
2498 * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
2499 from processing the type conversion when the node is
2500 replaced by an N_Raise_Program_Error node.
2501
2502 2009-06-24 Hristian Kirtchev <kirtchev@adacore.com>
2503
2504 * sem_ch6.adb (Designates_From_With_Type): New routine.
2505 (Process_Formals): Since anonymous access types are no longer flagged
2506 as from with types, traverse the designated type to determine whether
2507 it is coming from a limited view.
2508
2509 * sem_res.adb: Remove with and use clauses for Sem_Ch10.
2510 (Full_Designated_Type): Use Available_View to extract the non-limited /
2511 full view of a type.
2512
2513 2009-06-24 Robert Dewar <dewar@adacore.com>
2514
2515 * exp_ch6.adb: Minor reformatting
2516
2517 * layout.adb: Minor reformatting
2518
2519 * make.adb: Minor reformatting
2520
2521 2009-06-24 Thomas Quinot <quinot@adacore.com>
2522
2523 * sem_ch10.adb: Minor code reorganization.
2524
2525 2009-06-24 Eric Botcazou <ebotcazou@adacore.com>
2526
2527 * ttypes.ads: Minor editing.
2528
2529 2009-06-24 Robert Dewar <dewar@adacore.com>
2530
2531 * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
2532 in deciding to do call-by-copy code.
2533
2534 2009-06-24 Vincent Celier <celier@adacore.com>
2535
2536 * make.adb (Gnatmake): To decide if an executable should be rebuilt,
2537 check if an externally built library file is more current than the
2538 executable.
2539
2540 2009-06-23 Olivier Hainque <hainque@adacore.com>
2541
2542 * gcc-interface/utils.c (handle_vector_size_attribute): Import from
2543 c-common.c and populate in gnat_internal_attribute_table.
2544
2545 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2546
2547 * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
2548 Available_View only when designated type of an anonymous access type
2549 is limited view.
2550
2551 2009-06-23 Robert Dewar <dewar@adacore.com>
2552
2553 * sem_ch10.adb: Minor reformatting
2554
2555 * ali.ads: Mino reformatting.
2556
2557 * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
2558 turning off inlining if ASIS mode active).
2559
2560 * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
2561 This belongs in gnat1drv.adb after switches are scanned.
2562
2563 2009-06-23 Hristian Kirtchev <kirtchev@adacore.com>
2564
2565 * sem_attr.adb: Add with and use clauses for Sem_Ch10.
2566 (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
2567 when dealing with class-wide types. Detect a legal shadow entity and
2568 retrieve its non-limited view.
2569
2570 * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
2571 subprogram to top package level from Intall_Limited_Withed_Unit.
2572 (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
2573 Add check which prevents the installation of a limited view if the
2574 non-limited view is already visible through a with clause.
2575 (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
2576 legal shadow entity which may occur in subprogram formals of anonymous
2577 access type.
2578
2579 * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
2580
2581 * sem_ch3.adb (Access_Definition): Remove the propagation of flag
2582 From_With_Type from the designated type to the generated anonymous
2583 access type. Remove associated comment.
2584
2585 * sem_res.adb Add with and use clauses for Sem_Ch10.
2586 (Full_Designated_Type): Detect a legal shadow entity and retrieve its
2587 non-limited view. Since the shadow entity may replace a regular
2588 incomplete type, return the available full view.
2589
2590 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2591
2592 * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
2593 incomplete type declarations. Previous code was potentially quadratic
2594 in the number of visible declarations in any package appearing in a
2595 limited_with_clause.
2596
2597 2009-06-23 Robert Dewar <dewar@adacore.com>
2598
2599 * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
2600 xref_lib.adb: Minor reformatting
2601
2602 2009-06-23 Robert Dewar <dewar@adacore.com>
2603
2604 * a-stzhas.adb: Provide dummy body to avoid build problems with old
2605 versions which did have a body for this unit.
2606
2607 2009-06-23 Vincent Celier <celier@adacore.com>
2608
2609 * prj-attr.adb: Attribute names Initial_Required_Switches and
2610 Final_Required_Switches changed to Leading_Required_Switches and
2611 Trailing_Required_Switches.
2612
2613 * prj-nmsc.adb (Process_Compiler): Attribute names
2614 Initial_Required_Switches and Final_Required_Switches changed to
2615 Leading_Required_Switches and Trailing_Required_Switches.
2616
2617 * prj.ads (Language_Config): Component Initial_Required_Switches and
2618 Final_Required_Switches changed to Leading_Required_Switches and
2619 Trailing_Required_Switches.
2620
2621 * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
2622 Final_Required_Switches; add standard names Leading_Required_Switches
2623 and Trailing_Required_Switches.
2624
2625 2009-06-23 Thomas Quinot <quinot@adacore.com>
2626
2627 * prj-conf.adb: Minor reformatting
2628
2629 * xref_lib.adb: Minor cleanup
2630
2631 2009-06-23 Emmanuel Briot <briot@adacore.com>
2632
2633 * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
2634 prj-conf.ads (Check_Configuration): New parameter
2635 Compiler_Driver_Mandatory.
2636
2637 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2638
2639 * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
2640 context of the current unit has an inline pragma, the instance is not
2641 rewritten as the declaration of the package wrapper. Handle both
2642 possibilities when retrieving the visible subprogram that renames the
2643 instantiation itself.
2644
2645 2009-06-23 Javier Miranda <miranda@adacore.com>
2646
2647 * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
2648 designated types referencing entities from the limited view.
2649
2650 2009-06-23 Robert Dewar <dewar@adacore.com>
2651
2652 * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
2653
2654 * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
2655 small values
2656
2657 * prj-conf.ads: Minor reformatting
2658
2659 * prj-conf.adb: Minor reformatting
2660
2661 2009-06-23 Vasiliy Fofanov <fofanov@adacore.com>
2662
2663 * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
2664 to correspond to the log format that gnatmem now expects.
2665
2666 2009-06-23 Vincent Celier <celier@adacore.com>
2667
2668 * prj-attr.adb: New attributes Initial_Required_Switches,
2669 Final_Required_Switches and Object_File_Switches
2670
2671 * prj-nmsc.adb (Process_Compiler): Process new attributes
2672 Name_Final_Required_Switches, Name_Initial_Required_Switches and
2673 Name_Object_File_Switches.
2674
2675 * prj.ads (Language_Config): New component
2676 Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
2677 Compiler_Final_Required_Switches and Object_File_Switches.
2678
2679 * snames.ads-tmpl: New standard names Initial_Required_Switches,
2680 Final_Required_Switches and Object_File_Switches
2681
2682 2009-06-23 Pascal Obry <obry@adacore.com>
2683
2684 * s-strhas.adb, s-strhas.ads: Minor reformatting.
2685
2686 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2687
2688 * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
2689 not indicate that the enclosing unit needs a body.
2690
2691 2009-06-23 Emmanuel Briot <briot@adacore.com>
2692
2693 * prj-conf.ads, prj-conf.adb: New files part of the project manager.
2694
2695 2009-06-23 Ed Schonberg <schonberg@adacore.com>
2696
2697 * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
2698 primitive equality include it with its source name even if the
2699 operation is currently invisible, to make sure that the corresponding
2700 slot in the dispatch table is reserved for the internal equality
2701 subsequently generated during expansion.
2702
2703 2009-06-23 Matthew Gingell <gingell@adacore.com>
2704
2705 * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
2706
2707 2009-06-22 Jose Ruiz <ruiz@adacore.com>
2708
2709 * sysdep.c (__gnat_localtime_tzoff for RTX):
2710 SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
2711 GetTimeZoneInformation instead.
2712
2713 2009-06-22 Robert Dewar <dewar@adacore.com>
2714
2715 * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
2716
2717 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2718
2719 * sem_ch12.adb (Collect_Previous_Instances): Do not collect
2720 instantiations declared in a previous generic package body.
2721
2722 2009-06-22 Robert Dewar <dewar@adacore.com>
2723
2724 * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
2725 restriction No_Direct_Boolean_Operators.
2726
2727 2009-06-22 Thomas Quinot <quinot@adacore.com>
2728
2729 * bindusg.adb: Minor fixes to gnatbind usage message
2730
2731 * sem_eval.adb: Minor reformatting
2732
2733 2009-06-22 Javier Miranda <miranda@adacore.com>
2734
2735 * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
2736 freezing point the check on the use of abstract types in object
2737 declarations. Done to allow the declaration of C++ imported variables
2738 or constants whose type corresponds with an imported C++ classes for
2739 which the constructor is not imported.
2740
2741 2009-06-22 Thomas Quinot <quinot@adacore.com>
2742
2743 * sem_ch6.adb: Minor reformatting
2744
2745 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2746
2747 * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
2748 component is constrained with an expression rather than with a
2749 discriminant of the enclosing type, use that expression when building
2750 the call to default-initialize the component, when the call is part of
2751 an aggregate with box initialization.
2752
2753 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2754
2755 * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
2756 unconditional rather than a style check, because a formal name out of
2757 order is suspicious.
2758
2759 2009-06-22 Vincent Celier <celier@adacore.com>
2760
2761 * prj-nmsc.adb (Locate_Directory): Indicate the project name when
2762 creating a directory automatically.
2763
2764 2009-06-22 Eric Botcazou <ebotcazou@adacore.com>
2765
2766 * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
2767 untagged derived type, add a hidden component for every constrained
2768 discriminant of the parent type to keep record layout consistent.
2769
2770 2009-06-22 Thomas Quinot <quinot@adacore.com>
2771
2772 * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
2773 copy).
2774
2775 2009-06-22 Matthew Gingell <gingell@adacore.com>
2776
2777 * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
2778 s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
2779 g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
2780 a-swuwha.adb: New unit System.String_Hash.
2781 Refactor redundant cut and pasted hash functions with instances of a
2782 new generic hash function.
2783 Implement a new string hashing algorithm which appears in testing to
2784 be move effective than to previous approach.
2785
2786 2009-06-22 Ed Falis <falis@adacore.com>
2787
2788 * sysdep.c: remove include for nfsLib.h and an NFS specific error
2789 message for VxWorks 653 vThreads: not supported by the OS.
2790
2791 * gsocket.h: disable sockets for VxWorks 653 vThreads.
2792
2793 2009-06-22 Robert Dewar <dewar@adacore.com>
2794
2795 * sem_ch6.adb: Add ??? comment for bad use of Style_Check
2796
2797 2009-06-22 Robert Dewar <dewar@adacore.com>
2798
2799 * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
2800 by Sloc_Range.
2801
2802 * freeze.adb: Minor comment updates
2803
2804 * s-valrea.adb (Bad_Based_Value): New procedure
2805 (Scan_Real): Raise exceptions with messages
2806
2807 2009-06-22 Matthew Gingell <gingell@adacore.com>
2808
2809 * adaint.h: Complete previous change.
2810
2811 2009-06-22 Thomas Quinot <quinot@adacore.com>
2812
2813 * exp_ch7.ads, exp_ch3.adb: Minor reformatting
2814
2815 2009-06-22 Ed Schonberg <schonberg@adacore.com>
2816
2817 * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
2818 enabled, emit warning when a non-controlling argument of the overriding
2819 operation appears out of place vis-a-vis of the formal of the
2820 overridden operation.
2821
2822 2009-06-22 Vincent Celier <celier@adacore.com>
2823
2824 * gnatcmd.adb (Check_Files): Close temporary files after all file names
2825 have been written into it.
2826
2827 2009-06-22 Matthew Gingell <gingell@adacore.com>
2828
2829 * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
2830 available.
2831
2832 2009-06-22 Thomas Quinot <quinot@adacore.com>
2833
2834 * sem_disp.adb (Check_Direct_Call): Handle the case where the full
2835 view of the root type is visible at the point of the call.
2836
2837 2009-06-22 Pat Rogers <rogers@adacore.com>
2838
2839 * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
2840
2841 2009-06-22 Jerome Lambourg <lambourg@adacore.com>
2842
2843 * freeze.adb: Add comments.
2844
2845 2009-06-21 Thomas Quinot <quinot@adacore.com>
2846
2847 * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
2848 sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
2849 Factor out code to new subprogram...
2850 (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
2851 for a default initialized variable.
2852 (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
2853 entity that has an associated freeze node.
2854 (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
2855 If there is an init call for the object, defer it to the object freeze
2856 point.
2857 (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
2858 name clash with new subprogram introduced in Exp_Util.
2859
2860 2009-06-21 Robert Dewar <dewar@adacore.com>
2861
2862 * einfo.ads: Minor reformatting
2863
2864 2009-06-21 Ed Falis <falis@adacore.com>
2865
2866 * env.c (__gnat_environ): return NULL for vThreads - unimplemented
2867
2868 2009-06-21 Eric Botcazou <ebotcazou@adacore.com>
2869
2870 * einfo.ads: Update comments.
2871
2872 2009-06-21 Hristian Kirtchev <kirtchev@adacore.com>
2873
2874 * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
2875 where the controlling formal is of private class-wide type whose
2876 completion is a synchronized type can be converted into direct calls.
2877
2878 2009-06-21 Vincent Celier <celier@adacore.com>
2879
2880 * gnatcmd.adb (Check_Files): When all sources of the project are to be
2881 indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
2882 of sources using -files=, so that the distinction can be made by the
2883 tool of a call with no source (to display the usage) from a call with
2884 a project file that contains no source.
2885
2886 2009-06-21 Jerome Lambourg <lambourg@adacore.com>
2887
2888 * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
2889 case of VM convention arrays.
2890
2891 2009-06-20 Robert Dewar <dewar@adacore.com>
2892
2893 * a-nudira.adb: Minor reformatting
2894
2895 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2896
2897 * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
2898 expressions (possibly from a parent type) indicate that the scope of
2899 the new itypes is the initialization procedure being built.
2900
2901 2009-06-20 Robert Dewar <dewar@adacore.com>
2902
2903 * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
2904 Needs_64, and now computed without anomolies for some dynamic types.
2905
2906 2009-06-20 Thomas Quinot <quinot@adacore.com>
2907
2908 * sem_prag.adb: Minor reformatting
2909
2910 * exp_disp.ads: Minor reformatting
2911
2912 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2913
2914 * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
2915 function call is a legal expression to initialize a limited object.
2916
2917 * exp_ch3.adb: Rename various freeze operations that perform expansion
2918 actions, to prevent confusion with subprograms in the freeze package.
2919
2920 2009-06-20 Ed Schonberg <schonberg@adacore.com>
2921
2922 * sem.adb (Walk_Library_Units): Check instantiations first.
2923
2924 * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
2925 private primitive if it is a function with a controlling result that is
2926 a type extension with progenitors.
2927
2928 * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
2929 a primitive operation of a synchronized tagged type that has a
2930 controlling result.
2931
2932 2009-06-20 Thomas Quinot <quinot@adacore.com>
2933
2934 * einfo.ads: Fix typo.
2935
2936 2009-06-20 Ed Falis <falis@adacore.com>
2937
2938 * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
2939
2940 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2941
2942 * gcc-interface/trans.c (emit_check): Do not wrap up the result
2943 in a SAVE_EXPR.
2944 (protect_multiple_eval): Always protect complex expressions.
2945
2946 2009-06-19 Emmanuel Briot <briot@adacore.com>
2947
2948 * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
2949 make sure we always return a name ending with a path separator.
2950
2951 2009-06-19 Javier Miranda <miranda@adacore.com>
2952
2953 * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
2954 Save and restore the visibility of the parent when installed.
2955
2956 2009-06-19 Jose Ruiz <ruiz@adacore.com>
2957
2958 * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
2959 by Common which contains all these fields.
2960
2961 * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
2962 Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
2963 Remove code duplication in this package by means of calling the
2964 equivalent code in s-taprob.
2965
2966 2009-06-19 Robert Dewar <dewar@adacore.com>
2967
2968 * a-einuoc.ads: Minor reformatting
2969
2970 2009-06-19 Ed Falis <falis@adacore.com>
2971
2972 * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
2973 s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
2974
2975 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
2976
2977 * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
2978
2979 2009-06-19 Robert Dewar <dewar@adacore.com>
2980
2981 * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
2982 ranges
2983
2984 * checks.adb (Determine_Range): Move the test for generic types later.
2985
2986 * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
2987 cases.
2988 (Eval_Relational_Op): Fold more cases including string compares
2989
2990 * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
2991 function.
2992
2993 2009-06-19 Robert Dewar <dewar@adacore.com>
2994
2995 * sem_type.ads, sem_ch12.adb: Minor reformatting
2996
2997 * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
2998
2999 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3000
3001 * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
3002 primitive operation of a rivate extension whose controlling argument
3003 is an out parameter.
3004
3005 * sem.adb (Walk_Library_Units): exclude generic package declarations
3006 from check.
3007
3008 2009-06-19 Thomas Quinot <quinot@adacore.com>
3009
3010 * i-vxwoio.ads: Add comments
3011
3012 2009-06-19 Thomas Quinot <quinot@adacore.com>
3013
3014 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3015 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3016 g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
3017 (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
3018 (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
3019 Thin_Common.Socket_Ioctl.
3020 (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
3021 __gnat_socket_ioctl.
3022 (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
3023 argument after the file descriptor and request code.
3024
3025 2009-06-19 Robert Dewar <dewar@adacore.com>
3026
3027 * checks.adb: Minor reformatting
3028
3029 2009-06-19 Jose Ruiz <ruiz@adacore.com>
3030
3031 * env.c (__gnat_environ): RTX does not support this functionality.
3032
3033 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3034
3035 * sem.adb (Walk_Library_Items): Include bodies in the list of units to
3036 traverse, to account for front-end inlining and instantiations in a
3037 spec or in the main unit.
3038
3039 2009-06-19 Robert Dewar <dewar@adacore.com>
3040
3041 * checks.adb (Determine_Range): Do not attempt to get range of generic
3042 type.
3043
3044 2009-06-19 Sergey Rybin <rybin@adacore.com>
3045
3046 * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
3047 gnatmetric option for generating the schema file for gnatmetric XML
3048 output. Add corresponding VMS qualifier.
3049
3050 2009-06-19 Robert Dewar <dewar@adacore.com>
3051
3052 * g-cgi.adb: Minor reformatting
3053
3054 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
3055
3056 * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
3057 signal code for SIGFPE and raise Program_Error for SIGILL.
3058
3059 * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
3060
3061 2009-06-19 Ed Schonberg <schonberg@adacore.com>
3062
3063 * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
3064 generic package if there is a visibility candidate that is declared in
3065 a regular package.
3066
3067 2009-06-18 Olivier Hainque <hainque@adacore.com>
3068
3069 * system-aix64.ads: New file.
3070 * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
3071 64bit system.ads for ppc64 multilib variants.
3072
3073 2009-06-16 Robert Dewar <dewar@adacore.com>
3074 Olivier Hainque <hainque@adacore.com>
3075
3076 Relax constraints on Machine_Attribute argument types:
3077 * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
3078 missing type.
3079 (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
3080 * gcc-interface/decl.c (prepend_attributes): Accept static
3081 expressions of any type as attribute arguments, not only string
3082 literals.
3083 * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
3084 the relaxation of the restriction on the Info argument type.
3085
3086 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
3087
3088 * gcc-interface/utils.c (record_builtin_type): Pass location
3089 argument to build_decl.
3090 (create_type_stub_decl): Same.
3091 (create_type_decl): Same.
3092 (create_var_decl_1): Same.
3093 (create_field_decl): Same.
3094 (create_param_decl): Same.
3095 (create_label_decl): Same.
3096 (create_subprog_decl): Same.
3097 * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
3098 * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
3099 argument to create_artificial_label.
3100 (Loop_Statement_to_gnu): Same.
3101 (Subprogram_Body_to_gnu): Same.
3102 (gnat_gimplify_stmt): Same.
3103
3104 2009-06-11 Richard Henderson <rth@redhat.com>
3105
3106 * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
3107 OPT_gdwarfplus.
3108
3109 2009-06-11 Ed Schonberg <schonberg@adacore.com>
3110
3111 * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
3112 accessibiliy check on access_to_subprogram in the context of an
3113 anonymous access that is not an access parameter.
3114
3115 2009-06-11 Eric Botcazou <ebotcazou@adacore.com>
3116
3117 * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
3118
3119 2009-06-11 Quentin Ochem <ochem@adacore.com>
3120
3121 * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
3122 comments for message handled by GPS.
3123
3124 2009-06-11 Matthew Gingell <gingell@adacore.com>
3125
3126 * adaint.c: Use fopen64 instead of fopen on platforms where we know
3127 it's supported.
3128
3129 2009-06-11 Pascal Obry <obry@adacore.com>
3130
3131 * g-cgi.ads: Fix comment typo.
3132
3133 * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
3134
3135 2009-06-10 Eric Botcazou <ebotcazou@adacore.com>
3136
3137 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
3138 a reference to the original type for the type of the field of the
3139 XVS type.
3140 (maybe_pad_type): Likewise.
3141
3142 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
3143 common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
3144 Pass correctly typed arguments to create_field_decl.
3145 <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
3146 case of contrained discriminants as well. Use the padded base type
3147 in the other case as well. Rename temporary variable. Tweak test.
3148 Factor common access pattern. Set GNU_SIZE only once.
3149
3150 2009-06-09 Olivier Hainque <hainque@adacore.com>
3151
3152 * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
3153 helper for build_call_alloc_dealloc with arguments to be interpreted
3154 identically. Process the case where a GNAT_PROC to call is provided.
3155 (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
3156 and return an allocator for DATA_SIZE bytes aimed at containing a
3157 DATA_TYPE object, using the default __gnat_malloc allocator. Honor
3158 DATA_TYPE alignments greater than what the latter offers.
3159 (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
3160 release a DATA_TYPE object designated by DATA_PTR using the
3161 __gnat_free entry point.
3162 (build_call_alloc_dealloc): Expect object data type instead of naked
3163 alignment constraint. Use the new helpers.
3164 (build_allocator): Remove special processing for the super-aligned
3165 case, now handled by build_call_alloc_dealloc. Pass data
3166 type instead of the former alignment argument, as expected by the new
3167 interface.
3168 * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
3169 and comment.
3170 * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
3171 Remove special processing for the super-aligned case, now handled
3172 by build_call_alloc_dealloc. Pass data type instead of the former
3173 alignment argument, as expected by the new interface.
3174
3175 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
3176
3177 * lib-writ.adb (flag_compare_debug): Import.
3178 (Write_ALI): Skip during -fcompare-debug-second.
3179
3180 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3181
3182 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
3183 adjusting the discriminant nodes in an extension, use the full view
3184 of the parent subtype if it is of a private kind.
3185
3186 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3187
3188 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
3189 _Parent field, if any, to the record before adding the other fields.
3190 <E_Record_Subtype>: Put the _Controller field before the other fields
3191 except for the _Tag or _Parent fields.
3192 (components_to_record): Likewise. Retrieve the _Parent field from the
3193 record type.
3194
3195 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
3196
3197 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
3198 remove unused parameter and simplify.
3199 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
3200 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
3201 as context for all discriminants. Fix formatting nits.
3202 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
3203 before Discriminant_Constraint. Adjust for above renaming. Do not
3204 set GNU_TYPE more than once.
3205 (elaborate_entity): Test Has_Discriminants on the entity and use
3206 Implementation_Base_Type.
3207 (components_to_record): Rename component_list to gnat_component_list.
3208 Retrieve the _Parent field from the list. Fix nits in comments.
3209 Clarify logic in loop. Pass correct arguments to create_field_decl.
3210
3211 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
3212
3213 * gcc-interface/Make-lang.in: Fix formatting.
3214
3215 2009-06-01 Olivier Hainque <hainque@adacore.com>
3216 Eric Botcazou <ebotcazou@adacore.com>
3217
3218 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
3219 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
3220 on the result if at least one of the input fields couldn't be output
3221 as a static constant any more.
3222
3223 2009-06-01 Olivier Hainque <hainque@adacore.com>
3224 Eric Botcazou <ebotcazou@adacore.com>
3225
3226 * gcc-interface/utils2.c (gnat_build_constructor): Factor
3227 out code. Use initializer_constant_valid_for_bitfield_p and
3228 CONSTRUCTOR_BITFIELD_P for bit-fields.
3229
3230 2009-05-26 Ian Lance Taylor <iant@google.com>
3231
3232 * gcc-interface/Makefile.in (COMPILER): Define.
3233 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
3234 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
3235 (seh_init.o, tracebak.o): Likewise.
3236 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
3237 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
3238 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
3239 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
3240 (ada/utils2.o): Likewise.
3241
3242 2009-05-24 Olivier Hainque <hainque@adacore.com>
3243
3244 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
3245 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
3246 Add -auxbase variants to the list of recognized internal switches.
3247 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
3248 adjust comments.
3249 * lib.ads: Make comment on internal GCC switches more general.
3250 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
3251 as for C.
3252
3253 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3254
3255 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
3256
3257 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3258
3259 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
3260 types.
3261
3262 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3263
3264 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
3265 original type because of the alignment when there is an address clause.
3266
3267 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
3268
3269 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
3270 discriminants affect the shape of the subtype, retrieve the GCC type
3271 directly from the original field if the GNAT types for the field and
3272 the original field are the same.
3273
3274 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
3275
3276 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
3277 New macros.
3278 (TYPE_RM_VALUES): Likewise.
3279 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
3280 (SET_TYPE_RM_SIZE): New macro.
3281 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
3282 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
3283 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
3284 * gcc-interface/gigi.h (create_range_type): Declare.
3285 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
3286 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
3287 <E_Signed_Integer_Subtype>: Build a regular integer type first and
3288 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3289 <E_Floating_Point_Subtype>: Build a regular floating-point type first
3290 and then set the RM bounds.
3291 <E_Array_Type>: Use create_range_type instead of build_range_type.
3292 <E_Array_Subtype>: Build a regular integer type first and then set
3293 the RM bounds for the extra subtype.
3294 <E_String_Literal_Subtype>: Use create_range_type instead of
3295 build_range_type.
3296 <all>: Set the RM bounds for enumeration types and the GCC bounds for
3297 floating-point types.
3298 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
3299 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
3300 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
3301 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
3302 types and with RM bounds for subtypes.
3303 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3304 (gnat_print_type) <REAL_TYPE>: New case.
3305 <ENUMERAL_TYPE>: Fall through to above case.
3306 (gnat_get_subrange_bounds): New function.
3307 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3308 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3309 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3310 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3311 (create_range_type): New function.
3312 (create_param_decl): Build a regular integer type first and then set
3313 the RM bounds for the extra subtype.
3314 (unchecked_convert): Remove kludge for 'Valid.
3315 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3316 the index to sizetype instead of TYPE_DOMAIN.
3317
3318 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
3319
3320 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3321 parameter and move check for static expression to...
3322 (elaborate_expression): ...here. Adjust call to above function.
3323 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
3324 in calls to elaborate_expression.
3325 (elaborate_entity): Likewise.
3326 (substitution_list): Likewise.
3327 (maybe_variable): Fix formatting.
3328 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3329 missing guard.
3330 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3331
3332 2009-05-07 Arnaud Charlet <charlet@adacore.com>
3333
3334 * gcc-interface/Make-lang.in: Update dependencies.
3335
3336 2009-05-06 Laurent GUERBY <laurent@guerby.net>
3337
3338 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3339 Define sa_handler_pos.
3340 * s-osinte-linux.ads: Use it.
3341 * s-linux-mipsel.ads: New.
3342 * system-linux-mips64el.ads: New.
3343 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3344 mips64el-linux.
3345
3346 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3347
3348 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3349 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3350 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3351 (Tagged_Type_Expansion): New flag.
3352 Replace use of VM_Target related to tagged types expansion by
3353 Tagged_Type_Expansion, since tagged type expansion is not necessarily
3354 linked to VM targets.
3355
3356 2009-05-06 Robert Dewar <dewar@adacore.com>
3357
3358 * sem_attr.adb: Add processing for Standard'Compiler_Version
3359
3360 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3361 skipping.
3362 (Expr_First_Char): Add ??? comment that paren skipping needs work
3363 (Expr_Last_Char): Add ??? comment that paren skipping needs work
3364
3365 * exp_attr.adb: Add processing for Compiler_Version
3366
3367 * sem_attr.adb: New attribute Compiler_Version
3368
3369 * snames.ads-tmpl: Add entries for Compiler_Version attribute
3370
3371 * gnat_rm.texi: Document Compiler_Version attribute
3372
3373 2009-05-06 Robert Dewar <dewar@adacore.com>
3374
3375 * errout.adb: Minor reformatting
3376
3377 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
3378 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
3379 styleg.adb: Add stylized comments to error messages that are included
3380 in the codefix circuitry of IDE's such as GPS.
3381
3382 2009-05-06 Sergey Rybin <rybin@adacore.com>
3383
3384 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
3385 new form of the rule parameter that allows to specify the suffix for
3386 access-to-access type names.
3387
3388 2009-05-06 Robert Dewar <dewar@adacore.com>
3389
3390 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
3391 out parameter assigned when exception handlers are present.
3392
3393 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
3394 assignments on exit.
3395
3396 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
3397 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
3398 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
3399 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
3400 messages that are included in the codefix circuitry of IDE's such as
3401 GPS.
3402
3403 * sinput.ads, sinput.adb (Expr_First_Char): New function
3404 (Expr_Last_Char): New function
3405
3406 2009-05-06 Sergey Rybin <rybin@adacore.com>
3407
3408 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
3409 Add formal definition for extra exit point metric
3410
3411 2009-05-06 Pascal Obry <obry@adacore.com>
3412
3413 * adaint.c: Support for setting attributes on unicode filename on
3414 Windows.
3415
3416 2009-05-06 Robert Dewar <dewar@adacore.com>
3417
3418 * sem_warn.adb: Minor reformatting
3419
3420 2009-05-06 Javier Miranda <miranda@adacore.com>
3421
3422 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
3423 not have discriminants or components with default expressions.
3424 (Analyze_Pragma): For pragma CPP_Class check that imported types
3425 have no discriminants and components have no default expression.
3426
3427 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
3428 class-wide types in the expression of a record component association.
3429
3430 2009-05-06 Sergey Rybin <rybin@adacore.com>
3431
3432 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
3433
3434 * gnat_ugn.texi: Add description for the new extra exit points metric
3435 (gnatmetric section).
3436
3437 2009-05-06 Robert Dewar <dewar@adacore.com>
3438
3439 * s-fileio.adb: Minor comment update
3440
3441 * sem_ch8.adb: Minor reformatting
3442
3443 * exp_ch3.adb: Update comments.
3444
3445 2009-05-06 Tristan Gingold <gingold@adacore.com>
3446
3447 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
3448
3449 2009-05-06 Arnaud Charlet <charlet@adacore.com>
3450
3451 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
3452 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
3453
3454 * gcc-interface/Make-lang.in: Update dependencies
3455
3456 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3457
3458 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
3459 change. The context clause of a generic instance declaration must be
3460 preserved until the end of the compilation, because it may have to be
3461 installed/removed repeatedly.
3462 The latest change to sem.adb ensures that the context of both spec and
3463 body of an instance is traversed before the instance itself, making
3464 this patch redundant.
3465
3466 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3467
3468 * sem_aggr.adb: Fix typo.
3469
3470 2009-05-06 Thomas Quinot <quinot@adacore.com>
3471
3472 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
3473 declaration, do not adjust if the declaration is to be rewritten into
3474 a renaming.
3475
3476 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3477
3478 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
3479 discriminant part.
3480
3481 2009-05-06 Bob Duff <duff@adacore.com>
3482
3483 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
3484 otherwise the compiler would be allowed to optimize away the cleanup
3485 code.
3486
3487 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3488
3489 * gnat_ugn.texi: Fix typo.
3490
3491 2009-05-06 Thomas Quinot <quinot@adacore.com>
3492
3493 * g-debuti.adb: Minor reformatting
3494
3495 * exp_attr.adb: Minor reformatting
3496
3497 2009-05-06 Robert Dewar <dewar@adacore.com>
3498
3499 * sem_aggr.adb: Minor reformatting.
3500
3501 * g-socthi-vms.adb: Minor reformatting
3502
3503 2009-05-06 Bob Duff <duff@adacore.com>
3504
3505 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
3506 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
3507
3508 2009-05-06 Bob Duff <duff@adacore.com>
3509
3510 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
3511 flags.
3512
3513 2009-05-06 Javier Miranda <miranda@adacore.com>
3514
3515 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
3516 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
3517 extension aggregates.
3518 (Resolve_Record_Aggregate): Add support for C++ constructors in
3519 extension aggregates.
3520
3521 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
3522 constructors in extension aggregates.
3523
3524 2009-05-06 Robert Dewar <dewar@adacore.com>
3525
3526 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
3527 clause.
3528
3529 2009-05-06 Thomas Quinot <quinot@adacore.com>
3530
3531 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
3532 packed type, since on OpenVMS, struct msghdr is packed.
3533
3534 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3535
3536 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3537 call returning an unconstrained composite value, create the proper
3538 subtype for it, as is done for object dclarations with unconstrained
3539 nominal subtypes. Perform this transformation regarless of whether
3540 call comes from source.
3541
3542 2009-05-06 Robert Dewar <dewar@adacore.com>
3543
3544 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
3545 records
3546
3547 * gnat_rm.texi:
3548 Add documentation for pragma Implicit_Packing applied to record
3549 types.
3550
3551 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3552
3553 * sem.adb (Walk_Library_Items): Place all with_clauses of an
3554 instantiation on the spec, because late instance bodies may generate
3555 with_clauses for the instance body but are inserted in the instance
3556 spec.
3557
3558 2009-05-06 Emmanuel Briot <briot@adacore.com>
3559
3560 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
3561 support for returning the directory even if it doesn't exist. This is
3562 used for the object directory, since we are always setting it to a
3563 non-null value, and we should set it to an absolute name rather than a
3564 relative name for the sake of external tools that might depend on it.
3565 (Check_Library_Attributes): When Project.Library_Dir is known, check
3566 that the directory exists.
3567
3568 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3569
3570 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
3571 reference is an implicit dereference, do not freeze the designated type
3572 if within a default expression or when preanalyzing a pre/postcondtion.
3573
3574 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3575
3576 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
3577 call returning an unconstrained composite value, create the proper
3578 subtype for it, as is done for object dclarations with unconstrained
3579 nominal subtypes
3580
3581 2009-05-06 Robert Dewar <dewar@adacore.com>
3582
3583 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
3584 improvements
3585
3586 * freeze.adb: Minor reformatting
3587
3588 2009-05-06 Thomas Quinot <quinot@adacore.com>
3589
3590 * sem_ch3.adb (Access_Type_Declaration): An access type whose
3591 designated type is a limited view from a limited with clause (flagged
3592 From_With_Type) is not itself such a limited view.
3593
3594 2009-05-06 Emmanuel Briot <briot@adacore.com>
3595
3596 * prj-nmsc.adb: Remove unused variable.
3597
3598 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
3599 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
3600 makeutl.ads, since not all users of prj.ads need this.
3601
3602 2009-05-06 Javier Miranda <miranda@adacore.com>
3603
3604 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
3605 constructor in case of aggregates whose type is a CPP_Class type.
3606
3607 2009-05-06 Robert Dewar <dewar@adacore.com>
3608
3609 * sem_ch13.adb: Minor comment additions
3610
3611 * osint.adb: Minor reformatting
3612
3613 2009-05-06 Pascal Obry <obry@adacore.com>
3614
3615 * initialize.c: On Windows, keep full pathname to expanded command
3616 line patterns.
3617
3618 2009-05-06 Ed Schonberg <schonberg@adacore.com>
3619
3620 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
3621 an aggregate with box default is of a discriminated private type, do
3622 not build a subaggregate for it.
3623 A proper call to the initialization procedure is generated for it.
3624
3625 2009-05-06 Thomas Quinot <quinot@adacore.com>
3626
3627 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
3628 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
3629 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
3630 use standard array code for Standard.String.
3631 (Exp_Dist): Bump PolyORB s-parint API version to 3.
3632 (Rtsfind): New entities TA_Std_String, Unbounded_String.
3633
3634 2009-05-06 Robert Dewar <dewar@adacore.com>
3635
3636 * g-comlin.ads: Minor reformatting
3637
3638 * xoscons.adb: Minor reformatting
3639
3640 2009-05-06 Gary Dismukes <dismukes@adacore.com>
3641
3642 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
3643 Underlying_Type before retrieving the type definition for gathering
3644 components, to account for the case where the type is private.
3645
3646 2009-05-06 Tristan Gingold <gingold@adacore.com>
3647
3648 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
3649
3650 2009-05-06 Thomas Quinot <quinot@adacore.com>
3651
3652 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3653 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
3654 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
3655 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
3656 Windows versions): Fix incorrect base
3657 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
3658 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
3659 System.Address for the To parameter instead of a Sockaddr_In_Access, to
3660 achieve independance from AF_INET family, and also to allow this
3661 parameter to be retrieved from a Msghdr for the Windows case where
3662 these routines are used to implement C_Sendmsg and C_Recvmsg.
3663
3664 2009-05-06 Bob Duff <duff@adacore.com>
3665
3666 * g-expect.adb, g-expect.ads: Minor reformatting
3667
3668 * sdefault.ads: Minor comment fix
3669
3670 * g-expect-vms.adb: Minor reformatting
3671
3672 * table.ads, table.adb (Append_All): New convenience procedure for
3673 appending a whole array.
3674
3675 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
3676 box message. Call Osint.Dump_Source_File_Names to print out the file
3677 list, instead of rummaging around in various data structures.
3678
3679 * debug.adb: New switch -gnatd.n, to print source file names as they
3680 are read.
3681
3682 * alloc.ads: Add parameters for Osint.File_Name_Chars.
3683
3684 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
3685 out source file names during a "bug box".
3686 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
3687 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
3688 If it's not part of the runtimes, store it for later printing by
3689 Dump_Source_File_Names.
3690
3691 2009-05-06 Javier Miranda <miranda@adacore.com>
3692
3693 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
3694 documentation and add reference to the GNAT user guide for further
3695 details.
3696
3697 2009-05-06 Javier Miranda <miranda@adacore.com>
3698
3699 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
3700 also wrong examples that use extension aggregates.
3701
3702 2009-05-06 Albert Lee <lee@adacore.com>
3703
3704 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
3705 of Msg_Iovlen_T for VMS.
3706
3707 2009-05-04 Laurent GUERBY <laurent@guerby.net>
3708
3709 PR ada/38874
3710 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
3711
3712 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3713
3714 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
3715 box-defaulted operator in an instantiation, when the type of the
3716 operands is not directly visible.
3717
3718 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3719
3720 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
3721 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
3722 analysis of the ancestor part. Remove prohibition against limited
3723 interpretations of the ancestor expression in the case of Ada 2005.
3724 Revise error message in overloaded case, adding a message to cover
3725 the Ada 2005 case.
3726
3727 2009-04-29 Thomas Quinot <quinot@adacore.com>
3728
3729 * xoscons.adb: Minor reformatting
3730
3731 2009-04-29 Bob Duff <duff@adacore.com>
3732
3733 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
3734 attribute_definition_clauses for the following attributes when the
3735 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
3736 Storage_Size, Write. Otherwise, we get spurious errors (for example,
3737 missing Read attribute on remote types).
3738
3739 * gnat_ugn.texi: Document the change, and add a stern warning.
3740
3741 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3742
3743 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
3744 disabled not just for the current scope, but for the innermost dynamic
3745 scope as well.
3746
3747 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3748
3749 * gcc-interface/Make-lang.in: Update dependencies
3750
3751 2009-04-29 Vincent Celier <celier@adacore.com>
3752
3753 * prj-part.adb: Minor comment update
3754
3755 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3756
3757 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
3758 box-initialized records with discriminated subcomponents that are
3759 constrained by discriminants of enclosing components. New subsidiary
3760 procedures Add_Discriminant_Values, Propagate_Discriminants.
3761
3762 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3763
3764 * g-socket.adb: Code clean up.
3765
3766 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3767
3768 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
3769 function entity, to cover the case of a parameterless function call
3770 that has not been resolved.
3771
3772 2009-04-29 Robert Dewar <dewar@adacore.com>
3773
3774 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
3775 reformatting and comment updates.
3776
3777 2009-04-29 Arnaud Charlet <charlet@adacore.com>
3778
3779 * gnat_ugn.texi: Update some documentation about interfacing with C++
3780 Mention -fkeep-inline-functions.
3781
3782 * gnat_ugn.texi: Minor edits
3783
3784 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3785
3786 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
3787 for a defaulted component of an enclosing aggregate, inherit the type
3788 from the component declaration of the enclosing type.
3789
3790 2009-04-29 Albert Lee <lee@adacore.com>
3791
3792 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
3793 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
3794 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
3795 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
3796 Relocate the Msghdr record type from GNAT.Sockets.Thin to
3797 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
3798 type for the Msg_Iovlen field.
3799
3800 2009-04-29 Vincent Celier <celier@adacore.com>
3801
3802 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
3803 Source_File_Index_Table entries for the source, to avoid crash when
3804 reporting an error.
3805
3806 * gnatcmd.adb (Test_If_Relative_Path): Use
3807 Makeutl.Test_If_Relative_Path.
3808
3809 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
3810 Including_RTS is True.
3811
3812 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
3813 Including_RTS defaulted to False.
3814
3815 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
3816 a default value.
3817
3818 2009-04-29 Javier Miranda <miranda@adacore.com>
3819
3820 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
3821
3822 2009-04-29 Javier Miranda <miranda@adacore.com>
3823
3824 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
3825 associated with dyamically tagged expressions if the expression
3826 initializing a tagged type corresponds with a non default CPP
3827 constructor.
3828 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
3829 of limited type objects.
3830
3831 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
3832 when a CPP constructor is called in an assignment. Disable also the
3833 error message associated with dyamically tagged expressions if the
3834 exporession initializing a tagged type corresponds with a non default
3835 CPP constructor.
3836
3837 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
3838 non-default C++ constructors.
3839
3840 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
3841
3842 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
3843 non-default constructors.
3844 (Init_Proc): Add support for non-default constructors.
3845
3846 * exp_disp.adb (Set_Default_Constructor): Removed.
3847 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
3848 but extending its functionality to handle non-default constructors.
3849
3850 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
3851 constructors. Minor code cleanup removing unrequired label and goto
3852 statement.
3853
3854 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
3855 constructors.
3856 (Build_Init_Statements): Add support for non-default constructors.
3857 (Expand_N_Object_Declaration): Add support for non-default constructors.
3858 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
3859 to Set_CPP_Constructors.
3860
3861 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
3862 non-default constructors.
3863 Required to handle its use in build-in-place statements.
3864
3865 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
3866 pragma for non-default C++ constructors and the new compiler support
3867 that allows the use of these constructors in record components, limited
3868 aggregates, and extended return statements.
3869
3870 2009-04-29 Vincent Celier <celier@adacore.com>
3871
3872 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
3873 project extending an abstract project.
3874
3875 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3876
3877 * targparm.ads: Fix oversight.
3878
3879 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3880
3881 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
3882 derivation when necessary, to find the user-subprogram that is actally
3883 being overridden.
3884
3885 2009-04-29 Robert Dewar <dewar@adacore.com>
3886
3887 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
3888 components
3889
3890 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3891
3892 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
3893 primitive operation, rather than source line of synchronized type, when
3894 building the wrapper for a primitive operation that overrides an
3895 operation inherited from a progenitor, to improve the error message on
3896 duplicate declarations.
3897
3898 * sem_ch3.adb (Process_Full_View): Use new signature of
3899 Build_Wrapper_Spec.
3900
3901 2009-04-29 Robert Dewar <dewar@adacore.com>
3902
3903 * prj-nmsc.ads: Minor reformatting
3904
3905 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3906
3907 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
3908 expression on the existing parent If statement.
3909
3910 2009-04-29 Robert Dewar <dewar@adacore.com>
3911
3912 * prj-proc.adb, prj.ads: Minor reformatting
3913
3914 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
3915
3916 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
3917 existing parent If statement on the newly created one.
3918
3919 2009-04-29 Emmanuel Briot <briot@adacore.com>
3920
3921 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
3922 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
3923 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
3924 (Set_In_Configuration, In_Configuration): Removed.
3925 Replaced by an extra parameter Is_Config_File in several parameter to
3926 avoid global variables to store the state of the parser.
3927
3928 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3929
3930 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
3931 with_clauses generated for the same unit through rtsfind, and that
3932 appear in the context of different units.
3933
3934 * rtsfind.adb: New attribute First_Implicit_With, component of the
3935 Unit_Record that stores information about a unit loaded through rtsfind.
3936
3937 2009-04-29 Gary Dismukes <dismukes@adacore.com>
3938
3939 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
3940 (other conditions permitting), so that abstract stream subprograms will
3941 be declared for them.
3942
3943 2009-04-29 Bob Duff <duff@adacore.com>
3944
3945 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
3946
3947 * g-expect.ads: Minor comment fixes.
3948
3949 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3950
3951 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
3952 dispatching operation is a body without previous spec, update the list
3953 of primitive operations to ensure that cross-reference information is
3954 up-to-date.
3955
3956 2009-04-29 Albert Lee <lee@adacore.com>
3957
3958 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3959 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3960 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
3961 (GNAT.Sockets.Thin.C_Readv,
3962 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
3963 (GNAT.Sockets.Thin.C_Recvmsg,
3964 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
3965 sendmsg(2).
3966 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
3967 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
3968
3969 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3970
3971 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
3972 operation is a body without previous spec, update the list of
3973 primitive operations to ensure that cross-reference information is
3974 up-to-date.
3975
3976 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
3977 new compilation unit node for the instance declaration, keep the
3978 context items of the original unit on it, so that the context of the
3979 instance body only holds the context inherited from the generic body.
3980
3981 2009-04-29 Bob Duff <duff@adacore.com>
3982
3983 * sem_res.adb: Minor comment fix.
3984
3985 2009-04-29 Thomas Quinot <quinot@adacore.com>
3986
3987 * sem_elim.adb: Minor reformatting
3988
3989 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3990
3991 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
3992 predefined unit, allow arbitrary number of components in static
3993 aggregate, to ensure that the same level of constant folding applies
3994 for Ada 95 and Ada 05 versions of the file.
3995
3996 2009-04-29 Ed Schonberg <schonberg@adacore.com>
3997
3998 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
3999 information: no need for full scope check.
4000 (Eliminate_Error): Do not emit error in a generic context.
4001
4002 2009-04-29 Ed Falis <falis@adacore.com>
4003
4004 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
4005 VxWorks 653 POS does not support rmdir.
4006
4007 2009-04-29 Matteo Bordin <bordin@adacore.com>
4008
4009 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
4010 results are printed.
4011
4012 2009-04-29 Arnaud Charlet <charlet@adacore.com>
4013
4014 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
4015 unused assignment.
4016
4017 2009-04-29 Thomas Quinot <quinot@adacore.com>
4018
4019 * make.adb: Minor reformatting.
4020 Minor code reorganization throughout.
4021
4022 2009-04-29 Matteo Bordin <bordin@adacore.com>
4023
4024 * s-stausa.ads: Changed visibility of type Task_Result: moved to
4025 public part to give application visibility over it.
4026 This is for future improvement and to build a public API on top of it.
4027 Changed record components name of type Task_Result to reflect the new
4028 way of reporting.
4029
4030 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
4031 reporting Stack usage.
4032
4033 * gnat_ugn.texi: Update doc of stack usage report.
4034
4035 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
4036
4037 * Makefile.rtl: Add new run-time files.
4038
4039 2009-04-29 Pascal Obry <obry@adacore.com>
4040
4041 * initialize.c: Do not expand quoted arguments.
4042
4043 2009-04-29 Emmanuel Briot <briot@adacore.com>
4044
4045 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
4046
4047 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
4048 Prj.Ultimate_Extending_Project_Of
4049
4050 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4051
4052 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
4053 Amendment type, add the with_clause for Finalization.List_Controller
4054 only if the current context is a package body.
4055
4056 2009-04-29 Thomas Quinot <quinot@adacore.com>
4057
4058 * sem_ch12.adb: Minor reformatting
4059
4060 * sem_aggr.adb: Minor reformatting
4061
4062 * sem_ch6.adb, sem_cat.ads: Minor reformatting
4063
4064 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
4065
4066 2009-04-29 Quentin Ochem <ochem@adacore.com>
4067
4068 * prj.ads (Source_Id): Now general pointer type.
4069
4070 2009-04-29 Thomas Quinot <quinot@adacore.com>
4071
4072 * exp_ch7.adb, rtsfind.adb: Minor reformatting
4073
4074 * sem_res.adb: Minor reformatting
4075
4076 2009-04-29 Thomas Quinot <quinot@adacore.com>
4077
4078 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
4079 operands is static only if it is a predefined concatenation operator.
4080
4081 * sem_util.adb: Minor reformatting
4082
4083 * sem_ch12.adb (Save_References): When propagating semantic information
4084 from generic copy back to generic template, for the case of an
4085 identifier that has been rewritten to an explicit dereference whose
4086 prefix is either an object name or a parameterless funcion call
4087 denoting a global object or function, properly capture the denoted
4088 global entity: perform the corresponding rewriting in the template,
4089 and point the rewritten identifier to the correct global entity (not
4090 to the associated identifier in the generic copy).
4091
4092 2009-04-29 Robert Dewar <dewar@adacore.com>
4093
4094 * rtsfind.adb, prj-env.adb: Minor reformatting
4095 Minor code reorganization
4096
4097 2009-04-29 Emmanuel Briot <briot@adacore.com>
4098
4099 * make.adb: Fix comment
4100
4101 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
4102 is given as argument, as might happen in gnatmake.
4103
4104 2009-04-29 Ed Schonberg <schonberg@adacore.com>
4105
4106 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
4107 an abstract operation of a progenitor is not properly overridden by an
4108 operation of a derived synchronized type.
4109
4110 2009-04-29 Robert Dewar <dewar@adacore.com>
4111
4112 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
4113 prj-proc.adb: Minor reformatting
4114 Minor code reorganization
4115
4116 2009-04-29 Bob Duff <duff@adacore.com>
4117
4118 * exp_ch7.adb (Build_Final_List): For an access type that designates a
4119 Taft Amendment type, if the access type needs finalization, make sure
4120 the implicit with clause for List_Controller occurs on the package spec.
4121
4122 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
4123 with's created for the pseudo-children of Text_IO and friends. In
4124 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
4125 Ada.Text_IO.Integer_IO both with-ing each other.
4126
4127 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
4128 oddball cases when pragma Extend_System is used.
4129
4130 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
4131 the case where a package spec instantiates a generic whose body with's
4132 this package, so Walk_Library_Items won't complain about cyclic with's.
4133
4134 2009-04-29 Emmanuel Briot <briot@adacore.com>
4135
4136 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
4137 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
4138 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
4139 (Project_Id): now a real pointer to Project_Data, instead of an index
4140 into the Projects_Table. This simplifies the API significantly, avoiding
4141 extra lookups in this table and the need to pass the Project_Tree_Ref
4142 parameter in several cases
4143
4144 2009-04-29 Nicolas Setton <setton@adacore.com>
4145
4146 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
4147 darwin.
4148
4149 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
4150
4151 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
4152 back kludge.
4153
4154 2009-04-24 Robert Dewar <dewar@adacore.com>
4155
4156 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
4157 clean.adb: Minor reformatting.
4158 Minor code reorganization and message improvement.
4159
4160 2009-04-24 Emmanuel Briot <briot@adacore.com>
4161
4162 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
4163 (Alternate_Languages): now implemented as a malloc-ed list rather
4164 than through a table.
4165
4166 2009-04-24 Thomas Quinot <quinot@adacore.com>
4167
4168 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
4169 accurately handle cases such as "lit" & "lit" and
4170 "lit" & static_string_constant
4171
4172 2009-04-24 Emmanuel Briot <briot@adacore.com>
4173
4174 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4175 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
4176 removed. Lists of projects are now implemented via standard malloc
4177 rather than through the table.
4178
4179 2009-04-24 Thomas Quinot <quinot@adacore.com>
4180
4181 * sem_ch12.adb: Minor reformatting
4182
4183 * g-trasym.adb: Minor reformatting
4184
4185 * exp_ch6.adb: Minor reformatting
4186
4187 2009-04-24 Robert Dewar <dewar@adacore.com>
4188
4189 * layout.adb (Layout_Type): For packed array type, copy unset
4190 size/alignment fields from the referenced Packed_Array_Type.
4191
4192 2009-04-24 Bob Duff <duff@adacore.com>
4193
4194 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
4195 longer needed after sem_ch12 changes.
4196
4197 * sem.adb (Walk_Library_Items): Include with's in some debugging
4198 printouts.
4199
4200 2009-04-24 Emmanuel Briot <briot@adacore.com>
4201
4202 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
4203 only ever using the Project field.
4204
4205 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4206
4207 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
4208 Body_Required on the generated compilation node. The new node is linked
4209 to its body, but both share the same file, so we do not set this flag
4210 on the new unit so as not to create a spurious dependency on a
4211 non-existent body in the ali file for the instance.
4212
4213 2009-04-24 Robert Dewar <dewar@adacore.com>
4214
4215 * make.adb: Minor reformatting
4216
4217 2009-04-24 Emmanuel Briot <briot@adacore.com>
4218
4219 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
4220 Add_Source): merge some code between those. In particular change where
4221 file normalization is done to avoid a few extra calls to
4222 Canonicalize_File_Name. This also removes the need for passing
4223 Current_Dir in a number of subprograms.
4224
4225 2009-04-24 Bob Duff <duff@adacore.com>
4226
4227 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
4228 False, assign the correct unit to the Cunit field of the new table
4229 entry. We want the spec unit, not the body unit.
4230
4231 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
4232 interface for these.
4233 (Maybe_Add_With): Check whether we're trying to a with on the current
4234 unit, and avoid creating such directly self-referential with clauses.
4235 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
4236 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
4237 and matches existing comments in the spec.
4238
4239 * sem.adb (Walk_Library_Items): Add various special cases to make the
4240 assertions pass.
4241
4242 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
4243 instead of Parent (N), for uniformity.
4244
4245 2009-04-24 Robert Dewar <dewar@adacore.com>
4246
4247 * errout.ads: Minor reformatting
4248
4249 2009-04-24 Emmanuel Briot <briot@adacore.com>
4250
4251 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
4252 behavior when the project includes sources from multiple languages
4253
4254 2009-04-24 Vincent Celier <celier@adacore.com>
4255
4256 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
4257 is a language other than Ada declared.
4258
4259 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
4260 Imported_First set to True.
4261
4262 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4263
4264 * sem_res.adb: additional optimization to inhibit creation of
4265 redundant transient scopes.
4266
4267 2009-04-24 Bob Duff <duff@adacore.com>
4268
4269 * rtsfind.ads: Minor comment fix
4270
4271 2009-04-24 Emmanuel Briot <briot@adacore.com>
4272
4273 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
4274 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
4275 basically doing the same work (for explicit or implicit sources).
4276 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
4277 role. Rewritten to share some code (testing that all explicit sources
4278 have been found) between ada_only and multi_language modes.
4279
4280 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
4281
4282 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
4283 for CLI imported types.
4284 (Analyze_Pragma): Allow CIL or Java imported functions returning
4285 access-to-subprogram types.
4286
4287 2009-04-24 Emmanuel Briot <briot@adacore.com>
4288
4289 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
4290 (Project_Data.Dir_Path): field removed, since it can be computed
4291 directly from .Directory, and is needed only once when processing the
4292 project is buildgpr.adb or make.adb
4293
4294 2009-04-24 Robert Dewar <dewar@adacore.com>
4295
4296 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
4297 rtsfind.adb: Minor reformatting.
4298 Minor code reorganization
4299
4300 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4301
4302 * mlib-prj.adb: Use friendlier english identifier.
4303
4304 * gnatcmd.adb, make.adb: Use better english identifiers.
4305
4306 2009-04-24 Robert Dewar <dewar@adacore.com>
4307
4308 * clean.adb: Minor reformatting
4309
4310 2009-04-24 Robert Dewar <dewar@adacore.com>
4311
4312 * einfo.adb (OK_To_Rename): New flag
4313
4314 * einfo.ads (OK_To_Rename): New flag
4315
4316 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4317 OK_To_Rename set.
4318
4319 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4320
4321 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4322 OK_To_Rename.
4323
4324 2009-04-24 Emmanuel Briot <briot@adacore.com>
4325
4326 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4327 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4328 field removed. This is not a property of the
4329 project, just a boolean used to traverse the project tree, and storing
4330 it in the structure prevents doing multiple traversal in parallel.
4331 (Project_Data.Checked): also removed, since it was playing the same role
4332 as Seen when we had two nested loops, and this is no longer necessary
4333 (For_All_Imported_Projects): removed, since in fact there was already
4334 the equivalent in For_Every_Project_Imported. The latter was rewritten
4335 to use a local hash table instead of Project_Data.Seen
4336 Various loops were rewritten to use For_Every_Project_Imported, thus
4337 removing the need for Project_Data.Seen. This avoids a lot of code
4338 duplication
4339
4340 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4341
4342 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4343 statements, even though the actual of the call is a concatenation,
4344 because the argument is static, and we want to preserve warning
4345 messages about sequences of code statements that are not marked
4346 volatile.
4347
4348 * sem_warn.adb: remove obsolete comment about warning being obsolete
4349
4350 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4351 requeued and the delay has expired while within the accept statement
4352 that executes the requeue, do not perform the requeue and indicate that
4353 the timed call has been aborted.
4354
4355 2009-04-24 Emmanuel Briot <briot@adacore.com>
4356
4357 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4358 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4359 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4360 since they can be computed from the above.
4361
4362 2009-04-24 Vincent Celier <celier@adacore.com>
4363
4364 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4365
4366 * prj-env.adb: Move all global variables to the private part of the
4367 project tree data.
4368 Access these new components instead of the global variables no longer
4369 in existence.
4370 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
4371 components that were previously global variables.
4372
4373 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
4374 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
4375 parameter.
4376
4377 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
4378 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
4379
4380 * prj.adb (Initialize): Do not call Prj.Env.Initialize
4381 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
4382 components in the private part of the project tree data.
4383
4384 * prj.ads (Private_Project_Tree_Data): new components moved from
4385 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
4386 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
4387 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
4388
4389 2009-04-24 Vincent Celier <celier@adacore.com>
4390
4391 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
4392
4393 * prj-nmsc.adb (Check_Library): No error for imports by shared library
4394 projects, when --unchecked-shared-lib-imports is used.
4395
4396 2009-04-24 Robert Dewar <dewar@adacore.com>
4397
4398 * sem_ch7.adb: Minor reformatting
4399
4400 2009-04-24 Tristan Gingold <gingold@adacore.com>
4401
4402 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
4403 mach thread id.
4404
4405 2009-04-24 Emmanuel Briot <briot@adacore.com>
4406
4407 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
4408 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
4409 (For_All_Imported_Projects): new procedure
4410 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
4411 above rather than duplicating code.
4412
4413 2009-04-24 Emmanuel Briot <briot@adacore.com>
4414
4415 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4416 (Source_Id, Source_Data): use a real list to store sources rather than
4417 using an external table to store the elements. This makes code more
4418 efficient and more readable.
4419
4420 2009-04-24 Emmanuel Briot <briot@adacore.com>
4421
4422 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4423 (Source_Iterator): new type.
4424 This removes the need for having the sources on three different
4425 lists at the project tree, project and language level. They are now
4426 on a single list.
4427
4428 2009-04-24 Emmanuel Briot <briot@adacore.com>
4429
4430 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
4431
4432 2009-04-24 Ed Schonberg <schonberg@adacore.com>
4433
4434 * sem_warn.adb: Add comment on obsolete warning
4435
4436 2009-04-24 Arnaud Charlet <charlet@adacore.com>
4437
4438 * s-tassta.adb (Create_Task): Fix violation of locking rule.
4439
4440 2009-04-24 Emmanuel Briot <briot@adacore.com>
4441
4442 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
4443 to Language_Ptr to better reflect its new implementation.
4444 (Project_Data.First_Languages_Processing): renamed to Languages now
4445 that the field with that name is no longer used
4446 (Project_Data.Languages): removed, no longer used, and duplicates
4447 information already available through First_Language_Processing.
4448 (Prj.Language_Index): now an actual pointer, instead of an index into
4449 a table. This makes the list somewhat more obvious, but more importantly
4450 removes the need to pass a pointer to the project_tree_data in a few
4451 places, and makes accessing the attributes of a languages more
4452 efficient.
4453
4454 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4455 Thomas Quinot <quinot@adacore.com>
4456
4457 * fe.h (Set_Identifier_Casing): Add const to second parameter.
4458 * gcc-interface/misc.c (internal_error_function): Make copy of return
4459 from pp_formatted_text before assigning BUFFER to it.
4460 (gnat_init): Likewise for main_input_filename and gnat_argv.
4461 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
4462
4463 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4464
4465 * ttypes.ads (Target_Double_Float_Alignment): New variable.
4466 (Target_Double_Scalar_Alignment): Likewise.
4467 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
4468 (Get_Double_Float_Alignment): New imported function.
4469 (Get_Double_Scalar_Alignment): Likewise.
4470 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
4471 the alignment of "double" floating-point types and "double" or larger
4472 scalar types, as parameterized by Target_Double_Float_Alignment and
4473 Target_Double_Scalar_Alignment respectively.
4474 * gcc-interface/gigi.h (double_float_alignment): Declare.
4475 (double_scalar_alignment): Likewise.
4476 (is_double_float_or_array): Likewise.
4477 (is_double_scalar_or_array): Likewise.
4478 (get_target_double_float_alignment): Likewise.
4479 (get_target_double_scalar_alignment): Likewise.
4480 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
4481 (get_target_strict_alignment): ...this.
4482 (get_target_double_float_alignment): New function.
4483 (get_target_double_scalar_alignment): Likewise.
4484 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4485 Test the presence of an alignment clause for under-aligned integer
4486 types. Take into account specific caps for the alignment of "double"
4487 floating-point types and "double" or larger scalar types, as
4488 parameterized by Target_Double_Float_Alignment and
4489 Target_Double_Scalar_Alignment respectively.
4490 (validate_alignment): Likewise.
4491 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
4492 (gigi): Initialize double_float_alignment and double_scalar_alignment.
4493 * gcc-interface/utils.c (double_float_alignment): New global variable.
4494 (double_scalar_alignment): Likewise.
4495 (is_double_float_or_array): New predicate.
4496 (is_double_scalar_or_array): Likewise.
4497
4498 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4499
4500 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
4501 the conditional expression only if it is common to both arms.
4502
4503 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4504
4505 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
4506 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
4507 arguments to build_allocator.
4508 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
4509 Remove code handling special allocator and assert its uselessness.
4510
4511 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
4512
4513 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
4514 alignment is specified, do not promote that of the component type
4515 beyond it.
4516 <E_Array_Subtype>: Likewise.
4517
4518 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4519
4520 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
4521 * sinfo.ads (Object Declaration): Likewise.
4522 (Assignment Statement): Likewise.
4523 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
4524 Do not force Is_True_Constant to false on the temporary.
4525 (Freeze_Entity): Do not force Is_True_Constant to false on names on
4526 the RHS of object declarations.
4527 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
4528 New case. Return 1 if the object is atomic.
4529 <N_Assignment_Statement>: Likewise.
4530
4531 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4532
4533 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4534 For packed array types, make the original array type a parallel type
4535 for the modular type and its JM wrapper if the type is bit-packed.
4536 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
4537 record type for packed array types. Remove kludge.
4538
4539 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4540
4541 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
4542 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4543 Use front-end predicates to compute signedness and precision.
4544 <E_String_Literal_Subtype>: Fold range type.
4545 Make sure to set longest_float_type_node to a scalar type.
4546 (elaborate_entity): Use consistent Constraint_Error spelling.
4547 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
4548 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
4549 output for the modulus, if any.
4550 <ENUMERAL_TYPE>: Likewise for the RM size.
4551 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
4552 spelling.
4553 * gcc-interface/utils.c (finish_record_type): Really test the alignment
4554 of BLKmode bit-fields to compute their addressability.
4555 (create_index_type): Adjust comments.
4556 (create_param_decl): Create the biased subtype manually.
4557 * gcc-interface/utils2.c (build_component_ref): Use consistent
4558 Constraint_Error spelling.
4559
4560 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4561
4562 * gcc-interface/cuintp.c: Clean up include directives.
4563 * gcc-interface/targtyps.c: Likewise.
4564 * gcc-interface/decl.c: Likewise.
4565 * gcc-interface/misc.c: Likewise.
4566 * gcc-interface/trans.c: Likewise.
4567 * gcc-interface/utils.c: Likewise.
4568 * gcc-interface/utils2.c: Likewise.
4569 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
4570
4571 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
4572
4573 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
4574 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
4575 (SET_DECL_LANG_SPECIFIC): Likewise.
4576 Reorder macros.
4577 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4578 Update comment about use of build_range_type.
4579 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
4580 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
4581 check for other cases of overloading.
4582 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
4583 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
4584 Use size_int in lieu of build_int_cst.
4585 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
4586 build_range_type.
4587
4588 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4589
4590 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
4591 type is an enumeral or a boolean type, change it to an integer type
4592 with the same mode and signedness.
4593
4594 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4595
4596 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
4597 for an external constant whose initializer is not absolute.
4598
4599 2009-04-22 Taras Glek <tglek@mozilla.com>
4600
4601 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
4602 * gcc-interface/trans.c: Likewise.
4603 * gcc-interface/utils.c: Likewise.
4604
4605 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4606
4607 * sem_res.adb: Create block around procedure call when actual is a
4608 concatenation.
4609
4610 2009-04-22 Thomas Quinot <quinot@adacore.com>
4611
4612 * s-soflin.ads: Fix typos
4613
4614 2009-04-22 Vincent Celier <celier@adacore.com>
4615
4616 * prj-env.adb: Minor comment change
4617
4618 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
4619 Get_Name_String with No_File.
4620
4621 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
4622 cannot be created even when not in verbose mode.
4623
4624 2009-04-22 Emmanuel Briot <briot@adacore.com>
4625
4626 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
4627 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
4628 Multi_Language modes, to avoid code duplication.
4629 (Project_Data.Include_Language): Removed.
4630
4631 2009-04-22 Vincent Celier <celier@adacore.com>
4632
4633 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
4634 the temporary file cannot be created, indicating the directory when the
4635 creation was attempted.
4636
4637 2009-04-22 Emmanuel Briot <briot@adacore.com>
4638
4639 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
4640 the language names, not their indices.
4641
4642 2009-04-22 Emmanuel Briot <briot@adacore.com>
4643
4644 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
4645 (Source_Data.Language_Name): Field removed.
4646
4647 2009-04-22 Emmanuel Briot <briot@adacore.com>
4648
4649 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
4650 Two fields removed.
4651
4652 2009-04-22 Emmanuel Briot <briot@adacore.com>
4653
4654 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
4655 separate_suffix to the same value as the body_suffix.
4656
4657 2009-04-22 Robert Dewar <dewar@adacore.com>
4658
4659 * prj.adb: Minor code reorganization
4660 Code clean up.
4661
4662 * prj-proc.adb: Minor code reorganization, clean up.
4663
4664 * prj-nmsc.adb: Minor reformatting
4665 Minor code reorganization
4666
4667 * gnat_ugn.texi: Add to doc on strict aliasing
4668
4669 2009-04-22 Pascal Obry <obry@adacore.com>
4670
4671 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
4672 SpinCount.
4673
4674 * s-tasini.adb: Minor reformatting.
4675
4676 * s-tassta.adb: Minor reformatting.
4677
4678 2009-04-22 Emmanuel Briot <briot@adacore.com>
4679
4680 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
4681 smaller subprograms.
4682 Renamed to Check_File_Naming_Schemes to avoid confusion with the
4683 other Check_Naming_Schemes functions that plays a totally different
4684 role.
4685 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
4686 extracted from the above. These were partially rewritten to avoid
4687 unnecessary code and temporary variables.
4688 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
4689 and Get_Unit (which for now still exist since they contain mode-specific
4690 code)
4691
4692 2009-04-22 Emmanuel Briot <briot@adacore.com>
4693
4694 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
4695 Remove duplicated code.
4696 (Canonical_Case_File_Name): new subprogram
4697 (Check_And_Normalize_Unit_Names): new subprogram
4698 (Write_Attr): new subprogram
4699 Better sharing of code
4700 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
4701 split Check_Naming and help find duplicated code
4702 (Check_Common): new subprogram, sharing code between ada_only and
4703 multi_language mode.
4704 (Naming_Data.Dot_Repl_Loc): field removed
4705
4706 2009-04-22 Emmanuel Briot <briot@adacore.com>
4707
4708 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
4709 Minor refactoring to reduce the size of
4710 Process_Sources_In_Multi_Language_Mode.
4711 Avoid extra copied of Source_Data, which we found in the past could be
4712 quite slow.
4713 (Mark_Excluded_Sources): new subprogram.
4714 (Remove_Locally_Removed_Files_From_Units): merged into the above
4715 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
4716 and allow better sharing of code between multi_lang and ada_only modes
4717 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
4718
4719 2009-04-22 Emmanuel Briot <briot@adacore.com>
4720
4721 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
4722 Removed, since unused.
4723
4724 2009-04-22 Vincent Celier <celier@adacore.com>
4725
4726 * prj-attr.adb: New single project level attribute
4727 Separate_Run_Path_Options.
4728
4729 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4730 attribute Seperate_Run_Path_Options.
4731
4732 * prj.ads: (Project_Configuration): New Boolean component
4733 Separate_Run_Path_Options, defaulted to False.
4734
4735 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
4736
4737 2009-04-22 Robert Dewar <dewar@adacore.com>
4738
4739 * sem_type.adb: Minor reformatting
4740
4741 * mlib.adb: Minor reformatting
4742
4743 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
4744 syntax error.
4745
4746 2009-04-22 Nicolas Setton <setton@adacore.com>
4747
4748 * link.c: Add flag __gnat_separate_run_path_options.
4749
4750 * mlib.adb (Separate_Run_Path_Options): New subprogram.
4751
4752 * mlib.ads (Separate_Run_Path_Options): Declare.
4753
4754 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
4755 switch per directory, rather than one "rpath" switch listing all
4756 directories.
4757
4758 * gnatlink.adb (Process_Binder_File): Likewise.
4759
4760 * make.adb (Gnatmake): Likewise.
4761
4762 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
4763
4764 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
4765 Add a call to Move_Final_List when the target of the assignment is a
4766 return object that needs finalization and the expression is a
4767 controlled build-in-place function.
4768
4769 2009-04-22 Vincent Celier <celier@adacore.com>
4770
4771 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
4772 Including_Libraries set to True.
4773
4774 2009-04-22 Ed Schonberg <schonberg@adacore.com>
4775
4776 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
4777 create a unit table entry for the subprogram declaration created for a
4778 child suprogram body that has no separate specification.
4779
4780 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
4781 subprogram body, call Make_Child_Decl_Unit.
4782
4783 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
4784 table can only be the created specification of a child subprogram body
4785 that is the main unit, which has not been entered in the table yet.
4786
4787 * errout.adb (Output_Messages): Ignore created specification of a
4788 child subprogram body to prevent repeated listing of error messages.
4789
4790 * gnat1drv.adb (gnat1drv): The generated specification for a child
4791 subprogram body does not generate code.
4792
4793 2009-04-22 Arnaud Charlet <charlet@adacore.com>
4794
4795 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
4796 since this unit is now part of bootstrap units, so must use Ada 95
4797 syntax only.
4798
4799 2009-04-22 Thomas Quinot <quinot@adacore.com>
4800
4801 * a-tasatt.adb: Minor reformatting
4802
4803 2009-04-22 Bob Duff <duff@adacore.com>
4804
4805 * s-stalib.ads: Remove "with System;" since we're inside System, so
4806 it's unnecessary.
4807
4808 2009-04-22 Vincent Celier <celier@adacore.com>
4809
4810 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
4811 the source record, as there may be a dependency file even if no object
4812 file is created.
4813
4814 2009-04-22 Robert Dewar <dewar@adacore.com>
4815
4816 * lib-load.adb: Minor reformatting
4817
4818 * lib-load.ads: Minor reformatting
4819
4820 * sinfo.ads: Minor reformatting
4821
4822 2009-04-22 Bob Duff <duff@adacore.com>
4823
4824 * exp_pakd.adb: Minor comment fixes.
4825
4826 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
4827 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
4828 include units containing instantiations, as well as units that are
4829 generic instantiations.
4830
4831 * sem.adb: Include dependents and corresponding specs/bodies in the
4832 unit walk.
4833
4834 * gcc-interface/Make-lang.in:
4835 sem now depends on s-bitops, because of the packed array of Booleans.
4836
4837 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4838
4839 * gcc-interface/ada-tree.def: Fix formatting nits.
4840 (REGION_STMT): Delete.
4841 (HANDLER_STMT): Likewise.
4842 * gcc-interface/ada-tree.h: Fix formatting nits.
4843 (IS_STMT): Delete.
4844 (REGION_STMT_BODY): Likewise.
4845 (REGION_STMT_HANDLE): Likewise.
4846 (REGION_STMT_BLOCK): Likewise.
4847 (HANDLER_STMT_ARG): Likewise.
4848 (HANDLER_STMT_LIST): Likewise.
4849 (HANDLER_STMT_BLOCK): Likewise.
4850 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
4851 (fp_size_to_prec): Likewise.
4852 (largest_move_alignment): Delete.
4853 (gnat_compute_largest_alignment): Likewise.
4854 Fix minor nits.
4855 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
4856 Remove redundant code.
4857 <E_Array_Type>: Remove redundant assert.
4858 <E_Array_Subtype>: Exit early from index computation in pathological
4859 cases.
4860 Rewrite conditional assignment.
4861 (make_type_from_size): Likewise.
4862 * gcc-interface/misc.c (largest_move_alignment): Delete.
4863 (gnat_finish_incomplete_decl): Likewise.
4864 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
4865 (asm_out_file): Likewise
4866 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
4867 (gnat_dwarf_name): Move around.
4868 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
4869 (gigi): Remove call to gnat_compute_largest_alignment.
4870 * utils.c (create_field_decl): Rewrite conditional assignment.
4871 Fix minor nits.
4872
4873 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4874
4875 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
4876 on entry. Defer common processing for types. Reorder and clean up.
4877 Compute the equivalent GNAT node and the default size for types only.
4878 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
4879 <E_Access_Type>: For an unconstrained designated type, do not pretend
4880 that a dummy type is always made.
4881 <all> Fix nits in comments.
4882 (validate_size): Fix formatting nits and comments.
4883 (set_rm_size): Likewise.
4884 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
4885 passed to TARGET_PROMOTE_PROTOTYPES hook.
4886
4887 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
4888
4889 * fe.h (Get_External_Name): Declare.
4890 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
4891 (concat_name): ...this.
4892 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
4893 gnu_entity_name and adjust for above renaming.
4894 <E_Access_Type>: Use create_concat_name to get the name of the various
4895 types associated with unconstrained array types.
4896 (make_aligning_type): Adjust for above renaming.
4897 (maybe_pad_type): Likewise.
4898 (components_to_record): Likewise. Use get_identifier_with_length for
4899 the encoding of the variant.
4900 (get_entity_name): Use get_identifier_with_length.
4901 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
4902 Do not fiddle with Name_Buffer.
4903 (concat_id_with_name): Rename to...
4904 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
4905 with Name_Buffer.
4906 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
4907 above renaming.
4908
4909 2009-04-21 Joseph Myers <joseph@codesourcery.com>
4910
4911 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
4912 license notices.
4913
4914 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4915
4916 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
4917
4918 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4919
4920 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4921 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
4922 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
4923 Remove useless support code for packed array types and assert its
4924 uselessness.
4925 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
4926 adjust for TYPE_RM_SIZE change.
4927 <all> Fix nits in comments. Use Original_Array_Type accessor instead
4928 of Associated_Node_For_Itype accessor for packed array types.
4929 (make_packable_type): Likewise.
4930 (maybe_pad_type): Likewise.
4931 (set_rm_size): Likewise. Rework conditional statement. Adjust for
4932 TYPE_RM_SIZE change.
4933 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
4934 (rm_size): Fix nits in comments. Rework conditional statements.
4935 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
4936 change.
4937 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
4938 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
4939 appropriate function to initialize the size_type_node. Adjust for
4940 TYPE_RM_SIZE change.
4941
4942 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4943
4944 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
4945 for imported subprograms.
4946
4947 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4948
4949 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
4950 constant objects covered by 13.3(19) volatile.
4951
4952 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
4953
4954 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
4955 of dummy fat pointer types to the debug back-end.
4956
4957 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4958
4959 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
4960 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
4961 before wrapping it up in the record type. Do not overwrite the
4962 Ada size of the record type with the Esize.
4963
4964 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4965
4966 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
4967 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
4968 if the conversion is on the LHS of an assignment and a no-op.
4969 <all> Do not convert the result to the result type if the Parent
4970 node is such a conversion.
4971
4972 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
4973
4974 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
4975 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
4976 of types with unknown discriminants.
4977 (substitute_in_type): Rewrite and restrict to formal substitutions.
4978 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
4979 (update_pointer_to): Update comment.
4980
4981 2009-04-20 Ed Schonberg <schonberg@adacore.com>
4982
4983 * sem_ch8.adb (Use_One_Package): In an instance, if two
4984 potentially_use_visible and non-overloadable homonyms are available
4985 from the actuals of distinct formal packages, retain the current one,
4986 which was visible in the generic, to prevent spurious visibility
4987 errors.
4988 (End_Use_Package): Restore use_visibility when needed.
4989
4990 2009-04-20 Sergey Rybin <rybin@adacore.com>
4991
4992 * gnat_ugn.texi, vms_data.ads: Update doc.
4993
4994 2009-04-20 Arnaud Charlet <charlet@adacore.com>
4995
4996 * gcc-interface/Make-lang.in: Update dependencies
4997
4998 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
4999 Windows.
5000
5001 2009-04-20 Robert Dewar <dewar@adacore.com>
5002
5003 * checks.ads: Fix documentation of range check handling
5004
5005 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5006
5007 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
5008 a redundant use_type clause.
5009
5010 2009-04-20 Robert Dewar <dewar@adacore.com>
5011
5012 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
5013 this attribute can be evaluated at compile time.
5014 (Eval_Attribute, case Range_Length): Same improvement
5015
5016 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
5017
5018 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5019
5020 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
5021 for better handling of null procedures.
5022 (Check_Overriding_Indicator): Do not emit a warning on a missing
5023 overriding indicator on an operator when the type of which the operator
5024 is a primitive is private.
5025
5026 2009-04-20 Bob Duff <duff@adacore.com>
5027
5028 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
5029 debugging output.
5030
5031 2009-04-20 Robert Dewar <dewar@adacore.com>
5032
5033 * sem_attr.adb: Minor reformatting
5034
5035 * gnatcmd.adb: Minor reformatting
5036
5037 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5038
5039 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
5040 overloaded and one interpretation matches the context, label the
5041 operand with the type of first formal.
5042
5043 2009-04-20 Bob Duff <duff@adacore.com>
5044
5045 * debug.ads: Minor comment fix.
5046
5047 * debug.adb: Minor comment fixes.
5048
5049 2009-04-20 Javier Miranda <miranda@adacore.com>
5050
5051 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
5052
5053 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
5054
5055 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
5056 is expanded into a call to Raise_Exception, avoid passing the
5057 exception-name'identity in runtimes in which this argument
5058 is not used.
5059
5060 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
5061
5062 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
5063 generated bindings for cil.
5064
5065 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5066
5067 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
5068 discriminants, collect components from the Underlying_Record_View,
5069 which will be used in the expansion of the aggregate into assignments.
5070
5071 * sem_ch3.adb: Do not label derived type with unknown discriminants as
5072 having a private declaration.
5073
5074 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5075
5076 * exp_util.adb (Expand_Subtype_From_Expr): use the
5077 underlying_record_view when available, to create the proper constrained
5078 subtype for an object of a derived type with unknown discriminants.
5079
5080 2009-04-20 Javier Miranda <miranda@adacore.com>
5081
5082 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
5083 formals that have pragma unreferenced.
5084
5085 2009-04-20 Pascal Obry <obry@adacore.com>
5086
5087 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
5088 Remove all calls to To_Lower_If_Case_Insensitive to preserve
5089 the pathname original casing.
5090
5091 2009-04-20 Robert Dewar <dewar@adacore.com>
5092
5093 * g-trasym.adb: Minor reformatting
5094
5095 * s-os_lib.adb: Minor reformatting
5096
5097 * sem.adb: Minor reformatting
5098 Minor code reorganization
5099
5100 * sem_ch3.adb: Minor reformatting
5101
5102 * sem_ch4.adb: Minor reformatting
5103
5104 * sem_ch8.adb: Minor reformatting
5105
5106 * sem_type.adb: Minor reformatting
5107
5108 2009-04-20 Javier Miranda <miranda@adacore.com>
5109
5110 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
5111 generated by derivations of tagged types use the aliased subprogram a
5112 reference to locate their controlling type.
5113
5114 2009-04-20 Tristan Gingold <gingold@adacore.com>
5115
5116 * g-trasym.adb: Set size of result buffer before calling
5117 convert_address.
5118
5119 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5120
5121 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
5122 to a function returning an array can be interpreted as a call with
5123 defaulted parameters whose result is indexed, take into account the
5124 types of all the indices of the array result type.
5125
5126 2009-04-20 Pascal Obry <obry@adacore.com>
5127
5128 * a-direct.adb, s-os_lib.adb: Minor reformatting.
5129
5130 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5131
5132 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
5133 null exclusion qualifiers for object renaming declarations.
5134
5135 2009-04-20 Nicolas Roche <roche@adacore.com>
5136
5137 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
5138 unsigned long long. So compare local_time and utc_time before computing
5139 the difference.
5140
5141 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5142
5143 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5144 of the Underlying_Record_View before that of the derived type.
5145
5146 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
5147 with unknown discriminants with regard to the parent subtype.
5148
5149 2009-04-20 Bob Duff <duff@adacore.com>
5150
5151 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
5152 that are not included. This is necessary if the main unit is a generic
5153 instantiation.
5154
5155 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
5156 because it doesn't work if -gnatn is used.
5157
5158 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5159
5160 * rtsfind.adb (RTE, RTE_Record_Component): In
5161 Configurable_Run_Time_Mode, do not enable front-end inlining.
5162
5163 2009-04-20 Thomas Quinot <quinot@adacore.com>
5164
5165 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
5166 System.Address_To_Access_Conversions.
5167
5168 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5169
5170 * sem.adb: Guard against ill-formed subunits.
5171
5172 2009-04-20 Bob Duff <duff@adacore.com>
5173
5174 * output.adb (Flush_Buffer): Do not indent blank lines.
5175 (Ignore_Output): New procedure for output suppression.
5176
5177 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5178
5179 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
5180 when it is positive. This avoids a potential constraint error raised
5181 by the conversion to Natural.
5182
5183 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5184
5185 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
5186 involves a target that has a specified address, don't set Forward_OK
5187 and Backward_OK to False if the rhs is an aggregate, since overlap
5188 can't occur.
5189
5190 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5191
5192 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
5193 in an object renaming declaration when the expected type is an
5194 anonymous access type.
5195
5196 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
5197 ambiguity when one interpretation is an anonymous access type and the
5198 other is a named access type, and the context itself is anonymous
5199
5200 2009-04-20 Thomas Quinot <quinot@adacore.com>
5201
5202 * einfo.ads: Minor comment rewording
5203
5204 * sem_aggr.adb: Minor comment rewording
5205
5206 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
5207
5208 2009-04-20 Pascal Obry <obry@adacore.com>
5209
5210 * adaint.c (__gnat_is_readable_file): Check for file existence
5211 when not using ACL (always the case on remote drives).
5212
5213 2009-04-20 Robert Dewar <dewar@adacore.com>
5214
5215 * sinfo.ads: Minor comment fixes
5216
5217 * exp_disp.adb: Minor reformatting
5218
5219 * gnat1drv.adb: Minor reformatting
5220
5221 * output.adb: Minor reformatting
5222
5223 * s-vxwext-kernel.ads: Minor reformatting
5224
5225 * sem.ads: Minor reformatting
5226
5227 * sem.adb: Minor reformatting
5228
5229 * sem_elim.adb: Minor reformatting
5230
5231 * uname.ads: Minor reformatting
5232
5233 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5234
5235 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
5236 a small dope of 4 words to the adjustment to the stack pointer.
5237
5238 2009-04-20 Thomas Quinot <quinot@adacore.com>
5239
5240 * xoscons.adb: generate C header s-oscons.h in
5241 addition to s-oscons.ads.
5242
5243 * socket.c: On VMS, use s-oscons.h.
5244
5245 * sem_ch3.adb: Minor reformatting
5246
5247 * exp_ch9.adb: Minor reformatting
5248
5249 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5250
5251 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
5252 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
5253 (call_to_gnu): Likewise.
5254
5255 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5256
5257 * gcc-interface/trans.c (gigi): Declare the name of the compilation
5258 unit as the first global name at the very beginning.
5259
5260 2009-04-20 Thomas Quinot <quinot@adacore.com>
5261
5262 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5263 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
5264 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
5265 since HP-UX supports neither inet_aton nor inet_pton (altough the
5266 latter is part of the Single UNIX Specification!).
5267 So reorganize code, and share C implementation based on inet_addr(3)
5268 with VMS (instead of having a VMS specific Ada implementation in
5269 g-socthi-vms.adb).
5270
5271 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5272
5273 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
5274 to return the object file name saved by Set_Object_Output_File_Name.
5275
5276 2009-04-20 Emmanuel Briot <briot@adacore.com>
5277
5278 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
5279 for the standard command line, when argc has been modified since the
5280 start of the application.
5281
5282 2009-04-20 Thomas Quinot <quinot@adacore.com>
5283
5284 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
5285 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
5286
5287 2009-04-20 Bob Duff <duff@adacore.com>
5288
5289 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
5290 pragma Debug.
5291
5292 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5293
5294 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
5295 subprogram as Eliminated when source operation is.
5296 (Expand_N_Protected_Type_Declaration): Generate protected and
5297 unprotected specs for the internal operations, even if the source
5298 operation is eliminated.
5299
5300 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5301
5302 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
5303 Predefined_Primitive_Bodies): Do not create the declarations and bodies
5304 of the primitive subprograms associated with dispatching select
5305 statements when the runtime is in configurable mode.
5306
5307 2009-04-20 Ed Falis <falis@adacore.com>
5308
5309 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5310
5311 2009-04-20 Thomas Quinot <quinot@adacore.com>
5312
5313 * s-oscons-tmplt.c: Add support for generating a dummy version of
5314 s-oscons.ads providing all possible constants.
5315
5316 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5317
5318 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5319 ANSI version (not the UNICODE version) of WSAStringToAddress.
5320
5321 2009-04-20 Pascal Obry <obry@adacore.com>
5322
5323 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5324 allocated for the security descriptor and make sure all
5325 handles are closed before leaving this procedure.
5326
5327 2009-04-20 Javier Miranda <miranda@adacore.com>
5328
5329 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5330 (Set_Is_Underlying_Record_View): New subprogram
5331
5332 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5333 private types with unknown discriminants use the underlying record view
5334 if available.
5335
5336 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5337 underlying record view in the full view of private types whose parent
5338 has unknown discriminants.
5339 (Build_Derived_Record_Type): Avoid generating the class-wide entity
5340 associated with an underlying record view.
5341 (Derived_Type_Declaration): Avoid deriving parent primitives in
5342 underlying record views.
5343
5344 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5345 records with unknown discriminants.
5346
5347 * sem_type.adb (Covers): Handle underlying record views.
5348 (Is_Ancestor): Add support for underlying record views.
5349
5350 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5351 dispatching call if the type of the target object is tagged and has
5352 unknown discriminants.
5353
5354 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5355 unknown discriminants.
5356
5357 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5358 tables for internally built underlying record views.
5359
5360 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5361 empty list of component associations.
5362
5363 2009-04-20 Thomas Quinot <quinot@adacore.com>
5364
5365 * sem_ch10.adb: Minor reformatting
5366
5367 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5368 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
5369 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
5370 standard inet_pton API (and emulate it on platforms that do not
5371 support it).
5372 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
5373 DECC$INET_ADDR, imported in Ada.
5374 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
5375 implementation provided by GNAT runtime.
5376 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
5377 Windows.
5378
5379 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5380
5381 * gnat_ugn.texi: Add documentation for -fno-ivopts.
5382
5383 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5384
5385 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
5386 with_clause if it is the main unit.
5387
5388 2009-04-20 Thomas Quinot <quinot@adacore.com>
5389
5390 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
5391 (no behaviour change): Use Append instead of Increment_Last followed
5392 by assignment.
5393
5394 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5395
5396 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
5397 declarations of all primitives associated with dispatching asynchronous,
5398 conditional and timed selects when dispaching calls are forbidden and
5399 select statements are not allowed (such as in Ravenscar).
5400 (Predefined_Primitive_Bodies): Ditto for bodies.
5401
5402 * exp_disp.ad (Make_DT): Do not create and populate the
5403 Select_Specific_Data of the dispatch table when dispatching calls are
5404 forbidden and select statements are not allowed (such as in Ravenscar).
5405
5406 2009-04-20 Robert Dewar <dewar@adacore.com>
5407
5408 * a-tifiio.adb: Minor reformatting
5409
5410 2009-04-20 Thomas Quinot <quinot@adacore.com>
5411
5412 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
5413 other C library functions, report *failure* with a zero status, and
5414 success with a non-zero status.
5415
5416 2009-04-20 Bob Duff <duff@adacore.com>
5417
5418 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
5419 (Semantics): After analyzing each unit, Append it to the
5420 Comp_Unit_List, if appropriate.
5421
5422 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
5423 purposes.
5424 (Gnat1drv): Correct comment regarding Back_End_Mode.
5425
5426 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5427
5428 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
5429
5430 2009-04-20 Thomas Quinot <quinot@adacore.com>
5431
5432 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5433 output.adb, output.ads, s-taprop-hpux-dce.adb,
5434 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
5435 reformatting.
5436
5437 2009-04-20 Thomas Quinot <quinot@adacore.com>
5438
5439 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
5440 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
5441 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
5442 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
5443 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
5444 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
5445
5446 * debug.adb: Fix typo
5447
5448 * gnat_rm.texi: Minor doc fix.
5449
5450 * sem_ch7.adb, freeze.adb: Minor reformatting
5451
5452 2009-04-20 Thomas Quinot <quinot@adacore.com>
5453
5454 * g-socket.ads: Add new constants:
5455 Loopback_Inet_Addr
5456 Unspecified_Group_Inet_Addr
5457 All_Hosts_Group_Inet_Addr
5458 All_Routers_Group_Inet_Addr
5459
5460 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
5461 ERANGE (Result too large).
5462 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
5463 propagation of errno to caller.
5464
5465 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5466
5467 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
5468 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
5469 Leap_Second_Times.
5470
5471 2009-04-20 Gary Dismukes <dismukes@adacore.com>
5472
5473 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
5474 checking for references to eliminated subprograms that should be
5475 flagged.
5476 (Eliminate_Error_Message): Update comment to say "references" rather
5477 than "calls" (since attribute cases are handled here as well).
5478
5479 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
5480 checking for references to eliminated subprograms that should be
5481 flagged. Add with and use of Sem and Sem_Util.
5482
5483 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
5484 Add with and use of Sem_Elim.
5485
5486 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
5487 applied to eliminated subprograms.
5488 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
5489 eliminated subprograms.
5490 Add with and use of Sem_Elim.
5491
5492 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
5493 to eliminated subprograms, now handled during Resolve_Call.
5494 Remove with and use of Sem_Elim.
5495
5496 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
5497 testing Is_Eliminated, for proper handling of primitive derived from
5498 eliminated subprograms.
5499
5500 2009-04-20 Vincent Celier <celier@adacore.com>
5501
5502 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
5503 has been declared (Library_GCC or Linker'Driver), for the driver name.
5504
5505 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
5506 Linker'Driver is, use Linker'Driver as the shared library linker.
5507 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
5508 Library_GCC is declared.
5509 (Check_Library_Attributes): Set up the shared linker driver: either
5510 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
5511 declared.
5512
5513 2009-04-20 Thomas Quinot <quinot@adacore.com>
5514
5515 * g-socket.ads (Send_Socket): Fix misleading comment.
5516
5517 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5518
5519 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
5520 ASIS mode.
5521
5522 2009-04-20 Geert Bosch <bosch@adacore.com>
5523
5524 * a-tifiio.adb (Put): Avoid generating too many digits for certain
5525 fixed types with smalls that are neither integer or the reciprocal
5526 of an integer.
5527
5528 2009-04-20 Bob Duff <duff@adacore.com>
5529
5530 * uname.ads: Minor comment fix.
5531
5532 * types.ads: Minor comment fix.
5533
5534 2009-04-20 Pascal Obry <obry@adacore.com>
5535
5536 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
5537 avoid warning. At the same time fix a memory leak.
5538
5539 * osint.adb (Get_Libraries_From_Registry): Properly free memory
5540 returned by the above routine.
5541
5542 2009-04-20 Robert Dewar <dewar@adacore.com>
5543
5544 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
5545 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
5546 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
5547 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
5548
5549 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
5550
5551 2009-04-20 Pascal Obry <obry@adacore.com>
5552
5553 * initialize.c (__gnat_initialize): Add braces to kill warning.
5554
5555 * adaint.c: Minor reformatting, remove trailing spaces.
5556
5557 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5558
5559 * gcc-interface/Make-lang.in: Update dependencies.
5560
5561 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5562
5563 * adaint.h (__gnat_lwp_self): Declare on Linux.
5564
5565 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
5566
5567 2009-04-20 Robert Dewar <dewar@adacore.com>
5568
5569 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
5570 front-end part of -fpreserve-control-flow switch.
5571
5572 2009-04-20 Bob Duff <duff@adacore.com>
5573
5574 * rtsfind.adb: Minor comment fix
5575
5576 2009-04-20 Robert Dewar <dewar@adacore.com>
5577
5578 * exp_aggr.adb: Minor reformatting
5579 Minor code reorganization (use Nkind_In)
5580
5581 * g-socket.adb: Minor reformatting
5582
5583 * g-socket.ads: Minor comment fix
5584
5585 * s-auxdec.ads: Minor comment and organization update.
5586
5587 * s-auxdec-vms_64.ads: Minor comment and organization update.
5588
5589 * sem_ch10.adb: Minor addition of ??? comment
5590
5591 * sem_disp.adb: Minor reformatting
5592
5593 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5594
5595 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
5596 list a caller of an inlined subprogram, if the caller itself is not
5597 called.
5598
5599 2009-04-20 Pascal Obry <obry@adacore.com>
5600
5601 * adaint.c: Disable use of ACL on network drives.
5602
5603 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5604
5605 * gnat_ugn.texi: Add examples.
5606
5607 2009-04-20 Thomas Quinot <quinot@adacore.com>
5608
5609 * g-socket.ads (Abort_Selector): Clarify documentation.
5610
5611 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5612
5613 * opt.ads (Inspector_Mode): Update documentation of this flag.
5614
5615 2009-04-20 Thomas Quinot <quinot@adacore.com>
5616
5617 * g-socket.ads: Minor reformatting
5618
5619 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
5620 consider S_resolvLib error codes since we only use the hostLib wrappers.
5621
5622 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5623
5624 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5625 of the Underlying_Record_View after that of the derived type.
5626
5627 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5628
5629 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
5630 in inspector mode.
5631
5632 2009-04-20 Javier Miranda <miranda@adacore.com>
5633
5634 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
5635
5636 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
5637 documentation.
5638
5639 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
5640
5641 * sem_disp.adb
5642 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
5643 in internally built overriding subprograms.
5644
5645 2009-04-20 Doug Rupp <rupp@adacore.com>
5646
5647 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
5648
5649 * s-auxdec.ads: Likewise
5650
5651 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5652
5653 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
5654 type by an interface.
5655
5656 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
5657 minimze difference in expanded tree when compiled as spec of the main
5658 unit, or as a spec in the context of another unit.
5659
5660 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
5661
5662 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
5663 (localtime_tzoff): This routine no longer accepts an actual of type
5664 tm_Pointer.
5665 (UTC_Time_Offset): Remove local variable Secs_TM.
5666
5667 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
5668 actual of type struct tm*. Add local variable of type struct tm for all
5669 targets that provide localtime_r and need to invoke it.
5670
5671 2009-04-20 Thomas Quinot <quinot@adacore.com>
5672
5673 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
5674 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
5675 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
5676
5677 2009-04-20 Robert Dewar <dewar@adacore.com>
5678
5679 * sem_ch3.adb: Minor reformatting
5680
5681 * lib-load.adb: Minor reformatting
5682
5683 * sem_ch4.adb: Minor reformatting
5684
5685 2009-04-20 Robert Dewar <dewar@adacore.com>
5686
5687 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
5688 (equal values => False).
5689
5690 2009-04-20 Ed Schonberg <schonberg@adacore.com>
5691
5692 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
5693 to null procedures can be inlined unconditionally.
5694
5695 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
5696
5697 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
5698 non-addressable parameter passed by reference, do not convert the
5699 actual if its type is already the nominal type, unless it is of
5700 self-referential size.
5701
5702 2009-04-20 Arnaud Charlet <charlet@adacore.com>
5703
5704 * gnat_ugn.texi: Fix typos.
5705
5706 2009-04-20 Robert Dewar <dewar@adacore.com>
5707
5708 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
5709 Validate_Unchecked_Warnings to suppress warnings about size or
5710 alignment or extra bits if either type involved has pragma Warnings
5711 (Off) set for the type entity.
5712
5713 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
5714
5715 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
5716 a builtin type and give it a name.
5717
5718 2009-04-17 Diego Novillo <dnovillo@google.com>
5719
5720 * gcc-interface/misc.c (gnat_expand_expr): Remove.
5721 (LANG_HOOKS_EXPAND_EXPR): Remove.
5722
5723 2009-04-17 Robert Dewar <dewar@adacore.com>
5724
5725 * sem_ch3.adb: Minor reformatting
5726
5727 2009-04-17 Pascal Obry <obry@adacore.com>
5728
5729 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
5730
5731 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5732
5733 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
5734 illegal constraints on type derived from formal discrete types.
5735
5736 2009-04-17 Thomas Quinot <quinot@adacore.com>
5737
5738 PR ada/35953
5739
5740 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
5741 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
5742 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
5743 g-socket.ads (GNAT.Sockets.Thin.C_Send,
5744 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
5745 Replace calls to send(2) with equivalent sendto(2) calls.
5746 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
5747 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
5748 report an error in that case. Factor code common to the two versions
5749 (datagram and stream) in common routine Stream_Write.
5750
5751 2009-04-17 Robert Dewar <dewar@adacore.com>
5752
5753 * exp_disp.adb: Minor reformatting
5754 Minor code reorganization (use Nkind_In)
5755
5756 * prepcomp.adb: Minor reformatting
5757
5758 * sem_ch3.adb: Minor reformatting
5759
5760 * sem_res.adb: Minor comment addition
5761
5762 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
5763 for address clause
5764
5765 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
5766 setting Is_Referenced
5767
5768 * types.ads: Minor reformatting
5769
5770 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5771
5772 * gnat_ugn.texi: Initial documentation on binding generator.
5773
5774 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5775
5776 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
5777 type extensions whose parent is a type with unknown discriminants.
5778
5779 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
5780 aggregate has unknown discriminants, use the Underlying_Record_View to
5781 obtain the discriminants of the ancestor part.
5782
5783 * exp_disp.adb (Build_Dispatch_Tables): Types that are
5784 Underlying_Record_Views share the dispatching information of the
5785 original record extension.
5786
5787 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
5788 discriminants, propagate dispach table information to the
5789 Underlying_Record_View.
5790
5791 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
5792 discriminants and declaration is not a completion, generate
5793 Underlying_Record_View to provide proper discriminant information to
5794 the front-end and to gigi.
5795
5796 2009-04-17 Robert Dewar <dewar@adacore.com>
5797
5798 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
5799 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
5800 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
5801 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
5802 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
5803 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
5804 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
5805 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
5806 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
5807 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
5808 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
5809 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
5810 s-conca3.ads: Remove unneeded pragma Warnings
5811
5812 2009-04-17 Robert Dewar <dewar@adacore.com>
5813
5814 * g-moreex.adb: Add comments.
5815
5816 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
5817
5818 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
5819 Warnings (Off)
5820
5821 * prepcomp.adb: Add ??? comment
5822
5823 * a-tasatt.adb: Minor reformatting
5824
5825 * g-trasym-vms-alpha.adb: Add ??? comment
5826
5827 * g-trasym-vms-ia64.adb: Add ??? comment
5828
5829 * xoscons.adb: Minor reformatting
5830
5831 * s-tassta.adb: Minor reformatting
5832
5833 * s-scaval.adb: Add ??? comment
5834
5835 * stand.ads: Minor code clean up (remove junk with of Namet)
5836
5837 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
5838 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
5839 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
5840 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
5841 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
5842 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
5843 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
5844 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
5845 Warnings off pragmas.
5846
5847 2009-04-17 Pascal Obry <obry@adacore.com>
5848
5849 * initialize.c: Fix test for reallocating the arguments array.
5850
5851 2009-04-17 Geert Bosch <bosch@adacore.com>
5852
5853 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
5854 conversion truncate only for decimal fixed point types.
5855
5856 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
5857
5858 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
5859 reinitialized.
5860
5861 2009-04-17 Robert Dewar <dewar@adacore.com>
5862
5863 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
5864 Backwards_OK if either operand has an address clause.
5865
5866 2009-04-17 Pascal Obry <obry@adacore.com>
5867
5868 * initialize.c: Code clean up, use realloc.
5869
5870 2009-04-17 Pascal Obry <obry@adacore.com>
5871
5872 * initialize.c: Do not get Unicode command line if Unicode support not
5873 activated.
5874 Add support for wildcard expansion for Unicode parameters on Win32.
5875
5876 * mingw32.h: Add missing macros when Unicode support not activated.
5877
5878 2009-04-17 Javier Miranda <miranda@adacore.com>
5879
5880 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
5881 avoid generating code that references the Current_Master
5882 when compiling without tasks.
5883
5884 2009-04-17 Vincent Celier <celier@adacore.com>
5885
5886 * prj-attr.adb: New project level attribute Target
5887
5888 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5889 attribute Target
5890
5891 * prj.ads (Project_Configuration): New component Target
5892
5893 2009-04-17 Thomas Quinot <quinot@adacore.com>
5894
5895 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
5896 case for the case of an aggregate component, the attach call for the
5897 result is actually needed.
5898
5899 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
5900 an array aggregate must be disabled if the component type requires
5901 controlled actions.
5902
5903 * exp_ch3.adb: Minor reformatting
5904
5905 2009-04-17 Bob Duff <duff@adacore.com>
5906
5907 * output.ads (Indent,Outdent): New procedures for indenting the output.
5908 (Write_Char): Correct comment -- LF _is_ allowed.
5909
5910 * output.adb (Indent,Outdent): New procedures for indenting the output.
5911 Keep track of the indentation level, and make sure it doesn't get too
5912 high.
5913 (Flush_Buffer): Insert spaces at the beginning of each line, if
5914 indentation level is nonzero.
5915 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
5916 indentation level.
5917 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
5918 "Next_Col := 1;". Flush_Buffer does that.
5919
5920 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
5921 controlled by the -gnatdc switch. It now occurs on entry/exit to the
5922 relevant analysis routines, and calls Indent/Outdent to make the
5923 indentation reflect the nesting level. Add "helper" routines, since
5924 otherwise lots of "return;" statements would skip the debugging output.
5925
5926 2009-04-17 Arnaud Charlet <charlet@adacore.com>
5927
5928 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
5929 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
5930 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
5931
5932 2009-04-17 Thomas Quinot <quinot@adacore.com>
5933
5934 * exp_aggr.adb: Minor code reorganization, no behaviour change.
5935
5936 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5937
5938 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
5939 clause in a unit that is a package body or a subunit, when the previous
5940 clause appears in a spec or a parent.
5941
5942 2009-04-17 Thomas Quinot <quinot@adacore.com>
5943
5944 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
5945
5946 * exp_ch7.adb: Minor reformatting
5947
5948 2009-04-17 Bob Duff <duff@adacore.com>
5949
5950 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
5951 allocator, check that the expression of the qualified expression obeys
5952 the constraints of the subtype of the qualified expression.
5953
5954 2009-04-17 Thomas Quinot <quinot@adacore.com>
5955
5956 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
5957
5958 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5959
5960 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
5961 aggregate, using context imposed by subtype mark in allocator.
5962
5963 2009-04-17 Pascal Obry <obry@adacore.com>
5964
5965 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
5966
5967 2009-04-17 Nicolas Roche <roche@adacore.com>
5968
5969 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
5970 argument length.
5971
5972 2009-04-17 Gary Dismukes <dismukes@adacore.com>
5973
5974 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
5975 cover both calls and attribute references ("call" => "reference").
5976
5977 2009-04-17 Ed Schonberg <schonberg@adacore.com>
5978
5979 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
5980 type for which Storage_Size is set to 0 is legal in a pure unit.
5981
5982 2009-04-17 Thomas Quinot <quinot@adacore.com>
5983
5984 * exp_ch7.adb: Minor reformatting
5985
5986 2009-04-17 Robert Dewar <dewar@adacore.com>
5987
5988 * restrict.adb (Check_Restriction_No_Dependence): Don't check
5989 restriction if outside main extended source unit.
5990
5991 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
5992 for parents of child units as well as the child unit itself.
5993
5994 2009-04-17 Bob Duff <duff@adacore.com>
5995
5996 * checks.ads: Minor comment fix
5997
5998 * exp_aggr.ads: Minor comment fix
5999
6000 2009-04-17 Nicolas Roche <roche@adacore.com>
6001
6002 * adaint.c: Improve cross compiler detection and handling.
6003
6004 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
6005
6006 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
6007
6008 2009-04-17 Pascal Obry <obry@adacore.com>
6009
6010 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
6011 CurrentCodePage.
6012
6013 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
6014 value when no encoding form paramter is set on Text_IO services.
6015
6016 * adaint.c: CurrentCodePage new variable on Windows.
6017 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6018 ones.
6019
6020 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6021 ones.
6022
6023 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
6024 environment variable value. Default is UTF-8.
6025
6026 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
6027 fopen and freopen encoding parameter is now set to Unspecified.
6028 The default value is in this case UTF-8 (as it was before) but
6029 use the new macros that convert to/from the code page set
6030 at runtime (CurrentCodePage).
6031
6032 * s-fileio.adb: When no encoding specified use Unspecified value.
6033
6034 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6035
6036 * atree.adb, atree.ads: Remove dead code.
6037
6038 2009-04-17 Arnaud Charlet <charlet@adacore.com>
6039
6040 * gcc-interface/Make-lang.in: Update dependencies.
6041
6042 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6043
6044 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
6045 illegal uses of incomplete types in formal parts and return types.
6046
6047 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
6048 access to subprograms.
6049
6050 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
6051 Taft-amendment types as the return type of an access_to_function type.
6052
6053 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6054 type for access_to_subprograms. The check is performed on package exit.
6055
6056 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6057
6058 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
6059
6060 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
6061
6062 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
6063
6064 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
6065 semantic units, because the handling of itypes in the copied tree
6066 requires semantic information that does not belong in atree.
6067
6068 2009-04-17 Robert Dewar <dewar@adacore.com>
6069
6070 * par-ch6.adb: Minor reformatting
6071
6072 * prj.adb: Minor reformatting
6073
6074 2009-04-17 Gary Dismukes <dismukes@adacore.com>
6075
6076 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
6077 on protected subprogram bodies, so exclude the case where Pf_Flags is
6078 Pf_Decl_Pbod from the error check.
6079
6080 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
6081 indicators on subprograms in protected bodies, and proceed with parsing
6082 the subprogram.
6083
6084 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
6085 subprograms from the check for primitiveness on subprograms with
6086 overriding indicators.
6087 (Check_Overriding_Indicator): Include protected subprograms in the
6088 style check for missing overriding indicators.
6089
6090 2009-04-17 Tristan Gingold <gingold@adacore.com>
6091
6092 * init.c: Fix stack checking for x86 Darwin.
6093
6094 2009-04-17 Vincent Celier <celier@adacore.com>
6095
6096 * prj-attr.adb: New project level attribute Object_File_Suffix
6097 (<language>).
6098
6099 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
6100 object file name
6101 (Process_Compiler): Process attribute Object_File_Suffix
6102
6103 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
6104 platform suffix, when specified.
6105
6106 * prj.ads (Language_Config): New component Object_File_Suffix,
6107 defaulted to No_Name.
6108 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
6109
6110 * snames.ads-tmpl: New standard name Object_File_Suffix
6111
6112 2009-04-17 Robert Dewar <dewar@adacore.com>
6113
6114 * gnat_rm.texi: Add documentation about No_Streams restriction
6115
6116 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
6117 attributes when checking No_Streams restriction.
6118
6119 2009-04-17 Thomas Quinot <quinot@adacore.com>
6120
6121 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
6122
6123 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
6124 missing calls to RE_Request_Destroy to deallocate request objects after
6125 use.
6126
6127 2009-04-17 Nicolas Setton <setton@adacore.com>
6128
6129 * link.c: Fix support for passing a response file under Darwin.
6130
6131 2009-04-17 Emmanuel Briot <briot@adacore.com>
6132
6133 * prj.adb (Free): new subprogram.
6134
6135 2009-04-17 Ed Schonberg <schonberg@adacore.com>
6136
6137 * sem_ch3.adb: additional initialization on incomplete subtypes.
6138
6139 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
6140 part and one of the formals is an incomplete tagged type, attach to
6141 list of private dependends of the type for later validation.
6142
6143 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
6144 primitive operations of a Taft-amendmment type.
6145
6146 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6147 type. The check is performed on package exit, possibly after the
6148 subprogram is frozen.
6149
6150 2009-04-17 Vincent Celier <celier@adacore.com>
6151
6152 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
6153 before looking for source directories, but make sure that there are nil
6154 if they are not explicitely declared and there is explicitely no
6155 sources in the project.
6156
6157 2009-04-17 Pascal Obry <obry@adacore.com>
6158
6159 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
6160
6161 * init.c: Fix minor typo and style fix.
6162
6163 2009-04-17 Robert Dewar <dewar@adacore.com>
6164
6165 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
6166
6167 * sem_attr.adb (Analyze_Attribute, case Address): Use
6168 PE_Address_Of_Intrinsic.
6169
6170 * types.ads: Add PE_Address_Of_Intrinsic
6171
6172 * types.h: Add PE_Address_Of_Intrinsic
6173
6174 2009-04-17 Nicolas Setton <setton@adacore.com>
6175
6176 * gcc-interface/Makefile.in: Under darwin, build shared libraries
6177 with install_name starting with "@rpath/".
6178
6179 2009-04-17 Nicolas Setton <setton@adacore.com>
6180
6181 * link.c: Add darwin section
6182
6183 2009-04-16 Robert Dewar <dewar@adacore.com>
6184
6185 * g-pehage.adb: Minor reformatting
6186
6187 * sem_ch12.adb: Minor reformatting
6188
6189 * exp_dist.adb: Minor reformatting
6190
6191 * bindgen.adb: Minor style fixes.
6192
6193 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6194
6195 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
6196 indexed components to the case where the prefix is a static string
6197 literal.
6198
6199 2009-04-16 Javier Miranda <miranda@adacore.com>
6200
6201 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
6202 objects avoid any further expansion of the expression initializing the
6203 object.
6204
6205 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6206
6207 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
6208 that hides an outer homograph, make that homograph invisible when
6209 analyzing the actuals, to to prevent illegal direct visibility on it.
6210
6211 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6212
6213 * g-pehage.adb (Initialize): Fix off-by-one error.
6214
6215 2009-04-16 Tristan Gingold <gingold@adacore.com>
6216
6217 * init.c: Detect real stack overflow on Darwin.
6218
6219 * system-darwin-x86.ads: Use stack probing on darwin x86.
6220
6221 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6222
6223 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
6224 take the address of an intrinsic subprogram.
6225
6226 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6227
6228 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
6229 for the targets where GNAT.Traceback.Symbolic is not supported.
6230
6231 2009-04-16 Vincent Celier <celier@adacore.com>
6232
6233 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
6234
6235 * g-trasym.ads: Update comments.
6236
6237 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6238
6239 * tracebak.c (STOP_FRAME): Verify validity of the current address
6240 before dereferencing.
6241
6242 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6243
6244 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
6245 the original location of the index expressions and the index subtypes,
6246 to prevent spurious out-of-scope references in gigi.
6247
6248 2009-04-16 Tristan Gingold <gingold@adacore.com>
6249
6250 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
6251 Add support for stack checking on darwin.
6252
6253 2009-04-16 Vincent Celier <celier@adacore.com>
6254
6255 * prj-attr.adb: New attribute Runtime_Source_Dir
6256
6257 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
6258 attribute Runtime_Source_Dir.
6259 (Check_Naming_Schemes): Give default values to out parameters to avoid
6260 invalid data.
6261
6262 * prj.ads (Language_Config): New component Runtime_Source_Dir
6263
6264 * snames.ads-tmpl: New standard name Runtime_Source_Dir
6265
6266 2009-04-16 Pascal Obry <obry@adacore.com>
6267
6268 * adaint.h, adaint.c (__gnat_rmdir): New routine.
6269 Simple wrapper routines used to convert to proper encoding on
6270 Windows.
6271
6272 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
6273
6274 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
6275 twice.
6276
6277 2009-04-16 Pascal Obry <obry@adacore.com>
6278
6279 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
6280
6281 2009-04-16 Thomas Quinot <quinot@adacore.com>
6282
6283 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
6284 integrated preprocessor.
6285
6286 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
6287 (Initialize): Split into two subprograms, Initialize (to be called
6288 prior to compiler command line processing) and Setup_Hooks (to be called
6289 later on when the first source file is loaded).
6290
6291 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
6292 Add call to Prep.Initialize.
6293
6294 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
6295 to Prep.Setup_Hooks.
6296
6297 2009-04-16 Pascal Obry <obry@adacore.com>
6298
6299 * adaint.h, adaint.c (__gnat_chdir): New routine.
6300 Simple wrapper routines used to convert to proper encoding on
6301 Windows.
6302
6303 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6304
6305 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6306
6307 2009-04-16 Quentin Ochem <ochem@adacore.com>
6308
6309 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6310 of Source.Init.
6311
6312 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6313
6314 * a-convec.ads (Is_Empty): Mark inline.
6315
6316 2009-04-16 Nicolas Roche <roche@adacore.com>
6317
6318 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6319
6320 2009-04-16 Thomas Quinot <quinot@adacore.com>
6321
6322 * prepcomp.adb: Minor reformatting
6323
6324 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6325
6326 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6327 Access_Subprogram types can also be imported.
6328 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6329 names.
6330
6331 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6332
6333 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6334 preserve homonym chain when the declaration is rewritten into a
6335 renaming declaration, in order to preserve visibility structure.
6336
6337 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
6338
6339 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6340 taken into account for VM targets.
6341
6342 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6343
6344 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6345 Year_Week_In_Year.
6346 (Year_Week_In_Year): New routine which contains the original code from
6347 Week_In_Year. Add the missing special case for January 1st falling on
6348 a Monday.
6349
6350 2009-04-16 Thomas Quinot <quinot@adacore.com>
6351
6352 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6353 actual type, use the base type to build the To_Any function.
6354 (Build_From_Any_Function): Remove junk, useless subtype conversion.
6355
6356 2009-04-16 Thomas Quinot <quinot@adacore.com>
6357
6358 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6359 restrict.adb: Minor code reorganization (use
6360 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6361
6362 2009-04-16 Bob Duff <duff@adacore.com>
6363
6364 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6365 unused.
6366
6367 2009-04-16 Thomas Quinot <quinot@adacore.com>
6368
6369 * sem_ch4.adb: Minor reformatting
6370
6371 * adaint.c: Remove junk duplicated code.
6372
6373 * sem_ch3.adb: Minor reformatting
6374
6375 * exp_dist.adb: Minor comment rewording
6376
6377 2009-04-16 Robert Dewar <dewar@adacore.com>
6378
6379 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
6380 used together.
6381
6382 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6383
6384 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
6385 usable before calling Add_One_Interp, to resolve spurious ambiguities.
6386
6387 2009-04-16 Robert Dewar <dewar@adacore.com>
6388
6389 * Make-lang.in: Add entries for s-conca?.o
6390
6391 * Makefile.rtl: Add entries for s-conca?
6392
6393 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6394 of concatenation expansion
6395
6396 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
6397 string cases instead of expanding assignments inline.
6398
6399 * opt.ads (Optimize_Size): New flag
6400
6401 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
6402 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
6403 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
6404 s-conca9.adb, s-conca9.ads: New file.
6405
6406 2009-04-16 Robert Dewar <dewar@adacore.com>
6407
6408 * exp_ch6.adb: Add comments
6409
6410 * rtsfind.ads: Add entries for s-conca? routines
6411
6412 2009-04-16 Arnaud Charlet <charlet@adacore.com>
6413
6414 * gcc-interface/Make-lang.in: Update dependencies.
6415
6416 * gcc-interface/Makefile.in: Update translation for vms.
6417
6418 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6419
6420 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
6421 and made global, to be used when installing parents of a child
6422 instance, to provide mappings for entities declared in formal packages
6423 of ancestor units. Now called from Install_Formal_Packages.
6424
6425 2009-04-16 Doug Rupp <rupp@adacore.com>
6426
6427 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
6428 notation for clarity.
6429
6430 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6431 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
6432 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
6433 (Initialize): Initialize Known_Tasks with Environment task.
6434
6435 * s-taskin.ads (Task_States): Move new states to end for the sake of
6436 GDB compatibility.
6437
6438 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
6439
6440 2009-04-16 Ed Schonberg <schonberg@adacore.com>
6441
6442 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
6443 operation has an inline pragma, propagate the flag to the internal
6444 unprotected subprogram.
6445
6446 2009-04-16 Doug Rupp <rupp@adacore.com>
6447
6448 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
6449 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
6450 s-taprop-hpux-dce.adb, s-taprop-posix.adb
6451 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
6452
6453 * s-taprop-vms.adb (Enter_Task): Likewise.
6454 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
6455
6456 * s-tassta.adb (Activate_Tasks): After task creation set state to
6457 Activating, vice Runnable. Initialize Known_Tasks, moved here from
6458 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
6459 Set state to Runnable after above.
6460 (Task_Wrapper): Set Debug_Event_Run. In exception block set
6461 Debug_Event_Terminated.
6462
6463 * s-taskin.ads (Task_States): Add new states Activiting and
6464 Activator_Delay_Sleep.
6465 (Bit_Array, Debug_Event_Array): New types.
6466 (Global_Task_Debug_Event_Set: New flag.
6467 (Common_ATCB): New field Debug_Events.
6468
6469 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
6470
6471 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
6472 Activator_Sleep.
6473
6474 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
6475 Activating and when Acceptor_Delay_Sleep.
6476
6477 * s-tasdeb.ads: Add constants for Debug_Events.
6478 (Debug_Event_Kind_Type): New subtype.
6479 (Signal_Debug_Event): New subprogram.
6480
6481 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
6482
6483 2009-04-16 Thomas Quinot <quinot@adacore.com>
6484
6485 * sem_elim.adb: Minor reformatting
6486
6487 * freeze.adb: Minor reformatting
6488
6489 * exp_ch4.adb: Minor reformatting
6490
6491 2009-04-16 Emmanuel Briot <briot@adacore.com>
6492
6493 * prj-nmsc.adb (Path_Name_Of): fix memory leak
6494
6495 2009-04-16 Robert Dewar <dewar@adacore.com>
6496
6497 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
6498
6499 2009-04-16 Vincent Celier <celier@adacore.com>
6500
6501 * fmap.adb (Initialize): Show the current line when the mapping file
6502 is detected as "incorrectly formatted".
6503
6504 2009-04-16 Robert Dewar <dewar@adacore.com>
6505
6506 * sem_ch12.adb: Minor reformatting
6507
6508 * sem_ch5.adb: Minor comment addition
6509
6510 * sem_util.adb: Minor reformatting
6511
6512 * sinput-p.adb: Minor reformatting
6513 Add missing pragma Warnings (On)
6514
6515 2009-04-16 Ed Falis <falis@adacore.com>
6516
6517 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
6518
6519 2009-04-16 Vincent Celier <celier@adacore.com>
6520
6521 * ali-util.adb: Minor comment spelling error fix
6522
6523 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
6524
6525 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
6526 generate an assignment loop in case of overlap.
6527
6528 2009-04-16 Olivier Hainque <hainque@adacore.com>
6529
6530 * gnat_ugn.texi (gnatmem description): Make it explicit that
6531 gnatmem is designed to work in association with static runtime
6532 library only.
6533
6534 2009-04-16 Thomas Quinot <quinot@adacore.com>
6535
6536 * sem_type.adb: Minor reformatting
6537
6538 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
6539
6540 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
6541 concerning return codes of gettimeofday and return value check.
6542
6543 2009-04-16 Ed Falis <falis@adacore.com>
6544
6545 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
6546 body can be renaming of imported routines.
6547
6548 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
6549
6550 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
6551 targeted fashion.
6552
6553 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6554
6555 * exp_ch9.adb: Comment improvements.
6556 (Build_Entry_Family_Name): Add parentheses around the index of a entry
6557 family member.
6558
6559 2009-04-15 Bob Duff <duff@adacore.com>
6560
6561 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
6562 "while X /= null loop" where X is unchanged inside the loop. We were
6563 not warning in this case, because of the pointers -- we feared that the
6564 loop variable could be updated via a pointer, if there are any pointers
6565 around the place. But that is impossible in this case.
6566
6567 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
6568 the case of dereferences. In X.all, X cannot be an l-value. We now
6569 catch that case (and implicit dereferences, too).
6570
6571 2009-04-15 Vincent Celier <celier@adacore.com>
6572
6573 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
6574
6575 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6576
6577 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
6578 From code reading.
6579 (Analyze_Package_Instantiation): If generic unit in child instance is
6580 the same as generic unit in parent instance, look for an outer homonym
6581 to locate the desired generic.
6582
6583 2009-04-15 Bob Duff <duff@adacore.com>
6584
6585 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
6586 warnings unless the loop comes from source, because checking generated
6587 loops is a waste of time, and makes it harder to debug
6588 Check_Infinite_Loop_Warning.
6589
6590 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
6591 tested in the while loop is a renaming, do not warn. Otherwise, we get
6592 false alarms, because it's usually renaming something that we can't
6593 deal with (an indexed component, a global variable, ...).
6594
6595 * gnat_rm.texi: Fix typo
6596
6597 2009-04-15 Thomas Quinot <quinot@adacore.com>
6598
6599 * sem_ch6.adb: Minor reformatting
6600
6601 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6602
6603 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
6604 immediate parent of the controlled function call is a component
6605 association.
6606
6607 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6608
6609 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
6610 corresponding class-wide type is also in use.
6611
6612 2009-04-15 Thomas Quinot <quinot@adacore.com>
6613
6614 * frontend.adb: Minor comment fix
6615
6616 2009-04-15 Robert Dewar <dewar@adacore.com>
6617
6618 * gnatchop.adb (BOM_Length): New global variable
6619 (Write_Unit): Add new parameter Write_BOM
6620 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
6621 to Write_Unit
6622
6623 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
6624
6625 2009-04-15 Geert Bosch <bosch@adacore.com>
6626
6627 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
6628 (Backend_Overflow_Checks): Set to True.
6629
6630 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6631
6632 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
6633 keyword is given in a record extension.
6634
6635 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6636
6637 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
6638 of a controlled function call in the context of a record aggregate.
6639 This does not apply to array aggregates since the call will be expanded
6640 into assignments.
6641
6642 2009-04-15 Ed Falis <falis@adacore.com>
6643
6644 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
6645 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
6646 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
6647 s-osinte-vxworks* and s-vxwext*.
6648
6649 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6650
6651 * gcc-interface/Make-lang.in: Update dependencies.
6652
6653 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
6654 and s-vxwext*.
6655
6656 2009-04-15 Robert Dewar <dewar@adacore.com>
6657
6658 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
6659 of node for location for warning messages.
6660
6661 * gnatchop.adb: Minor reformatting
6662
6663 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6664
6665 * exp_ch6.adb: additional guard for renaming declarations for in
6666 parameters of an array type.
6667
6668 2009-04-15 Robert Dewar <dewar@adacore.com>
6669
6670 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
6671 in case they were rewritten by expander (Force_Evaluation).
6672
6673 * targparm.adb (Get_Target_Parameters): Correct check for
6674 Suppress_Exception_Locations.
6675
6676 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6677
6678 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
6679 inlined is of an array type that is not bit-packed, use a renaming
6680 declaration to capture its value, rather than a constant declaration.
6681
6682 2009-04-15 Robert Dewar <dewar@adacore.com>
6683
6684 * rtsfind.adb: Minor reformatting.
6685
6686 2009-04-15 Emmanuel Briot <briot@adacore.com>
6687
6688 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
6689 Restore, and free the saved context.
6690
6691 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6692
6693 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
6694 for illegal private extension from a synchronized interface parent in
6695 front of check for illegal limited extension so that limited extension
6696 from a synchronized interface will be rejected.
6697 (Check_Ifaces): Check that a private extension that has a synchronized
6698 interface as a progenitor must be explicitly declared synchronized.
6699 Also check that a record extension cannot derive from a synchronized
6700 interface.
6701
6702 2009-04-15 Pascal Obry <obry@adacore.com>
6703
6704 * adaint.h (__gnat_unlink): Add spec.
6705 (__gnat_rename): Likewise.
6706
6707 2009-04-15 Vincent Celier <celier@adacore.com>
6708
6709 * prj-nmsc.adb: Minor spelling error corrections in error messages
6710
6711 2009-04-15 Robert Dewar <dewar@adacore.com>
6712
6713 * sinfo.ads: Minor comment update
6714
6715 * opt.ads: Minor comment updates
6716
6717 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
6718 modular type.
6719
6720 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6721
6722 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
6723 that generates the code needed to update a dispatch table when a
6724 primitive operation is declared with a subprogram body without previous
6725 spec. Insertion of the generated code is responsibility of the caller.
6726 (Make_DT): When building static tables, append the code created by
6727 Register_Primitive to update a secondary table after it has been
6728 constructed.
6729
6730 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
6731
6732 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
6733 on an overriding operation that implements an interface operation only
6734 if not building static dispatch tables.
6735
6736 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6737
6738 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
6739 does not cause overflow when converted to Duration. Use the safe value
6740 as the maximum allowable time delay..
6741
6742 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
6743
6744 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
6745 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
6746 translated to "-j 2".
6747
6748 2009-04-15 Bob Duff <duff@adacore.com>
6749
6750 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
6751 with_clauses, to avoid code duplication. Change this processing so we
6752 always add a with_clause on the main unit if needed.
6753
6754 2009-04-15 Pascal Obry <obry@adacore.com>
6755
6756 Add support for Win32 native encoding for delete/rename routines.
6757
6758 * adaint.c (__gnat_unlink): New routine.
6759 (__gnat_rename): New routine.
6760 Simple wrapper routines used to convert to proper encoding on
6761 Windows.
6762
6763 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
6764 call to the C library.
6765
6766 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
6767
6768 2009-04-15 Robert Dewar <dewar@adacore.com>
6769
6770 * s-tassta.adb: Minor reformatting
6771
6772 2009-04-15 Robert Dewar <dewar@adacore.com>
6773
6774 * frontend.adb (Frontend): Set proper default for
6775 Warn_On_Non_Local_Exception.
6776
6777 * opt.ads (Exception_Handler_Encountered): New flag
6778 (No_Warn_On_Non_Local_Exception): New flag
6779
6780 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
6781
6782 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6783 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
6784
6785 2009-04-15 Cyrille Comar <comar@adacore.com>
6786
6787 * s-tassta.adb, a-exextr.adb, a-elchha.adb
6788 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
6789 message when exception traces are active since it would generate
6790 redundant information.
6791 (Exception_Traces.Notify_Exception): put message output by a critical
6792 section to avoid unsynchronized output.
6793 (Trace_Unhandled_Exception_In_Task): put message output by a critical
6794 section to avoid unsynchronized output.
6795
6796 2009-04-15 Emmanuel Briot <briot@adacore.com>
6797
6798 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
6799 (Free): New subprogram.
6800
6801 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6802
6803 * a-calend.adb: Add new constant Nanos_In_Four_Years.
6804 (Formatting_Operations.Time_Of): Change the way four year chunks of
6805 nanoseconds are added to the intermediate result.
6806
6807 2009-04-15 Nicolas Setton <setton@adacore.com>
6808
6809 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
6810 does not need to wait for a carriage return.
6811
6812 2009-04-15 Tristan Gingold <gingold@adacore.com>
6813
6814 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
6815 is set.
6816
6817 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6818
6819 * freeze.adb (Freeze_Entity): improve error message for improper use of
6820 incomplete types.
6821 Diagnose additional illegal uses of incomplete types in formal parts.
6822 appearing in formal parts.
6823
6824 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
6825
6826 2009-04-15 Robert Dewar <dewar@adacore.com>
6827
6828 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
6829
6830 2009-04-15 Nicolas Roche <roche@adacore.com>
6831
6832 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
6833 current thread.
6834
6835 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
6836
6837 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
6838
6839 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6840
6841 * sem_ch4.adb: improve error message on exponentiation.
6842
6843 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
6844
6845 * a-calend.adb: Move constant Epoch_Offset from package
6846 Conversion_Operations to top level.
6847 (Delay_Operations.To_Duration): Define a constant which represents
6848 "end of time" and use it as a guard against very distant delay dates.
6849 Protect the code against overflow when performing the origin shift to
6850 Unix time.
6851
6852 2009-04-15 Robert Dewar <dewar@adacore.com>
6853
6854 * sem_prag.adb: Minor reformatting.
6855
6856 * sem_type.adb: Minor reformatting
6857
6858 2009-04-15 Javier Miranda <miranda@adacore.com>
6859
6860 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
6861 support to check eliminated subprograms.
6862
6863 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
6864
6865 * sem_elim.adb (Set_Eliminated): Add support for elimination of
6866 dispatching subprograms.
6867
6868 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
6869 operations. Initialize with "null" the slots of eliminated dispaching
6870 primitives.
6871 (Write_DT): Add output for eliminated primitives.
6872
6873 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
6874
6875 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6876
6877 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
6878 the second is redundant, regardless of scopes.
6879
6880 2009-04-15 Vincent Celier <celier@adacore.com>
6881
6882 * prj-nmsc.adb (Get_Directories): Check for sources before checking
6883 the object directory as when there are no sources, they may not be any
6884 object directory.
6885
6886 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
6887 directory, when there are no exec directory.
6888
6889 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6890
6891 * sem_type.adb (Remove_Conversions): In order to resolve spurious
6892 ambiguities, refine removal of universal interpretations from complex
6893 expressions with literal arguments, when some numeric operators have
6894 been declared abstract.
6895
6896 2009-04-15 Ed Falis <falis@adacore.com>
6897
6898 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
6899 and backward compatibility for targets using probing for stack overflow
6900
6901 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6902
6903 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
6904 after any declaration, including renaming declarations.
6905
6906 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6907
6908 * gcc-interface/Make-lang.in: Update dependencies.
6909
6910 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
6911 Update xenomai target pairs.
6912
6913 2009-04-15 Javier Miranda <miranda@adacore.com>
6914
6915 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
6916
6917 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
6918 functions returning anonymous access to class-wide limited types. Mark
6919 also the containing scope as a task master.
6920
6921 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
6922 limited-withed packages. Required to restore their visibility after
6923 processing packages associated with implicit with-clauses.
6924
6925 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
6926 associated with return statements because this work is now done by
6927 Check_Anonymous_Return.
6928 (Build_Master): Code cleanup.
6929
6930 2009-04-15 Thomas Quinot <quinot@adacore.com>
6931
6932 * sem_warn.ads: Minor reformatting
6933
6934 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6935
6936 * sem_ch3.adb: better error message for illegal interfaces
6937
6938 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
6939 formal is an incomplete type from a limited_with clause.
6940
6941 2009-04-15 Vincent Celier <celier@adacore.com>
6942
6943 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
6944 Externally_Built indicating if the project is externally built. If it
6945 is, and --subdirs is specified, but the subdir does not exist, look
6946 for the specified directory, without the subdir.
6947
6948 2009-04-15 Gary Dismukes <dismukes@adacore.com>
6949
6950 * a-tasatt.adb: Fix typo, plus minor reformatting
6951
6952 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
6953
6954 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
6955
6956 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6957
6958 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
6959 private extension whose parent is a synchronized interface carries an
6960 explicit synchronized keyword.
6961
6962 2009-04-15 Thomas Quinot <quinot@adacore.com>
6963
6964 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
6965 instantiate generic shared object package with the corresponding
6966 record type.
6967
6968 2009-04-15 Arnaud Charlet <charlet@adacore.com>
6969
6970 * system-linux-sparc.ads: Remove obsolete entries.
6971
6972 2009-04-15 Thomas Quinot <quinot@adacore.com>
6973
6974 * s-tasuti.ads: Add ??? comment
6975
6976 2009-04-15 Ed Schonberg <schonberg@adacore.com>
6977
6978 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
6979 type even if the designated type comes from a limited_with clause, to
6980 ensure that the symbol for the finalization list of the access type is
6981 created.
6982
6983 2009-04-10 Robert Dewar <dewar@adacore.com>
6984
6985 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
6986 for warning suppression.
6987
6988 2009-04-10 Ed Schonberg <schonberg@adacore.com>
6989
6990 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
6991 identical, there is no redudancy to check.
6992
6993 2009-04-10 Gary Dismukes <dismukes@adacore.com>
6994
6995 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
6996 calls initializing SS_Allocator (which is initialized in following
6997 code).
6998 (Expand_Simple_Function_Return): Add comment about False value for
6999 Comes_From_Source on secondary-stack allocator.
7000
7001 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
7002 (Build_Entry_Name): Add comment.
7003
7004 2009-04-10 Robert Dewar <dewar@adacore.com>
7005
7006 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
7007
7008 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
7009 bound tested, since this is now done more generally in Sem_Res.
7010
7011 * sem_res.adb (Resolve_Comparison_Op): Add call to
7012 Check_Lower_Bound_Tested.
7013 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
7014
7015 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
7016 (Low_Bound_Tested): New name for Low_Bound_Known flag
7017
7018 * exp_ch5.adb: Minor reformatting
7019
7020 * exp_ch4.adb:
7021 Add comments on copying the Comes_From_Source flag for allocators
7022
7023 * sinfo.ads:
7024 Add comments on copying the Comes_From_Source flag for allocators
7025
7026 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
7027 Comes_From_Source flag from old allocator to new one.
7028
7029 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7030
7031 * sem_ch6.ads: Address missing documentation query
7032
7033 2009-04-10 Vincent Celier <celier@adacore.com>
7034
7035 * prj-attr.adb:
7036 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
7037 and Response_File_Switches.
7038
7039 * prj-nmsc.adb (Process_Linker): Process new attributes
7040 Max_Command_Line_Length, Response_File_Format and
7041 Response_File_Switches.
7042
7043 * prj.ads (Response_File_Format): New enumeration type
7044 (Project_Configuration): New componants Max_Command_Line_Length,
7045 Resp_File_Format and Resp_File_Options.
7046
7047 * snames.ads-tmpl: Add new standard names for linking response files
7048 for gprbuild: GNU, None, Object_List, Option_List,
7049 Max_Command_Line_Length, Response_File_Format and
7050 Response_File_Switches.
7051
7052 2009-04-10 Geert Bosch <bosch@adacore.com>
7053
7054 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
7055 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
7056 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
7057 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
7058 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
7059 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
7060 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
7061 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
7062 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
7063 system-vxworks-arm.ads, system-vxworks-m68k.ads,
7064 system-vxworks-mips.ads, system-vxworks-ppc.ads,
7065 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
7066 (Backend_Overflow_Checks): Set to True.
7067
7068 2009-04-10 Thomas Quinot <quinot@adacore.com>
7069
7070 * exp_attr.adb: Minor reformatting
7071
7072 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7073
7074 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
7075 analyze the expression for a postcondition, even if the compiler mode
7076 is Generate_Code.
7077
7078 2009-04-10 Robert Dewar <dewar@adacore.com>
7079
7080 * sem_aux.adb: Minor reformatting
7081
7082 2009-04-10 Ed Falis <falis@adacore.com>
7083
7084 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
7085
7086 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
7087
7088 2009-04-10 Thomas Quinot <quinot@adacore.com>
7089
7090 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
7091 undocumented formal.
7092 Minor reformatting
7093
7094 * a-direio.ads: Fix typo in comment
7095
7096 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
7097 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
7098 Use uniform phrasing for comment at start of subprogram body.
7099
7100 * xsnamest.adb: Add note to explain why we use specific names for the
7101 newly generated files instead of generating snames.{ads,adb,h} directly
7102
7103 2009-04-10 Sergey Rybin <rybin@adacore.com>
7104
7105 * vms_data.ads:
7106 Add qualifier for new gnatstub option '--no-exception'
7107
7108 * gnat_ugn.texi:
7109 Add the description of the new gnatstub option '--no-exception'
7110
7111 2009-04-10 Robert Dewar <dewar@adacore.com>
7112
7113 * rtsfind.adb: Minor reformatting
7114
7115 2009-04-10 Thomas Quinot <quinot@adacore.com>
7116
7117 * sem_disp.adb: Minor reformatting.
7118 Add comment pointing to RM clause for the case of warning against a
7119 (failed) attempt at declaring a primitive operation elsewhere than in a
7120 package spec.
7121
7122 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7123
7124 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
7125 an actual for a previous formal package of the current instance.
7126
7127 2009-04-10 Bob Duff <duff@adacore.com>
7128
7129 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
7130 them first, rather than on the extended main unit.
7131
7132 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7133
7134 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
7135 specification of full view carries a null exclusion indicator, create
7136 an itype for it, to check for conformance with partial view.
7137
7138 2009-04-10 Bob Duff <duff@adacore.com>
7139
7140 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
7141
7142 * rtsfind.adb: Minor comment changes, and remove useless code.
7143
7144 * sinfo.ads: Add ??? comment.
7145
7146 2009-04-10 Vincent Celier <celier@adacore.com>
7147
7148 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
7149
7150 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7151
7152 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
7153 type is a synchronized type, retrieve tag information from the
7154 corresponding record, which has the dispatch table link.
7155
7156 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
7157
7158 * g-comlin.adb (Group_Analysis): Take care of switches that might be
7159 decomposed afterwards, but are present as-is in the command line
7160 configuration, and thus should be kept as-is.
7161
7162 2009-04-10 Robert Dewar <dewar@adacore.com>
7163
7164 * gnat_rm.texi: Document that postconditions are tested on implicit
7165 returns.
7166
7167 * sem_aux.adb: Minor reformatting
7168
7169 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7170
7171 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
7172 setting Etype.
7173
7174 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
7175 Null_Exclusion_In_Return_Present when an access-to-function type has a
7176 result type with an explicit not null.
7177
7178 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
7179 given on the result type, then create a null-excluding itype for the
7180 function.
7181
7182 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
7183 the case where a null exclusion is imposed on a named access type.
7184 (Analyze_Subprogram_Specification): Push and pop the scope of the
7185 function around the call to Analyze_Return_Type in the case of no
7186 formals, for consistency with handling when formals are present
7187 (Process_Formals does this). Ensures that any itype created for the
7188 return type will be associated with the proper scope.
7189
7190 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
7191 exclusion is given on a generic function's result type, then create a
7192 null-excluding itype for the generic function.
7193 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
7194 for an actual for a formal in object according to the setting on the
7195 formal. Ensures null exclusion checks are done when the association is
7196 elaborated.
7197
7198 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
7199 N_Access_Function_Definition.
7200
7201 * sinfo.adb: Add Get_ and Set_ operations for
7202 Null_Exclusion_In_Return_Present.
7203
7204 2009-04-10 Bob Duff <duff@adacore.com>
7205
7206 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
7207 call to the _Postconditions procedure in the case of implicit returns
7208 from analysis to expansion. This eliminates some duplicated code. Use
7209 the Postcondition_Proc to find the identity of this procedure during
7210 expansion.
7211
7212 2009-04-10 Robert Dewar <dewar@adacore.com>
7213
7214 * sem_ch6.adb: Minor code clean up.
7215
7216 * einfo.ads, sem_attr.adb: Minor comment fixes.
7217
7218 2009-04-10 Robert Dewar <dewar@adacore.com>
7219
7220 * sem_ch8.adb: Minor reformatting
7221
7222 2009-04-10 Robert Dewar <dewar@adacore.com>
7223
7224 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
7225 procedures.
7226
7227 * sem_ch6.adb: Minor code clean up.
7228
7229 2009-04-10 Robert Dewar <dewar@adacore.com>
7230
7231 * mlib-tgt-specific-xi.adb: Minor reformatting
7232
7233 2009-04-10 Bob Duff <duff@adacore.com>
7234
7235 * einfo.ads: Minor comment fixes
7236
7237 2009-04-10 Vincent Celier <celier@adacore.com>
7238
7239 * snames.ads-tmpl: Remove names that are no longer used in the
7240 Project Manager.
7241 Mark specifically those that are used only in gprbuild
7242
7243 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
7244
7245 * init.c: Adjust EH support code on Alpha/Tru64.
7246
7247 2009-04-10 Bob Duff <duff@adacore.com>
7248
7249 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
7250 procedure on every path that could return implicitly (not via a return
7251 statement) from a procedure.
7252
7253 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7254
7255 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
7256 valid scope for a task declarations and therefore for a master id.
7257
7258 2009-04-10 Robert Dewar <dewar@adacore.com>
7259
7260 * sem_aux.adb: Minor reformatting
7261
7262 2009-04-10 Vincent Celier <celier@adacore.com>
7263
7264 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
7265 True.
7266 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
7267 (Set_Obsolescent_Check): New procedure to change the value of
7268 Obsolescent_Check_Flag.
7269
7270 * scn.ads (Set_Obsolescent_Check): New procedure to control
7271 Obsolescent_Check.
7272
7273 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
7274 obsolescent features while preprocessing.
7275
7276 2009-04-10 Thomas Quinot <quinot@adacore.com>
7277
7278 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
7279 generated files on all platforms.
7280
7281 2009-04-10 Robert Dewar <dewar@adacore.com>
7282
7283 * sem_aux.adb: Minor reformatting
7284
7285 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7286
7287 * sem_ch3.adb (Access_Definition): Handle properly the case of a
7288 protected function with formals that returns an anonymous access type.
7289
7290 2009-04-10 Thomas Quinot <quinot@adacore.com>
7291
7292 * sem_disp.adb: Minor reformatting
7293
7294 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
7295
7296 * seh_init.c: Do not use the 32-bit specific implementation of
7297 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
7298 version TBD).
7299
7300 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7301
7302 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
7303 a '/' at the end so we better use the complete target name to determine
7304 whether it is a PowerPC 55xx target.
7305
7306 2009-04-10 Thomas Quinot <quinot@adacore.com>
7307
7308 * sem_eval.adb: Minor reformatting
7309
7310 2009-04-10 Thomas Quinot <quinot@adacore.com>
7311
7312 * snames.h, snames.ads, snames.adb: Remove files, now generated from
7313 templates.
7314
7315 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7316 above.
7317
7318 * xsnamest.adb: New file.
7319
7320 * gcc-interface/Make-lang.in: New target for automated generation of
7321 snames.ads, snames.adb and snames.h
7322
7323 2009-04-10 Tristan Gingold <gingold@adacore.com>
7324
7325 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7326 avoid compile time warnings.
7327 Do not add gcc/config in include search list while compiling the RTS.
7328 Pragma Thread_Local_Storage is available on any target.
7329
7330 2009-04-10 Bob Duff <duff@adacore.com>
7331
7332 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7333
7334 2009-04-10 Tristan Gingold <gingold@adacore.com>
7335
7336 * init.c: Install signal handler on Darwin.
7337
7338 2009-04-10 Robert Dewar <dewar@adacore.com>
7339
7340 * sem_prag.adb: Minor reformatting
7341
7342 * exp_util.adb (Make_Non_Empty_Check): New function
7343 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7344 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7345
7346 2009-04-10 Arnaud Charlet <charlet@adacore.com>
7347
7348 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7349
7350 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7351
7352 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7353 tool prefix for AVR and PowerPC 55xx targets.
7354
7355 2009-04-10 Robert Dewar <dewar@adacore.com>
7356
7357 * sem_warn.adb (Within_Postcondition): New function
7358 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7359
7360 2009-04-10 Robert Dewar <dewar@adacore.com>
7361
7362 * sem_warn.adb: Minor reformatting
7363
7364 * make.adb: Minor reformatting.
7365
7366 2009-04-10 Gary Dismukes <dismukes@adacore.com>
7367
7368 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
7369 entity and the scope is a subprogram, retrieve the Sloc of the
7370 subprogram's body rather than using the sloc of the spec, for better
7371 line-stepping behavior in gdb.
7372 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
7373 controller, use the Sloc of the first declaration of the containing list
7374 rather than that of the node that triggered creation of the list
7375 controller.
7376
7377 2009-04-10 Vincent Celier <celier@adacore.com>
7378
7379 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
7380 to avoid gcc warning.
7381
7382 2009-04-10 Robert Dewar <dewar@adacore.com>
7383
7384 * g-comlin.adb: Add ??? comment
7385
7386 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7387
7388 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
7389 unreferenced entities for a package with no visible declarations.
7390
7391 2009-04-10 Robert Dewar <dewar@adacore.com>
7392
7393 * exp_ch9.adb: Minor reformatting
7394
7395 2009-04-10 Thomas Quinot <quinot@adacore.com>
7396
7397 * sem_prag.adb: Minor reformatting
7398
7399 2009-04-10 Vincent Celier <celier@adacore.com>
7400
7401 * prj-nmsc.adb:
7402 (Check_Library_Attributes): For a project qualified as a library project
7403 that is not a library project, indicate in the error message which
7404 attributes are missing (Library_Dir and/or Library_Name).
7405
7406 2009-04-10 Bob Duff <duff@adacore.com>
7407
7408 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
7409 generated nodes, because it might confuse various circuits in the FE.
7410
7411 2009-04-10 Ed Schonberg <schonberg@adacore.com>
7412
7413 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
7414 of pragma. It will be recopied and analyzed when used in call to
7415 Create_Task.
7416
7417 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
7418 initialization operations and recognize use of it in procedure calls
7419 within init_procs.
7420
7421 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
7422 argument, because it may have side-effects.
7423
7424 * exp_ch2.adb: Remove obsolete comments on default functions
7425
7426 2009-04-10 Jose Ruiz <ruiz@adacore.com>
7427
7428 * adaint.c (RTX section): Do for RTX the same thing as we do for
7429 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
7430
7431 2009-04-10 Robert Dewar <dewar@adacore.com>
7432
7433 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
7434
7435 * sem_res.adb (Resolve_Call): Fix test for
7436 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
7437 a non-dynamic scope).
7438
7439 2009-04-10 Robert Dewar <dewar@adacore.com>
7440
7441 * make.adb: Add comment.
7442 Minor reformatting
7443
7444 2009-04-10 Nicolas Setton <setton@adacore.com>
7445
7446 * s-osprim-darwin.adb: New file.
7447
7448 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
7449
7450 2009-04-10 Thomas Quinot <quinot@adacore.com>
7451
7452 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
7453
7454 2009-04-09 Nick Clifton <nickc@redhat.com>
7455
7456 * adadecode.h: Change copyright header to refer to version
7457 3 of the GNU General Public License with version 3.1 of the
7458 GCC Runtime Library Exception and to point readers at the
7459 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
7460 page.
7461 * 9drpc.adb: Likewise.
7462 * a-assert.adb: Likewise.
7463 * a-astaco.adb: Likewise.
7464 * a-calari.adb: Likewise.
7465 * a-calcon.adb: Likewise.
7466 * a-calcon.ads: Likewise.
7467 * a-caldel.ads: Likewise.
7468 * a-calend-vms.adb: Likewise.
7469 * a-calend-vms.ads: Likewise.
7470 * a-calend.adb: Likewise.
7471 * a-calend.ads: Likewise.
7472 * a-calfor.adb: Likewise.
7473 * a-catizo.adb: Likewise.
7474 * a-cdlili.adb: Likewise.
7475 * a-cdlili.ads: Likewise.
7476 * a-cgaaso.adb: Likewise.
7477 * a-cgaaso.ads: Likewise.
7478 * a-cgarso.adb: Likewise.
7479 * a-cgcaso.adb: Likewise.
7480 * a-chacon.adb: Likewise.
7481 * a-chacon.ads: Likewise.
7482 * a-chahan.adb: Likewise.
7483 * a-chahan.ads: Likewise.
7484 * a-chlat9.ads: Likewise.
7485 * a-chtgke.adb: Likewise.
7486 * a-chtgke.ads: Likewise.
7487 * a-chtgop.adb: Likewise.
7488 * a-chtgop.ads: Likewise.
7489 * a-chzla1.ads: Likewise.
7490 * a-chzla9.ads: Likewise.
7491 * a-cidlli.adb: Likewise.
7492 * a-cidlli.ads: Likewise.
7493 * a-cihama.adb: Likewise.
7494 * a-cihama.ads: Likewise.
7495 * a-cihase.adb: Likewise.
7496 * a-cihase.ads: Likewise.
7497 * a-ciorma.adb: Likewise.
7498 * a-ciorma.ads: Likewise.
7499 * a-ciormu.adb: Likewise.
7500 * a-ciormu.ads: Likewise.
7501 * a-ciorse.adb: Likewise.
7502 * a-ciorse.ads: Likewise.
7503 * a-clrefi.adb: Likewise.
7504 * a-clrefi.ads: Likewise.
7505 * a-cohama.adb: Likewise.
7506 * a-cohama.ads: Likewise.
7507 * a-cohase.adb: Likewise.
7508 * a-cohase.ads: Likewise.
7509 * a-cohata.ads: Likewise.
7510 * a-coinve.adb: Likewise.
7511 * a-coinve.ads: Likewise.
7512 * a-colien.adb: Likewise.
7513 * a-colien.ads: Likewise.
7514 * a-colire.adb: Likewise.
7515 * a-colire.ads: Likewise.
7516 * a-comlin.adb: Likewise.
7517 * a-comlin.ads: Likewise.
7518 * a-convec.adb: Likewise.
7519 * a-convec.ads: Likewise.
7520 * a-coorma.adb: Likewise.
7521 * a-coorma.ads: Likewise.
7522 * a-coormu.adb: Likewise.
7523 * a-coormu.ads: Likewise.
7524 * a-coorse.adb: Likewise.
7525 * a-coorse.ads: Likewise.
7526 * a-coprnu.adb: Likewise.
7527 * a-coprnu.ads: Likewise.
7528 * a-crbltr.ads: Likewise.
7529 * a-crbtgk.adb: Likewise.
7530 * a-crbtgk.ads: Likewise.
7531 * a-crbtgo.adb: Likewise.
7532 * a-crbtgo.ads: Likewise.
7533 * a-crdlli.adb: Likewise.
7534 * a-crdlli.ads: Likewise.
7535 * a-cwila1.ads: Likewise.
7536 * a-cwila9.ads: Likewise.
7537 * a-decima.adb: Likewise.
7538 * a-decima.ads: Likewise.
7539 * a-diocst.adb: Likewise.
7540 * a-diocst.ads: Likewise.
7541 * a-direct.adb: Likewise.
7542 * a-direct.ads: Likewise.
7543 * a-direio.adb: Likewise.
7544 * a-direio.ads: Likewise.
7545 * a-dirval-mingw.adb: Likewise.
7546 * a-dirval-vms.adb: Likewise.
7547 * a-dirval.adb: Likewise.
7548 * a-dirval.ads: Likewise.
7549 * a-dynpri.adb: Likewise.
7550 * a-einuoc.adb: Likewise.
7551 * a-einuoc.ads: Likewise.
7552 * a-elchha.adb: Likewise.
7553 * a-elchha.ads: Likewise.
7554 * a-envvar.adb: Likewise.
7555 * a-excach.adb: Likewise.
7556 * a-except-2005.adb: Likewise.
7557 * a-except-2005.ads: Likewise.
7558 * a-except.adb: Likewise.
7559 * a-except.ads: Likewise.
7560 * a-excpol-abort.adb: Likewise.
7561 * a-excpol.adb: Likewise.
7562 * a-exctra.adb: Likewise.
7563 * a-exctra.ads: Likewise.
7564 * a-exetim-mingw.adb: Likewise.
7565 * a-exetim-mingw.ads: Likewise.
7566 * a-exexda.adb: Likewise.
7567 * a-exexpr-gcc.adb: Likewise.
7568 * a-exexpr.adb: Likewise.
7569 * a-exextr.adb: Likewise.
7570 * a-exstat.adb: Likewise.
7571 * a-filico.adb: Likewise.
7572 * a-filico.ads: Likewise.
7573 * a-finali.adb: Likewise.
7574 * a-finali.ads: Likewise.
7575 * a-interr.ads: Likewise.
7576 * a-intnam-aix.ads: Likewise.
7577 * a-intnam-darwin.ads: Likewise.
7578 * a-intnam-dummy.ads: Likewise.
7579 * a-intnam-freebsd.ads: Likewise.
7580 * a-intnam-hpux.ads: Likewise.
7581 * a-intnam-irix.ads: Likewise.
7582 * a-intnam-linux.ads: Likewise.
7583 * a-intnam-lynxos.ads: Likewise.
7584 * a-intnam-mingw.ads: Likewise.
7585 * a-intnam-rtems.ads: Likewise.
7586 * a-intnam-solaris.ads: Likewise.
7587 * a-intnam-tru64.ads: Likewise.
7588 * a-intnam-vms.ads: Likewise.
7589 * a-intnam-vxworks.ads: Likewise.
7590 * a-intsig.adb: Likewise.
7591 * a-intsig.ads: Likewise.
7592 * a-ngcefu.adb: Likewise.
7593 * a-ngcoar.adb: Likewise.
7594 * a-ngcoty.adb: Likewise.
7595 * a-ngcoty.ads: Likewise.
7596 * a-ngelfu.adb: Likewise.
7597 * a-ngrear.adb: Likewise.
7598 * a-ngrear.ads: Likewise.
7599 * a-nudira.adb: Likewise.
7600 * a-nudira.ads: Likewise.
7601 * a-nuflra.adb: Likewise.
7602 * a-nuflra.ads: Likewise.
7603 * a-numaux-darwin.adb: Likewise.
7604 * a-numaux-darwin.ads: Likewise.
7605 * a-numaux-libc-x86.ads: Likewise.
7606 * a-numaux-vxworks.ads: Likewise.
7607 * a-numaux-x86.adb: Likewise.
7608 * a-numaux-x86.ads: Likewise.
7609 * a-numaux.ads: Likewise.
7610 * a-rbtgso.adb: Likewise.
7611 * a-rbtgso.ads: Likewise.
7612 * a-reatim.ads: Likewise.
7613 * a-retide.adb: Likewise.
7614 * a-retide.ads: Likewise.
7615 * a-rttiev.adb: Likewise.
7616 * a-rttiev.ads: Likewise.
7617 * a-secain.adb: Likewise.
7618 * a-secain.ads: Likewise.
7619 * a-sequio.adb: Likewise.
7620 * a-sequio.ads: Likewise.
7621 * a-shcain.adb: Likewise.
7622 * a-shcain.ads: Likewise.
7623 * a-siocst.adb: Likewise.
7624 * a-siocst.ads: Likewise.
7625 * a-slcain.adb: Likewise.
7626 * a-slcain.ads: Likewise.
7627 * a-ssicst.adb: Likewise.
7628 * a-ssicst.ads: Likewise.
7629 * a-stboha.adb: Likewise.
7630 * a-stmaco.ads: Likewise.
7631 * a-storio.adb: Likewise.
7632 * a-strbou.adb: Likewise.
7633 * a-strbou.ads: Likewise.
7634 * a-stream.ads: Likewise.
7635 * a-strfix.adb: Likewise.
7636 * a-strhas.adb: Likewise.
7637 * a-strmap.adb: Likewise.
7638 * a-strmap.ads: Likewise.
7639 * a-strsea.adb: Likewise.
7640 * a-strsea.ads: Likewise.
7641 * a-strsup.adb: Likewise.
7642 * a-strsup.ads: Likewise.
7643 * a-strunb.adb: Likewise.
7644 * a-strunb.ads: Likewise.
7645 * a-ststio.adb: Likewise.
7646 * a-ststio.ads: Likewise.
7647 * a-stunau.adb: Likewise.
7648 * a-stunau.ads: Likewise.
7649 * a-stunha.adb: Likewise.
7650 * a-stwibo.adb: Likewise.
7651 * a-stwibo.ads: Likewise.
7652 * a-stwifi.adb: Likewise.
7653 * a-stwiha.adb: Likewise.
7654 * a-stwima.adb: Likewise.
7655 * a-stwima.ads: Likewise.
7656 * a-stwise.adb: Likewise.
7657 * a-stwise.ads: Likewise.
7658 * a-stwisu.adb: Likewise.
7659 * a-stwisu.ads: Likewise.
7660 * a-stwiun.adb: Likewise.
7661 * a-stwiun.ads: Likewise.
7662 * a-stzbou.adb: Likewise.
7663 * a-stzbou.ads: Likewise.
7664 * a-stzfix.adb: Likewise.
7665 * a-stzhas.adb: Likewise.
7666 * a-stzmap.adb: Likewise.
7667 * a-stzmap.ads: Likewise.
7668 * a-stzsea.adb: Likewise.
7669 * a-stzsea.ads: Likewise.
7670 * a-stzsup.adb: Likewise.
7671 * a-stzsup.ads: Likewise.
7672 * a-stzunb.adb: Likewise.
7673 * a-stzunb.ads: Likewise.
7674 * a-suteio.adb: Likewise.
7675 * a-suteio.ads: Likewise.
7676 * a-swbwha.adb: Likewise.
7677 * a-swmwco.ads: Likewise.
7678 * a-swunau.adb: Likewise.
7679 * a-swunau.ads: Likewise.
7680 * a-swuwha.adb: Likewise.
7681 * a-swuwti.adb: Likewise.
7682 * a-swuwti.ads: Likewise.
7683 * a-sytaco.adb: Likewise.
7684 * a-sytaco.ads: Likewise.
7685 * a-szbzha.adb: Likewise.
7686 * a-szmzco.ads: Likewise.
7687 * a-szunau.adb: Likewise.
7688 * a-szunau.ads: Likewise.
7689 * a-szuzha.adb: Likewise.
7690 * a-szuzti.adb: Likewise.
7691 * a-szuzti.ads: Likewise.
7692 * a-tags.adb: Likewise.
7693 * a-tags.ads: Likewise.
7694 * a-tasatt.ads: Likewise.
7695 * a-taside.adb: Likewise.
7696 * a-taside.ads: Likewise.
7697 * a-taster.adb: Likewise.
7698 * a-teioed.adb: Likewise.
7699 * a-teioed.ads: Likewise.
7700 * a-textio.adb: Likewise.
7701 * a-textio.ads: Likewise.
7702 * a-tiboio.adb: Likewise.
7703 * a-ticoau.adb: Likewise.
7704 * a-ticoau.ads: Likewise.
7705 * a-ticoio.adb: Likewise.
7706 * a-ticoio.ads: Likewise.
7707 * a-tideau.adb: Likewise.
7708 * a-tideau.ads: Likewise.
7709 * a-tideio.adb: Likewise.
7710 * a-tideio.ads: Likewise.
7711 * a-tienau.adb: Likewise.
7712 * a-tienau.ads: Likewise.
7713 * a-tienio.adb: Likewise.
7714 * a-tienio.ads: Likewise.
7715 * a-tifiio.adb: Likewise.
7716 * a-tifiio.ads: Likewise.
7717 * a-tiflau.adb: Likewise.
7718 * a-tiflau.ads: Likewise.
7719 * a-tiflio.adb: Likewise.
7720 * a-tiflio.ads: Likewise.
7721 * a-tigeau.adb: Likewise.
7722 * a-tigeau.ads: Likewise.
7723 * a-tiinau.adb: Likewise.
7724 * a-tiinau.ads: Likewise.
7725 * a-tiinio.adb: Likewise.
7726 * a-tiinio.ads: Likewise.
7727 * a-timoau.adb: Likewise.
7728 * a-timoau.ads: Likewise.
7729 * a-timoio.adb: Likewise.
7730 * a-timoio.ads: Likewise.
7731 * a-tiocst.adb: Likewise.
7732 * a-tiocst.ads: Likewise.
7733 * a-titest.adb: Likewise.
7734 * a-wichun.adb: Likewise.
7735 * a-wichun.ads: Likewise.
7736 * a-witeio.adb: Likewise.
7737 * a-witeio.ads: Likewise.
7738 * a-wtcoau.adb: Likewise.
7739 * a-wtcoau.ads: Likewise.
7740 * a-wtcoio.adb: Likewise.
7741 * a-wtcstr.adb: Likewise.
7742 * a-wtcstr.ads: Likewise.
7743 * a-wtdeau.adb: Likewise.
7744 * a-wtdeau.ads: Likewise.
7745 * a-wtdeio.adb: Likewise.
7746 * a-wtdeio.ads: Likewise.
7747 * a-wtedit.adb: Likewise.
7748 * a-wtedit.ads: Likewise.
7749 * a-wtenau.adb: Likewise.
7750 * a-wtenau.ads: Likewise.
7751 * a-wtenio.adb: Likewise.
7752 * a-wtenio.ads: Likewise.
7753 * a-wtfiio.adb: Likewise.
7754 * a-wtfiio.ads: Likewise.
7755 * a-wtflau.adb: Likewise.
7756 * a-wtflau.ads: Likewise.
7757 * a-wtflio.adb: Likewise.
7758 * a-wtflio.ads: Likewise.
7759 * a-wtgeau.adb: Likewise.
7760 * a-wtgeau.ads: Likewise.
7761 * a-wtinau.adb: Likewise.
7762 * a-wtinau.ads: Likewise.
7763 * a-wtinio.adb: Likewise.
7764 * a-wtmoau.adb: Likewise.
7765 * a-wtmoau.ads: Likewise.
7766 * a-wtmoio.adb: Likewise.
7767 * a-wtmoio.ads: Likewise.
7768 * a-wttest.adb: Likewise.
7769 * a-wwboio.adb: Likewise.
7770 * a-zchuni.adb: Likewise.
7771 * a-zchuni.ads: Likewise.
7772 * a-ztcoau.adb: Likewise.
7773 * a-ztcoau.ads: Likewise.
7774 * a-ztcoio.adb: Likewise.
7775 * a-ztcstr.adb: Likewise.
7776 * a-ztcstr.ads: Likewise.
7777 * a-ztdeau.adb: Likewise.
7778 * a-ztdeau.ads: Likewise.
7779 * a-ztdeio.adb: Likewise.
7780 * a-ztdeio.ads: Likewise.
7781 * a-ztedit.adb: Likewise.
7782 * a-ztedit.ads: Likewise.
7783 * a-ztenau.adb: Likewise.
7784 * a-ztenau.ads: Likewise.
7785 * a-ztenio.adb: Likewise.
7786 * a-ztenio.ads: Likewise.
7787 * a-ztexio.adb: Likewise.
7788 * a-ztexio.ads: Likewise.
7789 * a-ztfiio.adb: Likewise.
7790 * a-ztfiio.ads: Likewise.
7791 * a-ztflau.adb: Likewise.
7792 * a-ztflau.ads: Likewise.
7793 * a-ztflio.adb: Likewise.
7794 * a-ztflio.ads: Likewise.
7795 * a-ztgeau.adb: Likewise.
7796 * a-ztgeau.ads: Likewise.
7797 * a-ztinau.adb: Likewise.
7798 * a-ztinau.ads: Likewise.
7799 * a-ztinio.adb: Likewise.
7800 * a-ztmoau.adb: Likewise.
7801 * a-ztmoau.ads: Likewise.
7802 * a-ztmoio.adb: Likewise.
7803 * a-ztmoio.ads: Likewise.
7804 * a-zttest.adb: Likewise.
7805 * a-zzboio.adb: Likewise.
7806 * adadecode.c: Likewise.
7807 * adaint.c: Likewise.
7808 * adaint.h: Likewise.
7809 * alloc.ads: Likewise.
7810 * argv.c: Likewise.
7811 * arit64.c: Likewise.
7812 * atree.adb: Likewise.
7813 * atree.ads: Likewise.
7814 * aux-io.c: Likewise.
7815 * cal.c: Likewise.
7816 * casing.adb: Likewise.
7817 * casing.ads: Likewise.
7818 * cio.c: Likewise.
7819 * csets.adb: Likewise.
7820 * csets.ads: Likewise.
7821 * cstreams.c: Likewise.
7822 * ctrl_c.c: Likewise.
7823 * debug.adb: Likewise.
7824 * debug.ads: Likewise.
7825 * dec.ads: Likewise.
7826 * einfo.adb: Likewise.
7827 * einfo.ads: Likewise.
7828 * elists.adb: Likewise.
7829 * elists.ads: Likewise.
7830 * env.c: Likewise.
7831 * env.h: Likewise.
7832 * errno.c: Likewise.
7833 * exit.c: Likewise.
7834 * fe.h: Likewise.
7835 * final.c: Likewise.
7836 * fname.adb: Likewise.
7837 * fname.ads: Likewise.
7838 * g-allein.ads: Likewise.
7839 * g-alleve.adb: Likewise.
7840 * g-alleve.ads: Likewise.
7841 * g-altcon.adb: Likewise.
7842 * g-altcon.ads: Likewise.
7843 * g-altive.ads: Likewise.
7844 * g-alveop.adb: Likewise.
7845 * g-alveop.ads: Likewise.
7846 * g-alvety.ads: Likewise.
7847 * g-alvevi.ads: Likewise.
7848 * g-arrspl.adb: Likewise.
7849 * g-arrspl.ads: Likewise.
7850 * g-calend.ads: Likewise.
7851 * g-comlin.adb: Likewise.
7852 * g-debpoo.adb: Likewise.
7853 * g-debpoo.ads: Likewise.
7854 * g-eacodu-vms.adb: Likewise.
7855 * g-eacodu.adb: Likewise.
7856 * g-excact.adb: Likewise.
7857 * g-excact.ads: Likewise.
7858 * g-locfil.adb: Likewise.
7859 * g-os_lib.ads: Likewise.
7860 * g-rannum.adb: Likewise.
7861 * g-rannum.ads: Likewise.
7862 * g-regist.adb: Likewise.
7863 * g-regist.ads: Likewise.
7864 * g-signal.adb: Likewise.
7865 * g-signal.ads: Likewise.
7866 * g-soccon.ads: Likewise.
7867 * g-string.adb: Likewise.
7868 * g-string.ads: Likewise.
7869 * g-strspl.ads: Likewise.
7870 * g-timsta.adb: Likewise.
7871 * g-timsta.ads: Likewise.
7872 * g-trasym-vms-alpha.adb: Likewise.
7873 * g-trasym-vms-ia64.adb: Likewise.
7874 * g-utf_32.adb: Likewise.
7875 * g-utf_32.ads: Likewise.
7876 * g-wistsp.ads: Likewise.
7877 * g-zstspl.ads: Likewise.
7878 * gmem.c: Likewise.
7879 * gnatvsn.adb: Likewise.
7880 * gnatvsn.ads: Likewise.
7881 * gsocket.h: Likewise.
7882 * hostparm.ads: Likewise.
7883 * i-c.adb: Likewise.
7884 * i-cexten.ads: Likewise.
7885 * i-cobol.adb: Likewise.
7886 * i-cobol.ads: Likewise.
7887 * i-cpoint.adb: Likewise.
7888 * i-cpoint.ads: Likewise.
7889 * i-cpp.adb: Likewise.
7890 * i-cpp.ads: Likewise.
7891 * i-cstrea-vms.adb: Likewise.
7892 * i-cstrea.adb: Likewise.
7893 * i-cstrea.ads: Likewise.
7894 * i-cstrin.adb: Likewise.
7895 * i-cstrin.ads: Likewise.
7896 * i-forbla-darwin.adb: Likewise.
7897 * i-forbla-unimplemented.ads: Likewise.
7898 * i-forbla.adb: Likewise.
7899 * i-forbla.ads: Likewise.
7900 * i-forlap.ads: Likewise.
7901 * i-fortra.adb: Likewise.
7902 * i-pacdec.adb: Likewise.
7903 * i-pacdec.ads: Likewise.
7904 * i-vxwoio.adb: Likewise.
7905 * i-vxwoio.ads: Likewise.
7906 * indepsw-aix.adb: Likewise.
7907 * indepsw-gnu.adb: Likewise.
7908 * indepsw-mingw.adb: Likewise.
7909 * indepsw.adb: Likewise.
7910 * indepsw.ads: Likewise.
7911 * init.c: Likewise.
7912 * initialize.c: Likewise.
7913 * interfac.ads: Likewise.
7914 * krunch.adb: Likewise.
7915 * krunch.ads: Likewise.
7916 * lib-list.adb: Likewise.
7917 * lib-sort.adb: Likewise.
7918 * lib.adb: Likewise.
7919 * lib.ads: Likewise.
7920 * link.c: Likewise.
7921 * math_lib.adb: Likewise.
7922 * memtrack.adb: Likewise.
7923 * mingw32.h: Likewise.
7924 * mkdir.c: Likewise.
7925 * namet-sp.adb: Likewise.
7926 * namet-sp.ads: Likewise.
7927 * namet.adb: Likewise.
7928 * namet.ads: Likewise.
7929 * nlists.adb: Likewise.
7930 * nlists.ads: Likewise.
7931 * opt.adb: Likewise.
7932 * opt.ads: Likewise.
7933 * output.adb: Likewise.
7934 * output.ads: Likewise.
7935 * raise-gcc.c: Likewise.
7936 * raise.c: Likewise.
7937 * raise.h: Likewise.
7938 * repinfo.adb: Likewise.
7939 * repinfo.ads: Likewise.
7940 * repinfo.h: Likewise.
7941 * rident.ads: Likewise.
7942 * s-addima.adb: Likewise.
7943 * s-addima.ads: Likewise.
7944 * s-addope.adb: Likewise.
7945 * s-addope.ads: Likewise.
7946 * s-arit64.adb: Likewise.
7947 * s-arit64.ads: Likewise.
7948 * s-assert.adb: Likewise.
7949 * s-assert.ads: Likewise.
7950 * s-asthan-vms-alpha.adb: Likewise.
7951 * s-asthan.adb: Likewise.
7952 * s-asthan.ads: Likewise.
7953 * s-atacco.adb: Likewise.
7954 * s-atacco.ads: Likewise.
7955 * s-auxdec-empty.adb: Likewise.
7956 * s-auxdec-empty.ads: Likewise.
7957 * s-auxdec-vms_64.ads: Likewise.
7958 * s-auxdec.adb: Likewise.
7959 * s-auxdec.ads: Likewise.
7960 * s-bitops.adb: Likewise.
7961 * s-bitops.ads: Likewise.
7962 * s-boarop.ads: Likewise.
7963 * s-carsi8.adb: Likewise.
7964 * s-carsi8.ads: Likewise.
7965 * s-carun8.adb: Likewise.
7966 * s-carun8.ads: Likewise.
7967 * s-casi16.adb: Likewise.
7968 * s-casi16.ads: Likewise.
7969 * s-casi32.adb: Likewise.
7970 * s-casi32.ads: Likewise.
7971 * s-casi64.adb: Likewise.
7972 * s-casi64.ads: Likewise.
7973 * s-casuti.ads: Likewise.
7974 * s-caun16.adb: Likewise.
7975 * s-caun16.ads: Likewise.
7976 * s-caun32.adb: Likewise.
7977 * s-caun32.ads: Likewise.
7978 * s-caun64.adb: Likewise.
7979 * s-caun64.ads: Likewise.
7980 * s-chepoo.ads: Likewise.
7981 * s-crc32.adb: Likewise.
7982 * s-crc32.ads: Likewise.
7983 * s-crtl.ads: Likewise.
7984 * s-direio.adb: Likewise.
7985 * s-direio.ads: Likewise.
7986 * s-dsaser.ads: Likewise.
7987 * s-except.adb: Likewise.
7988 * s-except.ads: Likewise.
7989 * s-exctab.adb: Likewise.
7990 * s-exctab.ads: Likewise.
7991 * s-exnint.adb: Likewise.
7992 * s-exnint.ads: Likewise.
7993 * s-exnllf.adb: Likewise.
7994 * s-exnllf.ads: Likewise.
7995 * s-exnlli.adb: Likewise.
7996 * s-exnlli.ads: Likewise.
7997 * s-expint.adb: Likewise.
7998 * s-expint.ads: Likewise.
7999 * s-explli.adb: Likewise.
8000 * s-explli.ads: Likewise.
8001 * s-expllu.adb: Likewise.
8002 * s-expllu.ads: Likewise.
8003 * s-expmod.adb: Likewise.
8004 * s-expmod.ads: Likewise.
8005 * s-expuns.adb: Likewise.
8006 * s-expuns.ads: Likewise.
8007 * s-fatflt.ads: Likewise.
8008 * s-fatgen.adb: Likewise.
8009 * s-fatgen.ads: Likewise.
8010 * s-fatlfl.ads: Likewise.
8011 * s-fatllf.ads: Likewise.
8012 * s-fatsfl.ads: Likewise.
8013 * s-ficobl.ads: Likewise.
8014 * s-fileio.adb: Likewise.
8015 * s-fileio.ads: Likewise.
8016 * s-filofl.ads: Likewise.
8017 * s-finimp.adb: Likewise.
8018 * s-finimp.ads: Likewise.
8019 * s-finroo.adb: Likewise.
8020 * s-finroo.ads: Likewise.
8021 * s-fishfl.ads: Likewise.
8022 * s-fore.adb: Likewise.
8023 * s-fore.ads: Likewise.
8024 * s-fvadfl.ads: Likewise.
8025 * s-fvaffl.ads: Likewise.
8026 * s-fvagfl.ads: Likewise.
8027 * s-gearop.adb: Likewise.
8028 * s-gearop.ads: Likewise.
8029 * s-gecobl.adb: Likewise.
8030 * s-gecobl.ads: Likewise.
8031 * s-gecola.adb: Likewise.
8032 * s-gecola.ads: Likewise.
8033 * s-gerebl.adb: Likewise.
8034 * s-gerebl.ads: Likewise.
8035 * s-gerela.adb: Likewise.
8036 * s-gerela.ads: Likewise.
8037 * s-geveop.adb: Likewise.
8038 * s-geveop.ads: Likewise.
8039 * s-gloloc.adb: Likewise.
8040 * s-gloloc.ads: Likewise.
8041 * s-hibaen.ads: Likewise.
8042 * s-imenne.adb: Likewise.
8043 * s-imenne.ads: Likewise.
8044 * s-imgbiu.adb: Likewise.
8045 * s-imgbiu.ads: Likewise.
8046 * s-imgboo.adb: Likewise.
8047 * s-imgboo.ads: Likewise.
8048 * s-imgcha.adb: Likewise.
8049 * s-imgcha.ads: Likewise.
8050 * s-imgdec.adb: Likewise.
8051 * s-imgdec.ads: Likewise.
8052 * s-imgenu.adb: Likewise.
8053 * s-imgenu.ads: Likewise.
8054 * s-imgint.adb: Likewise.
8055 * s-imgint.ads: Likewise.
8056 * s-imgllb.adb: Likewise.
8057 * s-imgllb.ads: Likewise.
8058 * s-imglld.adb: Likewise.
8059 * s-imglld.ads: Likewise.
8060 * s-imglli.adb: Likewise.
8061 * s-imglli.ads: Likewise.
8062 * s-imgllu.adb: Likewise.
8063 * s-imgllu.ads: Likewise.
8064 * s-imgllw.adb: Likewise.
8065 * s-imgllw.ads: Likewise.
8066 * s-imgrea.adb: Likewise.
8067 * s-imgrea.ads: Likewise.
8068 * s-imguns.adb: Likewise.
8069 * s-imguns.ads: Likewise.
8070 * s-imgwch.adb: Likewise.
8071 * s-imgwch.ads: Likewise.
8072 * s-imgwiu.adb: Likewise.
8073 * s-imgwiu.ads: Likewise.
8074 * s-inmaop-dummy.adb: Likewise.
8075 * s-inmaop-vms.adb: Likewise.
8076 * s-inmaop.ads: Likewise.
8077 * s-interr-hwint.adb: Likewise.
8078 * s-interr-sigaction.adb: Likewise.
8079 * s-interr-vms.adb: Likewise.
8080 * s-interr.adb: Likewise.
8081 * s-interr.ads: Likewise.
8082 * s-intman-dummy.adb: Likewise.
8083 * s-intman-mingw.adb: Likewise.
8084 * s-intman-posix.adb: Likewise.
8085 * s-intman-solaris.adb: Likewise.
8086 * s-intman-vms.adb: Likewise.
8087 * s-intman-vms.ads: Likewise.
8088 * s-intman-vxworks.adb: Likewise.
8089 * s-intman-vxworks.ads: Likewise.
8090 * s-intman.ads: Likewise.
8091 * s-io.adb: Likewise.
8092 * s-io.ads: Likewise.
8093 * s-linux-alpha.ads: Likewise.
8094 * s-linux-hppa.ads: Likewise.
8095 * s-linux.ads: Likewise.
8096 * s-maccod.ads: Likewise.
8097 * s-mantis.adb: Likewise.
8098 * s-mantis.ads: Likewise.
8099 * s-mastop-irix.adb: Likewise.
8100 * s-mastop.adb: Likewise.
8101 * s-mastop.ads: Likewise.
8102 * s-memcop.ads: Likewise.
8103 * s-memory-mingw.adb: Likewise.
8104 * s-memory.adb: Likewise.
8105 * s-memory.ads: Likewise.
8106 * s-os_lib.ads: Likewise.
8107 * s-oscons-tmplt.c: Likewise.
8108 * s-osinte-aix.adb: Likewise.
8109 * s-osinte-darwin.adb: Likewise.
8110 * s-osinte-freebsd.adb: Likewise.
8111 * s-osinte-irix.adb: Likewise.
8112 * s-osinte-lynxos-3.adb: Likewise.
8113 * s-osinte-rtems.ads: Likewise.
8114 * s-osinte-tru64.adb: Likewise.
8115 * s-osinte-vxworks-kernel.adb: Likewise.
8116 * s-osinte-vxworks.adb: Likewise.
8117 * s-osprim-mingw.adb: Likewise.
8118 * s-osprim-posix.adb: Likewise.
8119 * s-osprim-solaris.adb: Likewise.
8120 * s-osprim-unix.adb: Likewise.
8121 * s-osprim-vms.adb: Likewise.
8122 * s-osprim-vms.ads: Likewise.
8123 * s-osprim-vxworks.adb: Likewise.
8124 * s-osprim.ads: Likewise.
8125 * s-pack03.adb: Likewise.
8126 * s-pack03.ads: Likewise.
8127 * s-pack05.adb: Likewise.
8128 * s-pack05.ads: Likewise.
8129 * s-pack06.adb: Likewise.
8130 * s-pack06.ads: Likewise.
8131 * s-pack07.adb: Likewise.
8132 * s-pack07.ads: Likewise.
8133 * s-pack09.adb: Likewise.
8134 * s-pack09.ads: Likewise.
8135 * s-pack10.adb: Likewise.
8136 * s-pack10.ads: Likewise.
8137 * s-pack11.adb: Likewise.
8138 * s-pack11.ads: Likewise.
8139 * s-pack12.adb: Likewise.
8140 * s-pack12.ads: Likewise.
8141 * s-pack13.adb: Likewise.
8142 * s-pack13.ads: Likewise.
8143 * s-pack14.adb: Likewise.
8144 * s-pack14.ads: Likewise.
8145 * s-pack15.adb: Likewise.
8146 * s-pack15.ads: Likewise.
8147 * s-pack17.adb: Likewise.
8148 * s-pack17.ads: Likewise.
8149 * s-pack18.adb: Likewise.
8150 * s-pack18.ads: Likewise.
8151 * s-pack19.adb: Likewise.
8152 * s-pack19.ads: Likewise.
8153 * s-pack20.adb: Likewise.
8154 * s-pack20.ads: Likewise.
8155 * s-pack21.adb: Likewise.
8156 * s-pack21.ads: Likewise.
8157 * s-pack22.adb: Likewise.
8158 * s-pack22.ads: Likewise.
8159 * s-pack23.adb: Likewise.
8160 * s-pack23.ads: Likewise.
8161 * s-pack24.adb: Likewise.
8162 * s-pack24.ads: Likewise.
8163 * s-pack25.adb: Likewise.
8164 * s-pack25.ads: Likewise.
8165 * s-pack26.adb: Likewise.
8166 * s-pack26.ads: Likewise.
8167 * s-pack27.adb: Likewise.
8168 * s-pack27.ads: Likewise.
8169 * s-pack28.adb: Likewise.
8170 * s-pack28.ads: Likewise.
8171 * s-pack29.adb: Likewise.
8172 * s-pack29.ads: Likewise.
8173 * s-pack30.adb: Likewise.
8174 * s-pack30.ads: Likewise.
8175 * s-pack31.adb: Likewise.
8176 * s-pack31.ads: Likewise.
8177 * s-pack33.adb: Likewise.
8178 * s-pack33.ads: Likewise.
8179 * s-pack34.adb: Likewise.
8180 * s-pack34.ads: Likewise.
8181 * s-pack35.adb: Likewise.
8182 * s-pack35.ads: Likewise.
8183 * s-pack36.adb: Likewise.
8184 * s-pack36.ads: Likewise.
8185 * s-pack37.adb: Likewise.
8186 * s-pack37.ads: Likewise.
8187 * s-pack38.adb: Likewise.
8188 * s-pack38.ads: Likewise.
8189 * s-pack39.adb: Likewise.
8190 * s-pack39.ads: Likewise.
8191 * s-pack40.adb: Likewise.
8192 * s-pack40.ads: Likewise.
8193 * s-pack41.adb: Likewise.
8194 * s-pack41.ads: Likewise.
8195 * s-pack42.adb: Likewise.
8196 * s-pack42.ads: Likewise.
8197 * s-pack43.adb: Likewise.
8198 * s-pack43.ads: Likewise.
8199 * s-pack44.adb: Likewise.
8200 * s-pack44.ads: Likewise.
8201 * s-pack45.adb: Likewise.
8202 * s-pack45.ads: Likewise.
8203 * s-pack46.adb: Likewise.
8204 * s-pack46.ads: Likewise.
8205 * s-pack47.adb: Likewise.
8206 * s-pack47.ads: Likewise.
8207 * s-pack48.adb: Likewise.
8208 * s-pack48.ads: Likewise.
8209 * s-pack49.adb: Likewise.
8210 * s-pack49.ads: Likewise.
8211 * s-pack50.adb: Likewise.
8212 * s-pack50.ads: Likewise.
8213 * s-pack51.adb: Likewise.
8214 * s-pack51.ads: Likewise.
8215 * s-pack52.adb: Likewise.
8216 * s-pack52.ads: Likewise.
8217 * s-pack53.adb: Likewise.
8218 * s-pack53.ads: Likewise.
8219 * s-pack54.adb: Likewise.
8220 * s-pack54.ads: Likewise.
8221 * s-pack55.adb: Likewise.
8222 * s-pack55.ads: Likewise.
8223 * s-pack56.adb: Likewise.
8224 * s-pack56.ads: Likewise.
8225 * s-pack57.adb: Likewise.
8226 * s-pack57.ads: Likewise.
8227 * s-pack58.adb: Likewise.
8228 * s-pack58.ads: Likewise.
8229 * s-pack59.adb: Likewise.
8230 * s-pack59.ads: Likewise.
8231 * s-pack60.adb: Likewise.
8232 * s-pack60.ads: Likewise.
8233 * s-pack61.adb: Likewise.
8234 * s-pack61.ads: Likewise.
8235 * s-pack62.adb: Likewise.
8236 * s-pack62.ads: Likewise.
8237 * s-pack63.adb: Likewise.
8238 * s-pack63.ads: Likewise.
8239 * s-parame-ae653.ads: Likewise.
8240 * s-parame-hpux.ads: Likewise.
8241 * s-parame-rtems.adb: Likewise.
8242 * s-parame-vms-alpha.ads: Likewise.
8243 * s-parame-vms-ia64.ads: Likewise.
8244 * s-parame-vms-restrict.ads: Likewise.
8245 * s-parame-vxworks.adb: Likewise.
8246 * s-parame-vxworks.ads: Likewise.
8247 * s-parame.adb: Likewise.
8248 * s-parame.ads: Likewise.
8249 * s-parint.adb: Likewise.
8250 * s-parint.ads: Likewise.
8251 * s-pooglo.adb: Likewise.
8252 * s-pooglo.ads: Likewise.
8253 * s-pooloc.adb: Likewise.
8254 * s-pooloc.ads: Likewise.
8255 * s-poosiz.adb: Likewise.
8256 * s-poosiz.ads: Likewise.
8257 * s-powtab.ads: Likewise.
8258 * s-proinf-irix-athread.adb: Likewise.
8259 * s-proinf-irix-athread.ads: Likewise.
8260 * s-proinf.adb: Likewise.
8261 * s-proinf.ads: Likewise.
8262 * s-purexc.ads: Likewise.
8263 * s-rannum.adb: Likewise.
8264 * s-rannum.ads: Likewise.
8265 * s-restri.adb: Likewise.
8266 * s-restri.ads: Likewise.
8267 * s-rident.ads: Likewise.
8268 * s-rpc.adb: Likewise.
8269 * s-rpc.ads: Likewise.
8270 * s-scaval.adb: Likewise.
8271 * s-scaval.ads: Likewise.
8272 * s-secsta.adb: Likewise.
8273 * s-secsta.ads: Likewise.
8274 * s-sequio.adb: Likewise.
8275 * s-sequio.ads: Likewise.
8276 * s-shasto.adb: Likewise.
8277 * s-shasto.ads: Likewise.
8278 * s-soflin.adb: Likewise.
8279 * s-soflin.ads: Likewise.
8280 * s-solita.adb: Likewise.
8281 * s-solita.ads: Likewise.
8282 * s-sopco3.adb: Likewise.
8283 * s-sopco3.ads: Likewise.
8284 * s-sopco4.adb: Likewise.
8285 * s-sopco4.ads: Likewise.
8286 * s-sopco5.adb: Likewise.
8287 * s-sopco5.ads: Likewise.
8288 * s-stache.adb: Likewise.
8289 * s-stache.ads: Likewise.
8290 * s-stalib.adb: Likewise.
8291 * s-stalib.ads: Likewise.
8292 * s-stausa.adb: Likewise.
8293 * s-stausa.ads: Likewise.
8294 * s-stchop-limit.ads: Likewise.
8295 * s-stchop-rtems.adb: Likewise.
8296 * s-stchop-vxworks.adb: Likewise.
8297 * s-stchop.adb: Likewise.
8298 * s-stchop.ads: Likewise.
8299 * s-stoele.adb: Likewise.
8300 * s-stoele.ads: Likewise.
8301 * s-stopoo.adb: Likewise.
8302 * s-stopoo.ads: Likewise.
8303 * s-stratt.adb: Likewise.
8304 * s-stratt.ads: Likewise.
8305 * s-strcom.adb: Likewise.
8306 * s-strcom.ads: Likewise.
8307 * s-string.adb: Likewise.
8308 * s-string.ads: Likewise.
8309 * s-strops.adb: Likewise.
8310 * s-strops.ads: Likewise.
8311 * s-strxdr.adb: Likewise.
8312 * s-ststop.adb: Likewise.
8313 * s-ststop.ads: Likewise.
8314 * s-taasde.adb: Likewise.
8315 * s-taasde.ads: Likewise.
8316 * s-tadeca.adb: Likewise.
8317 * s-tadeca.ads: Likewise.
8318 * s-tadert.adb: Likewise.
8319 * s-tadert.ads: Likewise.
8320 * s-taenca.adb: Likewise.
8321 * s-taenca.ads: Likewise.
8322 * s-taprob.ads: Likewise.
8323 * s-taprop-dummy.adb: Likewise.
8324 * s-taprop-hpux-dce.adb: Likewise.
8325 * s-taprop-irix.adb: Likewise.
8326 * s-taprop-linux.adb: Likewise.
8327 * s-taprop-lynxos.adb: Likewise.
8328 * s-taprop-mingw.adb: Likewise.
8329 * s-taprop-posix.adb: Likewise.
8330 * s-taprop-solaris.adb: Likewise.
8331 * s-taprop-tru64.adb: Likewise.
8332 * s-taprop-vms.adb: Likewise.
8333 * s-taprop-vxworks.adb: Likewise.
8334 * s-taprop.ads: Likewise.
8335 * s-tarest.adb: Likewise.
8336 * s-tarest.ads: Likewise.
8337 * s-tasdeb.adb: Likewise.
8338 * s-tasdeb.ads: Likewise.
8339 * s-tasinf-irix.ads: Likewise.
8340 * s-tasinf-linux.adb: Likewise.
8341 * s-tasinf-linux.ads: Likewise.
8342 * s-tasinf-mingw.adb: Likewise.
8343 * s-tasinf-mingw.ads: Likewise.
8344 * s-tasinf-solaris.adb: Likewise.
8345 * s-tasinf-solaris.ads: Likewise.
8346 * s-tasinf-tru64.ads: Likewise.
8347 * s-tasinf.adb: Likewise.
8348 * s-tasinf.ads: Likewise.
8349 * s-tasini.adb: Likewise.
8350 * s-tasini.ads: Likewise.
8351 * s-taskin.adb: Likewise.
8352 * s-taskin.ads: Likewise.
8353 * s-taspri-dummy.ads: Likewise.
8354 * s-taspri-hpux-dce.ads: Likewise.
8355 * s-taspri-mingw.ads: Likewise.
8356 * s-taspri-solaris.ads: Likewise.
8357 * s-taspri-tru64.ads: Likewise.
8358 * s-taspri-vms.ads: Likewise.
8359 * s-taspri-vxworks.ads: Likewise.
8360 * s-tasque.adb: Likewise.
8361 * s-tasque.ads: Likewise.
8362 * s-tasren.adb: Likewise.
8363 * s-tasren.ads: Likewise.
8364 * s-tasres.ads: Likewise.
8365 * s-tassta.adb: Likewise.
8366 * s-tassta.ads: Likewise.
8367 * s-tasuti.adb: Likewise.
8368 * s-tasuti.ads: Likewise.
8369 * s-tfsetr-default.adb: Likewise.
8370 * s-tfsetr-vxworks.adb: Likewise.
8371 * s-tpinop.adb: Likewise.
8372 * s-tpinop.ads: Likewise.
8373 * s-tpoben.adb: Likewise.
8374 * s-tpoben.ads: Likewise.
8375 * s-tpobop.adb: Likewise.
8376 * s-tpobop.ads: Likewise.
8377 * s-tpopde-vms.adb: Likewise.
8378 * s-tpopde-vms.ads: Likewise.
8379 * s-tpopsp-lynxos.adb: Likewise.
8380 * s-tpopsp-posix-foreign.adb: Likewise.
8381 * s-tpopsp-posix.adb: Likewise.
8382 * s-tpopsp-solaris.adb: Likewise.
8383 * s-tpopsp-vxworks.adb: Likewise.
8384 * s-tporft.adb: Likewise.
8385 * s-tposen.adb: Likewise.
8386 * s-tposen.ads: Likewise.
8387 * s-traceb.adb: Likewise.
8388 * s-traceb.ads: Likewise.
8389 * s-traces-default.adb: Likewise.
8390 * s-traces.adb: Likewise.
8391 * s-traces.ads: Likewise.
8392 * s-traent-vms.adb: Likewise.
8393 * s-traent-vms.ads: Likewise.
8394 * s-traent.adb: Likewise.
8395 * s-traent.ads: Likewise.
8396 * s-trafor-default.adb: Likewise.
8397 * s-trafor-default.ads: Likewise.
8398 * s-tratas-default.adb: Likewise.
8399 * s-tratas.adb: Likewise.
8400 * s-tratas.ads: Likewise.
8401 * s-unstyp.ads: Likewise.
8402 * s-utf_32.adb: Likewise.
8403 * s-utf_32.ads: Likewise.
8404 * s-vaflop-vms-alpha.adb: Likewise.
8405 * s-vaflop.adb: Likewise.
8406 * s-vaflop.ads: Likewise.
8407 * s-valboo.adb: Likewise.
8408 * s-valboo.ads: Likewise.
8409 * s-valcha.adb: Likewise.
8410 * s-valcha.ads: Likewise.
8411 * s-valdec.adb: Likewise.
8412 * s-valdec.ads: Likewise.
8413 * s-valenu.adb: Likewise.
8414 * s-valenu.ads: Likewise.
8415 * s-valint.adb: Likewise.
8416 * s-valint.ads: Likewise.
8417 * s-vallld.adb: Likewise.
8418 * s-vallld.ads: Likewise.
8419 * s-vallli.adb: Likewise.
8420 * s-vallli.ads: Likewise.
8421 * s-valllu.adb: Likewise.
8422 * s-valllu.ads: Likewise.
8423 * s-valrea.adb: Likewise.
8424 * s-valrea.ads: Likewise.
8425 * s-valuns.adb: Likewise.
8426 * s-valuns.ads: Likewise.
8427 * s-valuti.adb: Likewise.
8428 * s-valuti.ads: Likewise.
8429 * s-valwch.adb: Likewise.
8430 * s-valwch.ads: Likewise.
8431 * s-veboop.adb: Likewise.
8432 * s-veboop.ads: Likewise.
8433 * s-vector.ads: Likewise.
8434 * s-vercon.adb: Likewise.
8435 * s-vercon.ads: Likewise.
8436 * s-vmexta.adb: Likewise.
8437 * s-vmexta.ads: Likewise.
8438 * s-vxwext-kernel.ads: Likewise.
8439 * s-vxwext-rtp.adb: Likewise.
8440 * s-vxwext-rtp.ads: Likewise.
8441 * s-vxwext.ads: Likewise.
8442 * s-vxwork-arm.ads: Likewise.
8443 * s-vxwork-m68k.ads: Likewise.
8444 * s-vxwork-mips.ads: Likewise.
8445 * s-vxwork-ppc.ads: Likewise.
8446 * s-vxwork-sparcv9.ads: Likewise.
8447 * s-vxwork-x86.ads: Likewise.
8448 * s-wchcnv.adb: Likewise.
8449 * s-wchcnv.ads: Likewise.
8450 * s-wchcon.adb: Likewise.
8451 * s-wchcon.ads: Likewise.
8452 * s-wchjis.adb: Likewise.
8453 * s-wchjis.ads: Likewise.
8454 * s-wchstw.adb: Likewise.
8455 * s-wchstw.ads: Likewise.
8456 * s-wchwts.adb: Likewise.
8457 * s-wchwts.ads: Likewise.
8458 * s-widboo.adb: Likewise.
8459 * s-widboo.ads: Likewise.
8460 * s-widcha.adb: Likewise.
8461 * s-widcha.ads: Likewise.
8462 * s-widenu.adb: Likewise.
8463 * s-widenu.ads: Likewise.
8464 * s-widlli.adb: Likewise.
8465 * s-widlli.ads: Likewise.
8466 * s-widllu.adb: Likewise.
8467 * s-widllu.ads: Likewise.
8468 * s-widwch.adb: Likewise.
8469 * s-widwch.ads: Likewise.
8470 * s-win32.ads: Likewise.
8471 * s-winext.ads: Likewise.
8472 * s-wwdcha.adb: Likewise.
8473 * s-wwdcha.ads: Likewise.
8474 * s-wwdenu.adb: Likewise.
8475 * s-wwdenu.ads: Likewise.
8476 * s-wwdwch.adb: Likewise.
8477 * s-wwdwch.ads: Likewise.
8478 * scans.adb: Likewise.
8479 * scans.ads: Likewise.
8480 * seh_init.c: Likewise.
8481 * sfn_scan.adb: Likewise.
8482 * sinfo.adb: Likewise.
8483 * sinfo.ads: Likewise.
8484 * sinput.adb: Likewise.
8485 * sinput.ads: Likewise.
8486 * snames.adb: Likewise.
8487 * snames.ads: Likewise.
8488 * socket.c: Likewise.
8489 * stand.adb: Likewise.
8490 * stand.ads: Likewise.
8491 * stringt.adb: Likewise.
8492 * stringt.ads: Likewise.
8493 * sysdep.c: Likewise.
8494 * system-aix.ads: Likewise.
8495 * system-darwin-ppc.ads: Likewise.
8496 * system-darwin-x86.ads: Likewise.
8497 * system-darwin-x86_64.ads: Likewise.
8498 * system-freebsd-x86.ads: Likewise.
8499 * system-hpux-ia64.ads: Likewise.
8500 * system-hpux.ads: Likewise.
8501 * system-irix-n32.ads: Likewise.
8502 * system-irix-n64.ads: Likewise.
8503 * system-irix-o32.ads: Likewise.
8504 * system-linux-alpha.ads: Likewise.
8505 * system-linux-hppa.ads: Likewise.
8506 * system-linux-ia64.ads: Likewise.
8507 * system-linux-mips.ads: Likewise.
8508 * system-linux-mipsel.ads: Likewise.
8509 * system-linux-ppc.ads: Likewise.
8510 * system-linux-ppc64.ads: Likewise.
8511 * system-linux-s390.ads: Likewise.
8512 * system-linux-s390x.ads: Likewise.
8513 * system-linux-sh4.ads: Likewise.
8514 * system-linux-sparc.ads: Likewise.
8515 * system-linux-sparcv9.ads: Likewise.
8516 * system-linux-x86.ads: Likewise.
8517 * system-linux-x86_64.ads: Likewise.
8518 * system-lynxos-ppc.ads: Likewise.
8519 * system-lynxos-x86.ads: Likewise.
8520 * system-mingw-x86_64.ads: Likewise.
8521 * system-mingw.ads: Likewise.
8522 * system-rtems.ads: Likewise.
8523 * system-solaris-sparc.ads: Likewise.
8524 * system-solaris-sparcv9.ads: Likewise.
8525 * system-solaris-x86.ads: Likewise.
8526 * system-solaris-x86_64.ads: Likewise.
8527 * system-tru64.ads: Likewise.
8528 * system-vms-ia64.ads: Likewise.
8529 * system-vms-zcx.ads: Likewise.
8530 * system-vms.ads: Likewise.
8531 * system-vms_64.ads: Likewise.
8532 * system-vxworks-arm.ads: Likewise.
8533 * system-vxworks-m68k.ads: Likewise.
8534 * system-vxworks-mips.ads: Likewise.
8535 * system-vxworks-ppc.ads: Likewise.
8536 * system-vxworks-sparcv9.ads: Likewise.
8537 * system-vxworks-x86.ads: Likewise.
8538 * system.ads: Likewise.
8539 * table.adb: Likewise.
8540 * table.ads: Likewise.
8541 * targext.c: Likewise.
8542 * targparm.ads: Likewise.
8543 * tree_in.adb: Likewise.
8544 * tree_in.ads: Likewise.
8545 * tree_io.adb: Likewise.
8546 * tree_io.ads: Likewise.
8547 * types.adb: Likewise.
8548 * types.ads: Likewise.
8549 * uintp.adb: Likewise.
8550 * uintp.ads: Likewise.
8551 * uname.adb: Likewise.
8552 * uname.ads: Likewise.
8553 * urealp.adb: Likewise.
8554 * urealp.ads: Likewise.
8555 * vx_stack_info.c: Likewise.
8556 * widechar.adb: Likewise.
8557 * widechar.ads: Likewise.
8558 * exp_attr.adb: Change copyright header to refer to version
8559 3 of the GNU General Public License and to point readers at the
8560 COPYING3 file and the FSF's license web page.
8561 * sem.adb: Likewise.
8562 * sem_attr.ads: Likewise.
8563 * freeze.adb: Likewise.
8564 * freeze.ads: Likewise.
8565 * errout.ads: Likewise.
8566 * erroutc.adb: Likewise.
8567 * exp_ch11.ads: Likewise.
8568
8569 2009-04-09 Jakub Jelinek <jakub@redhat.com>
8570
8571 * config-lang.in: Change copyright header to refer to version
8572 3 of the GNU General Public License and to point readers at the
8573 COPYING3 file and the FSF's license web page.
8574 * gcc-interface/trans.c: Likewise.
8575 * gnathtml.pl: Likewise.
8576 * gcc-interface/ada.h: Likewise. Remove runtime exception.
8577 * gcc-interface/gigi.h: Likewise.
8578 * gcc-interface/misc.c: Likewise.
8579 * gcc-interface/targtyps.c: Likewise.
8580
8581 2009-04-09 Nicolas Setton <setton@adacore.com>
8582
8583 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
8584
8585 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
8586 struct_timeval.
8587
8588 2009-04-09 Bob Duff <duff@adacore.com>
8589
8590 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
8591 internally-generated nodes related to select statements to avoid
8592 confusing the debugger.
8593
8594 2009-04-09 Pascal Obry <obry@adacore.com>
8595
8596 * make.adb: Ensure that all linker arguments are duplicated.
8597
8598 2009-04-09 Robert Dewar <dewar@adacore.com>
8599
8600 * sem_ch5.adb: Minor reformatting
8601
8602 2009-04-09 Vincent Celier <celier@adacore.com>
8603
8604 * vms_data.ads:
8605 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
8606 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
8607 New qualifier /LXDEBUG=nnn for -gnatDnnn
8608 For H820-010
8609
8610 * gnat_ugn.texi:
8611 Update documentation for VMS qualifiers equivalent to -gnatGnn and
8612 -gnatDnn
8613
8614 2009-04-09 Nicolas Setton <setton@adacore.com>
8615
8616 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
8617 to match layout of siginfo_t in sys/signal.h.
8618
8619 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
8620
8621 2009-04-09 Thomas Quinot <quinot@adacore.com>
8622
8623 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
8624
8625 2009-04-09 Nicolas Setton <setton@adacore.com>
8626
8627 * s-oscons-tmplt.c: Allow long lines in the generated spec.
8628 Add generation of Darwin-specific constants needed when binding to the
8629 pthread library.
8630
8631 2009-04-09 Robert Dewar <dewar@adacore.com>
8632
8633 * checks.adb:
8634 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
8635 when no invalid values exist, Avoid duplicate read of atomic variable.
8636
8637 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
8638 (Standard_Unsigned): Set Is_Known_Valid
8639
8640 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
8641 subtype declaration if no constraint.
8642 (Set_Modular_Size): Set Is_Known_Valid if appropriate
8643 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
8644
8645 2009-04-09 Robert Dewar <dewar@adacore.com>
8646
8647 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
8648 switch.ads: for numeric switches, an optional equal sign is always
8649 allowed.
8650
8651 2009-04-09 Vincent Celier <celier@adacore.com>
8652
8653 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
8654 the case of file names is not significant.
8655
8656 2009-04-09 Vincent Celier <celier@adacore.com>
8657
8658 * errout.adb: Remove dependency on package Style
8659
8660 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
8661 moved to Stylesw.
8662
8663 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
8664 Styleg.
8665
8666 * errutil.adb, par.adb: Import Stylesw
8667
8668 2009-04-09 Arnaud Charlet <charlet@adacore.com>
8669
8670 * opt.ads: Fix typos.
8671
8672 2009-04-09 Robert Dewar <dewar@adacore.com>
8673
8674 * einfo.adb: Minor reformatting
8675
8676 2009-04-09 Robert Dewar <dewar@adacore.com>
8677
8678 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
8679 units.
8680
8681 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
8682
8683 2009-04-09 Robert Dewar <dewar@adacore.com>
8684
8685 * g-comver.adb: Minor reformatting.
8686
8687 2009-04-09 Thomas Quinot <quinot@adacore.com>
8688
8689 * lib-load.ads (Load_Unit): Update documentation.
8690
8691 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8692
8693 * lib-load.adb (Load_Unit): When loading the parent of a child unit
8694 named in a with_clause, retain the with_clause to preserve a
8695 limited_with indication.
8696
8697 2009-04-09 Robert Dewar <dewar@adacore.com>
8698
8699 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
8700 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
8701 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
8702 possible to replace an OR of two separate tests.
8703
8704 2009-04-09 Robert Dewar <dewar@adacore.com>
8705
8706 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
8707 Maximum_Messages.
8708
8709 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
8710 warning status as well.
8711
8712 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
8713
8714 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
8715 Maximum_Messages.
8716
8717 * bindusg.adb, usage.adb: Update line for -gnatm switch
8718
8719 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
8720 -mnn binder switch.
8721
8722 2009-04-09 Robert Dewar <dewar@adacore.com>
8723
8724 * sem_ch10.adb: Minor reformatting.
8725
8726 2009-04-09 Bob Duff <duff@adacore.com>
8727
8728 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
8729 Set Sloc of generated nodes for calls to Undefer_Aborts and
8730 Save_Occurrence to No_Location, so the debugger ignores them and
8731 therefore does not jump back and forth when single stepping.
8732
8733 2009-04-09 Robert Dewar <dewar@adacore.com>
8734
8735 * switch-b.adb: Minor reformatting.
8736
8737 2009-04-09 Robert Dewar <dewar@adacore.com>
8738
8739 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
8740 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
8741 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
8742 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
8743 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
8744 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
8745 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
8746 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
8747 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
8748 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
8749 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
8750
8751 2009-04-09 Robert Dewar <dewar@adacore.com>
8752
8753 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
8754
8755 * atree.h: Add Elist26
8756
8757 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
8758 backends.
8759
8760 2009-04-09 Javier Miranda <miranda@adacore.com>
8761
8762 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
8763 retrieve from the Dispatch_Table_Wrappers list the external name.
8764 Addition of documentation.
8765 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
8766 used to export secondary dispatch tables (in the previous version of
8767 the frontend only primary dispatch tables were exported). Addition of
8768 documentation.
8769 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
8770 dispatch table of a given tagged type.
8771 (Make_Tags): Modified to import secondary dispatch tables.
8772
8773 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
8774 (Constant_Redeclaration): Code cleanup.
8775
8776 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
8777 Dispatch_Table_Wrappers. Update documentation.
8778
8779 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
8780 Renamed to Dispatch_Table_Wrappers.
8781
8782 * sem_util.adb (Collect_Interface_Components): Improve handling of
8783 private types.
8784
8785 * atree.ads (Elist26, Set_Elist26): New subprograms
8786
8787 * atree.adb (Elist26, Set_Elist26): New subprograms
8788
8789 2009-04-09 Javier Miranda <miranda@adacore.com>
8790
8791 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
8792 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
8793 tagged types.
8794
8795 2009-04-09 Robert Dewar <dewar@adacore.com>
8796
8797 * s-direio.adb: Minor reformatting
8798
8799 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
8800
8801 2009-04-09 Robert Dewar <dewar@adacore.com>
8802
8803 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
8804
8805 2009-04-09 Pascal Obry <obry@adacore.com>
8806
8807 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
8808 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
8809 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
8810 a-filico.ads: Add some missing overriding keywords.
8811
8812 2009-04-09 Pascal Obry <obry@adacore.com>
8813
8814 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
8815 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
8816 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
8817 reformatting.
8818
8819 2009-04-09 Ed Schonberg <schonberg@adacore.com>
8820
8821 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
8822 missing overriding indicator if the new declaration is not seen as
8823 primitive.
8824
8825 2009-04-09 Thomas Quinot <quinot@adacore.com>
8826
8827 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
8828 overflows in computation of bounds.
8829
8830 2009-04-09 Pascal Obry <obry@adacore.com>
8831
8832 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
8833 typos in comment.
8834
8835 2009-04-09 Robert Dewar <dewar@adacore.com>
8836
8837 * sem_attr.adb (Check_Stream_Attribute): Check violation of
8838 restriction No_Streams
8839
8840 * gnat_rm.texi: Clarify No_Streams restriction
8841
8842 * g-socket.adb: Minor reformatting.
8843
8844 2009-04-09 Thomas Quinot <quinot@adacore.com>
8845
8846 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
8847
8848 2009-04-09 Geert Bosch <bosch@adacore.com>
8849
8850 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
8851 (Set_Result): Likewise.
8852 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
8853 conversion, as required by RM 4.6(31).
8854
8855 2009-04-08 Robert Dewar <dewar@adacore.com>
8856
8857 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
8858 suppressed.
8859
8860 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
8861 resolution steps.
8862
8863 2009-04-08 Robert Dewar <dewar@adacore.com>
8864
8865 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
8866 No_Local_Allocators restriction preventing local instantiation.
8867
8868 2009-04-08 Thomas Quinot <quinot@adacore.com>
8869
8870 * sem_eval.adb: Minor comment fix
8871
8872 2009-04-08 Thomas Quinot <quinot@adacore.com>
8873
8874 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
8875 New limited controlled type used to automate the initialization and
8876 finalization of the sockets implementation.
8877 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
8878
8879 2009-04-08 Vincent Celier <celier@adacore.com>
8880
8881 * prj-attr.adb: New read-only project-level attribute Project_Dir
8882
8883 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
8884 read-only attribute of the same name.
8885 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
8886 (Recursive_Process): Ditto
8887
8888 * snames.adb: Add new standard name Project_Dir
8889
8890 * snames.ads: Add new standard name Project_Dir
8891
8892 2009-04-08 Thomas Quinot <quinot@adacore.com>
8893
8894 * checks.adb: Minor reformatting
8895
8896 2009-04-08 Vincent Celier <celier@adacore.com>
8897
8898 * vms_data.ads: Add documentation for new style keyword
8899 OVERRIDING_INDICATORS
8900
8901 2009-04-08 Robert Dewar <dewar@adacore.com>
8902
8903 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
8904 spec is in the current unit.
8905
8906 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8907
8908 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
8909 presence of entity.
8910
8911 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
8912
8913 2009-04-08 Vincent Celier <celier@adacore.com>
8914
8915 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
8916
8917 2009-04-08 Thomas Quinot <quinot@adacore.com>
8918
8919 * checks.ads: Minor reformatting
8920
8921 2009-04-08 Robert Dewar <dewar@adacore.com>
8922
8923 * gnat_rm.texi: Update documentation of pragma Obsolescent
8924
8925 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
8926 be omitted, and allow Entity parameter to be omitted.
8927
8928 2009-04-08 Thomas Quinot <quinot@adacore.com>
8929
8930 * exp_util.adb: Minor comment fix
8931
8932 2009-04-08 Robert Dewar <dewar@adacore.com>
8933
8934 * g-socket.ads: Fix bad syntax in pragma Obsolescent
8935
8936 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
8937 argument with no identifier following one that has an identifier. Was
8938 missed in some cases.
8939
8940 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
8941 identifier.
8942 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
8943
8944 * snames.adb: Add Name_Policy
8945
8946 * snames.ads: Add Name_Policy
8947
8948 2009-04-08 Robert Dewar <dewar@adacore.com>
8949
8950 * gnat_rm.texi: Minor reformatting
8951
8952 * par-ch2.adb: Minor reformatting
8953
8954 2009-04-08 Robert Dewar <dewar@adacore.com>
8955
8956 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
8957
8958 2009-04-08 Robert Dewar <dewar@adacore.com>
8959
8960 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
8961 properly in the presence of Remote_Types or Remote_Call_Interface.
8962
8963 * sem_util.adb: Add comment.
8964
8965 2009-04-08 Robert Dewar <dewar@adacore.com>
8966
8967 * ug_words: Add /ASSUME_VALID for -gnatB
8968
8969 * vms_data.ads: Add /ASSUME_VALID for -gnatB
8970
8971 * sem_cat.adb: Add clarifying commment
8972
8973 * a-direio.ads (Bytes): Make sure value is non-zero
8974
8975 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8976
8977 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
8978 that does not come from source, check for a rewritten function call in
8979 prefixed notation before other forms of rewriting.
8980
8981 2009-04-08 Robert Dewar <dewar@adacore.com>
8982
8983 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
8984 these are now obsolescent units used only for bootrapping with an
8985 older compiler.
8986
8987 2009-04-08 Robert Dewar <dewar@adacore.com>
8988
8989 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
8990
8991 * sem_ch3.adb: Minor comment updates
8992
8993 2009-04-08 Ed Schonberg <schonberg@adacore.com>
8994
8995 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
8996 that come from source.
8997
8998 2009-04-08 Tristan Gingold <gingold@adacore.com>
8999
9000 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
9001 * gcc-interface/decl.c (prepend_attributes): New case
9002 Pragma_Thread_Local_Storage.
9003 * gcc-interface/utils.c (process_attributes): New case
9004 ATTR_THREAD_LOCAL_STORAGE.
9005
9006 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9007
9008 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
9009 by the back-end if it contains a call to a subprogram without a
9010 previous spec that is declared in the same unit.
9011
9012 * errout.ads: Update comments on uses of dirs
9013
9014 2009-04-08 Robert Dewar <dewar@adacore.com>
9015
9016 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
9017
9018 2009-04-08 Tristan Gingold <gingold@adacore.com>
9019
9020 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
9021 variables.
9022 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
9023
9024 2009-04-08 Vincent Celier <celier@adacore.com>
9025
9026 * prj-nmsc.adb:
9027 (Add_Source): Add the mapping of the unit name to source file name in
9028 the Unit_Sources_HT hash table, if the unit name is not null.
9029
9030 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
9031
9032 * prj.ads (Unit_Sources_Htable): New hash table instantiation
9033 (Project_Tree_Data): New component Unit_Sources_HT
9034
9035 2009-04-08 Thomas Quinot <quinot@adacore.com>
9036
9037 * sem_ch8.adb: Minor reformatting.
9038 Minor code reorganization.
9039
9040 2009-04-08 Robert Dewar <dewar@adacore.com>
9041
9042 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
9043 snames.ads, freeze.adb, par-prag.adb: Add implementation of
9044 pragma Thread_Local_Storage, setting new flag
9045 Has_Pragma_Thread_Local_Storage in corresponding entities.
9046
9047 2009-04-08 Emmanuel Briot <briot@adacore.com>
9048
9049 * prj.ads: Update comment on switches file
9050
9051 * prj-nmsc.adb: Code clean up. Use renaming clauses.
9052
9053 2009-04-08 Robert Dewar <dewar@adacore.com>
9054
9055 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
9056
9057 2009-04-08 Thomas Quinot <quinot@adacore.com>
9058
9059 * ali-util.adb: Minor comment fix
9060
9061 2009-04-08 Ed Schonberg <schonberg@adacore.com>
9062
9063 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
9064 appears in a context clause, and the enclosing package is mentioned in
9065 a limited_with_clause.
9066 (Use_One_Type): Reject clause if type is still incomplete.
9067
9068 2009-04-08 Emmanuel Briot <briot@adacore.com>
9069
9070 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
9071 avoid copies of Source_Data variables when possible, since these
9072 involve calls to memcpy() which are done too many times.
9073
9074 2009-04-08 Robert Dewar <dewar@adacore.com>
9075
9076 * exp_ch4.adb (Expand_Concatenate): Clean up code
9077
9078 2009-04-07 Thomas Quinot <quinot@adacore.com>
9079
9080 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
9081 type for the case of concatenating a constrained array indexed by an
9082 enumeration type.
9083
9084 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9085
9086 * sem_ch6.adb (Check_Conformance): when checking conformance of an
9087 operation that overrides an abstract operation inherited from an
9088 interface, return False if only one of the controlling formals is an
9089 access parameter.
9090
9091 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9092
9093 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
9094 mandated by AI05-105.
9095
9096 2009-04-07 Vincent Celier <celier@adacore.com>
9097
9098 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
9099
9100 2009-04-07 Thomas Quinot <quinot@adacore.com>
9101
9102 * usage.adb: Minor fix in usage message.
9103
9104 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
9105 match declaration; the correct subtype is Node_Id, not Entity_Id,
9106 because the expected node kind is an identifier, not a defining
9107 identifier.
9108
9109 * switch-c.adb: Minor reformatting.
9110
9111 * uintp.adb: Minor reformatting.
9112
9113 2009-04-07 Robert Dewar <dewar@adacore.com>
9114
9115 * exp_ch13.adb: Minor reformatting
9116
9117 2009-04-07 Robert Dewar <dewar@adacore.com>
9118
9119 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
9120 against missing parent.
9121
9122 2009-04-07 Thomas Quinot <quinot@adacore.com>
9123
9124 * xoscons.adb: Minor reformatting
9125
9126 2009-04-07 Robert Dewar <dewar@adacore.com>
9127
9128 * rtsfind.ads: Remove obsolete string concatenation entries
9129
9130 2009-04-07 Robert Dewar <dewar@adacore.com>
9131
9132 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
9133
9134 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9135
9136 * sem_ch10.adb (Check_Body_Required): Handle properly imported
9137 subprograms.
9138
9139 2009-04-07 Gary Dismukes <dismukes@adacore.com>
9140
9141 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
9142 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
9143 is of a scalar or string type then suppress the setting of the
9144 expression to Empty.
9145
9146 * freeze.adb (Warn_Overlay): Also emit the warnings about default
9147 initialization for the cases of scalar and string objects when
9148 Init_Or_Norm_Scalars is True.
9149
9150 2009-04-07 Bob Duff <duff@adacore.com>
9151
9152 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
9153
9154 2009-04-07 Bob Duff <duff@adacore.com>
9155
9156 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
9157 Form parameter of Text_Translation=No allows binary mode for Text_IO
9158 files.
9159
9160 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
9161
9162 2009-04-07 Javier Miranda <miranda@adacore.com>
9163
9164 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
9165 processing the bounds for bit packed arrays or VM target machines.
9166
9167 2009-04-07 Thomas Quinot <quinot@adacore.com>
9168
9169 * g-sothco.ads (Int_Access): Remove extraneous access type (use
9170 anonymous access instead).
9171 (Get_Socket_From_Set): Fix incorrectly reverted formals
9172 Last and Socket to match the underlying C routine.
9173
9174 * g-socket.adb, g-socket.ads
9175 (Get): Use named parameter associations instead of positional ones in
9176 call go Get_Socket_From_Set, since this routine has two formals of the
9177 same type.
9178 (Image): New procedure.
9179
9180 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9181 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
9182 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
9183 for type of Arg formal.
9184
9185 * sem_warn.adb: Minor reformatting
9186
9187 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9188
9189 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
9190 over record components.
9191
9192 2009-04-07 Nicolas Roche <roche@adacore.com>
9193
9194 * gsocket.h:
9195 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
9196 has disappeared between VxWorks 6.4 and VxWorks 6.5
9197 In RTP mode use time.h instead of times.h
9198
9199 2009-04-07 Robert Dewar <dewar@adacore.com>
9200
9201 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
9202
9203 2009-04-07 Kevin Pouget <pouget@adacore.com>
9204
9205 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
9206 expanded code for constrained types.
9207
9208 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9209
9210 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
9211 AI05-105: in an object renaming declaration, anonymousness is a name
9212 resolution rule.
9213
9214 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
9215
9216 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9217
9218 * g-comlin.adb (Expansion): Fix old regression: also return directory
9219 names when matching.
9220
9221 2009-04-07 Robert Dewar <dewar@adacore.com>
9222
9223 * exp_ch4.adb:
9224 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
9225 (Expand_Concatenate): New name for Expand_Concatenate_String which has
9226 been rewritten to handle all types.
9227 (Expand_Concatenate_Other): Remove
9228
9229 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9230
9231 * lib-xref.adb (Generate_Reference): A default subprogram in an
9232 instance appears within the tree for the instance, but generates an
9233 implicit reference in the ALI.
9234
9235 2009-04-07 Javier Miranda <miranda@adacore.com>
9236
9237 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
9238 derived type that has discriminants, propagate the list of interfaces
9239 to the corresponding new base type. In addition, propagate also
9240 attribute Limited_Present (found working in this patch).
9241
9242 2009-04-07 Robert Dewar <dewar@adacore.com>
9243
9244 * exp_ch4.adb: Rewrite concatenation expansion.
9245
9246 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9247
9248 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
9249 relevant to packages.
9250
9251 2009-04-07 Robert Dewar <dewar@adacore.com>
9252
9253 * sem_attr.adb: Minor reformatting
9254
9255 * sem_ch6.adb: Minor reformatting
9256
9257 2009-04-07 Tristan Gingold <gingold@adacore.com>
9258
9259 * socket.c: Add more protections against S_resolvLib_ macros.
9260
9261 2009-04-07 Thomas Quinot <quinot@adacore.com>
9262
9263 * sem_attr.adb: Minor reformatting
9264
9265 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9266
9267 * sem_ch6.adb (New_Overloaded_Entity): New predicate
9268 Is_Overriding_Alias to handle properly types that inherit two homonym
9269 operations that have distinct dispatch table entries.
9270
9271 2009-04-07 Emmanuel Briot <briot@adacore.com>
9272
9273 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
9274 looking for the end of a parenthesis group
9275
9276 2009-04-07 Tristan Gingold <gingold@adacore.com>
9277
9278 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
9279
9280 * socket.c Don't use resolvLib_ macros if not defined.
9281
9282 2009-04-07 Robert Dewar <dewar@adacore.com>
9283
9284 * g-socket.adb: Minor reformatting.
9285
9286 * g-socthi-mingw.adb: Minor reformatting
9287
9288 * g-sothco.ads: Minor reformatting
9289
9290 * exp_ch4.adb:
9291 (Expand_Concatenate_String): Complete rewrite to generate efficient code
9292 inline instead of relying on external library routines.
9293
9294 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
9295 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
9296 obsolescent
9297
9298 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9299
9300 * sem_attr.adb:
9301 (Eval_Attribute): for attributes of array objects that are not strings,
9302 attributes are not static if nominal subtype of object is unconstrained.
9303
9304 2009-04-07 Ed Schonberg <schonberg@adacore.com>
9305
9306 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9307 operations for a type T in an instance do not override each other,
9308 when T is derived from a formal private type, the corresponding
9309 operations inherited by a type derived from T outside
9310 of the instance do not override each other either.
9311
9312 2009-04-07 Robert Dewar <dewar@adacore.com>
9313
9314 (Osint.Fail): Change calling sequence to have one string arg
9315 (Make.Make_Failed): Same change
9316 All callers are adjusted to use concatenation
9317
9318 2009-04-07 Robert Dewar <dewar@adacore.com>
9319
9320 * exp_ch4.adb: Fix documentation typo
9321
9322 2009-04-07 Robert Dewar <dewar@adacore.com>
9323
9324 * tbuild.ads: Minor reformatting
9325
9326 2009-04-07 Javier Miranda <miranda@adacore.com>
9327
9328 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9329 when compiling under ZFP runtime.
9330
9331 2009-04-07 Robert Dewar <dewar@adacore.com>
9332
9333 * g-comlin.adb: Minor reformatting
9334
9335 2009-04-07 Thomas Quinot <quinot@adacore.com>
9336
9337 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9338 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9339 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9340 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9341
9342 2009-04-07 Robert Dewar <dewar@adacore.com>
9343
9344 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9345
9346 * opt.ads (Sprint_Line_Limit): New parameter
9347
9348 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9349
9350 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9351
9352 * usage.adb: Output information for -gnatGnn -gnatDnn
9353
9354 2009-04-07 Robert Dewar <dewar@adacore.com>
9355
9356 * make.adb: Minor reformatting
9357
9358 2009-04-07 Robert Dewar <dewar@adacore.com>
9359
9360 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9361
9362 2009-04-07 Robert Dewar <dewar@adacore.com>
9363
9364 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9365
9366 2009-04-07 Robert Dewar <dewar@adacore.com>
9367
9368 * checks.adb:
9369 Remove Assume_Valid parameter from In_Subrange_Of calls
9370
9371 * sem_eval.adb:
9372 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9373 (Is_In_Range): Remove incorrect use of Assume_Valid
9374 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
9375
9376 * sem_eval.ads:
9377 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9378 (Is_In_Range): Documentation cleanup
9379 (Is_Out_Of_Range): Documentation cleanup
9380
9381 * gnat_rm.texi:
9382 Add documentation for Assume_No_Invalid_Values pragma
9383
9384 * sem_ch12.adb: Minor reformatting
9385
9386 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
9387
9388 * sem_prag.adb: Improve error message.
9389
9390 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
9391 LF/CR no longer recognized as line terminator
9392
9393 * switch.ads: Minor documentation improvement
9394
9395 * vms_data.ads: Minor reformatting
9396
9397 2009-04-07 Robert Dewar <dewar@adacore.com>
9398
9399 * checks.adb (Determine_Range): Add Assume_Valid parameter
9400
9401 * checks.ads (Determine_Range): Add Assume_Valid parameter
9402
9403 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
9404 Is_Null_Loop to suppress warnings in a loop body.
9405
9406 * exp_ch4.adb:
9407 (Rewrite_Comparison): Major rewrite to accomodate invalid values
9408
9409 * exp_ch5.adb:
9410 (Expand_N_Loop_Statement): Delete loop known not to execute
9411
9412 * opt.ads:
9413 (Assume_No_Invalid_Values): Now set to False, and as documented, this
9414 fully enables the proper handling of invalid values.
9415
9416 * sem_attr.adb:
9417 New calling sequence for Is_In_Range
9418
9419 * sem_ch5.adb:
9420 (Analyze_Iteration_Scheme): Accomodate possible invalid values
9421 in determining if a loop range is null.
9422
9423 * sem_eval.adb:
9424 (Is_In_Range): Add Assume_Valid parameter
9425 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9426 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
9427 also to do more accurate and complete range analysis, catching more
9428 cases.
9429
9430 * sem_eval.ads:
9431 (Is_In_Range): Add Assume_Valid parameter
9432 (Is_Out_Of_Range): Add Assume_Valid_Parameter
9433
9434 * sem_util.adb:
9435 New calling sequence for Is_In_Range
9436
9437 * sinfo.adb:
9438 (Suppress_Loop_Warnings): New flag
9439
9440 * sinfo.ads:
9441 (Is_Null_Loop): Update documentation
9442 (Suppress_Loop_Warnings): New flag
9443
9444 * gnat_ugn.texi: Document -gnatB switch
9445
9446 2009-04-07 Arnaud Charlet <charlet@adacore.com>
9447
9448 * gnatvsn.ads: Bump version number.
9449
9450 2009-04-07 Thomas Quinot <quinot@adacore.com>
9451
9452 * exp_ch3.adb: Minor rewording (comments)
9453
9454 2009-04-07 Robert Dewar <dewar@adacore.com>
9455
9456 * exp_disp.adb: Minor reformatting
9457
9458 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9459
9460 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
9461 underlying type.
9462 * gcc-interface/trans.c (lvalue_required_p): Likewise.
9463
9464 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9465
9466 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
9467 Do not convert the result. Remove obsolete comment.
9468
9469 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9470
9471 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
9472 DECL_CONTEXT.
9473 (Subprogram_Body_to_gnu): Fix pasto.
9474
9475 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9476
9477 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
9478 (void_type_decl_node): Remove.
9479 (init_gigi_decls): Likewise.
9480 (gnat_install_builtins): Declare.
9481 (record_builtin_type): Likewise.
9482 (create_type_stub_decl): Likewise.
9483 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
9484 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
9485 artificial.
9486 <E_Array_Subtype>: Use the index types, not only their name, in the
9487 record giving the names of the bounds, if any.
9488 For a packed array type, make it artificial only if the base type
9489 was artificial as well. Remove redundant statement.
9490 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
9491 dummy types.
9492 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
9493 (rest_of_type_decl_compilation_no_defer): Likewise.
9494 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
9495 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
9496 and use create_type_stub_decl to build it.
9497 (gnat_pushdecl): Rewrite condition.
9498 (gnat_install_builtins): Remove bogus declaration.
9499 (record_builtin_type): New function.
9500 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
9501 of types.
9502 (create_type_stub_decl): New function.
9503 (create_type_decl): Assert that the type is not dummy. If the type
9504 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
9505 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
9506 (build_vms_descriptor): Likewise.
9507 (init_gigi_decls): Delete and move bulk of code to...
9508 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
9509 (emit_range_check): Add gnat_node parameter.
9510 (emit_index_check): Likewise.
9511 (emit_check): Likewise.
9512 (build_unary_op_trapv): Likewise.
9513 (build_binary_op_trapv): Likewise.
9514 (convert_with_check): Likewise.
9515 (Attribute_to_gnu): Adjust calls for above changes.
9516 (call_to_gnu): Likewise.
9517 (gnat_to_gnu): Likewise.
9518 (assoc_to_constructor): Likewise.
9519 (pos_to_constructor): Likewise.
9520 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
9521 (process_type): Do not create TYPE_DECL for dummy types.
9522
9523 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9524
9525 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
9526 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
9527 * gcc-interface/utils.c: Fix comments.
9528
9529 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9530
9531 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
9532 move around.
9533 (gnat_to_gnu_type): Move around.
9534 (get_unpadded_type): Likewise.
9535 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
9536 Tidy comments.
9537
9538 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
9539
9540 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
9541 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
9542 (call_to_gnu): Invoke it instead of manually checking.
9543
9544 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
9545
9546 * gcc-interface/utils.c (finish_record_type): Force structural equality
9547 checks if the record type is discriminated.
9548
9549 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
9550
9551 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
9552 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
9553 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
9554 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
9555 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
9556 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
9557 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
9558
9559 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
9560
9561 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
9562 of TREE_CONSTANT_OVERFLOW.
9563
9564 2009-03-30 Joseph Myers <joseph@codesourcery.com>
9565
9566 PR rtl-optimization/323
9567 * gcc-interface/misc.c (gnat_post_options): Set
9568 flag_excess_precision_cmdline. Give an error for
9569 -fexcess-precision=standard for processors where the option is
9570 significant.
9571
9572 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
9573
9574 PR c/39323
9575 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
9576 on bit_align.
9577
9578 2009-03-11 Olivier Hainque <hainque@adacore.com>
9579
9580 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
9581 checks processing, remove unintended TREE_TYPE walk on index type.
9582
9583 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
9584
9585 PR ada/39264
9586 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
9587 call make_packable_type on fat pointer types.
9588 <E_Array_Subtype>: Likewise.
9589 <E_Record_Subtype>: Call make_packable_type on all record types
9590 except for fat pointer types.
9591 (make_packable_type): Likewise.
9592 (gnat_to_gnu_field): Likewise.
9593
9594 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
9595
9596 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
9597 EH_MECHANISM change made on 2007-12-06.
9598
9599 2009-02-26 Andreas Schwab <schwab@suse.de>
9600
9601 PR ada/39172
9602 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
9603 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
9604 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
9605 (AWK): Substitute.
9606 (target_cpu_default): Substitute.
9607
9608 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9609
9610 PR ada/39221
9611 * a-teioed.adb (Expand): Fix Result overflow.
9612
9613 2009-02-25 Laurent GUERBY <laurent@guerby.net>
9614
9615 * gcc-interface/Makefile.in: Fix multilib handling for
9616 sparc64-linux.
9617
9618 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9619
9620 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
9621
9622 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
9623
9624 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
9625
9626 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
9627
9628 * gcc-interface/deftarg.c: Remove.
9629
9630 2009-02-10 Olivier Hainque <hainque@adacore.com>
9631 Eric Botcazou <ebotcazou@adacore.com>
9632
9633 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
9634 (copy_alias_set): Rename into...
9635 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
9636 underlying array of unconstrained arrays for the new type as well.
9637 If the old and new alias sets don't conflict, make one a subset of
9638 the other as per the OP parameter.
9639 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
9640 <E_Record_Type>: Do not copy the alias set for derived types.
9641 For all types, make the alias set of derived types a superset of
9642 that of their parent type.
9643 (make_aligning_type): Adjust calls to copy_alias_set.
9644 (make_packable_type): Likewise.
9645 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
9646 Check for alias set conflict instead of strict equality to issue the
9647 warning.
9648
9649 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9650
9651 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9652 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
9653 (copy_alias_set): Assert that arrays have the same aliasing settings.
9654 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
9655
9656 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
9657
9658 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
9659 Set TYPE_NONALIASED_COMPONENT on the array type.
9660
9661 2009-01-31 Laurent GUERBY <laurent@guerby.net>
9662
9663 * gcc-interface/Makefile.in: Fix mipsel linux handling.
9664
9665 2009-01-16 Jakub Jelinek <jakub@redhat.com>
9666
9667 * gcc-interface/Makefile.in: Fix multilib handling for
9668 powerpc64-linux.
9669
9670 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
9671
9672 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
9673 only useless conversions around renamed objects.
9674
9675 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
9676
9677 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
9678 the _Tag field before any discriminants in the field list.
9679 (components_to_record): Remove obsolete comment.
9680
9681
9682 \f
9683 Copyright (C) 2009 Free Software Foundation, Inc.
9684
9685 Copying and distribution of this file, with or without modification,
9686 are permitted in any medium without royalty provided the copyright
9687 notice and this notice are preserved.