f6ca7d7d0ec645ed7a206d720ddf3c0e38e56fee
[gcc.git] / gcc / ada / ChangeLog
1 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
2
3 * lib-writ.adb (flag_compare_debug): Import.
4 (Write_ALI): Skip during -fcompare-debug-second.
5
6 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
7
8 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
9 adjusting the discriminant nodes in an extension, use the full view
10 of the parent subtype if it is of a private kind.
11
12 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
13
14 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
15 _Parent field, if any, to the record before adding the other fields.
16 <E_Record_Subtype>: Put the _Controller field before the other fields
17 except for the _Tag or _Parent fields.
18 (components_to_record): Likewise. Retrieve the _Parent field from the
19 record type.
20
21 2009-06-03 Eric Botcazou <ebotcazou@adacore.com>
22
23 * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
24 remove unused parameter and simplify.
25 (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS. Factor
26 common predicate. Rewrite loop for clarity. Use GNU_TYPE directly
27 as context for all discriminants. Fix formatting nits.
28 <E_Record_Subtype>: Add cosmetic 'break'. Test Has_Discriminants
29 before Discriminant_Constraint. Adjust for above renaming. Do not
30 set GNU_TYPE more than once.
31 (elaborate_entity): Test Has_Discriminants on the entity and use
32 Implementation_Base_Type.
33 (components_to_record): Rename component_list to gnat_component_list.
34 Retrieve the _Parent field from the list. Fix nits in comments.
35 Clarify logic in loop. Pass correct arguments to create_field_decl.
36
37 2009-06-02 Eric Botcazou <ebotcazou@adacore.com>
38
39 * gcc-interface/Make-lang.in: Fix formatting.
40
41 2009-06-01 Olivier Hainque <hainque@adacore.com>
42 Eric Botcazou <ebotcazou@adacore.com>
43
44 * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
45 to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
46 on the result if at least one of the input fields couldn't be output
47 as a static constant any more.
48
49 2009-06-01 Olivier Hainque <hainque@adacore.com>
50 Eric Botcazou <ebotcazou@adacore.com>
51
52 * gcc-interface/utils2.c (gnat_build_constructor): Factor
53 out code. Use initializer_constant_valid_for_bitfield_p and
54 CONSTRUCTOR_BITFIELD_P for bit-fields.
55
56 2009-05-26 Ian Lance Taylor <iant@google.com>
57
58 * gcc-interface/Makefile.in (COMPILER): Define.
59 (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
60 (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
61 (seh_init.o, tracebak.o): Likewise.
62 * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
63 (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
64 (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
65 (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
66 (ada/utils2.o): Likewise.
67
68 2009-05-24 Olivier Hainque <hainque@adacore.com>
69
70 * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
71 * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
72 Add -auxbase variants to the list of recognized internal switches.
73 * back_end.adb (Scan_Back_End_Switches): Use the new functions and
74 adjust comments.
75 * lib.ads: Make comment on internal GCC switches more general.
76 * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
77 as for C.
78
79 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
80
81 * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
82
83 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
84
85 * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
86 types.
87
88 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
89
90 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
91 original type because of the alignment when there is an address clause.
92
93 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
94
95 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
96 discriminants affect the shape of the subtype, retrieve the GCC type
97 directly from the original field if the GNAT types for the field and
98 the original field are the same.
99
100 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
101
102 * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
103 New macros.
104 (TYPE_RM_VALUES): Likewise.
105 (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
106 (SET_TYPE_RM_SIZE): New macro.
107 (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
108 (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
109 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
110 * gcc-interface/gigi.h (create_range_type): Declare.
111 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
112 Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
113 <E_Signed_Integer_Subtype>: Build a regular integer type first and
114 then set the RM bounds. Use SET_TYPE_RM_SIZE to set the RM size.
115 <E_Floating_Point_Subtype>: Build a regular floating-point type first
116 and then set the RM bounds.
117 <E_Array_Type>: Use create_range_type instead of build_range_type.
118 <E_Array_Subtype>: Build a regular integer type first and then set
119 the RM bounds for the extra subtype.
120 <E_String_Literal_Subtype>: Use create_range_type instead of
121 build_range_type.
122 <all>: Set the RM bounds for enumeration types and the GCC bounds for
123 floating-point types.
124 (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
125 (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
126 to set the bounds. Use SET_TYPE_RM_SIZE to set the RM size.
127 (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
128 types and with RM bounds for subtypes.
129 * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
130 (gnat_print_type) <REAL_TYPE>: New case.
131 <ENUMERAL_TYPE>: Fall through to above case.
132 (gnat_get_subrange_bounds): New function.
133 * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
134 TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
135 * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
136 for booleans. Adjust and use SET_TYPE_RM_SIZE to set the RM size.
137 (create_range_type): New function.
138 (create_param_decl): Build a regular integer type first and then set
139 the RM bounds for the extra subtype.
140 (unchecked_convert): Remove kludge for 'Valid.
141 * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
142 the index to sizetype instead of TYPE_DOMAIN.
143
144 2009-05-14 Eric Botcazou <ebotcazou@adacore.com>
145
146 * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
147 parameter and move check for static expression to...
148 (elaborate_expression): ...here. Adjust call to above function.
149 (gnat_to_gnu_entity): Likewise for all calls. Use correct arguments
150 in calls to elaborate_expression.
151 (elaborate_entity): Likewise.
152 (substitution_list): Likewise.
153 (maybe_variable): Fix formatting.
154 (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
155 missing guard.
156 * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
157
158 2009-05-07 Arnaud Charlet <charlet@adacore.com>
159
160 * gcc-interface/Make-lang.in: Update dependencies.
161
162 2009-05-06 Laurent GUERBY <laurent@guerby.net>
163
164 * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
165 Define sa_handler_pos.
166 * s-osinte-linux.ads: Use it.
167 * s-linux-mipsel.ads: New.
168 * system-linux-mips64el.ads: New.
169 * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
170 mips64el-linux.
171
172 2009-05-06 Arnaud Charlet <charlet@adacore.com>
173
174 * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
175 targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
176 opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
177 (Tagged_Type_Expansion): New flag.
178 Replace use of VM_Target related to tagged types expansion by
179 Tagged_Type_Expansion, since tagged type expansion is not necessarily
180 linked to VM targets.
181
182 2009-05-06 Robert Dewar <dewar@adacore.com>
183
184 * sem_attr.adb: Add processing for Standard'Compiler_Version
185
186 * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
187 skipping.
188 (Expr_First_Char): Add ??? comment that paren skipping needs work
189 (Expr_Last_Char): Add ??? comment that paren skipping needs work
190
191 * exp_attr.adb: Add processing for Compiler_Version
192
193 * sem_attr.adb: New attribute Compiler_Version
194
195 * snames.ads-tmpl: Add entries for Compiler_Version attribute
196
197 * gnat_rm.texi: Document Compiler_Version attribute
198
199 2009-05-06 Robert Dewar <dewar@adacore.com>
200
201 * errout.adb: Minor reformatting
202
203 * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
204 sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
205 styleg.adb: Add stylized comments to error messages that are included
206 in the codefix circuitry of IDE's such as GPS.
207
208 2009-05-06 Sergey Rybin <rybin@adacore.com>
209
210 * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
211 new form of the rule parameter that allows to specify the suffix for
212 access-to-access type names.
213
214 2009-05-06 Robert Dewar <dewar@adacore.com>
215
216 * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
217 out parameter assigned when exception handlers are present.
218
219 * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
220 assignments on exit.
221
222 * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
223 sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
224 prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
225 par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
226 messages that are included in the codefix circuitry of IDE's such as
227 GPS.
228
229 * sinput.ads, sinput.adb (Expr_First_Char): New function
230 (Expr_Last_Char): New function
231
232 2009-05-06 Sergey Rybin <rybin@adacore.com>
233
234 * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
235 Add formal definition for extra exit point metric
236
237 2009-05-06 Pascal Obry <obry@adacore.com>
238
239 * adaint.c: Support for setting attributes on unicode filename on
240 Windows.
241
242 2009-05-06 Robert Dewar <dewar@adacore.com>
243
244 * sem_warn.adb: Minor reformatting
245
246 2009-05-06 Javier Miranda <miranda@adacore.com>
247
248 * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
249 not have discriminants or components with default expressions.
250 (Analyze_Pragma): For pragma CPP_Class check that imported types
251 have no discriminants and components have no default expression.
252
253 * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
254 class-wide types in the expression of a record component association.
255
256 2009-05-06 Sergey Rybin <rybin@adacore.com>
257
258 * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
259
260 * gnat_ugn.texi: Add description for the new extra exit points metric
261 (gnatmetric section).
262
263 2009-05-06 Robert Dewar <dewar@adacore.com>
264
265 * s-fileio.adb: Minor comment update
266
267 * sem_ch8.adb: Minor reformatting
268
269 * exp_ch3.adb: Update comments.
270
271 2009-05-06 Tristan Gingold <gingold@adacore.com>
272
273 * init.c, s-osinte-darwin.ads: Reduce alternate stack size
274
275 2009-05-06 Arnaud Charlet <charlet@adacore.com>
276
277 * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
278 Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
279
280 * gcc-interface/Make-lang.in: Update dependencies
281
282 2009-05-06 Ed Schonberg <schonberg@adacore.com>
283
284 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
285 change. The context clause of a generic instance declaration must be
286 preserved until the end of the compilation, because it may have to be
287 installed/removed repeatedly.
288 The latest change to sem.adb ensures that the context of both spec and
289 body of an instance is traversed before the instance itself, making
290 this patch redundant.
291
292 2009-05-06 Gary Dismukes <dismukes@adacore.com>
293
294 * sem_aggr.adb: Fix typo.
295
296 2009-05-06 Thomas Quinot <quinot@adacore.com>
297
298 * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
299 declaration, do not adjust if the declaration is to be rewritten into
300 a renaming.
301
302 2009-05-06 Ed Schonberg <schonberg@adacore.com>
303
304 * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
305 discriminant part.
306
307 2009-05-06 Bob Duff <duff@adacore.com>
308
309 * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
310 otherwise the compiler would be allowed to optimize away the cleanup
311 code.
312
313 2009-05-06 Gary Dismukes <dismukes@adacore.com>
314
315 * gnat_ugn.texi: Fix typo.
316
317 2009-05-06 Thomas Quinot <quinot@adacore.com>
318
319 * g-debuti.adb: Minor reformatting
320
321 * exp_attr.adb: Minor reformatting
322
323 2009-05-06 Robert Dewar <dewar@adacore.com>
324
325 * sem_aggr.adb: Minor reformatting.
326
327 * g-socthi-vms.adb: Minor reformatting
328
329 2009-05-06 Bob Duff <duff@adacore.com>
330
331 * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
332 (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
333
334 2009-05-06 Bob Duff <duff@adacore.com>
335
336 * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
337 flags.
338
339 2009-05-06 Javier Miranda <miranda@adacore.com>
340
341 * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
342 (Resolve_Extension_Aggregate): Do not reject C++ constructors in
343 extension aggregates.
344 (Resolve_Record_Aggregate): Add support for C++ constructors in
345 extension aggregates.
346
347 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
348 constructors in extension aggregates.
349
350 2009-05-06 Robert Dewar <dewar@adacore.com>
351
352 * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
353 clause.
354
355 2009-05-06 Thomas Quinot <quinot@adacore.com>
356
357 * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
358 packed type, since on OpenVMS, struct msghdr is packed.
359
360 2009-05-06 Ed Schonberg <schonberg@adacore.com>
361
362 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
363 call returning an unconstrained composite value, create the proper
364 subtype for it, as is done for object dclarations with unconstrained
365 nominal subtypes. Perform this transformation regarless of whether
366 call comes from source.
367
368 2009-05-06 Robert Dewar <dewar@adacore.com>
369
370 * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
371 records
372
373 * gnat_rm.texi:
374 Add documentation for pragma Implicit_Packing applied to record
375 types.
376
377 2009-05-06 Ed Schonberg <schonberg@adacore.com>
378
379 * sem.adb (Walk_Library_Items): Place all with_clauses of an
380 instantiation on the spec, because late instance bodies may generate
381 with_clauses for the instance body but are inserted in the instance
382 spec.
383
384 2009-05-06 Emmanuel Briot <briot@adacore.com>
385
386 * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
387 support for returning the directory even if it doesn't exist. This is
388 used for the object directory, since we are always setting it to a
389 non-null value, and we should set it to an absolute name rather than a
390 relative name for the sake of external tools that might depend on it.
391 (Check_Library_Attributes): When Project.Library_Dir is known, check
392 that the directory exists.
393
394 2009-05-06 Ed Schonberg <schonberg@adacore.com>
395
396 * sem_attr.adb (Check_Dereference): If the prefix of an attribute
397 reference is an implicit dereference, do not freeze the designated type
398 if within a default expression or when preanalyzing a pre/postcondtion.
399
400 2009-05-06 Ed Schonberg <schonberg@adacore.com>
401
402 * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
403 call returning an unconstrained composite value, create the proper
404 subtype for it, as is done for object dclarations with unconstrained
405 nominal subtypes
406
407 2009-05-06 Robert Dewar <dewar@adacore.com>
408
409 * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
410 improvements
411
412 * freeze.adb: Minor reformatting
413
414 2009-05-06 Thomas Quinot <quinot@adacore.com>
415
416 * sem_ch3.adb (Access_Type_Declaration): An access type whose
417 designated type is a limited view from a limited with clause (flagged
418 From_With_Type) is not itself such a limited view.
419
420 2009-05-06 Emmanuel Briot <briot@adacore.com>
421
422 * prj-nmsc.adb: Remove unused variable.
423
424 * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
425 prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
426 makeutl.ads, since not all users of prj.ads need this.
427
428 2009-05-06 Javier Miranda <miranda@adacore.com>
429
430 * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
431 constructor in case of aggregates whose type is a CPP_Class type.
432
433 2009-05-06 Robert Dewar <dewar@adacore.com>
434
435 * sem_ch13.adb: Minor comment additions
436
437 * osint.adb: Minor reformatting
438
439 2009-05-06 Pascal Obry <obry@adacore.com>
440
441 * initialize.c: On Windows, keep full pathname to expanded command
442 line patterns.
443
444 2009-05-06 Ed Schonberg <schonberg@adacore.com>
445
446 * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
447 an aggregate with box default is of a discriminated private type, do
448 not build a subaggregate for it.
449 A proper call to the initialization procedure is generated for it.
450
451 2009-05-06 Thomas Quinot <quinot@adacore.com>
452
453 * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
454 (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
455 Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
456 use standard array code for Standard.String.
457 (Exp_Dist): Bump PolyORB s-parint API version to 3.
458 (Rtsfind): New entities TA_Std_String, Unbounded_String.
459
460 2009-05-06 Robert Dewar <dewar@adacore.com>
461
462 * g-comlin.ads: Minor reformatting
463
464 * xoscons.adb: Minor reformatting
465
466 2009-05-06 Gary Dismukes <dismukes@adacore.com>
467
468 * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
469 Underlying_Type before retrieving the type definition for gathering
470 components, to account for the case where the type is private.
471
472 2009-05-06 Tristan Gingold <gingold@adacore.com>
473
474 * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
475
476 2009-05-06 Thomas Quinot <quinot@adacore.com>
477
478 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
479 g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
480 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
481 (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
482 Windows versions): Fix incorrect base
483 address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
484 (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
485 System.Address for the To parameter instead of a Sockaddr_In_Access, to
486 achieve independance from AF_INET family, and also to allow this
487 parameter to be retrieved from a Msghdr for the Windows case where
488 these routines are used to implement C_Sendmsg and C_Recvmsg.
489
490 2009-05-06 Bob Duff <duff@adacore.com>
491
492 * g-expect.adb, g-expect.ads: Minor reformatting
493
494 * sdefault.ads: Minor comment fix
495
496 * g-expect-vms.adb: Minor reformatting
497
498 * table.ads, table.adb (Append_All): New convenience procedure for
499 appending a whole array.
500
501 * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
502 box message. Call Osint.Dump_Source_File_Names to print out the file
503 list, instead of rummaging around in various data structures.
504
505 * debug.adb: New switch -gnatd.n, to print source file names as they
506 are read.
507
508 * alloc.ads: Add parameters for Osint.File_Name_Chars.
509
510 * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
511 out source file names during a "bug box".
512 (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
513 (Read_Source_File): Print out the file name, if requested via -gnatd.n.
514 If it's not part of the runtimes, store it for later printing by
515 Dump_Source_File_Names.
516
517 2009-05-06 Javier Miranda <miranda@adacore.com>
518
519 * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
520 documentation and add reference to the GNAT user guide for further
521 details.
522
523 2009-05-06 Javier Miranda <miranda@adacore.com>
524
525 * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
526 also wrong examples that use extension aggregates.
527
528 2009-05-06 Albert Lee <lee@adacore.com>
529
530 * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
531 of Msg_Iovlen_T for VMS.
532
533 2009-05-04 Laurent GUERBY <laurent@guerby.net>
534
535 PR ada/38874
536 * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
537
538 2009-04-29 Ed Schonberg <schonberg@adacore.com>
539
540 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
541 box-defaulted operator in an instantiation, when the type of the
542 operands is not directly visible.
543
544 2009-04-29 Gary Dismukes <dismukes@adacore.com>
545
546 * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
547 (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
548 analysis of the ancestor part. Remove prohibition against limited
549 interpretations of the ancestor expression in the case of Ada 2005.
550 Revise error message in overloaded case, adding a message to cover
551 the Ada 2005 case.
552
553 2009-04-29 Thomas Quinot <quinot@adacore.com>
554
555 * xoscons.adb: Minor reformatting
556
557 2009-04-29 Bob Duff <duff@adacore.com>
558
559 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
560 attribute_definition_clauses for the following attributes when the
561 -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
562 Storage_Size, Write. Otherwise, we get spurious errors (for example,
563 missing Read attribute on remote types).
564
565 * gnat_ugn.texi: Document the change, and add a stern warning.
566
567 2009-04-29 Ed Schonberg <schonberg@adacore.com>
568
569 * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
570 disabled not just for the current scope, but for the innermost dynamic
571 scope as well.
572
573 2009-04-29 Arnaud Charlet <charlet@adacore.com>
574
575 * gcc-interface/Make-lang.in: Update dependencies
576
577 2009-04-29 Vincent Celier <celier@adacore.com>
578
579 * prj-part.adb: Minor comment update
580
581 2009-04-29 Ed Schonberg <schonberg@adacore.com>
582
583 * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
584 box-initialized records with discriminated subcomponents that are
585 constrained by discriminants of enclosing components. New subsidiary
586 procedures Add_Discriminant_Values, Propagate_Discriminants.
587
588 2009-04-29 Arnaud Charlet <charlet@adacore.com>
589
590 * g-socket.adb: Code clean up.
591
592 2009-04-29 Gary Dismukes <dismukes@adacore.com>
593
594 * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
595 function entity, to cover the case of a parameterless function call
596 that has not been resolved.
597
598 2009-04-29 Robert Dewar <dewar@adacore.com>
599
600 * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
601 reformatting and comment updates.
602
603 2009-04-29 Arnaud Charlet <charlet@adacore.com>
604
605 * gnat_ugn.texi: Update some documentation about interfacing with C++
606 Mention -fkeep-inline-functions.
607
608 * gnat_ugn.texi: Minor edits
609
610 2009-04-29 Ed Schonberg <schonberg@adacore.com>
611
612 * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
613 for a defaulted component of an enclosing aggregate, inherit the type
614 from the component declaration of the enclosing type.
615
616 2009-04-29 Albert Lee <lee@adacore.com>
617
618 * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
619 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
620 (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
621 msg_iovlen field in struct msghdr is 32 or 64 bits wide.
622 Relocate the Msghdr record type from GNAT.Sockets.Thin to
623 GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
624 type for the Msg_Iovlen field.
625
626 2009-04-29 Vincent Celier <celier@adacore.com>
627
628 * sinput-l.adb (Load_File): When preprocessing, set temporarily the
629 Source_File_Index_Table entries for the source, to avoid crash when
630 reporting an error.
631
632 * gnatcmd.adb (Test_If_Relative_Path): Use
633 Makeutl.Test_If_Relative_Path.
634
635 * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
636 Including_RTS is True.
637
638 * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
639 Including_RTS defaulted to False.
640
641 * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
642 a default value.
643
644 2009-04-29 Javier Miranda <miranda@adacore.com>
645
646 * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
647
648 2009-04-29 Javier Miranda <miranda@adacore.com>
649
650 * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
651 associated with dyamically tagged expressions if the expression
652 initializing a tagged type corresponds with a non default CPP
653 constructor.
654 (OK_For_Limited_Init): CPP constructor calls are OK for initialization
655 of limited type objects.
656
657 * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
658 when a CPP constructor is called in an assignment. Disable also the
659 error message associated with dyamically tagged expressions if the
660 exporession initializing a tagged type corresponds with a non default
661 CPP constructor.
662
663 * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
664 non-default C++ constructors.
665
666 * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
667
668 * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
669 non-default constructors.
670 (Init_Proc): Add support for non-default constructors.
671
672 * exp_disp.adb (Set_Default_Constructor): Removed.
673 (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
674 but extending its functionality to handle non-default constructors.
675
676 * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
677 constructors. Minor code cleanup removing unrequired label and goto
678 statement.
679
680 * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
681 constructors.
682 (Build_Init_Statements): Add support for non-default constructors.
683 (Expand_N_Object_Declaration): Add support for non-default constructors.
684 (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
685 to Set_CPP_Constructors.
686
687 * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
688 non-default constructors.
689 Required to handle its use in build-in-place statements.
690
691 * gnat_rm.texi (CPP_Constructor): Document new extended use of this
692 pragma for non-default C++ constructors and the new compiler support
693 that allows the use of these constructors in record components, limited
694 aggregates, and extended return statements.
695
696 2009-04-29 Vincent Celier <celier@adacore.com>
697
698 * prj-part.adb (Parse_Single_Project): Do not attempt to find a
699 project extending an abstract project.
700
701 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
702
703 * targparm.ads: Fix oversight.
704
705 2009-04-29 Ed Schonberg <schonberg@adacore.com>
706
707 * lib-xref.adb (Output_Overridden_Op): Follow several levels of
708 derivation when necessary, to find the user-subprogram that is actally
709 being overridden.
710
711 2009-04-29 Robert Dewar <dewar@adacore.com>
712
713 * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
714 components
715
716 2009-04-29 Ed Schonberg <schonberg@adacore.com>
717
718 * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
719 primitive operation, rather than source line of synchronized type, when
720 building the wrapper for a primitive operation that overrides an
721 operation inherited from a progenitor, to improve the error message on
722 duplicate declarations.
723
724 * sem_ch3.adb (Process_Full_View): Use new signature of
725 Build_Wrapper_Spec.
726
727 2009-04-29 Robert Dewar <dewar@adacore.com>
728
729 * prj-nmsc.ads: Minor reformatting
730
731 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
732
733 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
734 expression on the existing parent If statement.
735
736 2009-04-29 Robert Dewar <dewar@adacore.com>
737
738 * prj-proc.adb, prj.ads: Minor reformatting
739
740 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
741
742 * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
743 existing parent If statement on the newly created one.
744
745 2009-04-29 Emmanuel Briot <briot@adacore.com>
746
747 * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
748 prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
749 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
750 (Set_In_Configuration, In_Configuration): Removed.
751 Replaced by an extra parameter Is_Config_File in several parameter to
752 avoid global variables to store the state of the parser.
753
754 2009-04-29 Ed Schonberg <schonberg@adacore.com>
755
756 * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
757 with_clauses generated for the same unit through rtsfind, and that
758 appear in the context of different units.
759
760 * rtsfind.adb: New attribute First_Implicit_With, component of the
761 Unit_Record that stores information about a unit loaded through rtsfind.
762
763 2009-04-29 Gary Dismukes <dismukes@adacore.com>
764
765 * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
766 (other conditions permitting), so that abstract stream subprograms will
767 be declared for them.
768
769 2009-04-29 Bob Duff <duff@adacore.com>
770
771 * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
772
773 * g-expect.ads: Minor comment fixes.
774
775 2009-04-29 Ed Schonberg <schonberg@adacore.com>
776
777 * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
778 dispatching operation is a body without previous spec, update the list
779 of primitive operations to ensure that cross-reference information is
780 up-to-date.
781
782 2009-04-29 Albert Lee <lee@adacore.com>
783
784 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
785 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
786 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
787 (GNAT.Sockets.Thin.C_Readv,
788 GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
789 (GNAT.Sockets.Thin.C_Recvmsg,
790 GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
791 sendmsg(2).
792 (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
793 C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
794
795 2009-04-29 Ed Schonberg <schonberg@adacore.com>
796
797 * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
798 operation is a body without previous spec, update the list of
799 primitive operations to ensure that cross-reference information is
800 up-to-date.
801
802 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
803 new compilation unit node for the instance declaration, keep the
804 context items of the original unit on it, so that the context of the
805 instance body only holds the context inherited from the generic body.
806
807 2009-04-29 Bob Duff <duff@adacore.com>
808
809 * sem_res.adb: Minor comment fix.
810
811 2009-04-29 Thomas Quinot <quinot@adacore.com>
812
813 * sem_elim.adb: Minor reformatting
814
815 2009-04-29 Ed Schonberg <schonberg@adacore.com>
816
817 * exp_aggr.adb (Convert_To_Positional): if the current unit is a
818 predefined unit, allow arbitrary number of components in static
819 aggregate, to ensure that the same level of constant folding applies
820 for Ada 95 and Ada 05 versions of the file.
821
822 2009-04-29 Ed Schonberg <schonberg@adacore.com>
823
824 * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
825 information: no need for full scope check.
826 (Eliminate_Error): Do not emit error in a generic context.
827
828 2009-04-29 Ed Falis <falis@adacore.com>
829
830 * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
831 VxWorks 653 POS does not support rmdir.
832
833 2009-04-29 Matteo Bordin <bordin@adacore.com>
834
835 * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
836 results are printed.
837
838 2009-04-29 Arnaud Charlet <charlet@adacore.com>
839
840 * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
841 unused assignment.
842
843 2009-04-29 Thomas Quinot <quinot@adacore.com>
844
845 * make.adb: Minor reformatting.
846 Minor code reorganization throughout.
847
848 2009-04-29 Matteo Bordin <bordin@adacore.com>
849
850 * s-stausa.ads: Changed visibility of type Task_Result: moved to
851 public part to give application visibility over it.
852 This is for future improvement and to build a public API on top of it.
853 Changed record components name of type Task_Result to reflect the new
854 way of reporting.
855
856 * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
857 reporting Stack usage.
858
859 * gnat_ugn.texi: Update doc of stack usage report.
860
861 * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
862
863 * Makefile.rtl: Add new run-time files.
864
865 2009-04-29 Pascal Obry <obry@adacore.com>
866
867 * initialize.c: Do not expand quoted arguments.
868
869 2009-04-29 Emmanuel Briot <briot@adacore.com>
870
871 * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
872
873 * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
874 Prj.Ultimate_Extending_Project_Of
875
876 2009-04-29 Ed Schonberg <schonberg@adacore.com>
877
878 * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
879 Amendment type, add the with_clause for Finalization.List_Controller
880 only if the current context is a package body.
881
882 2009-04-29 Thomas Quinot <quinot@adacore.com>
883
884 * sem_ch12.adb: Minor reformatting
885
886 * sem_aggr.adb: Minor reformatting
887
888 * sem_ch6.adb, sem_cat.ads: Minor reformatting
889
890 * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
891
892 2009-04-29 Quentin Ochem <ochem@adacore.com>
893
894 * prj.ads (Source_Id): Now general pointer type.
895
896 2009-04-29 Thomas Quinot <quinot@adacore.com>
897
898 * exp_ch7.adb, rtsfind.adb: Minor reformatting
899
900 * sem_res.adb: Minor reformatting
901
902 2009-04-29 Thomas Quinot <quinot@adacore.com>
903
904 * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
905 operands is static only if it is a predefined concatenation operator.
906
907 * sem_util.adb: Minor reformatting
908
909 * sem_ch12.adb (Save_References): When propagating semantic information
910 from generic copy back to generic template, for the case of an
911 identifier that has been rewritten to an explicit dereference whose
912 prefix is either an object name or a parameterless funcion call
913 denoting a global object or function, properly capture the denoted
914 global entity: perform the corresponding rewriting in the template,
915 and point the rewritten identifier to the correct global entity (not
916 to the associated identifier in the generic copy).
917
918 2009-04-29 Robert Dewar <dewar@adacore.com>
919
920 * rtsfind.adb, prj-env.adb: Minor reformatting
921 Minor code reorganization
922
923 2009-04-29 Emmanuel Briot <briot@adacore.com>
924
925 * make.adb: Fix comment
926
927 * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
928 is given as argument, as might happen in gnatmake.
929
930 2009-04-29 Ed Schonberg <schonberg@adacore.com>
931
932 * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
933 an abstract operation of a progenitor is not properly overridden by an
934 operation of a derived synchronized type.
935
936 2009-04-29 Robert Dewar <dewar@adacore.com>
937
938 * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
939 prj-proc.adb: Minor reformatting
940 Minor code reorganization
941
942 2009-04-29 Bob Duff <duff@adacore.com>
943
944 * exp_ch7.adb (Build_Final_List): For an access type that designates a
945 Taft Amendment type, if the access type needs finalization, make sure
946 the implicit with clause for List_Controller occurs on the package spec.
947
948 * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
949 with's created for the pseudo-children of Text_IO and friends. In
950 particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
951 Ada.Text_IO.Integer_IO both with-ing each other.
952
953 * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
954 oddball cases when pragma Extend_System is used.
955
956 * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
957 the case where a package spec instantiates a generic whose body with's
958 this package, so Walk_Library_Items won't complain about cyclic with's.
959
960 2009-04-29 Emmanuel Briot <briot@adacore.com>
961
962 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
963 prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
964 mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
965 (Project_Id): now a real pointer to Project_Data, instead of an index
966 into the Projects_Table. This simplifies the API significantly, avoiding
967 extra lookups in this table and the need to pass the Project_Tree_Ref
968 parameter in several cases
969
970 2009-04-29 Nicolas Setton <setton@adacore.com>
971
972 * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
973 darwin.
974
975 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
976
977 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
978 back kludge.
979
980 2009-04-24 Robert Dewar <dewar@adacore.com>
981
982 * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
983 clean.adb: Minor reformatting.
984 Minor code reorganization and message improvement.
985
986 2009-04-24 Emmanuel Briot <briot@adacore.com>
987
988 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
989 (Alternate_Languages): now implemented as a malloc-ed list rather
990 than through a table.
991
992 2009-04-24 Thomas Quinot <quinot@adacore.com>
993
994 * sem_res.adb (Static_Concatenation): Simplify predicate to make it
995 accurately handle cases such as "lit" & "lit" and
996 "lit" & static_string_constant
997
998 2009-04-24 Emmanuel Briot <briot@adacore.com>
999
1000 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
1001 prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
1002 removed. Lists of projects are now implemented via standard malloc
1003 rather than through the table.
1004
1005 2009-04-24 Thomas Quinot <quinot@adacore.com>
1006
1007 * sem_ch12.adb: Minor reformatting
1008
1009 * g-trasym.adb: Minor reformatting
1010
1011 * exp_ch6.adb: Minor reformatting
1012
1013 2009-04-24 Robert Dewar <dewar@adacore.com>
1014
1015 * layout.adb (Layout_Type): For packed array type, copy unset
1016 size/alignment fields from the referenced Packed_Array_Type.
1017
1018 2009-04-24 Bob Duff <duff@adacore.com>
1019
1020 * lib-load.adb (Make_Instance_Unit): Revert previous change, no
1021 longer needed after sem_ch12 changes.
1022
1023 * sem.adb (Walk_Library_Items): Include with's in some debugging
1024 printouts.
1025
1026 2009-04-24 Emmanuel Briot <briot@adacore.com>
1027
1028 * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
1029 only ever using the Project field.
1030
1031 2009-04-24 Ed Schonberg <schonberg@adacore.com>
1032
1033 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
1034 Body_Required on the generated compilation node. The new node is linked
1035 to its body, but both share the same file, so we do not set this flag
1036 on the new unit so as not to create a spurious dependency on a
1037 non-existent body in the ali file for the instance.
1038
1039 2009-04-24 Robert Dewar <dewar@adacore.com>
1040
1041 * make.adb: Minor reformatting
1042
1043 2009-04-24 Emmanuel Briot <briot@adacore.com>
1044
1045 * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
1046 Add_Source): merge some code between those. In particular change where
1047 file normalization is done to avoid a few extra calls to
1048 Canonicalize_File_Name. This also removes the need for passing
1049 Current_Dir in a number of subprograms.
1050
1051 2009-04-24 Bob Duff <duff@adacore.com>
1052
1053 * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
1054 False, assign the correct unit to the Cunit field of the new table
1055 entry. We want the spec unit, not the body unit.
1056
1057 * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
1058 interface for these.
1059 (Maybe_Add_With): Check whether we're trying to a with on the current
1060 unit, and avoid creating such directly self-referential with clauses.
1061 (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
1062 [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
1063 and matches existing comments in the spec.
1064
1065 * sem.adb (Walk_Library_Items): Add various special cases to make the
1066 assertions pass.
1067
1068 * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
1069 instead of Parent (N), for uniformity.
1070
1071 2009-04-24 Robert Dewar <dewar@adacore.com>
1072
1073 * errout.ads: Minor reformatting
1074
1075 2009-04-24 Emmanuel Briot <briot@adacore.com>
1076
1077 * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
1078 behavior when the project includes sources from multiple languages
1079
1080 2009-04-24 Vincent Celier <celier@adacore.com>
1081
1082 * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
1083 is a language other than Ada declared.
1084
1085 * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
1086 Imported_First set to True.
1087
1088 2009-04-24 Ed Schonberg <schonberg@adacore.com>
1089
1090 * sem_res.adb: additional optimization to inhibit creation of
1091 redundant transient scopes.
1092
1093 2009-04-24 Bob Duff <duff@adacore.com>
1094
1095 * rtsfind.ads: Minor comment fix
1096
1097 2009-04-24 Emmanuel Briot <briot@adacore.com>
1098
1099 * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
1100 Get_Path_Name_And_Record_Ada_Sources): merged, since these were
1101 basically doing the same work (for explicit or implicit sources).
1102 (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
1103 role. Rewritten to share some code (testing that all explicit sources
1104 have been found) between ada_only and multi_language modes.
1105
1106 2009-04-24 Jerome Lambourg <lambourg@adacore.com>
1107
1108 * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
1109 for CLI imported types.
1110 (Analyze_Pragma): Allow CIL or Java imported functions returning
1111 access-to-subprogram types.
1112
1113 2009-04-24 Emmanuel Briot <briot@adacore.com>
1114
1115 * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
1116 (Project_Data.Dir_Path): field removed, since it can be computed
1117 directly from .Directory, and is needed only once when processing the
1118 project is buildgpr.adb or make.adb
1119
1120 2009-04-24 Robert Dewar <dewar@adacore.com>
1121
1122 * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
1123 rtsfind.adb: Minor reformatting.
1124 Minor code reorganization
1125
1126 2009-04-24 Arnaud Charlet <charlet@adacore.com>
1127
1128 * mlib-prj.adb: Use friendlier english identifier.
1129
1130 * gnatcmd.adb, make.adb: Use better english identifiers.
1131
1132 2009-04-24 Robert Dewar <dewar@adacore.com>
1133
1134 * clean.adb: Minor reformatting
1135
1136 2009-04-24 Robert Dewar <dewar@adacore.com>
1137
1138 * einfo.adb (OK_To_Rename): New flag
1139
1140 * einfo.ads (OK_To_Rename): New flag
1141
1142 * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
1143 OK_To_Rename set.
1144
1145 * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
1146
1147 * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
1148 OK_To_Rename.
1149
1150 2009-04-24 Emmanuel Briot <briot@adacore.com>
1151
1152 * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
1153 clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
1154 field removed. This is not a property of the
1155 project, just a boolean used to traverse the project tree, and storing
1156 it in the structure prevents doing multiple traversal in parallel.
1157 (Project_Data.Checked): also removed, since it was playing the same role
1158 as Seen when we had two nested loops, and this is no longer necessary
1159 (For_All_Imported_Projects): removed, since in fact there was already
1160 the equivalent in For_Every_Project_Imported. The latter was rewritten
1161 to use a local hash table instead of Project_Data.Seen
1162 Various loops were rewritten to use For_Every_Project_Imported, thus
1163 removing the need for Project_Data.Seen. This avoids a lot of code
1164 duplication
1165
1166 2009-04-24 Ed Schonberg <schonberg@adacore.com>
1167
1168 * sem_res.adb (Resolve_Actuals): Do not create blocks around code
1169 statements, even though the actual of the call is a concatenation,
1170 because the argument is static, and we want to preserve warning
1171 messages about sequences of code statements that are not marked
1172 volatile.
1173
1174 * sem_warn.adb: remove obsolete comment about warning being obsolete
1175
1176 * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
1177 requeued and the delay has expired while within the accept statement
1178 that executes the requeue, do not perform the requeue and indicate that
1179 the timed call has been aborted.
1180
1181 2009-04-24 Emmanuel Briot <briot@adacore.com>
1182
1183 * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
1184 (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
1185 (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
1186 since they can be computed from the above.
1187
1188 2009-04-24 Vincent Celier <celier@adacore.com>
1189
1190 * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
1191
1192 * prj-env.adb: Move all global variables to the private part of the
1193 project tree data.
1194 Access these new components instead of the global variables no longer
1195 in existence.
1196 (Add_To_Path): New Project_Tree_Ref parameter, to access the new
1197 components that were previously global variables.
1198
1199 * prj-env.ads (Initialize): New Project_Tree_Ref parameter
1200 (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
1201 parameter.
1202
1203 * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
1204 be able to call Set_Mapping_File_Initial_State_To_Empty with it.
1205
1206 * prj.adb (Initialize): Do not call Prj.Env.Initialize
1207 (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
1208 components in the private part of the project tree data.
1209
1210 * prj.ads (Private_Project_Tree_Data): new components moved from
1211 Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
1212 Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
1213 Ada_Prj_Objects_File_Set, Fill_Mapping_File.
1214
1215 2009-04-24 Vincent Celier <celier@adacore.com>
1216
1217 * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
1218
1219 * prj-nmsc.adb (Check_Library): No error for imports by shared library
1220 projects, when --unchecked-shared-lib-imports is used.
1221
1222 2009-04-24 Robert Dewar <dewar@adacore.com>
1223
1224 * sem_ch7.adb: Minor reformatting
1225
1226 2009-04-24 Tristan Gingold <gingold@adacore.com>
1227
1228 * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
1229 mach thread id.
1230
1231 2009-04-24 Emmanuel Briot <briot@adacore.com>
1232
1233 * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
1234 Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
1235 (For_All_Imported_Projects): new procedure
1236 (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
1237 above rather than duplicating code.
1238
1239 2009-04-24 Emmanuel Briot <briot@adacore.com>
1240
1241 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
1242 (Source_Id, Source_Data): use a real list to store sources rather than
1243 using an external table to store the elements. This makes code more
1244 efficient and more readable.
1245
1246 2009-04-24 Emmanuel Briot <briot@adacore.com>
1247
1248 * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
1249 (Source_Iterator): new type.
1250 This removes the need for having the sources on three different
1251 lists at the project tree, project and language level. They are now
1252 on a single list.
1253
1254 2009-04-24 Emmanuel Briot <briot@adacore.com>
1255
1256 * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
1257
1258 2009-04-24 Ed Schonberg <schonberg@adacore.com>
1259
1260 * sem_warn.adb: Add comment on obsolete warning
1261
1262 2009-04-24 Arnaud Charlet <charlet@adacore.com>
1263
1264 * s-tassta.adb (Create_Task): Fix violation of locking rule.
1265
1266 2009-04-24 Emmanuel Briot <briot@adacore.com>
1267
1268 * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
1269 to Language_Ptr to better reflect its new implementation.
1270 (Project_Data.First_Languages_Processing): renamed to Languages now
1271 that the field with that name is no longer used
1272 (Project_Data.Languages): removed, no longer used, and duplicates
1273 information already available through First_Language_Processing.
1274 (Prj.Language_Index): now an actual pointer, instead of an index into
1275 a table. This makes the list somewhat more obvious, but more importantly
1276 removes the need to pass a pointer to the project_tree_data in a few
1277 places, and makes accessing the attributes of a languages more
1278 efficient.
1279
1280 2009-04-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1281 Thomas Quinot <quinot@adacore.com>
1282
1283 * fe.h (Set_Identifier_Casing): Add const to second parameter.
1284 * gcc-interface/misc.c (internal_error_function): Make copy of return
1285 from pp_formatted_text before assigning BUFFER to it.
1286 (gnat_init): Likewise for main_input_filename and gnat_argv.
1287 (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
1288
1289 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1290
1291 * ttypes.ads (Target_Double_Float_Alignment): New variable.
1292 (Target_Double_Scalar_Alignment): Likewise.
1293 * get_targ.ads (Get_Strict_Alignment): Adjust external name.
1294 (Get_Double_Float_Alignment): New imported function.
1295 (Get_Double_Scalar_Alignment): Likewise.
1296 * layout.adb (Set_Elem_Alignment): Take into account specific caps for
1297 the alignment of "double" floating-point types and "double" or larger
1298 scalar types, as parameterized by Target_Double_Float_Alignment and
1299 Target_Double_Scalar_Alignment respectively.
1300 * gcc-interface/gigi.h (double_float_alignment): Declare.
1301 (double_scalar_alignment): Likewise.
1302 (is_double_float_or_array): Likewise.
1303 (is_double_scalar_or_array): Likewise.
1304 (get_target_double_float_alignment): Likewise.
1305 (get_target_double_scalar_alignment): Likewise.
1306 * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
1307 (get_target_strict_alignment): ...this.
1308 (get_target_double_float_alignment): New function.
1309 (get_target_double_scalar_alignment): Likewise.
1310 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1311 Test the presence of an alignment clause for under-aligned integer
1312 types. Take into account specific caps for the alignment of "double"
1313 floating-point types and "double" or larger scalar types, as
1314 parameterized by Target_Double_Float_Alignment and
1315 Target_Double_Scalar_Alignment respectively.
1316 (validate_alignment): Likewise.
1317 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
1318 (gigi): Initialize double_float_alignment and double_scalar_alignment.
1319 * gcc-interface/utils.c (double_float_alignment): New global variable.
1320 (double_scalar_alignment): Likewise.
1321 (is_double_float_or_array): New predicate.
1322 (is_double_scalar_or_array): Likewise.
1323
1324 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1325
1326 * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
1327 the conditional expression only if it is common to both arms.
1328
1329 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1330
1331 * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
1332 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
1333 arguments to build_allocator.
1334 * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
1335 Remove code handling special allocator and assert its uselessness.
1336
1337 2009-04-24 Eric Botcazou <ebotcazou@adacore.com>
1338
1339 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
1340 alignment is specified, do not promote that of the component type
1341 beyond it.
1342 <E_Array_Subtype>: Likewise.
1343
1344 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1345
1346 * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
1347 * sinfo.ads (Object Declaration): Likewise.
1348 (Assignment Statement): Likewise.
1349 * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
1350 Do not force Is_True_Constant to false on the temporary.
1351 (Freeze_Entity): Do not force Is_True_Constant to false on names on
1352 the RHS of object declarations.
1353 * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
1354 New case. Return 1 if the object is atomic.
1355 <N_Assignment_Statement>: Likewise.
1356
1357 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1358
1359 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
1360 For packed array types, make the original array type a parallel type
1361 for the modular type and its JM wrapper if the type is bit-packed.
1362 <E_Array_Subtype>: Likewise. Do not generate the special XA parallel
1363 record type for packed array types. Remove kludge.
1364
1365 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1366
1367 * gcc-interface/gigi.h (create_index_type): Adjust head comment.
1368 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1369 Use front-end predicates to compute signedness and precision.
1370 <E_String_Literal_Subtype>: Fold range type.
1371 Make sure to set longest_float_type_node to a scalar type.
1372 (elaborate_entity): Use consistent Constraint_Error spelling.
1373 (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
1374 * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
1375 output for the modulus, if any.
1376 <ENUMERAL_TYPE>: Likewise for the RM size.
1377 * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
1378 spelling.
1379 * gcc-interface/utils.c (finish_record_type): Really test the alignment
1380 of BLKmode bit-fields to compute their addressability.
1381 (create_index_type): Adjust comments.
1382 (create_param_decl): Create the biased subtype manually.
1383 * gcc-interface/utils2.c (build_component_ref): Use consistent
1384 Constraint_Error spelling.
1385
1386 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1387
1388 * gcc-interface/cuintp.c: Clean up include directives.
1389 * gcc-interface/targtyps.c: Likewise.
1390 * gcc-interface/decl.c: Likewise.
1391 * gcc-interface/misc.c: Likewise.
1392 * gcc-interface/trans.c: Likewise.
1393 * gcc-interface/utils.c: Likewise.
1394 * gcc-interface/utils2.c: Likewise.
1395 * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
1396
1397 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
1398
1399 * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
1400 (SET_TYPE_LANG_SPECIFIC): Likewise. Fix formatting.
1401 (SET_DECL_LANG_SPECIFIC): Likewise.
1402 Reorder macros.
1403 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1404 Update comment about use of build_range_type.
1405 <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
1406 <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
1407 check for other cases of overloading.
1408 * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
1409 * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
1410 Use size_int in lieu of build_int_cst.
1411 (build_call_alloc_dealloc): Use build_index_2_type in lieu of
1412 build_range_type.
1413
1414 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1415
1416 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
1417 type is an enumeral or a boolean type, change it to an integer type
1418 with the same mode and signedness.
1419
1420 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1421
1422 * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
1423 for an external constant whose initializer is not absolute.
1424
1425 2009-04-22 Taras Glek <tglek@mozilla.com>
1426
1427 * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
1428 * gcc-interface/trans.c: Likewise.
1429 * gcc-interface/utils.c: Likewise.
1430
1431 2009-04-22 Ed Schonberg <schonberg@adacore.com>
1432
1433 * sem_res.adb: Create block around procedure call when actual is a
1434 concatenation.
1435
1436 2009-04-22 Thomas Quinot <quinot@adacore.com>
1437
1438 * s-soflin.ads: Fix typos
1439
1440 2009-04-22 Vincent Celier <celier@adacore.com>
1441
1442 * prj-env.adb: Minor comment change
1443
1444 * prj-nmsc.adb (Check_Common): Add guard to avoid calling
1445 Get_Name_String with No_File.
1446
1447 * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
1448 cannot be created even when not in verbose mode.
1449
1450 2009-04-22 Emmanuel Briot <briot@adacore.com>
1451
1452 * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
1453 prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
1454 Multi_Language modes, to avoid code duplication.
1455 (Project_Data.Include_Language): Removed.
1456
1457 2009-04-22 Vincent Celier <celier@adacore.com>
1458
1459 * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
1460 the temporary file cannot be created, indicating the directory when the
1461 creation was attempted.
1462
1463 2009-04-22 Emmanuel Briot <briot@adacore.com>
1464
1465 * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
1466 the language names, not their indices.
1467
1468 2009-04-22 Emmanuel Briot <briot@adacore.com>
1469
1470 * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
1471 (Source_Data.Language_Name): Field removed.
1472
1473 2009-04-22 Emmanuel Briot <briot@adacore.com>
1474
1475 * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
1476 Two fields removed.
1477
1478 2009-04-22 Emmanuel Briot <briot@adacore.com>
1479
1480 * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
1481 separate_suffix to the same value as the body_suffix.
1482
1483 2009-04-22 Robert Dewar <dewar@adacore.com>
1484
1485 * prj.adb: Minor code reorganization
1486 Code clean up.
1487
1488 * prj-proc.adb: Minor code reorganization, clean up.
1489
1490 * prj-nmsc.adb: Minor reformatting
1491 Minor code reorganization
1492
1493 * gnat_ugn.texi: Add to doc on strict aliasing
1494
1495 2009-04-22 Pascal Obry <obry@adacore.com>
1496
1497 * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
1498 SpinCount.
1499
1500 * s-tasini.adb: Minor reformatting.
1501
1502 * s-tassta.adb: Minor reformatting.
1503
1504 2009-04-22 Emmanuel Briot <briot@adacore.com>
1505
1506 * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
1507 smaller subprograms.
1508 Renamed to Check_File_Naming_Schemes to avoid confusion with the
1509 other Check_Naming_Schemes functions that plays a totally different
1510 role.
1511 (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
1512 extracted from the above. These were partially rewritten to avoid
1513 unnecessary code and temporary variables.
1514 (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
1515 and Get_Unit (which for now still exist since they contain mode-specific
1516 code)
1517
1518 2009-04-22 Emmanuel Briot <briot@adacore.com>
1519
1520 * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
1521 Remove duplicated code.
1522 (Canonical_Case_File_Name): new subprogram
1523 (Check_And_Normalize_Unit_Names): new subprogram
1524 (Write_Attr): new subprogram
1525 Better sharing of code
1526 (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
1527 split Check_Naming and help find duplicated code
1528 (Check_Common): new subprogram, sharing code between ada_only and
1529 multi_language mode.
1530 (Naming_Data.Dot_Repl_Loc): field removed
1531
1532 2009-04-22 Emmanuel Briot <briot@adacore.com>
1533
1534 * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
1535 Minor refactoring to reduce the size of
1536 Process_Sources_In_Multi_Language_Mode.
1537 Avoid extra copied of Source_Data, which we found in the past could be
1538 quite slow.
1539 (Mark_Excluded_Sources): new subprogram.
1540 (Remove_Locally_Removed_Files_From_Units): merged into the above
1541 Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
1542 and allow better sharing of code between multi_lang and ada_only modes
1543 (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
1544
1545 2009-04-22 Emmanuel Briot <briot@adacore.com>
1546
1547 * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
1548 Removed, since unused.
1549
1550 2009-04-22 Vincent Celier <celier@adacore.com>
1551
1552 * prj-attr.adb: New single project level attribute
1553 Separate_Run_Path_Options.
1554
1555 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
1556 attribute Seperate_Run_Path_Options.
1557
1558 * prj.ads: (Project_Configuration): New Boolean component
1559 Separate_Run_Path_Options, defaulted to False.
1560
1561 * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
1562
1563 2009-04-22 Robert Dewar <dewar@adacore.com>
1564
1565 * sem_type.adb: Minor reformatting
1566
1567 * mlib.adb: Minor reformatting
1568
1569 * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
1570 syntax error.
1571
1572 2009-04-22 Nicolas Setton <setton@adacore.com>
1573
1574 * link.c: Add flag __gnat_separate_run_path_options.
1575
1576 * mlib.adb (Separate_Run_Path_Options): New subprogram.
1577
1578 * mlib.ads (Separate_Run_Path_Options): Declare.
1579
1580 * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
1581 switch per directory, rather than one "rpath" switch listing all
1582 directories.
1583
1584 * gnatlink.adb (Process_Binder_File): Likewise.
1585
1586 * make.adb (Gnatmake): Likewise.
1587
1588 2009-04-22 Hristian Kirtchev <kirtchev@adacore.com>
1589
1590 * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
1591 Add a call to Move_Final_List when the target of the assignment is a
1592 return object that needs finalization and the expression is a
1593 controlled build-in-place function.
1594
1595 2009-04-22 Vincent Celier <celier@adacore.com>
1596
1597 * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
1598 Including_Libraries set to True.
1599
1600 2009-04-22 Ed Schonberg <schonberg@adacore.com>
1601
1602 * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
1603 create a unit table entry for the subprogram declaration created for a
1604 child suprogram body that has no separate specification.
1605
1606 * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
1607 subprogram body, call Make_Child_Decl_Unit.
1608
1609 * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
1610 table can only be the created specification of a child subprogram body
1611 that is the main unit, which has not been entered in the table yet.
1612
1613 * errout.adb (Output_Messages): Ignore created specification of a
1614 child subprogram body to prevent repeated listing of error messages.
1615
1616 * gnat1drv.adb (gnat1drv): The generated specification for a child
1617 subprogram body does not generate code.
1618
1619 2009-04-22 Arnaud Charlet <charlet@adacore.com>
1620
1621 * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
1622 since this unit is now part of bootstrap units, so must use Ada 95
1623 syntax only.
1624
1625 2009-04-22 Thomas Quinot <quinot@adacore.com>
1626
1627 * a-tasatt.adb: Minor reformatting
1628
1629 2009-04-22 Bob Duff <duff@adacore.com>
1630
1631 * s-stalib.ads: Remove "with System;" since we're inside System, so
1632 it's unnecessary.
1633
1634 2009-04-22 Vincent Celier <celier@adacore.com>
1635
1636 * prj-nmsc.adb (Add_Source): Always put the dependency file name in
1637 the source record, as there may be a dependency file even if no object
1638 file is created.
1639
1640 2009-04-22 Robert Dewar <dewar@adacore.com>
1641
1642 * lib-load.adb: Minor reformatting
1643
1644 * lib-load.ads: Minor reformatting
1645
1646 * sinfo.ads: Minor reformatting
1647
1648 2009-04-22 Bob Duff <duff@adacore.com>
1649
1650 * exp_pakd.adb: Minor comment fixes.
1651
1652 * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
1653 sem_ch12.adb: Change the meaning of the Library_Unit attribute to
1654 include units containing instantiations, as well as units that are
1655 generic instantiations.
1656
1657 * sem.adb: Include dependents and corresponding specs/bodies in the
1658 unit walk.
1659
1660 * gcc-interface/Make-lang.in:
1661 sem now depends on s-bitops, because of the packed array of Booleans.
1662
1663 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1664
1665 * gcc-interface/ada-tree.def: Fix formatting nits.
1666 (REGION_STMT): Delete.
1667 (HANDLER_STMT): Likewise.
1668 * gcc-interface/ada-tree.h: Fix formatting nits.
1669 (IS_STMT): Delete.
1670 (REGION_STMT_BODY): Likewise.
1671 (REGION_STMT_HANDLE): Likewise.
1672 (REGION_STMT_BLOCK): Likewise.
1673 (HANDLER_STMT_ARG): Likewise.
1674 (HANDLER_STMT_LIST): Likewise.
1675 (HANDLER_STMT_BLOCK): Likewise.
1676 * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
1677 (fp_size_to_prec): Likewise.
1678 (largest_move_alignment): Delete.
1679 (gnat_compute_largest_alignment): Likewise.
1680 Fix minor nits.
1681 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
1682 Remove redundant code.
1683 <E_Array_Type>: Remove redundant assert.
1684 <E_Array_Subtype>: Exit early from index computation in pathological
1685 cases.
1686 Rewrite conditional assignment.
1687 (make_type_from_size): Likewise.
1688 * gcc-interface/misc.c (largest_move_alignment): Delete.
1689 (gnat_finish_incomplete_decl): Likewise.
1690 (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
1691 (asm_out_file): Likewise
1692 (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
1693 (gnat_dwarf_name): Move around.
1694 * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
1695 (gigi): Remove call to gnat_compute_largest_alignment.
1696 * utils.c (create_field_decl): Rewrite conditional assignment.
1697 Fix minor nits.
1698
1699 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1700
1701 * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
1702 on entry. Defer common processing for types. Reorder and clean up.
1703 Compute the equivalent GNAT node and the default size for types only.
1704 <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
1705 <E_Access_Type>: For an unconstrained designated type, do not pretend
1706 that a dummy type is always made.
1707 <all> Fix nits in comments.
1708 (validate_size): Fix formatting nits and comments.
1709 (set_rm_size): Likewise.
1710 * gcc-interface/utils.c (create_param_decl): Replace bogus argument
1711 passed to TARGET_PROMOTE_PROTOTYPES hook.
1712
1713 2009-04-22 Eric Botcazou <ebotcazou@adacore.com>
1714
1715 * fe.h (Get_External_Name): Declare.
1716 * gcc-interface/gigi.h (concat_id_with_name): Rename to...
1717 (concat_name): ...this.
1718 * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
1719 gnu_entity_name and adjust for above renaming.
1720 <E_Access_Type>: Use create_concat_name to get the name of the various
1721 types associated with unconstrained array types.
1722 (make_aligning_type): Adjust for above renaming.
1723 (maybe_pad_type): Likewise.
1724 (components_to_record): Likewise. Use get_identifier_with_length for
1725 the encoding of the variant.
1726 (get_entity_name): Use get_identifier_with_length.
1727 (create_concat_name): Likewise. Use Get_External_Name if no suffix.
1728 Do not fiddle with Name_Buffer.
1729 (concat_id_with_name): Rename to...
1730 (concat_name): ...this. Use get_identifier_with_length. Do not fiddle
1731 with Name_Buffer.
1732 * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
1733 above renaming.
1734
1735 2009-04-21 Joseph Myers <joseph@codesourcery.com>
1736
1737 * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
1738 license notices.
1739
1740 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1741
1742 * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
1743
1744 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1745
1746 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
1747 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
1748 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
1749 Remove useless support code for packed array types and assert its
1750 uselessness.
1751 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
1752 adjust for TYPE_RM_SIZE change.
1753 <all> Fix nits in comments. Use Original_Array_Type accessor instead
1754 of Associated_Node_For_Itype accessor for packed array types.
1755 (make_packable_type): Likewise.
1756 (maybe_pad_type): Likewise.
1757 (set_rm_size): Likewise. Rework conditional statement. Adjust for
1758 TYPE_RM_SIZE change.
1759 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
1760 (rm_size): Fix nits in comments. Rework conditional statements.
1761 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
1762 change.
1763 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
1764 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
1765 appropriate function to initialize the size_type_node. Adjust for
1766 TYPE_RM_SIZE change.
1767
1768 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1769
1770 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
1771 for imported subprograms.
1772
1773 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1774
1775 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
1776 constant objects covered by 13.3(19) volatile.
1777
1778 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
1779
1780 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
1781 of dummy fat pointer types to the debug back-end.
1782
1783 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
1784
1785 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
1786 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
1787 before wrapping it up in the record type. Do not overwrite the
1788 Ada size of the record type with the Esize.
1789
1790 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
1791
1792 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
1793 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
1794 if the conversion is on the LHS of an assignment and a no-op.
1795 <all> Do not convert the result to the result type if the Parent
1796 node is such a conversion.
1797
1798 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
1799
1800 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
1801 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
1802 of types with unknown discriminants.
1803 (substitute_in_type): Rewrite and restrict to formal substitutions.
1804 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
1805 (update_pointer_to): Update comment.
1806
1807 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1808
1809 * sem_ch8.adb (Use_One_Package): In an instance, if two
1810 potentially_use_visible and non-overloadable homonyms are available
1811 from the actuals of distinct formal packages, retain the current one,
1812 which was visible in the generic, to prevent spurious visibility
1813 errors.
1814 (End_Use_Package): Restore use_visibility when needed.
1815
1816 2009-04-20 Sergey Rybin <rybin@adacore.com>
1817
1818 * gnat_ugn.texi, vms_data.ads: Update doc.
1819
1820 2009-04-20 Arnaud Charlet <charlet@adacore.com>
1821
1822 * gcc-interface/Make-lang.in: Update dependencies
1823
1824 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
1825 Windows.
1826
1827 2009-04-20 Robert Dewar <dewar@adacore.com>
1828
1829 * checks.ads: Fix documentation of range check handling
1830
1831 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1832
1833 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
1834 a redundant use_type clause.
1835
1836 2009-04-20 Robert Dewar <dewar@adacore.com>
1837
1838 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
1839 this attribute can be evaluated at compile time.
1840 (Eval_Attribute, case Range_Length): Same improvement
1841
1842 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
1843
1844 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1845
1846 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
1847 for better handling of null procedures.
1848 (Check_Overriding_Indicator): Do not emit a warning on a missing
1849 overriding indicator on an operator when the type of which the operator
1850 is a primitive is private.
1851
1852 2009-04-20 Bob Duff <duff@adacore.com>
1853
1854 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
1855 debugging output.
1856
1857 2009-04-20 Robert Dewar <dewar@adacore.com>
1858
1859 * sem_attr.adb: Minor reformatting
1860
1861 * gnatcmd.adb: Minor reformatting
1862
1863 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1864
1865 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
1866 overloaded and one interpretation matches the context, label the
1867 operand with the type of first formal.
1868
1869 2009-04-20 Bob Duff <duff@adacore.com>
1870
1871 * debug.ads: Minor comment fix.
1872
1873 * debug.adb: Minor comment fixes.
1874
1875 2009-04-20 Javier Miranda <miranda@adacore.com>
1876
1877 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
1878
1879 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
1880
1881 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
1882 is expanded into a call to Raise_Exception, avoid passing the
1883 exception-name'identity in runtimes in which this argument
1884 is not used.
1885
1886 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
1887
1888 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
1889 generated bindings for cil.
1890
1891 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1892
1893 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
1894 discriminants, collect components from the Underlying_Record_View,
1895 which will be used in the expansion of the aggregate into assignments.
1896
1897 * sem_ch3.adb: Do not label derived type with unknown discriminants as
1898 having a private declaration.
1899
1900 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1901
1902 * exp_util.adb (Expand_Subtype_From_Expr): use the
1903 underlying_record_view when available, to create the proper constrained
1904 subtype for an object of a derived type with unknown discriminants.
1905
1906 2009-04-20 Javier Miranda <miranda@adacore.com>
1907
1908 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
1909 formals that have pragma unreferenced.
1910
1911 2009-04-20 Pascal Obry <obry@adacore.com>
1912
1913 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
1914 Remove all calls to To_Lower_If_Case_Insensitive to preserve
1915 the pathname original casing.
1916
1917 2009-04-20 Robert Dewar <dewar@adacore.com>
1918
1919 * g-trasym.adb: Minor reformatting
1920
1921 * s-os_lib.adb: Minor reformatting
1922
1923 * sem.adb: Minor reformatting
1924 Minor code reorganization
1925
1926 * sem_ch3.adb: Minor reformatting
1927
1928 * sem_ch4.adb: Minor reformatting
1929
1930 * sem_ch8.adb: Minor reformatting
1931
1932 * sem_type.adb: Minor reformatting
1933
1934 2009-04-20 Javier Miranda <miranda@adacore.com>
1935
1936 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
1937 generated by derivations of tagged types use the aliased subprogram a
1938 reference to locate their controlling type.
1939
1940 2009-04-20 Tristan Gingold <gingold@adacore.com>
1941
1942 * g-trasym.adb: Set size of result buffer before calling
1943 convert_address.
1944
1945 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1946
1947 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
1948 to a function returning an array can be interpreted as a call with
1949 defaulted parameters whose result is indexed, take into account the
1950 types of all the indices of the array result type.
1951
1952 2009-04-20 Pascal Obry <obry@adacore.com>
1953
1954 * a-direct.adb, s-os_lib.adb: Minor reformatting.
1955
1956 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1957
1958 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
1959 null exclusion qualifiers for object renaming declarations.
1960
1961 2009-04-20 Nicolas Roche <roche@adacore.com>
1962
1963 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
1964 unsigned long long. So compare local_time and utc_time before computing
1965 the difference.
1966
1967 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
1968
1969 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
1970 of the Underlying_Record_View before that of the derived type.
1971
1972 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
1973 with unknown discriminants with regard to the parent subtype.
1974
1975 2009-04-20 Bob Duff <duff@adacore.com>
1976
1977 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
1978 that are not included. This is necessary if the main unit is a generic
1979 instantiation.
1980
1981 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
1982 because it doesn't work if -gnatn is used.
1983
1984 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1985
1986 * rtsfind.adb (RTE, RTE_Record_Component): In
1987 Configurable_Run_Time_Mode, do not enable front-end inlining.
1988
1989 2009-04-20 Thomas Quinot <quinot@adacore.com>
1990
1991 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
1992 System.Address_To_Access_Conversions.
1993
1994 2009-04-20 Ed Schonberg <schonberg@adacore.com>
1995
1996 * sem.adb: Guard against ill-formed subunits.
1997
1998 2009-04-20 Bob Duff <duff@adacore.com>
1999
2000 * output.adb (Flush_Buffer): Do not indent blank lines.
2001 (Ignore_Output): New procedure for output suppression.
2002
2003 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2004
2005 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
2006 when it is positive. This avoids a potential constraint error raised
2007 by the conversion to Natural.
2008
2009 2009-04-20 Gary Dismukes <dismukes@adacore.com>
2010
2011 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
2012 involves a target that has a specified address, don't set Forward_OK
2013 and Backward_OK to False if the rhs is an aggregate, since overlap
2014 can't occur.
2015
2016 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2017
2018 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
2019 in an object renaming declaration when the expected type is an
2020 anonymous access type.
2021
2022 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
2023 ambiguity when one interpretation is an anonymous access type and the
2024 other is a named access type, and the context itself is anonymous
2025
2026 2009-04-20 Thomas Quinot <quinot@adacore.com>
2027
2028 * einfo.ads: Minor comment rewording
2029
2030 * sem_aggr.adb: Minor comment rewording
2031
2032 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
2033
2034 2009-04-20 Pascal Obry <obry@adacore.com>
2035
2036 * adaint.c (__gnat_is_readable_file): Check for file existence
2037 when not using ACL (always the case on remote drives).
2038
2039 2009-04-20 Robert Dewar <dewar@adacore.com>
2040
2041 * sinfo.ads: Minor comment fixes
2042
2043 * exp_disp.adb: Minor reformatting
2044
2045 * gnat1drv.adb: Minor reformatting
2046
2047 * output.adb: Minor reformatting
2048
2049 * s-vxwext-kernel.ads: Minor reformatting
2050
2051 * sem.ads: Minor reformatting
2052
2053 * sem.adb: Minor reformatting
2054
2055 * sem_elim.adb: Minor reformatting
2056
2057 * uname.ads: Minor reformatting
2058
2059 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2060
2061 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
2062 a small dope of 4 words to the adjustment to the stack pointer.
2063
2064 2009-04-20 Thomas Quinot <quinot@adacore.com>
2065
2066 * xoscons.adb: generate C header s-oscons.h in
2067 addition to s-oscons.ads.
2068
2069 * socket.c: On VMS, use s-oscons.h.
2070
2071 * sem_ch3.adb: Minor reformatting
2072
2073 * exp_ch9.adb: Minor reformatting
2074
2075 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2076
2077 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
2078 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
2079 (call_to_gnu): Likewise.
2080
2081 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2082
2083 * gcc-interface/trans.c (gigi): Declare the name of the compilation
2084 unit as the first global name at the very beginning.
2085
2086 2009-04-20 Thomas Quinot <quinot@adacore.com>
2087
2088 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
2089 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
2090 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
2091 since HP-UX supports neither inet_aton nor inet_pton (altough the
2092 latter is part of the Single UNIX Specification!).
2093 So reorganize code, and share C implementation based on inet_addr(3)
2094 with VMS (instead of having a VMS specific Ada implementation in
2095 g-socthi-vms.adb).
2096
2097 2009-04-20 Gary Dismukes <dismukes@adacore.com>
2098
2099 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
2100 to return the object file name saved by Set_Object_Output_File_Name.
2101
2102 2009-04-20 Emmanuel Briot <briot@adacore.com>
2103
2104 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
2105 for the standard command line, when argc has been modified since the
2106 start of the application.
2107
2108 2009-04-20 Thomas Quinot <quinot@adacore.com>
2109
2110 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
2111 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
2112
2113 2009-04-20 Bob Duff <duff@adacore.com>
2114
2115 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
2116 pragma Debug.
2117
2118 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2119
2120 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
2121 subprogram as Eliminated when source operation is.
2122 (Expand_N_Protected_Type_Declaration): Generate protected and
2123 unprotected specs for the internal operations, even if the source
2124 operation is eliminated.
2125
2126 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2127
2128 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
2129 Predefined_Primitive_Bodies): Do not create the declarations and bodies
2130 of the primitive subprograms associated with dispatching select
2131 statements when the runtime is in configurable mode.
2132
2133 2009-04-20 Ed Falis <falis@adacore.com>
2134
2135 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
2136
2137 2009-04-20 Thomas Quinot <quinot@adacore.com>
2138
2139 * s-oscons-tmplt.c: Add support for generating a dummy version of
2140 s-oscons.ads providing all possible constants.
2141
2142 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
2143
2144 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
2145 ANSI version (not the UNICODE version) of WSAStringToAddress.
2146
2147 2009-04-20 Pascal Obry <obry@adacore.com>
2148
2149 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
2150 allocated for the security descriptor and make sure all
2151 handles are closed before leaving this procedure.
2152
2153 2009-04-20 Javier Miranda <miranda@adacore.com>
2154
2155 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
2156 (Set_Is_Underlying_Record_View): New subprogram
2157
2158 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
2159 private types with unknown discriminants use the underlying record view
2160 if available.
2161
2162 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
2163 underlying record view in the full view of private types whose parent
2164 has unknown discriminants.
2165 (Build_Derived_Record_Type): Avoid generating the class-wide entity
2166 associated with an underlying record view.
2167 (Derived_Type_Declaration): Avoid deriving parent primitives in
2168 underlying record views.
2169
2170 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
2171 records with unknown discriminants.
2172
2173 * sem_type.adb (Covers): Handle underlying record views.
2174 (Is_Ancestor): Add support for underlying record views.
2175
2176 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
2177 dispatching call if the type of the target object is tagged and has
2178 unknown discriminants.
2179
2180 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
2181 unknown discriminants.
2182
2183 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
2184 tables for internally built underlying record views.
2185
2186 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
2187 empty list of component associations.
2188
2189 2009-04-20 Thomas Quinot <quinot@adacore.com>
2190
2191 * sem_ch10.adb: Minor reformatting
2192
2193 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
2194 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
2195 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
2196 standard inet_pton API (and emulate it on platforms that do not
2197 support it).
2198 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
2199 DECC$INET_ADDR, imported in Ada.
2200 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
2201 implementation provided by GNAT runtime.
2202 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
2203 Windows.
2204
2205 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2206
2207 * gnat_ugn.texi: Add documentation for -fno-ivopts.
2208
2209 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2210
2211 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
2212 with_clause if it is the main unit.
2213
2214 2009-04-20 Thomas Quinot <quinot@adacore.com>
2215
2216 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
2217 (no behaviour change): Use Append instead of Increment_Last followed
2218 by assignment.
2219
2220 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2221
2222 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
2223 declarations of all primitives associated with dispatching asynchronous,
2224 conditional and timed selects when dispaching calls are forbidden and
2225 select statements are not allowed (such as in Ravenscar).
2226 (Predefined_Primitive_Bodies): Ditto for bodies.
2227
2228 * exp_disp.ad (Make_DT): Do not create and populate the
2229 Select_Specific_Data of the dispatch table when dispatching calls are
2230 forbidden and select statements are not allowed (such as in Ravenscar).
2231
2232 2009-04-20 Robert Dewar <dewar@adacore.com>
2233
2234 * a-tifiio.adb: Minor reformatting
2235
2236 2009-04-20 Thomas Quinot <quinot@adacore.com>
2237
2238 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
2239 other C library functions, report *failure* with a zero status, and
2240 success with a non-zero status.
2241
2242 2009-04-20 Bob Duff <duff@adacore.com>
2243
2244 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
2245 (Semantics): After analyzing each unit, Append it to the
2246 Comp_Unit_List, if appropriate.
2247
2248 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
2249 purposes.
2250 (Gnat1drv): Correct comment regarding Back_End_Mode.
2251
2252 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2253
2254 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
2255
2256 2009-04-20 Thomas Quinot <quinot@adacore.com>
2257
2258 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2259 output.adb, output.ads, s-taprop-hpux-dce.adb,
2260 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
2261 reformatting.
2262
2263 2009-04-20 Thomas Quinot <quinot@adacore.com>
2264
2265 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
2266 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
2267 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
2268 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
2269 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
2270 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
2271
2272 * debug.adb: Fix typo
2273
2274 * gnat_rm.texi: Minor doc fix.
2275
2276 * sem_ch7.adb, freeze.adb: Minor reformatting
2277
2278 2009-04-20 Thomas Quinot <quinot@adacore.com>
2279
2280 * g-socket.ads: Add new constants:
2281 Loopback_Inet_Addr
2282 Unspecified_Group_Inet_Addr
2283 All_Hosts_Group_Inet_Addr
2284 All_Routers_Group_Inet_Addr
2285
2286 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
2287 ERANGE (Result too large).
2288 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
2289 propagation of errno to caller.
2290
2291 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2292
2293 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
2294 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
2295 Leap_Second_Times.
2296
2297 2009-04-20 Gary Dismukes <dismukes@adacore.com>
2298
2299 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
2300 checking for references to eliminated subprograms that should be
2301 flagged.
2302 (Eliminate_Error_Message): Update comment to say "references" rather
2303 than "calls" (since attribute cases are handled here as well).
2304
2305 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
2306 checking for references to eliminated subprograms that should be
2307 flagged. Add with and use of Sem and Sem_Util.
2308
2309 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
2310 Add with and use of Sem_Elim.
2311
2312 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
2313 applied to eliminated subprograms.
2314 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
2315 eliminated subprograms.
2316 Add with and use of Sem_Elim.
2317
2318 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
2319 to eliminated subprograms, now handled during Resolve_Call.
2320 Remove with and use of Sem_Elim.
2321
2322 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
2323 testing Is_Eliminated, for proper handling of primitive derived from
2324 eliminated subprograms.
2325
2326 2009-04-20 Vincent Celier <celier@adacore.com>
2327
2328 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
2329 has been declared (Library_GCC or Linker'Driver), for the driver name.
2330
2331 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
2332 Linker'Driver is, use Linker'Driver as the shared library linker.
2333 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
2334 Library_GCC is declared.
2335 (Check_Library_Attributes): Set up the shared linker driver: either
2336 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
2337 declared.
2338
2339 2009-04-20 Thomas Quinot <quinot@adacore.com>
2340
2341 * g-socket.ads (Send_Socket): Fix misleading comment.
2342
2343 2009-04-20 Arnaud Charlet <charlet@adacore.com>
2344
2345 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
2346 ASIS mode.
2347
2348 2009-04-20 Geert Bosch <bosch@adacore.com>
2349
2350 * a-tifiio.adb (Put): Avoid generating too many digits for certain
2351 fixed types with smalls that are neither integer or the reciprocal
2352 of an integer.
2353
2354 2009-04-20 Bob Duff <duff@adacore.com>
2355
2356 * uname.ads: Minor comment fix.
2357
2358 * types.ads: Minor comment fix.
2359
2360 2009-04-20 Pascal Obry <obry@adacore.com>
2361
2362 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
2363 avoid warning. At the same time fix a memory leak.
2364
2365 * osint.adb (Get_Libraries_From_Registry): Properly free memory
2366 returned by the above routine.
2367
2368 2009-04-20 Robert Dewar <dewar@adacore.com>
2369
2370 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
2371 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
2372 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
2373 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
2374
2375 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
2376
2377 2009-04-20 Pascal Obry <obry@adacore.com>
2378
2379 * initialize.c (__gnat_initialize): Add braces to kill warning.
2380
2381 * adaint.c: Minor reformatting, remove trailing spaces.
2382
2383 2009-04-17 Arnaud Charlet <charlet@adacore.com>
2384
2385 * gcc-interface/Make-lang.in: Update dependencies.
2386
2387 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2388
2389 * adaint.h (__gnat_lwp_self): Declare on Linux.
2390
2391 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
2392
2393 2009-04-20 Robert Dewar <dewar@adacore.com>
2394
2395 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
2396 front-end part of -fpreserve-control-flow switch.
2397
2398 2009-04-20 Bob Duff <duff@adacore.com>
2399
2400 * rtsfind.adb: Minor comment fix
2401
2402 2009-04-20 Robert Dewar <dewar@adacore.com>
2403
2404 * exp_aggr.adb: Minor reformatting
2405 Minor code reorganization (use Nkind_In)
2406
2407 * g-socket.adb: Minor reformatting
2408
2409 * g-socket.ads: Minor comment fix
2410
2411 * s-auxdec.ads: Minor comment and organization update.
2412
2413 * s-auxdec-vms_64.ads: Minor comment and organization update.
2414
2415 * sem_ch10.adb: Minor addition of ??? comment
2416
2417 * sem_disp.adb: Minor reformatting
2418
2419 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2420
2421 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
2422 list a caller of an inlined subprogram, if the caller itself is not
2423 called.
2424
2425 2009-04-20 Pascal Obry <obry@adacore.com>
2426
2427 * adaint.c: Disable use of ACL on network drives.
2428
2429 2009-04-20 Arnaud Charlet <charlet@adacore.com>
2430
2431 * gnat_ugn.texi: Add examples.
2432
2433 2009-04-20 Thomas Quinot <quinot@adacore.com>
2434
2435 * g-socket.ads (Abort_Selector): Clarify documentation.
2436
2437 2009-04-20 Arnaud Charlet <charlet@adacore.com>
2438
2439 * opt.ads (Inspector_Mode): Update documentation of this flag.
2440
2441 2009-04-20 Thomas Quinot <quinot@adacore.com>
2442
2443 * g-socket.ads: Minor reformatting
2444
2445 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
2446 consider S_resolvLib error codes since we only use the hostLib wrappers.
2447
2448 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2449
2450 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
2451 of the Underlying_Record_View after that of the derived type.
2452
2453 2009-04-20 Arnaud Charlet <charlet@adacore.com>
2454
2455 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
2456 in inspector mode.
2457
2458 2009-04-20 Javier Miranda <miranda@adacore.com>
2459
2460 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
2461
2462 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
2463 documentation.
2464
2465 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
2466
2467 * sem_disp.adb
2468 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
2469 in internally built overriding subprograms.
2470
2471 2009-04-20 Doug Rupp <rupp@adacore.com>
2472
2473 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
2474
2475 * s-auxdec.ads: Likewise
2476
2477 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2478
2479 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
2480 type by an interface.
2481
2482 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
2483 minimze difference in expanded tree when compiled as spec of the main
2484 unit, or as a spec in the context of another unit.
2485
2486 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
2487
2488 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
2489 (localtime_tzoff): This routine no longer accepts an actual of type
2490 tm_Pointer.
2491 (UTC_Time_Offset): Remove local variable Secs_TM.
2492
2493 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
2494 actual of type struct tm*. Add local variable of type struct tm for all
2495 targets that provide localtime_r and need to invoke it.
2496
2497 2009-04-20 Thomas Quinot <quinot@adacore.com>
2498
2499 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
2500 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
2501 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
2502
2503 2009-04-20 Robert Dewar <dewar@adacore.com>
2504
2505 * sem_ch3.adb: Minor reformatting
2506
2507 * lib-load.adb: Minor reformatting
2508
2509 * sem_ch4.adb: Minor reformatting
2510
2511 2009-04-20 Robert Dewar <dewar@adacore.com>
2512
2513 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
2514 (equal values => False).
2515
2516 2009-04-20 Ed Schonberg <schonberg@adacore.com>
2517
2518 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
2519 to null procedures can be inlined unconditionally.
2520
2521 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2522
2523 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
2524 non-addressable parameter passed by reference, do not convert the
2525 actual if its type is already the nominal type, unless it is of
2526 self-referential size.
2527
2528 2009-04-20 Arnaud Charlet <charlet@adacore.com>
2529
2530 * gnat_ugn.texi: Fix typos.
2531
2532 2009-04-20 Robert Dewar <dewar@adacore.com>
2533
2534 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
2535 Validate_Unchecked_Warnings to suppress warnings about size or
2536 alignment or extra bits if either type involved has pragma Warnings
2537 (Off) set for the type entity.
2538
2539 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
2540
2541 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
2542 a builtin type and give it a name.
2543
2544 2009-04-17 Diego Novillo <dnovillo@google.com>
2545
2546 * gcc-interface/misc.c (gnat_expand_expr): Remove.
2547 (LANG_HOOKS_EXPAND_EXPR): Remove.
2548
2549 2009-04-17 Robert Dewar <dewar@adacore.com>
2550
2551 * sem_ch3.adb: Minor reformatting
2552
2553 2009-04-17 Pascal Obry <obry@adacore.com>
2554
2555 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
2556
2557 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2558
2559 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
2560 illegal constraints on type derived from formal discrete types.
2561
2562 2009-04-17 Thomas Quinot <quinot@adacore.com>
2563
2564 PR ada/35953
2565
2566 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2567 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2568 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
2569 g-socket.ads (GNAT.Sockets.Thin.C_Send,
2570 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
2571 Replace calls to send(2) with equivalent sendto(2) calls.
2572 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
2573 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
2574 report an error in that case. Factor code common to the two versions
2575 (datagram and stream) in common routine Stream_Write.
2576
2577 2009-04-17 Robert Dewar <dewar@adacore.com>
2578
2579 * exp_disp.adb: Minor reformatting
2580 Minor code reorganization (use Nkind_In)
2581
2582 * prepcomp.adb: Minor reformatting
2583
2584 * sem_ch3.adb: Minor reformatting
2585
2586 * sem_res.adb: Minor comment addition
2587
2588 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
2589 for address clause
2590
2591 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
2592 setting Is_Referenced
2593
2594 * types.ads: Minor reformatting
2595
2596 2009-04-17 Arnaud Charlet <charlet@adacore.com>
2597
2598 * gnat_ugn.texi: Initial documentation on binding generator.
2599
2600 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2601
2602 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
2603 type extensions whose parent is a type with unknown discriminants.
2604
2605 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
2606 aggregate has unknown discriminants, use the Underlying_Record_View to
2607 obtain the discriminants of the ancestor part.
2608
2609 * exp_disp.adb (Build_Dispatch_Tables): Types that are
2610 Underlying_Record_Views share the dispatching information of the
2611 original record extension.
2612
2613 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
2614 discriminants, propagate dispach table information to the
2615 Underlying_Record_View.
2616
2617 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
2618 discriminants and declaration is not a completion, generate
2619 Underlying_Record_View to provide proper discriminant information to
2620 the front-end and to gigi.
2621
2622 2009-04-17 Robert Dewar <dewar@adacore.com>
2623
2624 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
2625 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
2626 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
2627 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
2628 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
2629 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
2630 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
2631 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
2632 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
2633 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
2634 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
2635 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
2636 s-conca3.ads: Remove unneeded pragma Warnings
2637
2638 2009-04-17 Robert Dewar <dewar@adacore.com>
2639
2640 * g-moreex.adb: Add comments.
2641
2642 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
2643
2644 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
2645 Warnings (Off)
2646
2647 * prepcomp.adb: Add ??? comment
2648
2649 * a-tasatt.adb: Minor reformatting
2650
2651 * g-trasym-vms-alpha.adb: Add ??? comment
2652
2653 * g-trasym-vms-ia64.adb: Add ??? comment
2654
2655 * xoscons.adb: Minor reformatting
2656
2657 * s-tassta.adb: Minor reformatting
2658
2659 * s-scaval.adb: Add ??? comment
2660
2661 * stand.ads: Minor code clean up (remove junk with of Namet)
2662
2663 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
2664 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
2665 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
2666 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
2667 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
2668 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
2669 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
2670 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
2671 Warnings off pragmas.
2672
2673 2009-04-17 Pascal Obry <obry@adacore.com>
2674
2675 * initialize.c: Fix test for reallocating the arguments array.
2676
2677 2009-04-17 Geert Bosch <bosch@adacore.com>
2678
2679 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
2680 conversion truncate only for decimal fixed point types.
2681
2682 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
2683
2684 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
2685 reinitialized.
2686
2687 2009-04-17 Robert Dewar <dewar@adacore.com>
2688
2689 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
2690 Backwards_OK if either operand has an address clause.
2691
2692 2009-04-17 Pascal Obry <obry@adacore.com>
2693
2694 * initialize.c: Code clean up, use realloc.
2695
2696 2009-04-17 Pascal Obry <obry@adacore.com>
2697
2698 * initialize.c: Do not get Unicode command line if Unicode support not
2699 activated.
2700 Add support for wildcard expansion for Unicode parameters on Win32.
2701
2702 * mingw32.h: Add missing macros when Unicode support not activated.
2703
2704 2009-04-17 Javier Miranda <miranda@adacore.com>
2705
2706 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
2707 avoid generating code that references the Current_Master
2708 when compiling without tasks.
2709
2710 2009-04-17 Vincent Celier <celier@adacore.com>
2711
2712 * prj-attr.adb: New project level attribute Target
2713
2714 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
2715 attribute Target
2716
2717 * prj.ads (Project_Configuration): New component Target
2718
2719 2009-04-17 Thomas Quinot <quinot@adacore.com>
2720
2721 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
2722 case for the case of an aggregate component, the attach call for the
2723 result is actually needed.
2724
2725 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
2726 an array aggregate must be disabled if the component type requires
2727 controlled actions.
2728
2729 * exp_ch3.adb: Minor reformatting
2730
2731 2009-04-17 Bob Duff <duff@adacore.com>
2732
2733 * output.ads (Indent,Outdent): New procedures for indenting the output.
2734 (Write_Char): Correct comment -- LF _is_ allowed.
2735
2736 * output.adb (Indent,Outdent): New procedures for indenting the output.
2737 Keep track of the indentation level, and make sure it doesn't get too
2738 high.
2739 (Flush_Buffer): Insert spaces at the beginning of each line, if
2740 indentation level is nonzero.
2741 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
2742 indentation level.
2743 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
2744 "Next_Col := 1;". Flush_Buffer does that.
2745
2746 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
2747 controlled by the -gnatdc switch. It now occurs on entry/exit to the
2748 relevant analysis routines, and calls Indent/Outdent to make the
2749 indentation reflect the nesting level. Add "helper" routines, since
2750 otherwise lots of "return;" statements would skip the debugging output.
2751
2752 2009-04-17 Arnaud Charlet <charlet@adacore.com>
2753
2754 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
2755 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
2756 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
2757
2758 2009-04-17 Thomas Quinot <quinot@adacore.com>
2759
2760 * exp_aggr.adb: Minor code reorganization, no behaviour change.
2761
2762 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2763
2764 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
2765 clause in a unit that is a package body or a subunit, when the previous
2766 clause appears in a spec or a parent.
2767
2768 2009-04-17 Thomas Quinot <quinot@adacore.com>
2769
2770 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
2771
2772 * exp_ch7.adb: Minor reformatting
2773
2774 2009-04-17 Bob Duff <duff@adacore.com>
2775
2776 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
2777 allocator, check that the expression of the qualified expression obeys
2778 the constraints of the subtype of the qualified expression.
2779
2780 2009-04-17 Thomas Quinot <quinot@adacore.com>
2781
2782 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
2783
2784 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2785
2786 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
2787 aggregate, using context imposed by subtype mark in allocator.
2788
2789 2009-04-17 Pascal Obry <obry@adacore.com>
2790
2791 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
2792
2793 2009-04-17 Nicolas Roche <roche@adacore.com>
2794
2795 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
2796 argument length.
2797
2798 2009-04-17 Gary Dismukes <dismukes@adacore.com>
2799
2800 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
2801 cover both calls and attribute references ("call" => "reference").
2802
2803 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2804
2805 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
2806 type for which Storage_Size is set to 0 is legal in a pure unit.
2807
2808 2009-04-17 Thomas Quinot <quinot@adacore.com>
2809
2810 * exp_ch7.adb: Minor reformatting
2811
2812 2009-04-17 Robert Dewar <dewar@adacore.com>
2813
2814 * restrict.adb (Check_Restriction_No_Dependence): Don't check
2815 restriction if outside main extended source unit.
2816
2817 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
2818 for parents of child units as well as the child unit itself.
2819
2820 2009-04-17 Bob Duff <duff@adacore.com>
2821
2822 * checks.ads: Minor comment fix
2823
2824 * exp_aggr.ads: Minor comment fix
2825
2826 2009-04-17 Nicolas Roche <roche@adacore.com>
2827
2828 * adaint.c: Improve cross compiler detection and handling.
2829
2830 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
2831
2832 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
2833
2834 2009-04-17 Pascal Obry <obry@adacore.com>
2835
2836 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
2837 CurrentCodePage.
2838
2839 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
2840 value when no encoding form paramter is set on Text_IO services.
2841
2842 * adaint.c: CurrentCodePage new variable on Windows.
2843 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
2844 ones.
2845
2846 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
2847 ones.
2848
2849 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
2850 environment variable value. Default is UTF-8.
2851
2852 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
2853 fopen and freopen encoding parameter is now set to Unspecified.
2854 The default value is in this case UTF-8 (as it was before) but
2855 use the new macros that convert to/from the code page set
2856 at runtime (CurrentCodePage).
2857
2858 * s-fileio.adb: When no encoding specified use Unspecified value.
2859
2860 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2861
2862 * atree.adb, atree.ads: Remove dead code.
2863
2864 2009-04-17 Arnaud Charlet <charlet@adacore.com>
2865
2866 * gcc-interface/Make-lang.in: Update dependencies.
2867
2868 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2869
2870 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
2871 illegal uses of incomplete types in formal parts and return types.
2872
2873 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
2874 access to subprograms.
2875
2876 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
2877 Taft-amendment types as the return type of an access_to_function type.
2878
2879 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
2880 type for access_to_subprograms. The check is performed on package exit.
2881
2882 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2883
2884 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
2885
2886 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
2887
2888 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
2889
2890 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
2891 semantic units, because the handling of itypes in the copied tree
2892 requires semantic information that does not belong in atree.
2893
2894 2009-04-17 Robert Dewar <dewar@adacore.com>
2895
2896 * par-ch6.adb: Minor reformatting
2897
2898 * prj.adb: Minor reformatting
2899
2900 2009-04-17 Gary Dismukes <dismukes@adacore.com>
2901
2902 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
2903 on protected subprogram bodies, so exclude the case where Pf_Flags is
2904 Pf_Decl_Pbod from the error check.
2905
2906 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
2907 indicators on subprograms in protected bodies, and proceed with parsing
2908 the subprogram.
2909
2910 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
2911 subprograms from the check for primitiveness on subprograms with
2912 overriding indicators.
2913 (Check_Overriding_Indicator): Include protected subprograms in the
2914 style check for missing overriding indicators.
2915
2916 2009-04-17 Tristan Gingold <gingold@adacore.com>
2917
2918 * init.c: Fix stack checking for x86 Darwin.
2919
2920 2009-04-17 Vincent Celier <celier@adacore.com>
2921
2922 * prj-attr.adb: New project level attribute Object_File_Suffix
2923 (<language>).
2924
2925 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
2926 object file name
2927 (Process_Compiler): Process attribute Object_File_Suffix
2928
2929 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
2930 platform suffix, when specified.
2931
2932 * prj.ads (Language_Config): New component Object_File_Suffix,
2933 defaulted to No_Name.
2934 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
2935
2936 * snames.ads-tmpl: New standard name Object_File_Suffix
2937
2938 2009-04-17 Robert Dewar <dewar@adacore.com>
2939
2940 * gnat_rm.texi: Add documentation about No_Streams restriction
2941
2942 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
2943 attributes when checking No_Streams restriction.
2944
2945 2009-04-17 Thomas Quinot <quinot@adacore.com>
2946
2947 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
2948
2949 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
2950 missing calls to RE_Request_Destroy to deallocate request objects after
2951 use.
2952
2953 2009-04-17 Nicolas Setton <setton@adacore.com>
2954
2955 * link.c: Fix support for passing a response file under Darwin.
2956
2957 2009-04-17 Emmanuel Briot <briot@adacore.com>
2958
2959 * prj.adb (Free): new subprogram.
2960
2961 2009-04-17 Ed Schonberg <schonberg@adacore.com>
2962
2963 * sem_ch3.adb: additional initialization on incomplete subtypes.
2964
2965 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
2966 part and one of the formals is an incomplete tagged type, attach to
2967 list of private dependends of the type for later validation.
2968
2969 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
2970 primitive operations of a Taft-amendmment type.
2971
2972 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
2973 type. The check is performed on package exit, possibly after the
2974 subprogram is frozen.
2975
2976 2009-04-17 Vincent Celier <celier@adacore.com>
2977
2978 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
2979 before looking for source directories, but make sure that there are nil
2980 if they are not explicitely declared and there is explicitely no
2981 sources in the project.
2982
2983 2009-04-17 Pascal Obry <obry@adacore.com>
2984
2985 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
2986
2987 * init.c: Fix minor typo and style fix.
2988
2989 2009-04-17 Robert Dewar <dewar@adacore.com>
2990
2991 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
2992
2993 * sem_attr.adb (Analyze_Attribute, case Address): Use
2994 PE_Address_Of_Intrinsic.
2995
2996 * types.ads: Add PE_Address_Of_Intrinsic
2997
2998 * types.h: Add PE_Address_Of_Intrinsic
2999
3000 2009-04-17 Nicolas Setton <setton@adacore.com>
3001
3002 * gcc-interface/Makefile.in: Under darwin, build shared libraries
3003 with install_name starting with "@rpath/".
3004
3005 2009-04-17 Nicolas Setton <setton@adacore.com>
3006
3007 * link.c: Add darwin section
3008
3009 2009-04-16 Robert Dewar <dewar@adacore.com>
3010
3011 * g-pehage.adb: Minor reformatting
3012
3013 * sem_ch12.adb: Minor reformatting
3014
3015 * exp_dist.adb: Minor reformatting
3016
3017 * bindgen.adb: Minor style fixes.
3018
3019 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3020
3021 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
3022 indexed components to the case where the prefix is a static string
3023 literal.
3024
3025 2009-04-16 Javier Miranda <miranda@adacore.com>
3026
3027 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
3028 objects avoid any further expansion of the expression initializing the
3029 object.
3030
3031 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3032
3033 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
3034 that hides an outer homograph, make that homograph invisible when
3035 analyzing the actuals, to to prevent illegal direct visibility on it.
3036
3037 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
3038
3039 * g-pehage.adb (Initialize): Fix off-by-one error.
3040
3041 2009-04-16 Tristan Gingold <gingold@adacore.com>
3042
3043 * init.c: Detect real stack overflow on Darwin.
3044
3045 * system-darwin-x86.ads: Use stack probing on darwin x86.
3046
3047 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3048
3049 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
3050 take the address of an intrinsic subprogram.
3051
3052 2009-04-16 Arnaud Charlet <charlet@adacore.com>
3053
3054 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
3055 for the targets where GNAT.Traceback.Symbolic is not supported.
3056
3057 2009-04-16 Vincent Celier <celier@adacore.com>
3058
3059 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
3060
3061 * g-trasym.ads: Update comments.
3062
3063 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
3064
3065 * tracebak.c (STOP_FRAME): Verify validity of the current address
3066 before dereferencing.
3067
3068 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3069
3070 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
3071 the original location of the index expressions and the index subtypes,
3072 to prevent spurious out-of-scope references in gigi.
3073
3074 2009-04-16 Tristan Gingold <gingold@adacore.com>
3075
3076 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
3077 Add support for stack checking on darwin.
3078
3079 2009-04-16 Vincent Celier <celier@adacore.com>
3080
3081 * prj-attr.adb: New attribute Runtime_Source_Dir
3082
3083 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
3084 attribute Runtime_Source_Dir.
3085 (Check_Naming_Schemes): Give default values to out parameters to avoid
3086 invalid data.
3087
3088 * prj.ads (Language_Config): New component Runtime_Source_Dir
3089
3090 * snames.ads-tmpl: New standard name Runtime_Source_Dir
3091
3092 2009-04-16 Pascal Obry <obry@adacore.com>
3093
3094 * adaint.h, adaint.c (__gnat_rmdir): New routine.
3095 Simple wrapper routines used to convert to proper encoding on
3096 Windows.
3097
3098 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
3099
3100 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
3101 twice.
3102
3103 2009-04-16 Pascal Obry <obry@adacore.com>
3104
3105 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
3106
3107 2009-04-16 Thomas Quinot <quinot@adacore.com>
3108
3109 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
3110 integrated preprocessor.
3111
3112 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
3113 (Initialize): Split into two subprograms, Initialize (to be called
3114 prior to compiler command line processing) and Setup_Hooks (to be called
3115 later on when the first source file is loaded).
3116
3117 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
3118 Add call to Prep.Initialize.
3119
3120 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
3121 to Prep.Setup_Hooks.
3122
3123 2009-04-16 Pascal Obry <obry@adacore.com>
3124
3125 * adaint.h, adaint.c (__gnat_chdir): New routine.
3126 Simple wrapper routines used to convert to proper encoding on
3127 Windows.
3128
3129 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
3130
3131 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
3132
3133 2009-04-16 Quentin Ochem <ochem@adacore.com>
3134
3135 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
3136 of Source.Init.
3137
3138 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
3139
3140 * a-convec.ads (Is_Empty): Mark inline.
3141
3142 2009-04-16 Nicolas Roche <roche@adacore.com>
3143
3144 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
3145
3146 2009-04-16 Thomas Quinot <quinot@adacore.com>
3147
3148 * prepcomp.adb: Minor reformatting
3149
3150 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
3151
3152 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
3153 Access_Subprogram types can also be imported.
3154 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
3155 names.
3156
3157 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3158
3159 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
3160 preserve homonym chain when the declaration is rewritten into a
3161 renaming declaration, in order to preserve visibility structure.
3162
3163 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
3164
3165 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
3166 taken into account for VM targets.
3167
3168 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
3169
3170 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
3171 Year_Week_In_Year.
3172 (Year_Week_In_Year): New routine which contains the original code from
3173 Week_In_Year. Add the missing special case for January 1st falling on
3174 a Monday.
3175
3176 2009-04-16 Thomas Quinot <quinot@adacore.com>
3177
3178 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
3179 actual type, use the base type to build the To_Any function.
3180 (Build_From_Any_Function): Remove junk, useless subtype conversion.
3181
3182 2009-04-16 Thomas Quinot <quinot@adacore.com>
3183
3184 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
3185 restrict.adb: Minor code reorganization (use
3186 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
3187
3188 2009-04-16 Bob Duff <duff@adacore.com>
3189
3190 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
3191 unused.
3192
3193 2009-04-16 Thomas Quinot <quinot@adacore.com>
3194
3195 * sem_ch4.adb: Minor reformatting
3196
3197 * adaint.c: Remove junk duplicated code.
3198
3199 * sem_ch3.adb: Minor reformatting
3200
3201 * exp_dist.adb: Minor comment rewording
3202
3203 2009-04-16 Robert Dewar <dewar@adacore.com>
3204
3205 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
3206 used together.
3207
3208 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3209
3210 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
3211 usable before calling Add_One_Interp, to resolve spurious ambiguities.
3212
3213 2009-04-16 Robert Dewar <dewar@adacore.com>
3214
3215 * Make-lang.in: Add entries for s-conca?.o
3216
3217 * Makefile.rtl: Add entries for s-conca?
3218
3219 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
3220 of concatenation expansion
3221
3222 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
3223 string cases instead of expanding assignments inline.
3224
3225 * opt.ads (Optimize_Size): New flag
3226
3227 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
3228 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
3229 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
3230 s-conca9.adb, s-conca9.ads: New file.
3231
3232 2009-04-16 Robert Dewar <dewar@adacore.com>
3233
3234 * exp_ch6.adb: Add comments
3235
3236 * rtsfind.ads: Add entries for s-conca? routines
3237
3238 2009-04-16 Arnaud Charlet <charlet@adacore.com>
3239
3240 * gcc-interface/Make-lang.in: Update dependencies.
3241
3242 * gcc-interface/Makefile.in: Update translation for vms.
3243
3244 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3245
3246 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
3247 and made global, to be used when installing parents of a child
3248 instance, to provide mappings for entities declared in formal packages
3249 of ancestor units. Now called from Install_Formal_Packages.
3250
3251 2009-04-16 Doug Rupp <rupp@adacore.com>
3252
3253 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
3254 notation for clarity.
3255
3256 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
3257 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
3258 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
3259 (Initialize): Initialize Known_Tasks with Environment task.
3260
3261 * s-taskin.ads (Task_States): Move new states to end for the sake of
3262 GDB compatibility.
3263
3264 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
3265
3266 2009-04-16 Ed Schonberg <schonberg@adacore.com>
3267
3268 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
3269 operation has an inline pragma, propagate the flag to the internal
3270 unprotected subprogram.
3271
3272 2009-04-16 Doug Rupp <rupp@adacore.com>
3273
3274 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
3275 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
3276 s-taprop-hpux-dce.adb, s-taprop-posix.adb
3277 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
3278
3279 * s-taprop-vms.adb (Enter_Task): Likewise.
3280 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
3281
3282 * s-tassta.adb (Activate_Tasks): After task creation set state to
3283 Activating, vice Runnable. Initialize Known_Tasks, moved here from
3284 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
3285 Set state to Runnable after above.
3286 (Task_Wrapper): Set Debug_Event_Run. In exception block set
3287 Debug_Event_Terminated.
3288
3289 * s-taskin.ads (Task_States): Add new states Activiting and
3290 Activator_Delay_Sleep.
3291 (Bit_Array, Debug_Event_Array): New types.
3292 (Global_Task_Debug_Event_Set: New flag.
3293 (Common_ATCB): New field Debug_Events.
3294
3295 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
3296
3297 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
3298 Activator_Sleep.
3299
3300 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
3301 Activating and when Acceptor_Delay_Sleep.
3302
3303 * s-tasdeb.ads: Add constants for Debug_Events.
3304 (Debug_Event_Kind_Type): New subtype.
3305 (Signal_Debug_Event): New subprogram.
3306
3307 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
3308
3309 2009-04-16 Thomas Quinot <quinot@adacore.com>
3310
3311 * sem_elim.adb: Minor reformatting
3312
3313 * freeze.adb: Minor reformatting
3314
3315 * exp_ch4.adb: Minor reformatting
3316
3317 2009-04-16 Emmanuel Briot <briot@adacore.com>
3318
3319 * prj-nmsc.adb (Path_Name_Of): fix memory leak
3320
3321 2009-04-16 Robert Dewar <dewar@adacore.com>
3322
3323 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
3324
3325 2009-04-16 Vincent Celier <celier@adacore.com>
3326
3327 * fmap.adb (Initialize): Show the current line when the mapping file
3328 is detected as "incorrectly formatted".
3329
3330 2009-04-16 Robert Dewar <dewar@adacore.com>
3331
3332 * sem_ch12.adb: Minor reformatting
3333
3334 * sem_ch5.adb: Minor comment addition
3335
3336 * sem_util.adb: Minor reformatting
3337
3338 * sinput-p.adb: Minor reformatting
3339 Add missing pragma Warnings (On)
3340
3341 2009-04-16 Ed Falis <falis@adacore.com>
3342
3343 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
3344
3345 2009-04-16 Vincent Celier <celier@adacore.com>
3346
3347 * ali-util.adb: Minor comment spelling error fix
3348
3349 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
3350
3351 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
3352 generate an assignment loop in case of overlap.
3353
3354 2009-04-16 Olivier Hainque <hainque@adacore.com>
3355
3356 * gnat_ugn.texi (gnatmem description): Make it explicit that
3357 gnatmem is designed to work in association with static runtime
3358 library only.
3359
3360 2009-04-16 Thomas Quinot <quinot@adacore.com>
3361
3362 * sem_type.adb: Minor reformatting
3363
3364 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
3365
3366 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
3367 concerning return codes of gettimeofday and return value check.
3368
3369 2009-04-16 Ed Falis <falis@adacore.com>
3370
3371 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
3372 body can be renaming of imported routines.
3373
3374 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
3375
3376 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
3377 targeted fashion.
3378
3379 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3380
3381 * exp_ch9.adb: Comment improvements.
3382 (Build_Entry_Family_Name): Add parentheses around the index of a entry
3383 family member.
3384
3385 2009-04-15 Bob Duff <duff@adacore.com>
3386
3387 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
3388 "while X /= null loop" where X is unchanged inside the loop. We were
3389 not warning in this case, because of the pointers -- we feared that the
3390 loop variable could be updated via a pointer, if there are any pointers
3391 around the place. But that is impossible in this case.
3392
3393 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
3394 the case of dereferences. In X.all, X cannot be an l-value. We now
3395 catch that case (and implicit dereferences, too).
3396
3397 2009-04-15 Vincent Celier <celier@adacore.com>
3398
3399 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
3400
3401 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3402
3403 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
3404 From code reading.
3405 (Analyze_Package_Instantiation): If generic unit in child instance is
3406 the same as generic unit in parent instance, look for an outer homonym
3407 to locate the desired generic.
3408
3409 2009-04-15 Bob Duff <duff@adacore.com>
3410
3411 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
3412 warnings unless the loop comes from source, because checking generated
3413 loops is a waste of time, and makes it harder to debug
3414 Check_Infinite_Loop_Warning.
3415
3416 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
3417 tested in the while loop is a renaming, do not warn. Otherwise, we get
3418 false alarms, because it's usually renaming something that we can't
3419 deal with (an indexed component, a global variable, ...).
3420
3421 * gnat_rm.texi: Fix typo
3422
3423 2009-04-15 Thomas Quinot <quinot@adacore.com>
3424
3425 * sem_ch6.adb: Minor reformatting
3426
3427 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3428
3429 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
3430 immediate parent of the controlled function call is a component
3431 association.
3432
3433 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3434
3435 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
3436 corresponding class-wide type is also in use.
3437
3438 2009-04-15 Thomas Quinot <quinot@adacore.com>
3439
3440 * frontend.adb: Minor comment fix
3441
3442 2009-04-15 Robert Dewar <dewar@adacore.com>
3443
3444 * gnatchop.adb (BOM_Length): New global variable
3445 (Write_Unit): Add new parameter Write_BOM
3446 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
3447 to Write_Unit
3448
3449 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
3450
3451 2009-04-15 Geert Bosch <bosch@adacore.com>
3452
3453 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
3454 (Backend_Overflow_Checks): Set to True.
3455
3456 2009-04-15 Gary Dismukes <dismukes@adacore.com>
3457
3458 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
3459 keyword is given in a record extension.
3460
3461 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3462
3463 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
3464 of a controlled function call in the context of a record aggregate.
3465 This does not apply to array aggregates since the call will be expanded
3466 into assignments.
3467
3468 2009-04-15 Ed Falis <falis@adacore.com>
3469
3470 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
3471 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
3472 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
3473 s-osinte-vxworks* and s-vxwext*.
3474
3475 2009-04-15 Arnaud Charlet <charlet@adacore.com>
3476
3477 * gcc-interface/Make-lang.in: Update dependencies.
3478
3479 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
3480 and s-vxwext*.
3481
3482 2009-04-15 Robert Dewar <dewar@adacore.com>
3483
3484 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
3485 of node for location for warning messages.
3486
3487 * gnatchop.adb: Minor reformatting
3488
3489 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3490
3491 * exp_ch6.adb: additional guard for renaming declarations for in
3492 parameters of an array type.
3493
3494 2009-04-15 Robert Dewar <dewar@adacore.com>
3495
3496 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
3497 in case they were rewritten by expander (Force_Evaluation).
3498
3499 * targparm.adb (Get_Target_Parameters): Correct check for
3500 Suppress_Exception_Locations.
3501
3502 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3503
3504 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
3505 inlined is of an array type that is not bit-packed, use a renaming
3506 declaration to capture its value, rather than a constant declaration.
3507
3508 2009-04-15 Robert Dewar <dewar@adacore.com>
3509
3510 * rtsfind.adb: Minor reformatting.
3511
3512 2009-04-15 Emmanuel Briot <briot@adacore.com>
3513
3514 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
3515 Restore, and free the saved context.
3516
3517 2009-04-15 Gary Dismukes <dismukes@adacore.com>
3518
3519 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
3520 for illegal private extension from a synchronized interface parent in
3521 front of check for illegal limited extension so that limited extension
3522 from a synchronized interface will be rejected.
3523 (Check_Ifaces): Check that a private extension that has a synchronized
3524 interface as a progenitor must be explicitly declared synchronized.
3525 Also check that a record extension cannot derive from a synchronized
3526 interface.
3527
3528 2009-04-15 Pascal Obry <obry@adacore.com>
3529
3530 * adaint.h (__gnat_unlink): Add spec.
3531 (__gnat_rename): Likewise.
3532
3533 2009-04-15 Vincent Celier <celier@adacore.com>
3534
3535 * prj-nmsc.adb: Minor spelling error corrections in error messages
3536
3537 2009-04-15 Robert Dewar <dewar@adacore.com>
3538
3539 * sinfo.ads: Minor comment update
3540
3541 * opt.ads: Minor comment updates
3542
3543 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
3544 modular type.
3545
3546 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3547
3548 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
3549 that generates the code needed to update a dispatch table when a
3550 primitive operation is declared with a subprogram body without previous
3551 spec. Insertion of the generated code is responsibility of the caller.
3552 (Make_DT): When building static tables, append the code created by
3553 Register_Primitive to update a secondary table after it has been
3554 constructed.
3555
3556 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
3557
3558 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
3559 on an overriding operation that implements an interface operation only
3560 if not building static dispatch tables.
3561
3562 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3563
3564 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
3565 does not cause overflow when converted to Duration. Use the safe value
3566 as the maximum allowable time delay..
3567
3568 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
3569
3570 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
3571 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
3572 translated to "-j 2".
3573
3574 2009-04-15 Bob Duff <duff@adacore.com>
3575
3576 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
3577 with_clauses, to avoid code duplication. Change this processing so we
3578 always add a with_clause on the main unit if needed.
3579
3580 2009-04-15 Pascal Obry <obry@adacore.com>
3581
3582 Add support for Win32 native encoding for delete/rename routines.
3583
3584 * adaint.c (__gnat_unlink): New routine.
3585 (__gnat_rename): New routine.
3586 Simple wrapper routines used to convert to proper encoding on
3587 Windows.
3588
3589 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
3590 call to the C library.
3591
3592 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
3593
3594 2009-04-15 Robert Dewar <dewar@adacore.com>
3595
3596 * s-tassta.adb: Minor reformatting
3597
3598 2009-04-15 Robert Dewar <dewar@adacore.com>
3599
3600 * frontend.adb (Frontend): Set proper default for
3601 Warn_On_Non_Local_Exception.
3602
3603 * opt.ads (Exception_Handler_Encountered): New flag
3604 (No_Warn_On_Non_Local_Exception): New flag
3605
3606 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
3607
3608 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
3609 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
3610
3611 2009-04-15 Cyrille Comar <comar@adacore.com>
3612
3613 * s-tassta.adb, a-exextr.adb, a-elchha.adb
3614 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
3615 message when exception traces are active since it would generate
3616 redundant information.
3617 (Exception_Traces.Notify_Exception): put message output by a critical
3618 section to avoid unsynchronized output.
3619 (Trace_Unhandled_Exception_In_Task): put message output by a critical
3620 section to avoid unsynchronized output.
3621
3622 2009-04-15 Emmanuel Briot <briot@adacore.com>
3623
3624 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
3625 (Free): New subprogram.
3626
3627 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3628
3629 * a-calend.adb: Add new constant Nanos_In_Four_Years.
3630 (Formatting_Operations.Time_Of): Change the way four year chunks of
3631 nanoseconds are added to the intermediate result.
3632
3633 2009-04-15 Nicolas Setton <setton@adacore.com>
3634
3635 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
3636 does not need to wait for a carriage return.
3637
3638 2009-04-15 Tristan Gingold <gingold@adacore.com>
3639
3640 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
3641 is set.
3642
3643 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3644
3645 * freeze.adb (Freeze_Entity): improve error message for improper use of
3646 incomplete types.
3647 Diagnose additional illegal uses of incomplete types in formal parts.
3648 appearing in formal parts.
3649
3650 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
3651
3652 2009-04-15 Robert Dewar <dewar@adacore.com>
3653
3654 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
3655
3656 2009-04-15 Nicolas Roche <roche@adacore.com>
3657
3658 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
3659 current thread.
3660
3661 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
3662
3663 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
3664
3665 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3666
3667 * sem_ch4.adb: improve error message on exponentiation.
3668
3669 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
3670
3671 * a-calend.adb: Move constant Epoch_Offset from package
3672 Conversion_Operations to top level.
3673 (Delay_Operations.To_Duration): Define a constant which represents
3674 "end of time" and use it as a guard against very distant delay dates.
3675 Protect the code against overflow when performing the origin shift to
3676 Unix time.
3677
3678 2009-04-15 Robert Dewar <dewar@adacore.com>
3679
3680 * sem_prag.adb: Minor reformatting.
3681
3682 * sem_type.adb: Minor reformatting
3683
3684 2009-04-15 Javier Miranda <miranda@adacore.com>
3685
3686 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
3687 support to check eliminated subprograms.
3688
3689 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
3690
3691 * sem_elim.adb (Set_Eliminated): Add support for elimination of
3692 dispatching subprograms.
3693
3694 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
3695 operations. Initialize with "null" the slots of eliminated dispaching
3696 primitives.
3697 (Write_DT): Add output for eliminated primitives.
3698
3699 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
3700
3701 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3702
3703 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
3704 the second is redundant, regardless of scopes.
3705
3706 2009-04-15 Vincent Celier <celier@adacore.com>
3707
3708 * prj-nmsc.adb (Get_Directories): Check for sources before checking
3709 the object directory as when there are no sources, they may not be any
3710 object directory.
3711
3712 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
3713 directory, when there are no exec directory.
3714
3715 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3716
3717 * sem_type.adb (Remove_Conversions): In order to resolve spurious
3718 ambiguities, refine removal of universal interpretations from complex
3719 expressions with literal arguments, when some numeric operators have
3720 been declared abstract.
3721
3722 2009-04-15 Ed Falis <falis@adacore.com>
3723
3724 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
3725 and backward compatibility for targets using probing for stack overflow
3726
3727 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3728
3729 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
3730 after any declaration, including renaming declarations.
3731
3732 2009-04-15 Arnaud Charlet <charlet@adacore.com>
3733
3734 * gcc-interface/Make-lang.in: Update dependencies.
3735
3736 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
3737 Update xenomai target pairs.
3738
3739 2009-04-15 Javier Miranda <miranda@adacore.com>
3740
3741 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
3742
3743 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
3744 functions returning anonymous access to class-wide limited types. Mark
3745 also the containing scope as a task master.
3746
3747 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
3748 limited-withed packages. Required to restore their visibility after
3749 processing packages associated with implicit with-clauses.
3750
3751 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
3752 associated with return statements because this work is now done by
3753 Check_Anonymous_Return.
3754 (Build_Master): Code cleanup.
3755
3756 2009-04-15 Thomas Quinot <quinot@adacore.com>
3757
3758 * sem_warn.ads: Minor reformatting
3759
3760 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3761
3762 * sem_ch3.adb: better error message for illegal interfaces
3763
3764 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
3765 formal is an incomplete type from a limited_with clause.
3766
3767 2009-04-15 Vincent Celier <celier@adacore.com>
3768
3769 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
3770 Externally_Built indicating if the project is externally built. If it
3771 is, and --subdirs is specified, but the subdir does not exist, look
3772 for the specified directory, without the subdir.
3773
3774 2009-04-15 Gary Dismukes <dismukes@adacore.com>
3775
3776 * a-tasatt.adb: Fix typo, plus minor reformatting
3777
3778 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
3779
3780 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
3781
3782 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3783
3784 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
3785 private extension whose parent is a synchronized interface carries an
3786 explicit synchronized keyword.
3787
3788 2009-04-15 Thomas Quinot <quinot@adacore.com>
3789
3790 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
3791 instantiate generic shared object package with the corresponding
3792 record type.
3793
3794 2009-04-15 Arnaud Charlet <charlet@adacore.com>
3795
3796 * system-linux-sparc.ads: Remove obsolete entries.
3797
3798 2009-04-15 Thomas Quinot <quinot@adacore.com>
3799
3800 * s-tasuti.ads: Add ??? comment
3801
3802 2009-04-15 Ed Schonberg <schonberg@adacore.com>
3803
3804 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
3805 type even if the designated type comes from a limited_with clause, to
3806 ensure that the symbol for the finalization list of the access type is
3807 created.
3808
3809 2009-04-10 Robert Dewar <dewar@adacore.com>
3810
3811 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
3812 for warning suppression.
3813
3814 2009-04-10 Ed Schonberg <schonberg@adacore.com>
3815
3816 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
3817 identical, there is no redudancy to check.
3818
3819 2009-04-10 Gary Dismukes <dismukes@adacore.com>
3820
3821 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
3822 calls initializing SS_Allocator (which is initialized in following
3823 code).
3824 (Expand_Simple_Function_Return): Add comment about False value for
3825 Comes_From_Source on secondary-stack allocator.
3826
3827 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
3828 (Build_Entry_Name): Add comment.
3829
3830 2009-04-10 Robert Dewar <dewar@adacore.com>
3831
3832 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
3833
3834 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
3835 bound tested, since this is now done more generally in Sem_Res.
3836
3837 * sem_res.adb (Resolve_Comparison_Op): Add call to
3838 Check_Lower_Bound_Tested.
3839 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
3840
3841 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
3842 (Low_Bound_Tested): New name for Low_Bound_Known flag
3843
3844 * exp_ch5.adb: Minor reformatting
3845
3846 * exp_ch4.adb:
3847 Add comments on copying the Comes_From_Source flag for allocators
3848
3849 * sinfo.ads:
3850 Add comments on copying the Comes_From_Source flag for allocators
3851
3852 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
3853 Comes_From_Source flag from old allocator to new one.
3854
3855 2009-04-10 Ed Schonberg <schonberg@adacore.com>
3856
3857 * sem_ch6.ads: Address missing documentation query
3858
3859 2009-04-10 Vincent Celier <celier@adacore.com>
3860
3861 * prj-attr.adb:
3862 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
3863 and Response_File_Switches.
3864
3865 * prj-nmsc.adb (Process_Linker): Process new attributes
3866 Max_Command_Line_Length, Response_File_Format and
3867 Response_File_Switches.
3868
3869 * prj.ads (Response_File_Format): New enumeration type
3870 (Project_Configuration): New componants Max_Command_Line_Length,
3871 Resp_File_Format and Resp_File_Options.
3872
3873 * snames.ads-tmpl: Add new standard names for linking response files
3874 for gprbuild: GNU, None, Object_List, Option_List,
3875 Max_Command_Line_Length, Response_File_Format and
3876 Response_File_Switches.
3877
3878 2009-04-10 Geert Bosch <bosch@adacore.com>
3879
3880 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
3881 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
3882 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
3883 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
3884 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
3885 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
3886 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
3887 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
3888 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
3889 system-vxworks-arm.ads, system-vxworks-m68k.ads,
3890 system-vxworks-mips.ads, system-vxworks-ppc.ads,
3891 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
3892 (Backend_Overflow_Checks): Set to True.
3893
3894 2009-04-10 Thomas Quinot <quinot@adacore.com>
3895
3896 * exp_attr.adb: Minor reformatting
3897
3898 2009-04-10 Ed Schonberg <schonberg@adacore.com>
3899
3900 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
3901 analyze the expression for a postcondition, even if the compiler mode
3902 is Generate_Code.
3903
3904 2009-04-10 Robert Dewar <dewar@adacore.com>
3905
3906 * sem_aux.adb: Minor reformatting
3907
3908 2009-04-10 Ed Falis <falis@adacore.com>
3909
3910 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
3911
3912 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
3913
3914 2009-04-10 Thomas Quinot <quinot@adacore.com>
3915
3916 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
3917 undocumented formal.
3918 Minor reformatting
3919
3920 * a-direio.ads: Fix typo in comment
3921
3922 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
3923 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
3924 Use uniform phrasing for comment at start of subprogram body.
3925
3926 * xsnamest.adb: Add note to explain why we use specific names for the
3927 newly generated files instead of generating snames.{ads,adb,h} directly
3928
3929 2009-04-10 Sergey Rybin <rybin@adacore.com>
3930
3931 * vms_data.ads:
3932 Add qualifier for new gnatstub option '--no-exception'
3933
3934 * gnat_ugn.texi:
3935 Add the description of the new gnatstub option '--no-exception'
3936
3937 2009-04-10 Robert Dewar <dewar@adacore.com>
3938
3939 * rtsfind.adb: Minor reformatting
3940
3941 2009-04-10 Thomas Quinot <quinot@adacore.com>
3942
3943 * sem_disp.adb: Minor reformatting.
3944 Add comment pointing to RM clause for the case of warning against a
3945 (failed) attempt at declaring a primitive operation elsewhere than in a
3946 package spec.
3947
3948 2009-04-10 Ed Schonberg <schonberg@adacore.com>
3949
3950 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
3951 an actual for a previous formal package of the current instance.
3952
3953 2009-04-10 Bob Duff <duff@adacore.com>
3954
3955 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
3956 them first, rather than on the extended main unit.
3957
3958 2009-04-10 Ed Schonberg <schonberg@adacore.com>
3959
3960 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
3961 specification of full view carries a null exclusion indicator, create
3962 an itype for it, to check for conformance with partial view.
3963
3964 2009-04-10 Bob Duff <duff@adacore.com>
3965
3966 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
3967
3968 * rtsfind.adb: Minor comment changes, and remove useless code.
3969
3970 * sinfo.ads: Add ??? comment.
3971
3972 2009-04-10 Vincent Celier <celier@adacore.com>
3973
3974 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
3975
3976 2009-04-10 Ed Schonberg <schonberg@adacore.com>
3977
3978 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
3979 type is a synchronized type, retrieve tag information from the
3980 corresponding record, which has the dispatch table link.
3981
3982 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
3983
3984 * g-comlin.adb (Group_Analysis): Take care of switches that might be
3985 decomposed afterwards, but are present as-is in the command line
3986 configuration, and thus should be kept as-is.
3987
3988 2009-04-10 Robert Dewar <dewar@adacore.com>
3989
3990 * gnat_rm.texi: Document that postconditions are tested on implicit
3991 returns.
3992
3993 * sem_aux.adb: Minor reformatting
3994
3995 2009-04-10 Gary Dismukes <dismukes@adacore.com>
3996
3997 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
3998 setting Etype.
3999
4000 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
4001 Null_Exclusion_In_Return_Present when an access-to-function type has a
4002 result type with an explicit not null.
4003
4004 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
4005 given on the result type, then create a null-excluding itype for the
4006 function.
4007
4008 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
4009 the case where a null exclusion is imposed on a named access type.
4010 (Analyze_Subprogram_Specification): Push and pop the scope of the
4011 function around the call to Analyze_Return_Type in the case of no
4012 formals, for consistency with handling when formals are present
4013 (Process_Formals does this). Ensures that any itype created for the
4014 return type will be associated with the proper scope.
4015
4016 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
4017 exclusion is given on a generic function's result type, then create a
4018 null-excluding itype for the generic function.
4019 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
4020 for an actual for a formal in object according to the setting on the
4021 formal. Ensures null exclusion checks are done when the association is
4022 elaborated.
4023
4024 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
4025 N_Access_Function_Definition.
4026
4027 * sinfo.adb: Add Get_ and Set_ operations for
4028 Null_Exclusion_In_Return_Present.
4029
4030 2009-04-10 Bob Duff <duff@adacore.com>
4031
4032 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
4033 call to the _Postconditions procedure in the case of implicit returns
4034 from analysis to expansion. This eliminates some duplicated code. Use
4035 the Postcondition_Proc to find the identity of this procedure during
4036 expansion.
4037
4038 2009-04-10 Robert Dewar <dewar@adacore.com>
4039
4040 * sem_ch6.adb: Minor code clean up.
4041
4042 * einfo.ads, sem_attr.adb: Minor comment fixes.
4043
4044 2009-04-10 Robert Dewar <dewar@adacore.com>
4045
4046 * sem_ch8.adb: Minor reformatting
4047
4048 2009-04-10 Robert Dewar <dewar@adacore.com>
4049
4050 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
4051 procedures.
4052
4053 * sem_ch6.adb: Minor code clean up.
4054
4055 2009-04-10 Robert Dewar <dewar@adacore.com>
4056
4057 * mlib-tgt-specific-xi.adb: Minor reformatting
4058
4059 2009-04-10 Bob Duff <duff@adacore.com>
4060
4061 * einfo.ads: Minor comment fixes
4062
4063 2009-04-10 Vincent Celier <celier@adacore.com>
4064
4065 * snames.ads-tmpl: Remove names that are no longer used in the
4066 Project Manager.
4067 Mark specifically those that are used only in gprbuild
4068
4069 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
4070
4071 * init.c: Adjust EH support code on Alpha/Tru64.
4072
4073 2009-04-10 Bob Duff <duff@adacore.com>
4074
4075 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
4076 procedure on every path that could return implicitly (not via a return
4077 statement) from a procedure.
4078
4079 2009-04-10 Ed Schonberg <schonberg@adacore.com>
4080
4081 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
4082 valid scope for a task declarations and therefore for a master id.
4083
4084 2009-04-10 Robert Dewar <dewar@adacore.com>
4085
4086 * sem_aux.adb: Minor reformatting
4087
4088 2009-04-10 Vincent Celier <celier@adacore.com>
4089
4090 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
4091 True.
4092 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
4093 (Set_Obsolescent_Check): New procedure to change the value of
4094 Obsolescent_Check_Flag.
4095
4096 * scn.ads (Set_Obsolescent_Check): New procedure to control
4097 Obsolescent_Check.
4098
4099 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
4100 obsolescent features while preprocessing.
4101
4102 2009-04-10 Thomas Quinot <quinot@adacore.com>
4103
4104 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
4105 generated files on all platforms.
4106
4107 2009-04-10 Robert Dewar <dewar@adacore.com>
4108
4109 * sem_aux.adb: Minor reformatting
4110
4111 2009-04-10 Ed Schonberg <schonberg@adacore.com>
4112
4113 * sem_ch3.adb (Access_Definition): Handle properly the case of a
4114 protected function with formals that returns an anonymous access type.
4115
4116 2009-04-10 Thomas Quinot <quinot@adacore.com>
4117
4118 * sem_disp.adb: Minor reformatting
4119
4120 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
4121
4122 * seh_init.c: Do not use the 32-bit specific implementation of
4123 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
4124 version TBD).
4125
4126 2009-04-10 Jose Ruiz <ruiz@adacore.com>
4127
4128 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
4129 a '/' at the end so we better use the complete target name to determine
4130 whether it is a PowerPC 55xx target.
4131
4132 2009-04-10 Thomas Quinot <quinot@adacore.com>
4133
4134 * sem_eval.adb: Minor reformatting
4135
4136 2009-04-10 Thomas Quinot <quinot@adacore.com>
4137
4138 * snames.h, snames.ads, snames.adb: Remove files, now generated from
4139 templates.
4140
4141 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
4142 above.
4143
4144 * xsnamest.adb: New file.
4145
4146 * gcc-interface/Make-lang.in: New target for automated generation of
4147 snames.ads, snames.adb and snames.h
4148
4149 2009-04-10 Tristan Gingold <gingold@adacore.com>
4150
4151 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
4152 avoid compile time warnings.
4153 Do not add gcc/config in include search list while compiling the RTS.
4154 Pragma Thread_Local_Storage is available on any target.
4155
4156 2009-04-10 Bob Duff <duff@adacore.com>
4157
4158 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
4159
4160 2009-04-10 Tristan Gingold <gingold@adacore.com>
4161
4162 * init.c: Install signal handler on Darwin.
4163
4164 2009-04-10 Robert Dewar <dewar@adacore.com>
4165
4166 * sem_prag.adb: Minor reformatting
4167
4168 * exp_util.adb (Make_Non_Empty_Check): New function
4169 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
4170 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
4171
4172 2009-04-10 Arnaud Charlet <charlet@adacore.com>
4173
4174 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
4175
4176 2009-04-10 Jose Ruiz <ruiz@adacore.com>
4177
4178 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
4179 tool prefix for AVR and PowerPC 55xx targets.
4180
4181 2009-04-10 Robert Dewar <dewar@adacore.com>
4182
4183 * sem_warn.adb (Within_Postcondition): New function
4184 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
4185
4186 2009-04-10 Robert Dewar <dewar@adacore.com>
4187
4188 * sem_warn.adb: Minor reformatting
4189
4190 * make.adb: Minor reformatting.
4191
4192 2009-04-10 Gary Dismukes <dismukes@adacore.com>
4193
4194 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
4195 entity and the scope is a subprogram, retrieve the Sloc of the
4196 subprogram's body rather than using the sloc of the spec, for better
4197 line-stepping behavior in gdb.
4198 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
4199 controller, use the Sloc of the first declaration of the containing list
4200 rather than that of the node that triggered creation of the list
4201 controller.
4202
4203 2009-04-10 Vincent Celier <celier@adacore.com>
4204
4205 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
4206 to avoid gcc warning.
4207
4208 2009-04-10 Robert Dewar <dewar@adacore.com>
4209
4210 * g-comlin.adb: Add ??? comment
4211
4212 2009-04-10 Ed Schonberg <schonberg@adacore.com>
4213
4214 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
4215 unreferenced entities for a package with no visible declarations.
4216
4217 2009-04-10 Robert Dewar <dewar@adacore.com>
4218
4219 * exp_ch9.adb: Minor reformatting
4220
4221 2009-04-10 Thomas Quinot <quinot@adacore.com>
4222
4223 * sem_prag.adb: Minor reformatting
4224
4225 2009-04-10 Vincent Celier <celier@adacore.com>
4226
4227 * prj-nmsc.adb:
4228 (Check_Library_Attributes): For a project qualified as a library project
4229 that is not a library project, indicate in the error message which
4230 attributes are missing (Library_Dir and/or Library_Name).
4231
4232 2009-04-10 Bob Duff <duff@adacore.com>
4233
4234 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
4235 generated nodes, because it might confuse various circuits in the FE.
4236
4237 2009-04-10 Ed Schonberg <schonberg@adacore.com>
4238
4239 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
4240 of pragma. It will be recopied and analyzed when used in call to
4241 Create_Task.
4242
4243 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
4244 initialization operations and recognize use of it in procedure calls
4245 within init_procs.
4246
4247 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
4248 argument, because it may have side-effects.
4249
4250 * exp_ch2.adb: Remove obsolete comments on default functions
4251
4252 2009-04-10 Jose Ruiz <ruiz@adacore.com>
4253
4254 * adaint.c (RTX section): Do for RTX the same thing as we do for
4255 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
4256
4257 2009-04-10 Robert Dewar <dewar@adacore.com>
4258
4259 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
4260
4261 * sem_res.adb (Resolve_Call): Fix test for
4262 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
4263 a non-dynamic scope).
4264
4265 2009-04-10 Robert Dewar <dewar@adacore.com>
4266
4267 * make.adb: Add comment.
4268 Minor reformatting
4269
4270 2009-04-10 Nicolas Setton <setton@adacore.com>
4271
4272 * s-osprim-darwin.adb: New file.
4273
4274 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
4275
4276 2009-04-10 Thomas Quinot <quinot@adacore.com>
4277
4278 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
4279
4280 2009-04-09 Nick Clifton <nickc@redhat.com>
4281
4282 * adadecode.h: Change copyright header to refer to version
4283 3 of the GNU General Public License with version 3.1 of the
4284 GCC Runtime Library Exception and to point readers at the
4285 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
4286 page.
4287 * 9drpc.adb: Likewise.
4288 * a-assert.adb: Likewise.
4289 * a-astaco.adb: Likewise.
4290 * a-calari.adb: Likewise.
4291 * a-calcon.adb: Likewise.
4292 * a-calcon.ads: Likewise.
4293 * a-caldel.ads: Likewise.
4294 * a-calend-vms.adb: Likewise.
4295 * a-calend-vms.ads: Likewise.
4296 * a-calend.adb: Likewise.
4297 * a-calend.ads: Likewise.
4298 * a-calfor.adb: Likewise.
4299 * a-catizo.adb: Likewise.
4300 * a-cdlili.adb: Likewise.
4301 * a-cdlili.ads: Likewise.
4302 * a-cgaaso.adb: Likewise.
4303 * a-cgaaso.ads: Likewise.
4304 * a-cgarso.adb: Likewise.
4305 * a-cgcaso.adb: Likewise.
4306 * a-chacon.adb: Likewise.
4307 * a-chacon.ads: Likewise.
4308 * a-chahan.adb: Likewise.
4309 * a-chahan.ads: Likewise.
4310 * a-chlat9.ads: Likewise.
4311 * a-chtgke.adb: Likewise.
4312 * a-chtgke.ads: Likewise.
4313 * a-chtgop.adb: Likewise.
4314 * a-chtgop.ads: Likewise.
4315 * a-chzla1.ads: Likewise.
4316 * a-chzla9.ads: Likewise.
4317 * a-cidlli.adb: Likewise.
4318 * a-cidlli.ads: Likewise.
4319 * a-cihama.adb: Likewise.
4320 * a-cihama.ads: Likewise.
4321 * a-cihase.adb: Likewise.
4322 * a-cihase.ads: Likewise.
4323 * a-ciorma.adb: Likewise.
4324 * a-ciorma.ads: Likewise.
4325 * a-ciormu.adb: Likewise.
4326 * a-ciormu.ads: Likewise.
4327 * a-ciorse.adb: Likewise.
4328 * a-ciorse.ads: Likewise.
4329 * a-clrefi.adb: Likewise.
4330 * a-clrefi.ads: Likewise.
4331 * a-cohama.adb: Likewise.
4332 * a-cohama.ads: Likewise.
4333 * a-cohase.adb: Likewise.
4334 * a-cohase.ads: Likewise.
4335 * a-cohata.ads: Likewise.
4336 * a-coinve.adb: Likewise.
4337 * a-coinve.ads: Likewise.
4338 * a-colien.adb: Likewise.
4339 * a-colien.ads: Likewise.
4340 * a-colire.adb: Likewise.
4341 * a-colire.ads: Likewise.
4342 * a-comlin.adb: Likewise.
4343 * a-comlin.ads: Likewise.
4344 * a-convec.adb: Likewise.
4345 * a-convec.ads: Likewise.
4346 * a-coorma.adb: Likewise.
4347 * a-coorma.ads: Likewise.
4348 * a-coormu.adb: Likewise.
4349 * a-coormu.ads: Likewise.
4350 * a-coorse.adb: Likewise.
4351 * a-coorse.ads: Likewise.
4352 * a-coprnu.adb: Likewise.
4353 * a-coprnu.ads: Likewise.
4354 * a-crbltr.ads: Likewise.
4355 * a-crbtgk.adb: Likewise.
4356 * a-crbtgk.ads: Likewise.
4357 * a-crbtgo.adb: Likewise.
4358 * a-crbtgo.ads: Likewise.
4359 * a-crdlli.adb: Likewise.
4360 * a-crdlli.ads: Likewise.
4361 * a-cwila1.ads: Likewise.
4362 * a-cwila9.ads: Likewise.
4363 * a-decima.adb: Likewise.
4364 * a-decima.ads: Likewise.
4365 * a-diocst.adb: Likewise.
4366 * a-diocst.ads: Likewise.
4367 * a-direct.adb: Likewise.
4368 * a-direct.ads: Likewise.
4369 * a-direio.adb: Likewise.
4370 * a-direio.ads: Likewise.
4371 * a-dirval-mingw.adb: Likewise.
4372 * a-dirval-vms.adb: Likewise.
4373 * a-dirval.adb: Likewise.
4374 * a-dirval.ads: Likewise.
4375 * a-dynpri.adb: Likewise.
4376 * a-einuoc.adb: Likewise.
4377 * a-einuoc.ads: Likewise.
4378 * a-elchha.adb: Likewise.
4379 * a-elchha.ads: Likewise.
4380 * a-envvar.adb: Likewise.
4381 * a-excach.adb: Likewise.
4382 * a-except-2005.adb: Likewise.
4383 * a-except-2005.ads: Likewise.
4384 * a-except.adb: Likewise.
4385 * a-except.ads: Likewise.
4386 * a-excpol-abort.adb: Likewise.
4387 * a-excpol.adb: Likewise.
4388 * a-exctra.adb: Likewise.
4389 * a-exctra.ads: Likewise.
4390 * a-exetim-mingw.adb: Likewise.
4391 * a-exetim-mingw.ads: Likewise.
4392 * a-exexda.adb: Likewise.
4393 * a-exexpr-gcc.adb: Likewise.
4394 * a-exexpr.adb: Likewise.
4395 * a-exextr.adb: Likewise.
4396 * a-exstat.adb: Likewise.
4397 * a-filico.adb: Likewise.
4398 * a-filico.ads: Likewise.
4399 * a-finali.adb: Likewise.
4400 * a-finali.ads: Likewise.
4401 * a-interr.ads: Likewise.
4402 * a-intnam-aix.ads: Likewise.
4403 * a-intnam-darwin.ads: Likewise.
4404 * a-intnam-dummy.ads: Likewise.
4405 * a-intnam-freebsd.ads: Likewise.
4406 * a-intnam-hpux.ads: Likewise.
4407 * a-intnam-irix.ads: Likewise.
4408 * a-intnam-linux.ads: Likewise.
4409 * a-intnam-lynxos.ads: Likewise.
4410 * a-intnam-mingw.ads: Likewise.
4411 * a-intnam-rtems.ads: Likewise.
4412 * a-intnam-solaris.ads: Likewise.
4413 * a-intnam-tru64.ads: Likewise.
4414 * a-intnam-vms.ads: Likewise.
4415 * a-intnam-vxworks.ads: Likewise.
4416 * a-intsig.adb: Likewise.
4417 * a-intsig.ads: Likewise.
4418 * a-ngcefu.adb: Likewise.
4419 * a-ngcoar.adb: Likewise.
4420 * a-ngcoty.adb: Likewise.
4421 * a-ngcoty.ads: Likewise.
4422 * a-ngelfu.adb: Likewise.
4423 * a-ngrear.adb: Likewise.
4424 * a-ngrear.ads: Likewise.
4425 * a-nudira.adb: Likewise.
4426 * a-nudira.ads: Likewise.
4427 * a-nuflra.adb: Likewise.
4428 * a-nuflra.ads: Likewise.
4429 * a-numaux-darwin.adb: Likewise.
4430 * a-numaux-darwin.ads: Likewise.
4431 * a-numaux-libc-x86.ads: Likewise.
4432 * a-numaux-vxworks.ads: Likewise.
4433 * a-numaux-x86.adb: Likewise.
4434 * a-numaux-x86.ads: Likewise.
4435 * a-numaux.ads: Likewise.
4436 * a-rbtgso.adb: Likewise.
4437 * a-rbtgso.ads: Likewise.
4438 * a-reatim.ads: Likewise.
4439 * a-retide.adb: Likewise.
4440 * a-retide.ads: Likewise.
4441 * a-rttiev.adb: Likewise.
4442 * a-rttiev.ads: Likewise.
4443 * a-secain.adb: Likewise.
4444 * a-secain.ads: Likewise.
4445 * a-sequio.adb: Likewise.
4446 * a-sequio.ads: Likewise.
4447 * a-shcain.adb: Likewise.
4448 * a-shcain.ads: Likewise.
4449 * a-siocst.adb: Likewise.
4450 * a-siocst.ads: Likewise.
4451 * a-slcain.adb: Likewise.
4452 * a-slcain.ads: Likewise.
4453 * a-ssicst.adb: Likewise.
4454 * a-ssicst.ads: Likewise.
4455 * a-stboha.adb: Likewise.
4456 * a-stmaco.ads: Likewise.
4457 * a-storio.adb: Likewise.
4458 * a-strbou.adb: Likewise.
4459 * a-strbou.ads: Likewise.
4460 * a-stream.ads: Likewise.
4461 * a-strfix.adb: Likewise.
4462 * a-strhas.adb: Likewise.
4463 * a-strmap.adb: Likewise.
4464 * a-strmap.ads: Likewise.
4465 * a-strsea.adb: Likewise.
4466 * a-strsea.ads: Likewise.
4467 * a-strsup.adb: Likewise.
4468 * a-strsup.ads: Likewise.
4469 * a-strunb.adb: Likewise.
4470 * a-strunb.ads: Likewise.
4471 * a-ststio.adb: Likewise.
4472 * a-ststio.ads: Likewise.
4473 * a-stunau.adb: Likewise.
4474 * a-stunau.ads: Likewise.
4475 * a-stunha.adb: Likewise.
4476 * a-stwibo.adb: Likewise.
4477 * a-stwibo.ads: Likewise.
4478 * a-stwifi.adb: Likewise.
4479 * a-stwiha.adb: Likewise.
4480 * a-stwima.adb: Likewise.
4481 * a-stwima.ads: Likewise.
4482 * a-stwise.adb: Likewise.
4483 * a-stwise.ads: Likewise.
4484 * a-stwisu.adb: Likewise.
4485 * a-stwisu.ads: Likewise.
4486 * a-stwiun.adb: Likewise.
4487 * a-stwiun.ads: Likewise.
4488 * a-stzbou.adb: Likewise.
4489 * a-stzbou.ads: Likewise.
4490 * a-stzfix.adb: Likewise.
4491 * a-stzhas.adb: Likewise.
4492 * a-stzmap.adb: Likewise.
4493 * a-stzmap.ads: Likewise.
4494 * a-stzsea.adb: Likewise.
4495 * a-stzsea.ads: Likewise.
4496 * a-stzsup.adb: Likewise.
4497 * a-stzsup.ads: Likewise.
4498 * a-stzunb.adb: Likewise.
4499 * a-stzunb.ads: Likewise.
4500 * a-suteio.adb: Likewise.
4501 * a-suteio.ads: Likewise.
4502 * a-swbwha.adb: Likewise.
4503 * a-swmwco.ads: Likewise.
4504 * a-swunau.adb: Likewise.
4505 * a-swunau.ads: Likewise.
4506 * a-swuwha.adb: Likewise.
4507 * a-swuwti.adb: Likewise.
4508 * a-swuwti.ads: Likewise.
4509 * a-sytaco.adb: Likewise.
4510 * a-sytaco.ads: Likewise.
4511 * a-szbzha.adb: Likewise.
4512 * a-szmzco.ads: Likewise.
4513 * a-szunau.adb: Likewise.
4514 * a-szunau.ads: Likewise.
4515 * a-szuzha.adb: Likewise.
4516 * a-szuzti.adb: Likewise.
4517 * a-szuzti.ads: Likewise.
4518 * a-tags.adb: Likewise.
4519 * a-tags.ads: Likewise.
4520 * a-tasatt.ads: Likewise.
4521 * a-taside.adb: Likewise.
4522 * a-taside.ads: Likewise.
4523 * a-taster.adb: Likewise.
4524 * a-teioed.adb: Likewise.
4525 * a-teioed.ads: Likewise.
4526 * a-textio.adb: Likewise.
4527 * a-textio.ads: Likewise.
4528 * a-tiboio.adb: Likewise.
4529 * a-ticoau.adb: Likewise.
4530 * a-ticoau.ads: Likewise.
4531 * a-ticoio.adb: Likewise.
4532 * a-ticoio.ads: Likewise.
4533 * a-tideau.adb: Likewise.
4534 * a-tideau.ads: Likewise.
4535 * a-tideio.adb: Likewise.
4536 * a-tideio.ads: Likewise.
4537 * a-tienau.adb: Likewise.
4538 * a-tienau.ads: Likewise.
4539 * a-tienio.adb: Likewise.
4540 * a-tienio.ads: Likewise.
4541 * a-tifiio.adb: Likewise.
4542 * a-tifiio.ads: Likewise.
4543 * a-tiflau.adb: Likewise.
4544 * a-tiflau.ads: Likewise.
4545 * a-tiflio.adb: Likewise.
4546 * a-tiflio.ads: Likewise.
4547 * a-tigeau.adb: Likewise.
4548 * a-tigeau.ads: Likewise.
4549 * a-tiinau.adb: Likewise.
4550 * a-tiinau.ads: Likewise.
4551 * a-tiinio.adb: Likewise.
4552 * a-tiinio.ads: Likewise.
4553 * a-timoau.adb: Likewise.
4554 * a-timoau.ads: Likewise.
4555 * a-timoio.adb: Likewise.
4556 * a-timoio.ads: Likewise.
4557 * a-tiocst.adb: Likewise.
4558 * a-tiocst.ads: Likewise.
4559 * a-titest.adb: Likewise.
4560 * a-wichun.adb: Likewise.
4561 * a-wichun.ads: Likewise.
4562 * a-witeio.adb: Likewise.
4563 * a-witeio.ads: Likewise.
4564 * a-wtcoau.adb: Likewise.
4565 * a-wtcoau.ads: Likewise.
4566 * a-wtcoio.adb: Likewise.
4567 * a-wtcstr.adb: Likewise.
4568 * a-wtcstr.ads: Likewise.
4569 * a-wtdeau.adb: Likewise.
4570 * a-wtdeau.ads: Likewise.
4571 * a-wtdeio.adb: Likewise.
4572 * a-wtdeio.ads: Likewise.
4573 * a-wtedit.adb: Likewise.
4574 * a-wtedit.ads: Likewise.
4575 * a-wtenau.adb: Likewise.
4576 * a-wtenau.ads: Likewise.
4577 * a-wtenio.adb: Likewise.
4578 * a-wtenio.ads: Likewise.
4579 * a-wtfiio.adb: Likewise.
4580 * a-wtfiio.ads: Likewise.
4581 * a-wtflau.adb: Likewise.
4582 * a-wtflau.ads: Likewise.
4583 * a-wtflio.adb: Likewise.
4584 * a-wtflio.ads: Likewise.
4585 * a-wtgeau.adb: Likewise.
4586 * a-wtgeau.ads: Likewise.
4587 * a-wtinau.adb: Likewise.
4588 * a-wtinau.ads: Likewise.
4589 * a-wtinio.adb: Likewise.
4590 * a-wtmoau.adb: Likewise.
4591 * a-wtmoau.ads: Likewise.
4592 * a-wtmoio.adb: Likewise.
4593 * a-wtmoio.ads: Likewise.
4594 * a-wttest.adb: Likewise.
4595 * a-wwboio.adb: Likewise.
4596 * a-zchuni.adb: Likewise.
4597 * a-zchuni.ads: Likewise.
4598 * a-ztcoau.adb: Likewise.
4599 * a-ztcoau.ads: Likewise.
4600 * a-ztcoio.adb: Likewise.
4601 * a-ztcstr.adb: Likewise.
4602 * a-ztcstr.ads: Likewise.
4603 * a-ztdeau.adb: Likewise.
4604 * a-ztdeau.ads: Likewise.
4605 * a-ztdeio.adb: Likewise.
4606 * a-ztdeio.ads: Likewise.
4607 * a-ztedit.adb: Likewise.
4608 * a-ztedit.ads: Likewise.
4609 * a-ztenau.adb: Likewise.
4610 * a-ztenau.ads: Likewise.
4611 * a-ztenio.adb: Likewise.
4612 * a-ztenio.ads: Likewise.
4613 * a-ztexio.adb: Likewise.
4614 * a-ztexio.ads: Likewise.
4615 * a-ztfiio.adb: Likewise.
4616 * a-ztfiio.ads: Likewise.
4617 * a-ztflau.adb: Likewise.
4618 * a-ztflau.ads: Likewise.
4619 * a-ztflio.adb: Likewise.
4620 * a-ztflio.ads: Likewise.
4621 * a-ztgeau.adb: Likewise.
4622 * a-ztgeau.ads: Likewise.
4623 * a-ztinau.adb: Likewise.
4624 * a-ztinau.ads: Likewise.
4625 * a-ztinio.adb: Likewise.
4626 * a-ztmoau.adb: Likewise.
4627 * a-ztmoau.ads: Likewise.
4628 * a-ztmoio.adb: Likewise.
4629 * a-ztmoio.ads: Likewise.
4630 * a-zttest.adb: Likewise.
4631 * a-zzboio.adb: Likewise.
4632 * adadecode.c: Likewise.
4633 * adaint.c: Likewise.
4634 * adaint.h: Likewise.
4635 * alloc.ads: Likewise.
4636 * argv.c: Likewise.
4637 * arit64.c: Likewise.
4638 * atree.adb: Likewise.
4639 * atree.ads: Likewise.
4640 * aux-io.c: Likewise.
4641 * cal.c: Likewise.
4642 * casing.adb: Likewise.
4643 * casing.ads: Likewise.
4644 * cio.c: Likewise.
4645 * csets.adb: Likewise.
4646 * csets.ads: Likewise.
4647 * cstreams.c: Likewise.
4648 * ctrl_c.c: Likewise.
4649 * debug.adb: Likewise.
4650 * debug.ads: Likewise.
4651 * dec.ads: Likewise.
4652 * einfo.adb: Likewise.
4653 * einfo.ads: Likewise.
4654 * elists.adb: Likewise.
4655 * elists.ads: Likewise.
4656 * env.c: Likewise.
4657 * env.h: Likewise.
4658 * errno.c: Likewise.
4659 * exit.c: Likewise.
4660 * fe.h: Likewise.
4661 * final.c: Likewise.
4662 * fname.adb: Likewise.
4663 * fname.ads: Likewise.
4664 * g-allein.ads: Likewise.
4665 * g-alleve.adb: Likewise.
4666 * g-alleve.ads: Likewise.
4667 * g-altcon.adb: Likewise.
4668 * g-altcon.ads: Likewise.
4669 * g-altive.ads: Likewise.
4670 * g-alveop.adb: Likewise.
4671 * g-alveop.ads: Likewise.
4672 * g-alvety.ads: Likewise.
4673 * g-alvevi.ads: Likewise.
4674 * g-arrspl.adb: Likewise.
4675 * g-arrspl.ads: Likewise.
4676 * g-calend.ads: Likewise.
4677 * g-comlin.adb: Likewise.
4678 * g-debpoo.adb: Likewise.
4679 * g-debpoo.ads: Likewise.
4680 * g-eacodu-vms.adb: Likewise.
4681 * g-eacodu.adb: Likewise.
4682 * g-excact.adb: Likewise.
4683 * g-excact.ads: Likewise.
4684 * g-locfil.adb: Likewise.
4685 * g-os_lib.ads: Likewise.
4686 * g-rannum.adb: Likewise.
4687 * g-rannum.ads: Likewise.
4688 * g-regist.adb: Likewise.
4689 * g-regist.ads: Likewise.
4690 * g-signal.adb: Likewise.
4691 * g-signal.ads: Likewise.
4692 * g-soccon.ads: Likewise.
4693 * g-string.adb: Likewise.
4694 * g-string.ads: Likewise.
4695 * g-strspl.ads: Likewise.
4696 * g-timsta.adb: Likewise.
4697 * g-timsta.ads: Likewise.
4698 * g-trasym-vms-alpha.adb: Likewise.
4699 * g-trasym-vms-ia64.adb: Likewise.
4700 * g-utf_32.adb: Likewise.
4701 * g-utf_32.ads: Likewise.
4702 * g-wistsp.ads: Likewise.
4703 * g-zstspl.ads: Likewise.
4704 * gmem.c: Likewise.
4705 * gnatvsn.adb: Likewise.
4706 * gnatvsn.ads: Likewise.
4707 * gsocket.h: Likewise.
4708 * hostparm.ads: Likewise.
4709 * i-c.adb: Likewise.
4710 * i-cexten.ads: Likewise.
4711 * i-cobol.adb: Likewise.
4712 * i-cobol.ads: Likewise.
4713 * i-cpoint.adb: Likewise.
4714 * i-cpoint.ads: Likewise.
4715 * i-cpp.adb: Likewise.
4716 * i-cpp.ads: Likewise.
4717 * i-cstrea-vms.adb: Likewise.
4718 * i-cstrea.adb: Likewise.
4719 * i-cstrea.ads: Likewise.
4720 * i-cstrin.adb: Likewise.
4721 * i-cstrin.ads: Likewise.
4722 * i-forbla-darwin.adb: Likewise.
4723 * i-forbla-unimplemented.ads: Likewise.
4724 * i-forbla.adb: Likewise.
4725 * i-forbla.ads: Likewise.
4726 * i-forlap.ads: Likewise.
4727 * i-fortra.adb: Likewise.
4728 * i-pacdec.adb: Likewise.
4729 * i-pacdec.ads: Likewise.
4730 * i-vxwoio.adb: Likewise.
4731 * i-vxwoio.ads: Likewise.
4732 * indepsw-aix.adb: Likewise.
4733 * indepsw-gnu.adb: Likewise.
4734 * indepsw-mingw.adb: Likewise.
4735 * indepsw.adb: Likewise.
4736 * indepsw.ads: Likewise.
4737 * init.c: Likewise.
4738 * initialize.c: Likewise.
4739 * interfac.ads: Likewise.
4740 * krunch.adb: Likewise.
4741 * krunch.ads: Likewise.
4742 * lib-list.adb: Likewise.
4743 * lib-sort.adb: Likewise.
4744 * lib.adb: Likewise.
4745 * lib.ads: Likewise.
4746 * link.c: Likewise.
4747 * math_lib.adb: Likewise.
4748 * memtrack.adb: Likewise.
4749 * mingw32.h: Likewise.
4750 * mkdir.c: Likewise.
4751 * namet-sp.adb: Likewise.
4752 * namet-sp.ads: Likewise.
4753 * namet.adb: Likewise.
4754 * namet.ads: Likewise.
4755 * nlists.adb: Likewise.
4756 * nlists.ads: Likewise.
4757 * opt.adb: Likewise.
4758 * opt.ads: Likewise.
4759 * output.adb: Likewise.
4760 * output.ads: Likewise.
4761 * raise-gcc.c: Likewise.
4762 * raise.c: Likewise.
4763 * raise.h: Likewise.
4764 * repinfo.adb: Likewise.
4765 * repinfo.ads: Likewise.
4766 * repinfo.h: Likewise.
4767 * rident.ads: Likewise.
4768 * s-addima.adb: Likewise.
4769 * s-addima.ads: Likewise.
4770 * s-addope.adb: Likewise.
4771 * s-addope.ads: Likewise.
4772 * s-arit64.adb: Likewise.
4773 * s-arit64.ads: Likewise.
4774 * s-assert.adb: Likewise.
4775 * s-assert.ads: Likewise.
4776 * s-asthan-vms-alpha.adb: Likewise.
4777 * s-asthan.adb: Likewise.
4778 * s-asthan.ads: Likewise.
4779 * s-atacco.adb: Likewise.
4780 * s-atacco.ads: Likewise.
4781 * s-auxdec-empty.adb: Likewise.
4782 * s-auxdec-empty.ads: Likewise.
4783 * s-auxdec-vms_64.ads: Likewise.
4784 * s-auxdec.adb: Likewise.
4785 * s-auxdec.ads: Likewise.
4786 * s-bitops.adb: Likewise.
4787 * s-bitops.ads: Likewise.
4788 * s-boarop.ads: Likewise.
4789 * s-carsi8.adb: Likewise.
4790 * s-carsi8.ads: Likewise.
4791 * s-carun8.adb: Likewise.
4792 * s-carun8.ads: Likewise.
4793 * s-casi16.adb: Likewise.
4794 * s-casi16.ads: Likewise.
4795 * s-casi32.adb: Likewise.
4796 * s-casi32.ads: Likewise.
4797 * s-casi64.adb: Likewise.
4798 * s-casi64.ads: Likewise.
4799 * s-casuti.ads: Likewise.
4800 * s-caun16.adb: Likewise.
4801 * s-caun16.ads: Likewise.
4802 * s-caun32.adb: Likewise.
4803 * s-caun32.ads: Likewise.
4804 * s-caun64.adb: Likewise.
4805 * s-caun64.ads: Likewise.
4806 * s-chepoo.ads: Likewise.
4807 * s-crc32.adb: Likewise.
4808 * s-crc32.ads: Likewise.
4809 * s-crtl.ads: Likewise.
4810 * s-direio.adb: Likewise.
4811 * s-direio.ads: Likewise.
4812 * s-dsaser.ads: Likewise.
4813 * s-except.adb: Likewise.
4814 * s-except.ads: Likewise.
4815 * s-exctab.adb: Likewise.
4816 * s-exctab.ads: Likewise.
4817 * s-exnint.adb: Likewise.
4818 * s-exnint.ads: Likewise.
4819 * s-exnllf.adb: Likewise.
4820 * s-exnllf.ads: Likewise.
4821 * s-exnlli.adb: Likewise.
4822 * s-exnlli.ads: Likewise.
4823 * s-expint.adb: Likewise.
4824 * s-expint.ads: Likewise.
4825 * s-explli.adb: Likewise.
4826 * s-explli.ads: Likewise.
4827 * s-expllu.adb: Likewise.
4828 * s-expllu.ads: Likewise.
4829 * s-expmod.adb: Likewise.
4830 * s-expmod.ads: Likewise.
4831 * s-expuns.adb: Likewise.
4832 * s-expuns.ads: Likewise.
4833 * s-fatflt.ads: Likewise.
4834 * s-fatgen.adb: Likewise.
4835 * s-fatgen.ads: Likewise.
4836 * s-fatlfl.ads: Likewise.
4837 * s-fatllf.ads: Likewise.
4838 * s-fatsfl.ads: Likewise.
4839 * s-ficobl.ads: Likewise.
4840 * s-fileio.adb: Likewise.
4841 * s-fileio.ads: Likewise.
4842 * s-filofl.ads: Likewise.
4843 * s-finimp.adb: Likewise.
4844 * s-finimp.ads: Likewise.
4845 * s-finroo.adb: Likewise.
4846 * s-finroo.ads: Likewise.
4847 * s-fishfl.ads: Likewise.
4848 * s-fore.adb: Likewise.
4849 * s-fore.ads: Likewise.
4850 * s-fvadfl.ads: Likewise.
4851 * s-fvaffl.ads: Likewise.
4852 * s-fvagfl.ads: Likewise.
4853 * s-gearop.adb: Likewise.
4854 * s-gearop.ads: Likewise.
4855 * s-gecobl.adb: Likewise.
4856 * s-gecobl.ads: Likewise.
4857 * s-gecola.adb: Likewise.
4858 * s-gecola.ads: Likewise.
4859 * s-gerebl.adb: Likewise.
4860 * s-gerebl.ads: Likewise.
4861 * s-gerela.adb: Likewise.
4862 * s-gerela.ads: Likewise.
4863 * s-geveop.adb: Likewise.
4864 * s-geveop.ads: Likewise.
4865 * s-gloloc.adb: Likewise.
4866 * s-gloloc.ads: Likewise.
4867 * s-hibaen.ads: Likewise.
4868 * s-imenne.adb: Likewise.
4869 * s-imenne.ads: Likewise.
4870 * s-imgbiu.adb: Likewise.
4871 * s-imgbiu.ads: Likewise.
4872 * s-imgboo.adb: Likewise.
4873 * s-imgboo.ads: Likewise.
4874 * s-imgcha.adb: Likewise.
4875 * s-imgcha.ads: Likewise.
4876 * s-imgdec.adb: Likewise.
4877 * s-imgdec.ads: Likewise.
4878 * s-imgenu.adb: Likewise.
4879 * s-imgenu.ads: Likewise.
4880 * s-imgint.adb: Likewise.
4881 * s-imgint.ads: Likewise.
4882 * s-imgllb.adb: Likewise.
4883 * s-imgllb.ads: Likewise.
4884 * s-imglld.adb: Likewise.
4885 * s-imglld.ads: Likewise.
4886 * s-imglli.adb: Likewise.
4887 * s-imglli.ads: Likewise.
4888 * s-imgllu.adb: Likewise.
4889 * s-imgllu.ads: Likewise.
4890 * s-imgllw.adb: Likewise.
4891 * s-imgllw.ads: Likewise.
4892 * s-imgrea.adb: Likewise.
4893 * s-imgrea.ads: Likewise.
4894 * s-imguns.adb: Likewise.
4895 * s-imguns.ads: Likewise.
4896 * s-imgwch.adb: Likewise.
4897 * s-imgwch.ads: Likewise.
4898 * s-imgwiu.adb: Likewise.
4899 * s-imgwiu.ads: Likewise.
4900 * s-inmaop-dummy.adb: Likewise.
4901 * s-inmaop-vms.adb: Likewise.
4902 * s-inmaop.ads: Likewise.
4903 * s-interr-hwint.adb: Likewise.
4904 * s-interr-sigaction.adb: Likewise.
4905 * s-interr-vms.adb: Likewise.
4906 * s-interr.adb: Likewise.
4907 * s-interr.ads: Likewise.
4908 * s-intman-dummy.adb: Likewise.
4909 * s-intman-mingw.adb: Likewise.
4910 * s-intman-posix.adb: Likewise.
4911 * s-intman-solaris.adb: Likewise.
4912 * s-intman-vms.adb: Likewise.
4913 * s-intman-vms.ads: Likewise.
4914 * s-intman-vxworks.adb: Likewise.
4915 * s-intman-vxworks.ads: Likewise.
4916 * s-intman.ads: Likewise.
4917 * s-io.adb: Likewise.
4918 * s-io.ads: Likewise.
4919 * s-linux-alpha.ads: Likewise.
4920 * s-linux-hppa.ads: Likewise.
4921 * s-linux.ads: Likewise.
4922 * s-maccod.ads: Likewise.
4923 * s-mantis.adb: Likewise.
4924 * s-mantis.ads: Likewise.
4925 * s-mastop-irix.adb: Likewise.
4926 * s-mastop.adb: Likewise.
4927 * s-mastop.ads: Likewise.
4928 * s-memcop.ads: Likewise.
4929 * s-memory-mingw.adb: Likewise.
4930 * s-memory.adb: Likewise.
4931 * s-memory.ads: Likewise.
4932 * s-os_lib.ads: Likewise.
4933 * s-oscons-tmplt.c: Likewise.
4934 * s-osinte-aix.adb: Likewise.
4935 * s-osinte-darwin.adb: Likewise.
4936 * s-osinte-freebsd.adb: Likewise.
4937 * s-osinte-irix.adb: Likewise.
4938 * s-osinte-lynxos-3.adb: Likewise.
4939 * s-osinte-rtems.ads: Likewise.
4940 * s-osinte-tru64.adb: Likewise.
4941 * s-osinte-vxworks-kernel.adb: Likewise.
4942 * s-osinte-vxworks.adb: Likewise.
4943 * s-osprim-mingw.adb: Likewise.
4944 * s-osprim-posix.adb: Likewise.
4945 * s-osprim-solaris.adb: Likewise.
4946 * s-osprim-unix.adb: Likewise.
4947 * s-osprim-vms.adb: Likewise.
4948 * s-osprim-vms.ads: Likewise.
4949 * s-osprim-vxworks.adb: Likewise.
4950 * s-osprim.ads: Likewise.
4951 * s-pack03.adb: Likewise.
4952 * s-pack03.ads: Likewise.
4953 * s-pack05.adb: Likewise.
4954 * s-pack05.ads: Likewise.
4955 * s-pack06.adb: Likewise.
4956 * s-pack06.ads: Likewise.
4957 * s-pack07.adb: Likewise.
4958 * s-pack07.ads: Likewise.
4959 * s-pack09.adb: Likewise.
4960 * s-pack09.ads: Likewise.
4961 * s-pack10.adb: Likewise.
4962 * s-pack10.ads: Likewise.
4963 * s-pack11.adb: Likewise.
4964 * s-pack11.ads: Likewise.
4965 * s-pack12.adb: Likewise.
4966 * s-pack12.ads: Likewise.
4967 * s-pack13.adb: Likewise.
4968 * s-pack13.ads: Likewise.
4969 * s-pack14.adb: Likewise.
4970 * s-pack14.ads: Likewise.
4971 * s-pack15.adb: Likewise.
4972 * s-pack15.ads: Likewise.
4973 * s-pack17.adb: Likewise.
4974 * s-pack17.ads: Likewise.
4975 * s-pack18.adb: Likewise.
4976 * s-pack18.ads: Likewise.
4977 * s-pack19.adb: Likewise.
4978 * s-pack19.ads: Likewise.
4979 * s-pack20.adb: Likewise.
4980 * s-pack20.ads: Likewise.
4981 * s-pack21.adb: Likewise.
4982 * s-pack21.ads: Likewise.
4983 * s-pack22.adb: Likewise.
4984 * s-pack22.ads: Likewise.
4985 * s-pack23.adb: Likewise.
4986 * s-pack23.ads: Likewise.
4987 * s-pack24.adb: Likewise.
4988 * s-pack24.ads: Likewise.
4989 * s-pack25.adb: Likewise.
4990 * s-pack25.ads: Likewise.
4991 * s-pack26.adb: Likewise.
4992 * s-pack26.ads: Likewise.
4993 * s-pack27.adb: Likewise.
4994 * s-pack27.ads: Likewise.
4995 * s-pack28.adb: Likewise.
4996 * s-pack28.ads: Likewise.
4997 * s-pack29.adb: Likewise.
4998 * s-pack29.ads: Likewise.
4999 * s-pack30.adb: Likewise.
5000 * s-pack30.ads: Likewise.
5001 * s-pack31.adb: Likewise.
5002 * s-pack31.ads: Likewise.
5003 * s-pack33.adb: Likewise.
5004 * s-pack33.ads: Likewise.
5005 * s-pack34.adb: Likewise.
5006 * s-pack34.ads: Likewise.
5007 * s-pack35.adb: Likewise.
5008 * s-pack35.ads: Likewise.
5009 * s-pack36.adb: Likewise.
5010 * s-pack36.ads: Likewise.
5011 * s-pack37.adb: Likewise.
5012 * s-pack37.ads: Likewise.
5013 * s-pack38.adb: Likewise.
5014 * s-pack38.ads: Likewise.
5015 * s-pack39.adb: Likewise.
5016 * s-pack39.ads: Likewise.
5017 * s-pack40.adb: Likewise.
5018 * s-pack40.ads: Likewise.
5019 * s-pack41.adb: Likewise.
5020 * s-pack41.ads: Likewise.
5021 * s-pack42.adb: Likewise.
5022 * s-pack42.ads: Likewise.
5023 * s-pack43.adb: Likewise.
5024 * s-pack43.ads: Likewise.
5025 * s-pack44.adb: Likewise.
5026 * s-pack44.ads: Likewise.
5027 * s-pack45.adb: Likewise.
5028 * s-pack45.ads: Likewise.
5029 * s-pack46.adb: Likewise.
5030 * s-pack46.ads: Likewise.
5031 * s-pack47.adb: Likewise.
5032 * s-pack47.ads: Likewise.
5033 * s-pack48.adb: Likewise.
5034 * s-pack48.ads: Likewise.
5035 * s-pack49.adb: Likewise.
5036 * s-pack49.ads: Likewise.
5037 * s-pack50.adb: Likewise.
5038 * s-pack50.ads: Likewise.
5039 * s-pack51.adb: Likewise.
5040 * s-pack51.ads: Likewise.
5041 * s-pack52.adb: Likewise.
5042 * s-pack52.ads: Likewise.
5043 * s-pack53.adb: Likewise.
5044 * s-pack53.ads: Likewise.
5045 * s-pack54.adb: Likewise.
5046 * s-pack54.ads: Likewise.
5047 * s-pack55.adb: Likewise.
5048 * s-pack55.ads: Likewise.
5049 * s-pack56.adb: Likewise.
5050 * s-pack56.ads: Likewise.
5051 * s-pack57.adb: Likewise.
5052 * s-pack57.ads: Likewise.
5053 * s-pack58.adb: Likewise.
5054 * s-pack58.ads: Likewise.
5055 * s-pack59.adb: Likewise.
5056 * s-pack59.ads: Likewise.
5057 * s-pack60.adb: Likewise.
5058 * s-pack60.ads: Likewise.
5059 * s-pack61.adb: Likewise.
5060 * s-pack61.ads: Likewise.
5061 * s-pack62.adb: Likewise.
5062 * s-pack62.ads: Likewise.
5063 * s-pack63.adb: Likewise.
5064 * s-pack63.ads: Likewise.
5065 * s-parame-ae653.ads: Likewise.
5066 * s-parame-hpux.ads: Likewise.
5067 * s-parame-rtems.adb: Likewise.
5068 * s-parame-vms-alpha.ads: Likewise.
5069 * s-parame-vms-ia64.ads: Likewise.
5070 * s-parame-vms-restrict.ads: Likewise.
5071 * s-parame-vxworks.adb: Likewise.
5072 * s-parame-vxworks.ads: Likewise.
5073 * s-parame.adb: Likewise.
5074 * s-parame.ads: Likewise.
5075 * s-parint.adb: Likewise.
5076 * s-parint.ads: Likewise.
5077 * s-pooglo.adb: Likewise.
5078 * s-pooglo.ads: Likewise.
5079 * s-pooloc.adb: Likewise.
5080 * s-pooloc.ads: Likewise.
5081 * s-poosiz.adb: Likewise.
5082 * s-poosiz.ads: Likewise.
5083 * s-powtab.ads: Likewise.
5084 * s-proinf-irix-athread.adb: Likewise.
5085 * s-proinf-irix-athread.ads: Likewise.
5086 * s-proinf.adb: Likewise.
5087 * s-proinf.ads: Likewise.
5088 * s-purexc.ads: Likewise.
5089 * s-rannum.adb: Likewise.
5090 * s-rannum.ads: Likewise.
5091 * s-restri.adb: Likewise.
5092 * s-restri.ads: Likewise.
5093 * s-rident.ads: Likewise.
5094 * s-rpc.adb: Likewise.
5095 * s-rpc.ads: Likewise.
5096 * s-scaval.adb: Likewise.
5097 * s-scaval.ads: Likewise.
5098 * s-secsta.adb: Likewise.
5099 * s-secsta.ads: Likewise.
5100 * s-sequio.adb: Likewise.
5101 * s-sequio.ads: Likewise.
5102 * s-shasto.adb: Likewise.
5103 * s-shasto.ads: Likewise.
5104 * s-soflin.adb: Likewise.
5105 * s-soflin.ads: Likewise.
5106 * s-solita.adb: Likewise.
5107 * s-solita.ads: Likewise.
5108 * s-sopco3.adb: Likewise.
5109 * s-sopco3.ads: Likewise.
5110 * s-sopco4.adb: Likewise.
5111 * s-sopco4.ads: Likewise.
5112 * s-sopco5.adb: Likewise.
5113 * s-sopco5.ads: Likewise.
5114 * s-stache.adb: Likewise.
5115 * s-stache.ads: Likewise.
5116 * s-stalib.adb: Likewise.
5117 * s-stalib.ads: Likewise.
5118 * s-stausa.adb: Likewise.
5119 * s-stausa.ads: Likewise.
5120 * s-stchop-limit.ads: Likewise.
5121 * s-stchop-rtems.adb: Likewise.
5122 * s-stchop-vxworks.adb: Likewise.
5123 * s-stchop.adb: Likewise.
5124 * s-stchop.ads: Likewise.
5125 * s-stoele.adb: Likewise.
5126 * s-stoele.ads: Likewise.
5127 * s-stopoo.adb: Likewise.
5128 * s-stopoo.ads: Likewise.
5129 * s-stratt.adb: Likewise.
5130 * s-stratt.ads: Likewise.
5131 * s-strcom.adb: Likewise.
5132 * s-strcom.ads: Likewise.
5133 * s-string.adb: Likewise.
5134 * s-string.ads: Likewise.
5135 * s-strops.adb: Likewise.
5136 * s-strops.ads: Likewise.
5137 * s-strxdr.adb: Likewise.
5138 * s-ststop.adb: Likewise.
5139 * s-ststop.ads: Likewise.
5140 * s-taasde.adb: Likewise.
5141 * s-taasde.ads: Likewise.
5142 * s-tadeca.adb: Likewise.
5143 * s-tadeca.ads: Likewise.
5144 * s-tadert.adb: Likewise.
5145 * s-tadert.ads: Likewise.
5146 * s-taenca.adb: Likewise.
5147 * s-taenca.ads: Likewise.
5148 * s-taprob.ads: Likewise.
5149 * s-taprop-dummy.adb: Likewise.
5150 * s-taprop-hpux-dce.adb: Likewise.
5151 * s-taprop-irix.adb: Likewise.
5152 * s-taprop-linux.adb: Likewise.
5153 * s-taprop-lynxos.adb: Likewise.
5154 * s-taprop-mingw.adb: Likewise.
5155 * s-taprop-posix.adb: Likewise.
5156 * s-taprop-solaris.adb: Likewise.
5157 * s-taprop-tru64.adb: Likewise.
5158 * s-taprop-vms.adb: Likewise.
5159 * s-taprop-vxworks.adb: Likewise.
5160 * s-taprop.ads: Likewise.
5161 * s-tarest.adb: Likewise.
5162 * s-tarest.ads: Likewise.
5163 * s-tasdeb.adb: Likewise.
5164 * s-tasdeb.ads: Likewise.
5165 * s-tasinf-irix.ads: Likewise.
5166 * s-tasinf-linux.adb: Likewise.
5167 * s-tasinf-linux.ads: Likewise.
5168 * s-tasinf-mingw.adb: Likewise.
5169 * s-tasinf-mingw.ads: Likewise.
5170 * s-tasinf-solaris.adb: Likewise.
5171 * s-tasinf-solaris.ads: Likewise.
5172 * s-tasinf-tru64.ads: Likewise.
5173 * s-tasinf.adb: Likewise.
5174 * s-tasinf.ads: Likewise.
5175 * s-tasini.adb: Likewise.
5176 * s-tasini.ads: Likewise.
5177 * s-taskin.adb: Likewise.
5178 * s-taskin.ads: Likewise.
5179 * s-taspri-dummy.ads: Likewise.
5180 * s-taspri-hpux-dce.ads: Likewise.
5181 * s-taspri-mingw.ads: Likewise.
5182 * s-taspri-solaris.ads: Likewise.
5183 * s-taspri-tru64.ads: Likewise.
5184 * s-taspri-vms.ads: Likewise.
5185 * s-taspri-vxworks.ads: Likewise.
5186 * s-tasque.adb: Likewise.
5187 * s-tasque.ads: Likewise.
5188 * s-tasren.adb: Likewise.
5189 * s-tasren.ads: Likewise.
5190 * s-tasres.ads: Likewise.
5191 * s-tassta.adb: Likewise.
5192 * s-tassta.ads: Likewise.
5193 * s-tasuti.adb: Likewise.
5194 * s-tasuti.ads: Likewise.
5195 * s-tfsetr-default.adb: Likewise.
5196 * s-tfsetr-vxworks.adb: Likewise.
5197 * s-tpinop.adb: Likewise.
5198 * s-tpinop.ads: Likewise.
5199 * s-tpoben.adb: Likewise.
5200 * s-tpoben.ads: Likewise.
5201 * s-tpobop.adb: Likewise.
5202 * s-tpobop.ads: Likewise.
5203 * s-tpopde-vms.adb: Likewise.
5204 * s-tpopde-vms.ads: Likewise.
5205 * s-tpopsp-lynxos.adb: Likewise.
5206 * s-tpopsp-posix-foreign.adb: Likewise.
5207 * s-tpopsp-posix.adb: Likewise.
5208 * s-tpopsp-solaris.adb: Likewise.
5209 * s-tpopsp-vxworks.adb: Likewise.
5210 * s-tporft.adb: Likewise.
5211 * s-tposen.adb: Likewise.
5212 * s-tposen.ads: Likewise.
5213 * s-traceb.adb: Likewise.
5214 * s-traceb.ads: Likewise.
5215 * s-traces-default.adb: Likewise.
5216 * s-traces.adb: Likewise.
5217 * s-traces.ads: Likewise.
5218 * s-traent-vms.adb: Likewise.
5219 * s-traent-vms.ads: Likewise.
5220 * s-traent.adb: Likewise.
5221 * s-traent.ads: Likewise.
5222 * s-trafor-default.adb: Likewise.
5223 * s-trafor-default.ads: Likewise.
5224 * s-tratas-default.adb: Likewise.
5225 * s-tratas.adb: Likewise.
5226 * s-tratas.ads: Likewise.
5227 * s-unstyp.ads: Likewise.
5228 * s-utf_32.adb: Likewise.
5229 * s-utf_32.ads: Likewise.
5230 * s-vaflop-vms-alpha.adb: Likewise.
5231 * s-vaflop.adb: Likewise.
5232 * s-vaflop.ads: Likewise.
5233 * s-valboo.adb: Likewise.
5234 * s-valboo.ads: Likewise.
5235 * s-valcha.adb: Likewise.
5236 * s-valcha.ads: Likewise.
5237 * s-valdec.adb: Likewise.
5238 * s-valdec.ads: Likewise.
5239 * s-valenu.adb: Likewise.
5240 * s-valenu.ads: Likewise.
5241 * s-valint.adb: Likewise.
5242 * s-valint.ads: Likewise.
5243 * s-vallld.adb: Likewise.
5244 * s-vallld.ads: Likewise.
5245 * s-vallli.adb: Likewise.
5246 * s-vallli.ads: Likewise.
5247 * s-valllu.adb: Likewise.
5248 * s-valllu.ads: Likewise.
5249 * s-valrea.adb: Likewise.
5250 * s-valrea.ads: Likewise.
5251 * s-valuns.adb: Likewise.
5252 * s-valuns.ads: Likewise.
5253 * s-valuti.adb: Likewise.
5254 * s-valuti.ads: Likewise.
5255 * s-valwch.adb: Likewise.
5256 * s-valwch.ads: Likewise.
5257 * s-veboop.adb: Likewise.
5258 * s-veboop.ads: Likewise.
5259 * s-vector.ads: Likewise.
5260 * s-vercon.adb: Likewise.
5261 * s-vercon.ads: Likewise.
5262 * s-vmexta.adb: Likewise.
5263 * s-vmexta.ads: Likewise.
5264 * s-vxwext-kernel.ads: Likewise.
5265 * s-vxwext-rtp.adb: Likewise.
5266 * s-vxwext-rtp.ads: Likewise.
5267 * s-vxwext.ads: Likewise.
5268 * s-vxwork-arm.ads: Likewise.
5269 * s-vxwork-m68k.ads: Likewise.
5270 * s-vxwork-mips.ads: Likewise.
5271 * s-vxwork-ppc.ads: Likewise.
5272 * s-vxwork-sparcv9.ads: Likewise.
5273 * s-vxwork-x86.ads: Likewise.
5274 * s-wchcnv.adb: Likewise.
5275 * s-wchcnv.ads: Likewise.
5276 * s-wchcon.adb: Likewise.
5277 * s-wchcon.ads: Likewise.
5278 * s-wchjis.adb: Likewise.
5279 * s-wchjis.ads: Likewise.
5280 * s-wchstw.adb: Likewise.
5281 * s-wchstw.ads: Likewise.
5282 * s-wchwts.adb: Likewise.
5283 * s-wchwts.ads: Likewise.
5284 * s-widboo.adb: Likewise.
5285 * s-widboo.ads: Likewise.
5286 * s-widcha.adb: Likewise.
5287 * s-widcha.ads: Likewise.
5288 * s-widenu.adb: Likewise.
5289 * s-widenu.ads: Likewise.
5290 * s-widlli.adb: Likewise.
5291 * s-widlli.ads: Likewise.
5292 * s-widllu.adb: Likewise.
5293 * s-widllu.ads: Likewise.
5294 * s-widwch.adb: Likewise.
5295 * s-widwch.ads: Likewise.
5296 * s-win32.ads: Likewise.
5297 * s-winext.ads: Likewise.
5298 * s-wwdcha.adb: Likewise.
5299 * s-wwdcha.ads: Likewise.
5300 * s-wwdenu.adb: Likewise.
5301 * s-wwdenu.ads: Likewise.
5302 * s-wwdwch.adb: Likewise.
5303 * s-wwdwch.ads: Likewise.
5304 * scans.adb: Likewise.
5305 * scans.ads: Likewise.
5306 * seh_init.c: Likewise.
5307 * sfn_scan.adb: Likewise.
5308 * sinfo.adb: Likewise.
5309 * sinfo.ads: Likewise.
5310 * sinput.adb: Likewise.
5311 * sinput.ads: Likewise.
5312 * snames.adb: Likewise.
5313 * snames.ads: Likewise.
5314 * socket.c: Likewise.
5315 * stand.adb: Likewise.
5316 * stand.ads: Likewise.
5317 * stringt.adb: Likewise.
5318 * stringt.ads: Likewise.
5319 * sysdep.c: Likewise.
5320 * system-aix.ads: Likewise.
5321 * system-darwin-ppc.ads: Likewise.
5322 * system-darwin-x86.ads: Likewise.
5323 * system-darwin-x86_64.ads: Likewise.
5324 * system-freebsd-x86.ads: Likewise.
5325 * system-hpux-ia64.ads: Likewise.
5326 * system-hpux.ads: Likewise.
5327 * system-irix-n32.ads: Likewise.
5328 * system-irix-n64.ads: Likewise.
5329 * system-irix-o32.ads: Likewise.
5330 * system-linux-alpha.ads: Likewise.
5331 * system-linux-hppa.ads: Likewise.
5332 * system-linux-ia64.ads: Likewise.
5333 * system-linux-mips.ads: Likewise.
5334 * system-linux-mipsel.ads: Likewise.
5335 * system-linux-ppc.ads: Likewise.
5336 * system-linux-ppc64.ads: Likewise.
5337 * system-linux-s390.ads: Likewise.
5338 * system-linux-s390x.ads: Likewise.
5339 * system-linux-sh4.ads: Likewise.
5340 * system-linux-sparc.ads: Likewise.
5341 * system-linux-sparcv9.ads: Likewise.
5342 * system-linux-x86.ads: Likewise.
5343 * system-linux-x86_64.ads: Likewise.
5344 * system-lynxos-ppc.ads: Likewise.
5345 * system-lynxos-x86.ads: Likewise.
5346 * system-mingw-x86_64.ads: Likewise.
5347 * system-mingw.ads: Likewise.
5348 * system-rtems.ads: Likewise.
5349 * system-solaris-sparc.ads: Likewise.
5350 * system-solaris-sparcv9.ads: Likewise.
5351 * system-solaris-x86.ads: Likewise.
5352 * system-solaris-x86_64.ads: Likewise.
5353 * system-tru64.ads: Likewise.
5354 * system-vms-ia64.ads: Likewise.
5355 * system-vms-zcx.ads: Likewise.
5356 * system-vms.ads: Likewise.
5357 * system-vms_64.ads: Likewise.
5358 * system-vxworks-arm.ads: Likewise.
5359 * system-vxworks-m68k.ads: Likewise.
5360 * system-vxworks-mips.ads: Likewise.
5361 * system-vxworks-ppc.ads: Likewise.
5362 * system-vxworks-sparcv9.ads: Likewise.
5363 * system-vxworks-x86.ads: Likewise.
5364 * system.ads: Likewise.
5365 * table.adb: Likewise.
5366 * table.ads: Likewise.
5367 * targext.c: Likewise.
5368 * targparm.ads: Likewise.
5369 * tree_in.adb: Likewise.
5370 * tree_in.ads: Likewise.
5371 * tree_io.adb: Likewise.
5372 * tree_io.ads: Likewise.
5373 * types.adb: Likewise.
5374 * types.ads: Likewise.
5375 * uintp.adb: Likewise.
5376 * uintp.ads: Likewise.
5377 * uname.adb: Likewise.
5378 * uname.ads: Likewise.
5379 * urealp.adb: Likewise.
5380 * urealp.ads: Likewise.
5381 * vx_stack_info.c: Likewise.
5382 * widechar.adb: Likewise.
5383 * widechar.ads: Likewise.
5384 * exp_attr.adb: Change copyright header to refer to version
5385 3 of the GNU General Public License and to point readers at the
5386 COPYING3 file and the FSF's license web page.
5387 * sem.adb: Likewise.
5388 * sem_attr.ads: Likewise.
5389 * freeze.adb: Likewise.
5390 * freeze.ads: Likewise.
5391 * errout.ads: Likewise.
5392 * erroutc.adb: Likewise.
5393 * exp_ch11.ads: Likewise.
5394
5395 2009-04-09 Jakub Jelinek <jakub@redhat.com>
5396
5397 * config-lang.in: Change copyright header to refer to version
5398 3 of the GNU General Public License and to point readers at the
5399 COPYING3 file and the FSF's license web page.
5400 * gcc-interface/trans.c: Likewise.
5401 * gnathtml.pl: Likewise.
5402 * gcc-interface/ada.h: Likewise. Remove runtime exception.
5403 * gcc-interface/gigi.h: Likewise.
5404 * gcc-interface/misc.c: Likewise.
5405 * gcc-interface/targtyps.c: Likewise.
5406
5407 2009-04-09 Nicolas Setton <setton@adacore.com>
5408
5409 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
5410
5411 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
5412 struct_timeval.
5413
5414 2009-04-09 Bob Duff <duff@adacore.com>
5415
5416 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
5417 internally-generated nodes related to select statements to avoid
5418 confusing the debugger.
5419
5420 2009-04-09 Pascal Obry <obry@adacore.com>
5421
5422 * make.adb: Ensure that all linker arguments are duplicated.
5423
5424 2009-04-09 Robert Dewar <dewar@adacore.com>
5425
5426 * sem_ch5.adb: Minor reformatting
5427
5428 2009-04-09 Vincent Celier <celier@adacore.com>
5429
5430 * vms_data.ads:
5431 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
5432 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
5433 New qualifier /LXDEBUG=nnn for -gnatDnnn
5434 For H820-010
5435
5436 * gnat_ugn.texi:
5437 Update documentation for VMS qualifiers equivalent to -gnatGnn and
5438 -gnatDnn
5439
5440 2009-04-09 Nicolas Setton <setton@adacore.com>
5441
5442 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
5443 to match layout of siginfo_t in sys/signal.h.
5444
5445 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
5446
5447 2009-04-09 Thomas Quinot <quinot@adacore.com>
5448
5449 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
5450
5451 2009-04-09 Nicolas Setton <setton@adacore.com>
5452
5453 * s-oscons-tmplt.c: Allow long lines in the generated spec.
5454 Add generation of Darwin-specific constants needed when binding to the
5455 pthread library.
5456
5457 2009-04-09 Robert Dewar <dewar@adacore.com>
5458
5459 * checks.adb:
5460 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
5461 when no invalid values exist, Avoid duplicate read of atomic variable.
5462
5463 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
5464 (Standard_Unsigned): Set Is_Known_Valid
5465
5466 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
5467 subtype declaration if no constraint.
5468 (Set_Modular_Size): Set Is_Known_Valid if appropriate
5469 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
5470
5471 2009-04-09 Robert Dewar <dewar@adacore.com>
5472
5473 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
5474 switch.ads: for numeric switches, an optional equal sign is always
5475 allowed.
5476
5477 2009-04-09 Vincent Celier <celier@adacore.com>
5478
5479 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
5480 the case of file names is not significant.
5481
5482 2009-04-09 Vincent Celier <celier@adacore.com>
5483
5484 * errout.adb: Remove dependency on package Style
5485
5486 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
5487 moved to Stylesw.
5488
5489 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
5490 Styleg.
5491
5492 * errutil.adb, par.adb: Import Stylesw
5493
5494 2009-04-09 Arnaud Charlet <charlet@adacore.com>
5495
5496 * opt.ads: Fix typos.
5497
5498 2009-04-09 Robert Dewar <dewar@adacore.com>
5499
5500 * einfo.adb: Minor reformatting
5501
5502 2009-04-09 Robert Dewar <dewar@adacore.com>
5503
5504 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
5505 units.
5506
5507 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
5508
5509 2009-04-09 Robert Dewar <dewar@adacore.com>
5510
5511 * g-comver.adb: Minor reformatting.
5512
5513 2009-04-09 Thomas Quinot <quinot@adacore.com>
5514
5515 * lib-load.ads (Load_Unit): Update documentation.
5516
5517 2009-04-09 Ed Schonberg <schonberg@adacore.com>
5518
5519 * lib-load.adb (Load_Unit): When loading the parent of a child unit
5520 named in a with_clause, retain the with_clause to preserve a
5521 limited_with indication.
5522
5523 2009-04-09 Robert Dewar <dewar@adacore.com>
5524
5525 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
5526 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
5527 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
5528 possible to replace an OR of two separate tests.
5529
5530 2009-04-09 Robert Dewar <dewar@adacore.com>
5531
5532 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
5533 Maximum_Messages.
5534
5535 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
5536 warning status as well.
5537
5538 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
5539
5540 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
5541 Maximum_Messages.
5542
5543 * bindusg.adb, usage.adb: Update line for -gnatm switch
5544
5545 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
5546 -mnn binder switch.
5547
5548 2009-04-09 Robert Dewar <dewar@adacore.com>
5549
5550 * sem_ch10.adb: Minor reformatting.
5551
5552 2009-04-09 Bob Duff <duff@adacore.com>
5553
5554 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
5555 Set Sloc of generated nodes for calls to Undefer_Aborts and
5556 Save_Occurrence to No_Location, so the debugger ignores them and
5557 therefore does not jump back and forth when single stepping.
5558
5559 2009-04-09 Robert Dewar <dewar@adacore.com>
5560
5561 * switch-b.adb: Minor reformatting.
5562
5563 2009-04-09 Robert Dewar <dewar@adacore.com>
5564
5565 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
5566 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
5567 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
5568 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
5569 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
5570 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
5571 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
5572 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
5573 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
5574 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
5575 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
5576
5577 2009-04-09 Robert Dewar <dewar@adacore.com>
5578
5579 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
5580
5581 * atree.h: Add Elist26
5582
5583 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
5584 backends.
5585
5586 2009-04-09 Javier Miranda <miranda@adacore.com>
5587
5588 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
5589 retrieve from the Dispatch_Table_Wrappers list the external name.
5590 Addition of documentation.
5591 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
5592 used to export secondary dispatch tables (in the previous version of
5593 the frontend only primary dispatch tables were exported). Addition of
5594 documentation.
5595 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
5596 dispatch table of a given tagged type.
5597 (Make_Tags): Modified to import secondary dispatch tables.
5598
5599 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
5600 (Constant_Redeclaration): Code cleanup.
5601
5602 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
5603 Dispatch_Table_Wrappers. Update documentation.
5604
5605 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
5606 Renamed to Dispatch_Table_Wrappers.
5607
5608 * sem_util.adb (Collect_Interface_Components): Improve handling of
5609 private types.
5610
5611 * atree.ads (Elist26, Set_Elist26): New subprograms
5612
5613 * atree.adb (Elist26, Set_Elist26): New subprograms
5614
5615 2009-04-09 Javier Miranda <miranda@adacore.com>
5616
5617 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
5618 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
5619 tagged types.
5620
5621 2009-04-09 Robert Dewar <dewar@adacore.com>
5622
5623 * s-direio.adb: Minor reformatting
5624
5625 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
5626
5627 2009-04-09 Robert Dewar <dewar@adacore.com>
5628
5629 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
5630
5631 2009-04-09 Pascal Obry <obry@adacore.com>
5632
5633 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
5634 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
5635 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
5636 a-filico.ads: Add some missing overriding keywords.
5637
5638 2009-04-09 Pascal Obry <obry@adacore.com>
5639
5640 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
5641 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
5642 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
5643 reformatting.
5644
5645 2009-04-09 Ed Schonberg <schonberg@adacore.com>
5646
5647 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
5648 missing overriding indicator if the new declaration is not seen as
5649 primitive.
5650
5651 2009-04-09 Thomas Quinot <quinot@adacore.com>
5652
5653 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
5654 overflows in computation of bounds.
5655
5656 2009-04-09 Pascal Obry <obry@adacore.com>
5657
5658 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
5659 typos in comment.
5660
5661 2009-04-09 Robert Dewar <dewar@adacore.com>
5662
5663 * sem_attr.adb (Check_Stream_Attribute): Check violation of
5664 restriction No_Streams
5665
5666 * gnat_rm.texi: Clarify No_Streams restriction
5667
5668 * g-socket.adb: Minor reformatting.
5669
5670 2009-04-09 Thomas Quinot <quinot@adacore.com>
5671
5672 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
5673
5674 2009-04-09 Geert Bosch <bosch@adacore.com>
5675
5676 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
5677 (Set_Result): Likewise.
5678 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
5679 conversion, as required by RM 4.6(31).
5680
5681 2009-04-08 Robert Dewar <dewar@adacore.com>
5682
5683 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
5684 suppressed.
5685
5686 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
5687 resolution steps.
5688
5689 2009-04-08 Robert Dewar <dewar@adacore.com>
5690
5691 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
5692 No_Local_Allocators restriction preventing local instantiation.
5693
5694 2009-04-08 Thomas Quinot <quinot@adacore.com>
5695
5696 * sem_eval.adb: Minor comment fix
5697
5698 2009-04-08 Thomas Quinot <quinot@adacore.com>
5699
5700 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
5701 New limited controlled type used to automate the initialization and
5702 finalization of the sockets implementation.
5703 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
5704
5705 2009-04-08 Vincent Celier <celier@adacore.com>
5706
5707 * prj-attr.adb: New read-only project-level attribute Project_Dir
5708
5709 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
5710 read-only attribute of the same name.
5711 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
5712 (Recursive_Process): Ditto
5713
5714 * snames.adb: Add new standard name Project_Dir
5715
5716 * snames.ads: Add new standard name Project_Dir
5717
5718 2009-04-08 Thomas Quinot <quinot@adacore.com>
5719
5720 * checks.adb: Minor reformatting
5721
5722 2009-04-08 Vincent Celier <celier@adacore.com>
5723
5724 * vms_data.ads: Add documentation for new style keyword
5725 OVERRIDING_INDICATORS
5726
5727 2009-04-08 Robert Dewar <dewar@adacore.com>
5728
5729 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
5730 spec is in the current unit.
5731
5732 2009-04-08 Ed Schonberg <schonberg@adacore.com>
5733
5734 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
5735 presence of entity.
5736
5737 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
5738
5739 2009-04-08 Vincent Celier <celier@adacore.com>
5740
5741 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
5742
5743 2009-04-08 Thomas Quinot <quinot@adacore.com>
5744
5745 * checks.ads: Minor reformatting
5746
5747 2009-04-08 Robert Dewar <dewar@adacore.com>
5748
5749 * gnat_rm.texi: Update documentation of pragma Obsolescent
5750
5751 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
5752 be omitted, and allow Entity parameter to be omitted.
5753
5754 2009-04-08 Thomas Quinot <quinot@adacore.com>
5755
5756 * exp_util.adb: Minor comment fix
5757
5758 2009-04-08 Robert Dewar <dewar@adacore.com>
5759
5760 * g-socket.ads: Fix bad syntax in pragma Obsolescent
5761
5762 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
5763 argument with no identifier following one that has an identifier. Was
5764 missed in some cases.
5765
5766 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
5767 identifier.
5768 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
5769
5770 * snames.adb: Add Name_Policy
5771
5772 * snames.ads: Add Name_Policy
5773
5774 2009-04-08 Robert Dewar <dewar@adacore.com>
5775
5776 * gnat_rm.texi: Minor reformatting
5777
5778 * par-ch2.adb: Minor reformatting
5779
5780 2009-04-08 Robert Dewar <dewar@adacore.com>
5781
5782 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
5783
5784 2009-04-08 Robert Dewar <dewar@adacore.com>
5785
5786 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
5787 properly in the presence of Remote_Types or Remote_Call_Interface.
5788
5789 * sem_util.adb: Add comment.
5790
5791 2009-04-08 Robert Dewar <dewar@adacore.com>
5792
5793 * ug_words: Add /ASSUME_VALID for -gnatB
5794
5795 * vms_data.ads: Add /ASSUME_VALID for -gnatB
5796
5797 * sem_cat.adb: Add clarifying commment
5798
5799 * a-direio.ads (Bytes): Make sure value is non-zero
5800
5801 2009-04-08 Ed Schonberg <schonberg@adacore.com>
5802
5803 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
5804 that does not come from source, check for a rewritten function call in
5805 prefixed notation before other forms of rewriting.
5806
5807 2009-04-08 Robert Dewar <dewar@adacore.com>
5808
5809 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
5810 these are now obsolescent units used only for bootrapping with an
5811 older compiler.
5812
5813 2009-04-08 Robert Dewar <dewar@adacore.com>
5814
5815 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
5816
5817 * sem_ch3.adb: Minor comment updates
5818
5819 2009-04-08 Ed Schonberg <schonberg@adacore.com>
5820
5821 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
5822 that come from source.
5823
5824 2009-04-08 Tristan Gingold <gingold@adacore.com>
5825
5826 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
5827 * gcc-interface/decl.c (prepend_attributes): New case
5828 Pragma_Thread_Local_Storage.
5829 * gcc-interface/utils.c (process_attributes): New case
5830 ATTR_THREAD_LOCAL_STORAGE.
5831
5832 2009-04-08 Ed Schonberg <schonberg@adacore.com>
5833
5834 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
5835 by the back-end if it contains a call to a subprogram without a
5836 previous spec that is declared in the same unit.
5837
5838 * errout.ads: Update comments on uses of dirs
5839
5840 2009-04-08 Robert Dewar <dewar@adacore.com>
5841
5842 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
5843
5844 2009-04-08 Tristan Gingold <gingold@adacore.com>
5845
5846 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
5847 variables.
5848 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
5849
5850 2009-04-08 Vincent Celier <celier@adacore.com>
5851
5852 * prj-nmsc.adb:
5853 (Add_Source): Add the mapping of the unit name to source file name in
5854 the Unit_Sources_HT hash table, if the unit name is not null.
5855
5856 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
5857
5858 * prj.ads (Unit_Sources_Htable): New hash table instantiation
5859 (Project_Tree_Data): New component Unit_Sources_HT
5860
5861 2009-04-08 Thomas Quinot <quinot@adacore.com>
5862
5863 * sem_ch8.adb: Minor reformatting.
5864 Minor code reorganization.
5865
5866 2009-04-08 Robert Dewar <dewar@adacore.com>
5867
5868 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
5869 snames.ads, freeze.adb, par-prag.adb: Add implementation of
5870 pragma Thread_Local_Storage, setting new flag
5871 Has_Pragma_Thread_Local_Storage in corresponding entities.
5872
5873 2009-04-08 Emmanuel Briot <briot@adacore.com>
5874
5875 * prj.ads: Update comment on switches file
5876
5877 * prj-nmsc.adb: Code clean up. Use renaming clauses.
5878
5879 2009-04-08 Robert Dewar <dewar@adacore.com>
5880
5881 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
5882
5883 2009-04-08 Thomas Quinot <quinot@adacore.com>
5884
5885 * ali-util.adb: Minor comment fix
5886
5887 2009-04-08 Ed Schonberg <schonberg@adacore.com>
5888
5889 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
5890 appears in a context clause, and the enclosing package is mentioned in
5891 a limited_with_clause.
5892 (Use_One_Type): Reject clause if type is still incomplete.
5893
5894 2009-04-08 Emmanuel Briot <briot@adacore.com>
5895
5896 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
5897 avoid copies of Source_Data variables when possible, since these
5898 involve calls to memcpy() which are done too many times.
5899
5900 2009-04-08 Robert Dewar <dewar@adacore.com>
5901
5902 * exp_ch4.adb (Expand_Concatenate): Clean up code
5903
5904 2009-04-07 Thomas Quinot <quinot@adacore.com>
5905
5906 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
5907 type for the case of concatenating a constrained array indexed by an
5908 enumeration type.
5909
5910 2009-04-07 Ed Schonberg <schonberg@adacore.com>
5911
5912 * sem_ch6.adb (Check_Conformance): when checking conformance of an
5913 operation that overrides an abstract operation inherited from an
5914 interface, return False if only one of the controlling formals is an
5915 access parameter.
5916
5917 2009-04-07 Ed Schonberg <schonberg@adacore.com>
5918
5919 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
5920 mandated by AI05-105.
5921
5922 2009-04-07 Vincent Celier <celier@adacore.com>
5923
5924 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
5925
5926 2009-04-07 Thomas Quinot <quinot@adacore.com>
5927
5928 * usage.adb: Minor fix in usage message.
5929
5930 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
5931 match declaration; the correct subtype is Node_Id, not Entity_Id,
5932 because the expected node kind is an identifier, not a defining
5933 identifier.
5934
5935 * switch-c.adb: Minor reformatting.
5936
5937 * uintp.adb: Minor reformatting.
5938
5939 2009-04-07 Robert Dewar <dewar@adacore.com>
5940
5941 * exp_ch13.adb: Minor reformatting
5942
5943 2009-04-07 Robert Dewar <dewar@adacore.com>
5944
5945 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
5946 against missing parent.
5947
5948 2009-04-07 Thomas Quinot <quinot@adacore.com>
5949
5950 * xoscons.adb: Minor reformatting
5951
5952 2009-04-07 Robert Dewar <dewar@adacore.com>
5953
5954 * rtsfind.ads: Remove obsolete string concatenation entries
5955
5956 2009-04-07 Robert Dewar <dewar@adacore.com>
5957
5958 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
5959
5960 2009-04-07 Ed Schonberg <schonberg@adacore.com>
5961
5962 * sem_ch10.adb (Check_Body_Required): Handle properly imported
5963 subprograms.
5964
5965 2009-04-07 Gary Dismukes <dismukes@adacore.com>
5966
5967 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
5968 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
5969 is of a scalar or string type then suppress the setting of the
5970 expression to Empty.
5971
5972 * freeze.adb (Warn_Overlay): Also emit the warnings about default
5973 initialization for the cases of scalar and string objects when
5974 Init_Or_Norm_Scalars is True.
5975
5976 2009-04-07 Bob Duff <duff@adacore.com>
5977
5978 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
5979
5980 2009-04-07 Bob Duff <duff@adacore.com>
5981
5982 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
5983 Form parameter of Text_Translation=No allows binary mode for Text_IO
5984 files.
5985
5986 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
5987
5988 2009-04-07 Javier Miranda <miranda@adacore.com>
5989
5990 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
5991 processing the bounds for bit packed arrays or VM target machines.
5992
5993 2009-04-07 Thomas Quinot <quinot@adacore.com>
5994
5995 * g-sothco.ads (Int_Access): Remove extraneous access type (use
5996 anonymous access instead).
5997 (Get_Socket_From_Set): Fix incorrectly reverted formals
5998 Last and Socket to match the underlying C routine.
5999
6000 * g-socket.adb, g-socket.ads
6001 (Get): Use named parameter associations instead of positional ones in
6002 call go Get_Socket_From_Set, since this routine has two formals of the
6003 same type.
6004 (Image): New procedure.
6005
6006 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6007 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
6008 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
6009 for type of Arg formal.
6010
6011 * sem_warn.adb: Minor reformatting
6012
6013 2009-04-07 Ed Schonberg <schonberg@adacore.com>
6014
6015 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
6016 over record components.
6017
6018 2009-04-07 Nicolas Roche <roche@adacore.com>
6019
6020 * gsocket.h:
6021 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
6022 has disappeared between VxWorks 6.4 and VxWorks 6.5
6023 In RTP mode use time.h instead of times.h
6024
6025 2009-04-07 Robert Dewar <dewar@adacore.com>
6026
6027 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
6028
6029 2009-04-07 Kevin Pouget <pouget@adacore.com>
6030
6031 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
6032 expanded code for constrained types.
6033
6034 2009-04-07 Ed Schonberg <schonberg@adacore.com>
6035
6036 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
6037 AI05-105: in an object renaming declaration, anonymousness is a name
6038 resolution rule.
6039
6040 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
6041
6042 2009-04-07 Arnaud Charlet <charlet@adacore.com>
6043
6044 * g-comlin.adb (Expansion): Fix old regression: also return directory
6045 names when matching.
6046
6047 2009-04-07 Robert Dewar <dewar@adacore.com>
6048
6049 * exp_ch4.adb:
6050 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
6051 (Expand_Concatenate): New name for Expand_Concatenate_String which has
6052 been rewritten to handle all types.
6053 (Expand_Concatenate_Other): Remove
6054
6055 2009-04-07 Ed Schonberg <schonberg@adacore.com>
6056
6057 * lib-xref.adb (Generate_Reference): A default subprogram in an
6058 instance appears within the tree for the instance, but generates an
6059 implicit reference in the ALI.
6060
6061 2009-04-07 Javier Miranda <miranda@adacore.com>
6062
6063 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
6064 derived type that has discriminants, propagate the list of interfaces
6065 to the corresponding new base type. In addition, propagate also
6066 attribute Limited_Present (found working in this patch).
6067
6068 2009-04-07 Robert Dewar <dewar@adacore.com>
6069
6070 * exp_ch4.adb: Rewrite concatenation expansion.
6071
6072 2009-04-07 Ed Schonberg <schonberg@adacore.com>
6073
6074 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
6075 relevant to packages.
6076
6077 2009-04-07 Robert Dewar <dewar@adacore.com>
6078
6079 * sem_attr.adb: Minor reformatting
6080
6081 * sem_ch6.adb: Minor reformatting
6082
6083 2009-04-07 Tristan Gingold <gingold@adacore.com>
6084
6085 * socket.c: Add more protections against S_resolvLib_ macros.
6086
6087 2009-04-07 Thomas Quinot <quinot@adacore.com>
6088
6089 * sem_attr.adb: Minor reformatting
6090
6091 2009-04-07 Ed Schonberg <schonberg@adacore.com>
6092
6093 * sem_ch6.adb (New_Overloaded_Entity): New predicate
6094 Is_Overriding_Alias to handle properly types that inherit two homonym
6095 operations that have distinct dispatch table entries.
6096
6097 2009-04-07 Emmanuel Briot <briot@adacore.com>
6098
6099 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
6100 looking for the end of a parenthesis group
6101
6102 2009-04-07 Tristan Gingold <gingold@adacore.com>
6103
6104 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
6105
6106 * socket.c Don't use resolvLib_ macros if not defined.
6107
6108 2009-04-07 Robert Dewar <dewar@adacore.com>
6109
6110 * g-socket.adb: Minor reformatting.
6111
6112 * g-socthi-mingw.adb: Minor reformatting
6113
6114 * g-sothco.ads: Minor reformatting
6115
6116 * exp_ch4.adb:
6117 (Expand_Concatenate_String): Complete rewrite to generate efficient code
6118 inline instead of relying on external library routines.
6119
6120 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
6121 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
6122 obsolescent
6123
6124 2009-04-07 Ed Schonberg <schonberg@adacore.com>
6125
6126 * sem_attr.adb:
6127 (Eval_Attribute): for attributes of array objects that are not strings,
6128 attributes are not static if nominal subtype of object is unconstrained.
6129
6130 2009-04-07 Ed Schonberg <schonberg@adacore.com>
6131
6132 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
6133 operations for a type T in an instance do not override each other,
6134 when T is derived from a formal private type, the corresponding
6135 operations inherited by a type derived from T outside
6136 of the instance do not override each other either.
6137
6138 2009-04-07 Robert Dewar <dewar@adacore.com>
6139
6140 (Osint.Fail): Change calling sequence to have one string arg
6141 (Make.Make_Failed): Same change
6142 All callers are adjusted to use concatenation
6143
6144 2009-04-07 Robert Dewar <dewar@adacore.com>
6145
6146 * exp_ch4.adb: Fix documentation typo
6147
6148 2009-04-07 Robert Dewar <dewar@adacore.com>
6149
6150 * tbuild.ads: Minor reformatting
6151
6152 2009-04-07 Javier Miranda <miranda@adacore.com>
6153
6154 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
6155 when compiling under ZFP runtime.
6156
6157 2009-04-07 Robert Dewar <dewar@adacore.com>
6158
6159 * g-comlin.adb: Minor reformatting
6160
6161 2009-04-07 Thomas Quinot <quinot@adacore.com>
6162
6163 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6164 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6165 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
6166 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
6167
6168 2009-04-07 Robert Dewar <dewar@adacore.com>
6169
6170 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
6171
6172 * opt.ads (Sprint_Line_Limit): New parameter
6173
6174 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
6175
6176 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
6177
6178 * usage.adb: Output information for -gnatGnn -gnatDnn
6179
6180 2009-04-07 Robert Dewar <dewar@adacore.com>
6181
6182 * make.adb: Minor reformatting
6183
6184 2009-04-07 Robert Dewar <dewar@adacore.com>
6185
6186 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
6187
6188 2009-04-07 Robert Dewar <dewar@adacore.com>
6189
6190 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
6191
6192 2009-04-07 Robert Dewar <dewar@adacore.com>
6193
6194 * checks.adb:
6195 Remove Assume_Valid parameter from In_Subrange_Of calls
6196
6197 * sem_eval.adb:
6198 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
6199 (Is_In_Range): Remove incorrect use of Assume_Valid
6200 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
6201
6202 * sem_eval.ads:
6203 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
6204 (Is_In_Range): Documentation cleanup
6205 (Is_Out_Of_Range): Documentation cleanup
6206
6207 * gnat_rm.texi:
6208 Add documentation for Assume_No_Invalid_Values pragma
6209
6210 * sem_ch12.adb: Minor reformatting
6211
6212 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
6213
6214 * sem_prag.adb: Improve error message.
6215
6216 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
6217 LF/CR no longer recognized as line terminator
6218
6219 * switch.ads: Minor documentation improvement
6220
6221 * vms_data.ads: Minor reformatting
6222
6223 2009-04-07 Robert Dewar <dewar@adacore.com>
6224
6225 * checks.adb (Determine_Range): Add Assume_Valid parameter
6226
6227 * checks.ads (Determine_Range): Add Assume_Valid parameter
6228
6229 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
6230 Is_Null_Loop to suppress warnings in a loop body.
6231
6232 * exp_ch4.adb:
6233 (Rewrite_Comparison): Major rewrite to accomodate invalid values
6234
6235 * exp_ch5.adb:
6236 (Expand_N_Loop_Statement): Delete loop known not to execute
6237
6238 * opt.ads:
6239 (Assume_No_Invalid_Values): Now set to False, and as documented, this
6240 fully enables the proper handling of invalid values.
6241
6242 * sem_attr.adb:
6243 New calling sequence for Is_In_Range
6244
6245 * sem_ch5.adb:
6246 (Analyze_Iteration_Scheme): Accomodate possible invalid values
6247 in determining if a loop range is null.
6248
6249 * sem_eval.adb:
6250 (Is_In_Range): Add Assume_Valid parameter
6251 (Is_Out_Of_Range): Add Assume_Valid_Parameter
6252 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
6253 also to do more accurate and complete range analysis, catching more
6254 cases.
6255
6256 * sem_eval.ads:
6257 (Is_In_Range): Add Assume_Valid parameter
6258 (Is_Out_Of_Range): Add Assume_Valid_Parameter
6259
6260 * sem_util.adb:
6261 New calling sequence for Is_In_Range
6262
6263 * sinfo.adb:
6264 (Suppress_Loop_Warnings): New flag
6265
6266 * sinfo.ads:
6267 (Is_Null_Loop): Update documentation
6268 (Suppress_Loop_Warnings): New flag
6269
6270 * gnat_ugn.texi: Document -gnatB switch
6271
6272 2009-04-07 Arnaud Charlet <charlet@adacore.com>
6273
6274 * gnatvsn.ads: Bump version number.
6275
6276 2009-04-07 Thomas Quinot <quinot@adacore.com>
6277
6278 * exp_ch3.adb: Minor rewording (comments)
6279
6280 2009-04-07 Robert Dewar <dewar@adacore.com>
6281
6282 * exp_disp.adb: Minor reformatting
6283
6284 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6285
6286 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
6287 underlying type.
6288 * gcc-interface/trans.c (lvalue_required_p): Likewise.
6289
6290 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6291
6292 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
6293 Do not convert the result. Remove obsolete comment.
6294
6295 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6296
6297 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
6298 DECL_CONTEXT.
6299 (Subprogram_Body_to_gnu): Fix pasto.
6300
6301 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6302
6303 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
6304 (void_type_decl_node): Remove.
6305 (init_gigi_decls): Likewise.
6306 (gnat_install_builtins): Declare.
6307 (record_builtin_type): Likewise.
6308 (create_type_stub_decl): Likewise.
6309 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
6310 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
6311 artificial.
6312 <E_Array_Subtype>: Use the index types, not only their name, in the
6313 record giving the names of the bounds, if any.
6314 For a packed array type, make it artificial only if the base type
6315 was artificial as well. Remove redundant statement.
6316 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
6317 dummy types.
6318 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
6319 (rest_of_type_decl_compilation_no_defer): Likewise.
6320 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
6321 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
6322 and use create_type_stub_decl to build it.
6323 (gnat_pushdecl): Rewrite condition.
6324 (gnat_install_builtins): Remove bogus declaration.
6325 (record_builtin_type): New function.
6326 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
6327 of types.
6328 (create_type_stub_decl): New function.
6329 (create_type_decl): Assert that the type is not dummy. If the type
6330 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
6331 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
6332 (build_vms_descriptor): Likewise.
6333 (init_gigi_decls): Delete and move bulk of code to...
6334 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
6335 (emit_range_check): Add gnat_node parameter.
6336 (emit_index_check): Likewise.
6337 (emit_check): Likewise.
6338 (build_unary_op_trapv): Likewise.
6339 (build_binary_op_trapv): Likewise.
6340 (convert_with_check): Likewise.
6341 (Attribute_to_gnu): Adjust calls for above changes.
6342 (call_to_gnu): Likewise.
6343 (gnat_to_gnu): Likewise.
6344 (assoc_to_constructor): Likewise.
6345 (pos_to_constructor): Likewise.
6346 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
6347 (process_type): Do not create TYPE_DECL for dummy types.
6348
6349 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6350
6351 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
6352 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
6353 * gcc-interface/utils.c: Fix comments.
6354
6355 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6356
6357 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
6358 move around.
6359 (gnat_to_gnu_type): Move around.
6360 (get_unpadded_type): Likewise.
6361 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
6362 Tidy comments.
6363
6364 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
6365
6366 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
6367 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
6368 (call_to_gnu): Invoke it instead of manually checking.
6369
6370 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
6371
6372 * gcc-interface/utils.c (finish_record_type): Force structural equality
6373 checks if the record type is discriminated.
6374
6375 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
6376
6377 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
6378 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
6379 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
6380 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
6381 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
6382 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
6383 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
6384
6385 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
6386
6387 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
6388 of TREE_CONSTANT_OVERFLOW.
6389
6390 2009-03-30 Joseph Myers <joseph@codesourcery.com>
6391
6392 PR rtl-optimization/323
6393 * gcc-interface/misc.c (gnat_post_options): Set
6394 flag_excess_precision_cmdline. Give an error for
6395 -fexcess-precision=standard for processors where the option is
6396 significant.
6397
6398 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
6399
6400 PR c/39323
6401 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
6402 on bit_align.
6403
6404 2009-03-11 Olivier Hainque <hainque@adacore.com>
6405
6406 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
6407 checks processing, remove unintended TREE_TYPE walk on index type.
6408
6409 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
6410
6411 PR ada/39264
6412 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
6413 call make_packable_type on fat pointer types.
6414 <E_Array_Subtype>: Likewise.
6415 <E_Record_Subtype>: Call make_packable_type on all record types
6416 except for fat pointer types.
6417 (make_packable_type): Likewise.
6418 (gnat_to_gnu_field): Likewise.
6419
6420 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
6421
6422 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
6423 EH_MECHANISM change made on 2007-12-06.
6424
6425 2009-02-26 Andreas Schwab <schwab@suse.de>
6426
6427 PR ada/39172
6428 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
6429 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
6430 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
6431 (AWK): Substitute.
6432 (target_cpu_default): Substitute.
6433
6434 2009-02-25 Laurent GUERBY <laurent@guerby.net>
6435
6436 PR ada/39221
6437 * a-teioed.adb (Expand): Fix Result overflow.
6438
6439 2009-02-25 Laurent GUERBY <laurent@guerby.net>
6440
6441 * gcc-interface/Makefile.in: Fix multilib handling for
6442 sparc64-linux.
6443
6444 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6445
6446 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
6447
6448 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
6449
6450 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
6451
6452 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
6453
6454 * gcc-interface/deftarg.c: Remove.
6455
6456 2009-02-10 Olivier Hainque <hainque@adacore.com>
6457 Eric Botcazou <ebotcazou@adacore.com>
6458
6459 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
6460 (copy_alias_set): Rename into...
6461 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
6462 underlying array of unconstrained arrays for the new type as well.
6463 If the old and new alias sets don't conflict, make one a subset of
6464 the other as per the OP parameter.
6465 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
6466 <E_Record_Type>: Do not copy the alias set for derived types.
6467 For all types, make the alias set of derived types a superset of
6468 that of their parent type.
6469 (make_aligning_type): Adjust calls to copy_alias_set.
6470 (make_packable_type): Likewise.
6471 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
6472 Check for alias set conflict instead of strict equality to issue the
6473 warning.
6474
6475 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
6476
6477 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
6478 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
6479 (copy_alias_set): Assert that arrays have the same aliasing settings.
6480 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
6481
6482 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
6483
6484 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
6485 Set TYPE_NONALIASED_COMPONENT on the array type.
6486
6487 2009-01-31 Laurent GUERBY <laurent@guerby.net>
6488
6489 * gcc-interface/Makefile.in: Fix mipsel linux handling.
6490
6491 2009-01-16 Jakub Jelinek <jakub@redhat.com>
6492
6493 * gcc-interface/Makefile.in: Fix multilib handling for
6494 powerpc64-linux.
6495
6496 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
6497
6498 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
6499 only useless conversions around renamed objects.
6500
6501 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
6502
6503 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
6504 the _Tag field before any discriminants in the field list.
6505 (components_to_record): Remove obsolete comment.
6506
6507
6508 \f
6509 Copyright (C) 2009 Free Software Foundation, Inc.
6510
6511 Copying and distribution of this file, with or without modification,
6512 are permitted in any medium without royalty provided the copyright
6513 notice and this notice are preserved.