sem_ch12.ads (Need_Subprogram_Instance_Body): new function...
[gcc.git] / gcc / ada / ChangeLog
1 2008-08-01 Ed Schonberg <schonberg@adacore.com>
2
3 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
4 a pending instantiation for the body of a subprogram that is to be
5 inlined.
6
7 * sem_ch12.adb:
8 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
9
10 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
11 create a pending instance for its body, so that calls to the subprogram
12 can be inlined by the back-end.
13
14 2008-08-01 Jose Ruiz <ruiz@adacore.com>
15
16 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
17 rts-rtx-w32).
18
19 2008-08-01 Robert Dewar <dewar@adacore.com>
20
21 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
22
23 2008-08-01 Doug Rupp <rupp@adacore.com>
24
25 * gnat_rm.texi: Document new mechanism Short_Descriptor.
26
27 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
28 mechanism values.
29
30 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
31 mechanism and Short_Descriptor mechanism values.
32
33 * snames.adb (preset_names): Add short_descriptor entry.
34
35 * snames.ads: Add Name_Short_Descriptor.
36
37 * types.h: Add new By_Short_Descriptor mechanism values.
38
39 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
40 mechanism and Short_Descriptor mechanism values.
41
42 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
43 values.
44 (Descriptor_Codes): Modify range for new mechanism values.
45
46 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
47 mechanism values.
48
49 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
50 (gnat_to_gnu_param): Handle By_Short_Descriptor.
51
52 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
53 (build_vms_descriptor32): New prototype.
54 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
55
56 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
57 argument in call fill_vms_descriptor.
58
59 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
60 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
61 (build_vms_descriptor): Renamed from build_vms_descriptor64.
62 (convert_vms_descriptor32): New function.
63 (convert_vms_descriptor64): New function.
64 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
65 descriptors.
66
67 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
68 no longer needed.
69
70 2008-08-01 Jose Ruiz <ruiz@adacore.com>
71
72 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
73 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
74 name.
75
76 2008-08-01 Jose Ruiz <ruiz@adacore.com>
77
78 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
79 current directory so only fully qualified names are allowed.
80
81 2008-08-01 Robert Dewar <dewar@adacore.com>
82
83 * gnat_ugn.texi:
84 Minor editing, remove uncomfortable use of semicolon
85
86 * s-ststop.adb: Add some ??? comments
87
88 * sem_ch10.adb: Minor reformatting
89
90 * snames.ads:
91 Minor comment fixes, some pragmas were not properly
92 categorized in the comments, documentation change only
93
94 * xref_lib.adb: Minor reformatting
95
96 * sinput.adb: Minor reformatting
97
98 * gnatchop.adb: Minor reformatting
99
100 * sem_util.ads: Minor reformatting.
101
102 * opt.ads: Minor documentation fix
103
104 * scng.adb: Minor reformatting
105
106 * prj-part.adb: Update comments
107
108 2008-08-01 Ed Schonberg <schonberg@adacore.com>
109
110 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
111 tagged synchronized type, use corresponding record type.
112
113 2008-08-01 Doug Rupp <rupp@adacore.com>
114
115 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
116 dummy transfer address for debugging.
117
118 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
119
120 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
121
122 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
123
124 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
125 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
126
127 2008-07-31 Pascal Obry <obry@adacore.com>
128
129 * prj-nmsc.adb: Keep Object and Exec directory casing.
130
131 2008-07-31 Jose Ruiz <ruiz@adacore.com>
132
133 * system-rtx-rtss.ads
134 Change the default stack size. It is important to set the commit part.
135
136 * s-taprop-rtx.adb
137 (Initialize): Get the clock resolution.
138 (RT_Resolution): Return the clock resolution that is indicated by the
139 system.
140
141 * s-parame-vxworks.adb
142 Document that this body is used for RTX in RTSS (kernel) mode.
143
144 * gcc-interface/Makefile.in
145 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
146 s-parame-vxworks.adb body in order to have reasonable stack sizes in
147 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
148 cannot ask for too big values.
149
150 2008-07-31 Robert Dewar <dewar@adacore.com>
151
152 * exp_aggr.adb: Minor reformatting
153
154 * makeutl.adb: Minor reformatting
155
156 * prj-env.adb: Minor reformatting
157
158 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
159
160 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
161 tagged type is completed by a concurrent type.
162
163 2008-07-31 Gary Dismukes <dismukes@adacore.com>
164
165 * sem_aggr.adb:
166 (Resolve_Record_Aggregate): Bypass error that a type without
167 components must have a "null record" aggregate when compiling for Ada
168 2005, since it's legal to give an aggregate of form (others => <>)
169 for such a type.
170
171 2008-07-31 Javier Miranda <miranda@adacore.com>
172
173 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
174 handle synchronized types. Required to handle well the object.operation
175 notation applied to synchronized types.
176
177 2008-07-31 Quentin Ochem <ochem@adacore.com>
178
179 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
180 anymore - just used internally.
181 Added handling of very small tasks - when the theoretical size is
182 already full at the point of the call.
183 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
184 not need to be added to the result.
185
186 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
187
188 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
189 corresponding spec is a primitive wrapper. Update comment.
190
191 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
192
193 * bindgen.adb Comment reformatting. Update the list of run-time globals.
194 (Gen_Adainit_Ada): Add the declaration, import and value set for
195 configuration flag Canonical_Streams.
196 (Gen_Adainit_C): Add the declaration and initial value of external
197 symbol __gl_canonical_streams.
198
199 * init.c: Update the list of global values computed by the binder.
200
201 * opt.ads: Add flag Canonical_Streams.
202
203 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
204 semantically handled pragmas.
205
206 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
207 (Analyze_Pragma): Add case for pragma Canonical_Streams.
208
209 * snames.adb: Add character value for name Canonical_Streams.
210
211 * snames.ads:
212 Add Name_Canonical_Streams to the list of configuration pragmas.
213 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
214
215 * snames.h: Add a definition for Pragma_Canonical_Streams.
216
217 * s-ststop.adb:
218 Add a flag and import to seize the value of external symbol
219 __gl_canonical_streams. Update comment and initial value of constant
220 Use_Block_IO.
221
222 * gnat_rm.texi: Add section of pragma Canonical_Streams.
223
224 * gnat_ugn.texi:
225 Add pragma Canonical_Streams to the list of configuration pragmas.
226
227 2008-07-31 Ed Schonberg <schonberg@adacore.com>
228
229 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
230 has the form A.B.C and B is a unit renaming, analyze its compilation
231 unit and add a with_clause on A.b to the context.
232
233 2008-07-31 Vincent Celier <celier@adacore.com>
234
235 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
236 return the empty string, instead of raising Constraint_Error.
237
238 2008-07-31 Gary Dismukes <dismukes@adacore.com>
239
240 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
241
242 * checks.adb (Apply_Accessibility_Check): Insert the check on
243 Insert_Node.
244
245 * exp_attr.adb:
246 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
247 to new parameter Insert_Node on call to Apply_Accessibility_Check.
248 Necessary to distinguish the insertion node because the dereferenced
249 formal may come from a rename, but the check must be inserted in
250 front of the attribute.
251
252 * exp_ch4.adb:
253 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
254 call to Apply_Accessibility_Check.
255 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
256 on call to Apply_Accessibility_Check.
257 Minor reformatting
258
259 2008-07-31 Javier Miranda <miranda@adacore.com>
260
261 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
262 types when the candidate type is a synchronized type.
263
264 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
265 types, and complete management of synchronized types adding missing
266 code to handle formal that is a synchronized type.
267
268 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
269 are not available and cause the compiler to blowup. Found compiling
270 test with switch -gnatc
271
272 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
273 Has_Correct_Formal_Mode plus code cleanup.
274
275 2008-07-31 Bob Duff <duff@adacore.com>
276
277 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
278 recognized as two end-of-lines, but it should be just one.
279
280 2008-07-31 Thomas Quinot <quinot@adacore.com>
281
282 * exp_ch9.adb: Minor reformatting
283
284 * tbuild.ads: Fix several occurrences of incorrectly referring to
285 Name_Find as Find_Name.
286
287 2008-07-31 Ed Schonberg <schonberg@adacore.com>
288
289 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
290 and the context is an object declaration with non-static bounds, treat
291 the aggregate as non-static.
292
293 2008-07-31 Vincent Celier <celier@adacore.com>
294
295 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
296 Move back spec of Parse_Single_Project to body, as it is not called
297 outside of package Prj.Part.
298 (Project_Data): Remove components Linker_Name, Linker_Path and
299 Minimum_Linker_Options as they are no longer set.
300 Remove function There_Are_Ada_Sources from package Prj and move code
301 in the only place it was used, in Prj.Env.Set_Ada_Paths.
302
303 2008-07-31 Arnaud Charlet <charlet@adacore.com>
304
305 * mlib-utl.ads: Fix typo.
306
307 2008-07-31 Robert Dewar <dewar@adacore.com>
308
309 * sem_ch12.adb: Minor reformatting
310
311 2008-07-31 Sergey Rybin <rybin@adacore.com>
312
313 * gnat_ugn.texi: Change the description of the
314 Overly_Nested_Control_Structures: now the rule always requires a
315 positive parameter for '+R' option
316
317 2008-07-31 Thomas Quinot <quinot@adacore.com>
318
319 * g-pehage.adb: Minor reformatting
320
321 2008-07-31 Pascal Obry <obry@adacore.com>
322
323 * s-finimp.ads: Minor reformatting.
324
325 2008-07-31 Vincent Celier <celier@adacore.com>
326
327 * s-regexp.ads: Minor comment fix
328
329 2008-07-31 Arnaud Charlet <charlet@adacore.com>
330
331 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
332 so that we can compile this file successfully with -gnatc.
333
334 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
335
336 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
337 of the type when looking for stream subprograms for type String,
338 Wide_String and Wide_Wide_String.
339
340 * s-ststop.adb: Change the initialization expression of constant
341 Use_Block_IO.
342
343 2008-07-31 Geert Bosch <bosch@adacore.com>
344
345 * arit64.c:
346 New file implementing __gnat_mulv64 signed integer multiplication with
347 overflow checking
348
349 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
350
351 * gcc-interface/gigi.h:
352 (standard_types): Add ADT_mulv64_decl
353 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
354
355 * gcc-interface/utils.c:
356 (init_gigi_decls): Add initialization of mulv64_decl
357
358 * gcc-interface/trans.c:
359 (build_unary_op_trapv): New function
360 (build_binary_op_trapv): New function
361 (gnat_to_gnu): Use the above functions instead of
362 build_{unary,binary}_op
363
364 * gcc-interface/Makefile.in
365 (LIBGNAT_SRCS): Add arit64.c
366 (LIBGNAT_OBJS): Add arit64.o
367
368 2008-07-31 Vincent Celier <celier@adacore.com>
369
370 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
371 Linker'Default_Switches are declared. Warn if they are declared.
372
373 2008-07-31 Ed Schonberg <schonberg@adacore.com>
374
375 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
376 Insert_Actions to place the pointer declaration in the code, rather
377 than Insert_Before_And_Analyze, so that insertions of temporaries are
378 kept in the proper order when transient scopes are present.
379
380
381 2008-07-31 Robert Dewar <dewar@adacore.com>
382
383 * einfo.adb (Spec_PPC): Now defined for generic subprograms
384
385 * einfo.ads (Spec_PPC): Now defined for generic subprograms
386
387 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
388 subprogram case
389
390 2008-07-31 Vincent Celier <celier@adacore.com>
391
392 * s-os_lib.adb: Minor comment fix
393
394 2008-07-31 Ed Schonberg <schonberg@adacore.com>
395
396 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
397 transfer pre/postconditions from generic copy to original tree, so that
398 they will appear in each instance.
399 (Process_PPCs): Do not transform postconditions into a procedure in a
400 generic context, to prevent double expansion of check pragmas.
401
402 * sem_attr.adb: In an instance, the prefix of the 'result attribute
403 can be the renaming of the
404 current instance, so check validity of the name accordingly.
405
406 2008-07-31 Robert Dewar <dewar@adacore.com>
407
408 * mlib-utl.ads: Minor reformatting
409
410 2008-07-31 Ed Schonberg <schonberg@adacore.com>
411
412 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
413 from context. This attribute must be usable in Ada95 mode.
414 The attribute can appear in the body of a function marked
415 Inline_Always, but in this case the postocondition is not enforced.
416
417 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
418 of an inlined call pre- and postconditions are legal
419
420 2008-07-31 Vincent Celier <celier@adacore.com>
421
422 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
423 were for gprmake only
424
425 2008-07-31 Robert Dewar <dewar@adacore.com>
426
427 * gnat_ugn.texi: Update -gnatN documentation.
428
429 * gnat_rm.texi: Add note about pre/postcondition
430 pragmas not checked in conjunction with front-end inlining.
431
432 2008-07-31 Robert Dewar <dewar@adacore.com>
433
434 * g-pehage.adb, g-pehage.ads: Minor reformatting
435
436 2008-07-31 Arnaud Charlet <charlet@adacore.com>
437
438 * mlib-utl.ads, prj-makr.ads: Add comments.
439
440 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
441
442 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
443 [WINDOWS]: Add s-winext.o.
444
445 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
446
447 PR ada/36554
448 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
449 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
450 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
451 Set precision to 1 for subtype of BOOLEAN_TYPE.
452 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
453 (make_type_from_size): Deal with BOOLEAN_TYPE.
454 * gcc-interface/misc.c (gnat_print_type): Likewise.
455 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
456 Set boolean_type_node as its translation in the table, as well
457 as boolean_false_node for False and boolean_true_node for True.
458 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
459 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
460 (create_param_decl): Deal with BOOLEAN_TYPE.
461 (build_vms_descriptor): Likewise.
462 (build_vms_descriptor64): Likewise.
463 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
464
465 2008-07-30 Robert Dewar <dewar@adacore.com>
466
467 * exp_ch9.adb: Minor reformatting
468
469 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
470 if no primitive operation is found.
471
472 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
473
474 * sem_ch8.adb: Minor reformatting
475
476 2008-07-30 Laurent Pautet <pautet@adacore.com>
477
478 * g-pehage.adb:
479 Remove a limitation on the length of the words handled by the minimal
480 perfect hash function generator.
481
482 * g-pehage.ads:
483 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
484 Fix some typos.
485
486 2008-07-30 Robert Dewar <dewar@adacore.com>
487
488 * gnatlink.adb: Minor reformatting
489
490 2008-07-30 Thomas Quinot <quinot@adacore.com>
491
492 * rtsfind.adb (Check_RPC): Check version consistency even when not
493 generating RCI stubs. Provide more detailed error message in case of
494 mismatch.
495
496 2008-07-30 Ed Schonberg <schonberg@adacore.com>
497
498 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
499 as a actual in an instance, check for a missing attribute to prevent
500 program_error on an illegal program.
501
502 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
503 error if primitive is not found, so that exception can be handled
504 elsewhere on illegal programs.
505
506 2008-07-30 Robert Dewar <dewar@adacore.com>
507
508 * uintp.adb (UI_GCD): Fix potential overflow
509
510 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
511
512 * einfo.adb: Flag245 is now used.
513 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
514 check to include functions.
515 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
516 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
517 include functions.
518 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
519 to the list of displayed flags.
520
521 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
522 Wrapped_Entity. These two flags are now present in functions.
523 New flag Is_Private_Primitive.
524 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
525
526 * exp_ch9.adb:
527 (Build_Wrapper_Bodies): New subprogram.
528 (Build_Wrapper_Body): The spec and body have been moved to in
529 Build_Wrapper_ Bodies. Code cleanup.
530 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
531 Wrappers are now generated for primitives declared between the private
532 and full view of a concurrent type that implements an interface.
533 (Build_Wrapper_Specs): New subprogram.
534 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
535 creation mechanism with a call to Build_Wrapper_Bodies.
536 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
537 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
538 (Expand_N_Task_Body): Replace the wrapper body creation
539 mechanism with a call to Build_Wrapper_Bodies.
540 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
541 creation mechanism with a call to Build_Wrapper_Specs.
542 (Is_Private_Primitive_Subprogram): New subprogram.
543 (Overriding_Possible): Code cleanup.
544 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
545
546 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
547
548 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
549 (Process_Full_View): Build wrapper specs for all primitives
550 that belong to a private view completed by a concurrent type
551 implementing an interface.
552
553 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
554 is a primitive of a
555 concurrent type with a private view that implements an interface, try to
556 find the proper spec.
557 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
558 primitive if the type of its first parameter is a non-generic tagged
559 private type.
560 (Analyze_Subprogram_Specification): Code reformatting.
561 (Disambiguate_Spec): New routine.
562 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
563 (Is_Private_Concurrent_Primitive): New routine.
564
565 * sem_ch6.ads:
566 (Find_Corresponding_Spec): Add a formal to control the output of errors.
567
568 2008-07-30 Doug Rupp <rupp@adacore.com>
569
570 * gigi.h (build_vms_descriptor64): New function prototype.
571 (fill_vms_descriptor): Modified function prototype.
572
573 * utils.c (build_vms_descriptor64): New function.
574
575 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
576
577 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
578 argument.
579
580 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
581 64bit and 32bit descriptor and save the 64bit version as an alternate
582 TREE_TYPE in the parameter.
583 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
584 thin pointer.
585
586 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
587
588 2008-07-30 Robert Dewar <dewar@adacore.com>
589
590 * make.adb: Minor reformatting
591
592 * mlib-utl.adb: Minor reformatting
593
594 * osint.ads: Minor reformatting
595
596 2008-07-30 Jose Ruiz <ruiz@adacore.com>
597
598 * adaint.c
599 (__gnat_file_exists): Do not use __gnat_stat for RTX.
600 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
601 avoid the use of this symbol from libgcc.a in RTX kernel mode.
602
603 * cio.c
604 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
605 the function RtPrintf for console output.
606
607 * argv.c Do not use the environ variable for RTX.
608
609 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
610 been moved before the call to Osint.Add_Default_Search_Dirs in order
611 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
612 from the appropriate run time.
613
614 * targparm.ads
615 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
616 target is a RTSS module for RTX.
617
618 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
619 RTX_RTSS_Kernel_Module
620 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
621
622 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
623 exception handling mechanism for Windows and RTX in Win32 mode, but
624 not for RTX in kernel mode (RTSS).
625 (LIBGNAT_SRCS): Remove ada.h
626
627 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
628
629 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
630 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
631 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
632 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
633 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
634 ALL_ADA_CFLAGS): Remove.
635 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
636 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
637 (GCC_CFLAGS): Remove X_CFLAGS.
638 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
639 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
640 (ADA_CFLAGS): Substitute.
641
642 2008-07-30 Laurent Guerby <laurent@guerby.net>
643
644 PR ada/5911
645 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
646 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
647 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
648 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
649 by stamp-gnatlib2-rts.
650
651 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
652
653 PR documentation/15479
654 * gnat-style.texi: Remove AdaCore copyright statement and GPL
655 statement for GNAT. Add @copying stanza, use it. Update to
656 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
657 title as Front-Cover Text.
658 * gnat_rm.texi: Likewise.
659 * gnat_ugn.texi: Likewise.
660
661 2008-07-29 Jan Hubicka <jh@suse.cz>
662
663 * trans.c (process_inlined_subprograms): Remove tree_really_inline
664 check.
665
666 2008-07-29 Arnaud Charlet <charlet@adacore.com>
667
668 * gcc-interface: New directory.
669
670 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
671 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
672 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
673 to gcc-interface subdirectory.
674
675 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
676
677 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
678
679 2008-07-28 Jan Hubicka <jh@suse.cz>
680
681 * misc.c (gnat_post_options): Do not set flag_no_inline.
682
683 2008-07-28 Richard Guenther <rguenther@suse.de>
684
685 Merge from gimple-tuples-branch.
686
687 2008-07-22 Olivier Hainque <hainque@adacore.com>
688
689 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
690 this is called for an elab proc to be discarded if empty.
691 * utils.c (end_subprog_body): Honor ELAB_P.
692 (build_function_stub): Adjust call to end_subprog_body.
693 * trans.c (Subprogram_Body_to_gnu): Likewise.
694 (gigi): Reorganize processing of elab procs to prevent
695 gimplifying twice, using the new end_subprog_body argument.
696
697 2008-07-19 Richard Guenther <rguenther@suse.de>
698
699 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
700 (utils.o): Likewise.
701 * trans.c: Include tree-iterator.h.
702 (gnat_gimplify_expr): Adjust prototype. Fix typo.
703 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
704 (set_expr_location_from_node): Likewise.
705 (gigi): Tuplify.
706 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
707 of GENERIC_NEXT.
708 * utils.c: Include tree-iterator.h.
709 * gigi.h (gnat_gimplify_expr): Adjust prototype.
710
711 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
712
713 * trans.c: Include gimple.h instead of tree-gimple.h.
714 * utils.c: Same.
715
716 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
717
718 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
719
720 2008-07-25 Jan Hubicka <jh@suse.cz>
721
722 * utils.c (end_subprog_body): Remove inline trees check.
723 * misc.c (gnat_post_options): Do not set flag_inline_trees.
724
725 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
726
727 * raise-gcc.c: Move tsystem.h before tm.h.
728
729 2008-07-20 Arnaud Charlet <charlet@adacore.com>
730
731 * gnathtml.pl: New file.
732
733 2008-07-19 Olivier Hainque <hainque@adacore.com>
734
735 * targtyps.c (get_target_default_allocator_alignment): Use
736 MALLOC_ABI_ALIGNMENT.
737
738 2008-07-17 Olivier Hainque <hainque@adacore.com>
739
740 * adaint.c (__MINGW32__ section): Include ctype.h and define
741 a fallback ISALPHA if IN_RTS.
742 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
743
744 2008-07-17 Olivier Hainque <hainque@adacore.com>
745
746 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
747 argument, to apply to references in addition to definitions. Prevent
748 setting TREE_STATIC on externals.
749 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
750
751 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
752
753 PR documentation/15479
754 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
755 Replace backets around optional parameters with @ovar
756 where possible, use @r{[}, @r{]} otherwise.
757 Replace some @r, @i, and @emph with @var where appropriate.
758
759 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
760
761 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
762
763 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
764
765 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
766 -Wc++-compat warnings.
767 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
768 __gnat_locate_exec_on_path): Likewise.
769 * decl.c (annotate_value): Likewise.
770 * misc.c (gnat_handle_option): Likewise.
771 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
772 post_error_ne_tree): Likewise.
773
774 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
775
776 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
777 version of its type, attempt to first convert its elements.
778
779 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
780
781 * Makefile.in: Fix *86 kfreebsd target specific pairs.
782
783 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
784
785 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
786
787 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
788
789 * utils2.c (known_alignment): Derive the alignment from pointed-to
790 types only if it is otherwise unknown.
791 <INTEGER_CST>: Tidy.
792 <MULT_EXPR>: Likewise.
793 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
794 that of the base.
795
796 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
797
798 PR ada/36573
799 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
800
801 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
802
803 * gnat_rm.texi (Implementation Defined Characteristics)
804 (Standard Library Routines): Use @smallexample for indented
805 text. Drop Indentation outside examples.
806 * gnat_ugn.texi: Likewise.
807
808 2008-06-13 Olivier Hainque <hainque@adacore.com>
809
810 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
811 if undefined.
812 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
813 realignment with force_align_arg_pointer attribute on foreign
814 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
815
816 2008-06-13 Olivier Hainque <hainque@adacore.com>
817
818 * utils.c (rest_of_record_type_compilation): When computing
819 encodings for the components of a variable size type, early
820 strip conversions on the current position expression to make
821 sure it's shape is visible. Use remove_conversions for this
822 purpose.
823
824 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
825
826 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
827 constrained subtype of a discriminated type, discard the fields that
828 are beyond its limits according to its size.
829
830 2008-06-10 Olivier Hainque <hainque@adacore.com>
831
832 * utils.c (create_subprog_decl): If this is for the 'main' entry
833 point according to the asm name, redirect main_identifier_node.
834
835 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
836
837 * decl.c (components_to_record): Adjust the packedness for the
838 qualified union as well.
839
840 2008-06-09 Arnaud Charlet <charlet@adacore.com>
841
842 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
843 checks non fatal.
844
845 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
846
847 * sem_res.adb (Large_Storage_Type): A type is large if it
848 requires as many bits as Positive to store its values and its
849 bounds are known at compile time.
850 * sem_ch13.adb (Minimum_Size): Note that this function returns
851 0 if the size is not known at compile time.
852
853 2008-06-06 Nicolas Setton <setton@adacore.com>
854 Olivier Hainque <hainque@adacore.com>
855
856 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
857 attribute, parallel descriptive type attached to another
858 type for debug info generation purposes.
859 * utils.c (add_parallel_type): New function, register
860 parallel type to be attached to a type.
861 (get_parallel_type): New function, fetch a registered
862 parallel type, if any.
863 (rest_of_record_type_compilation): Register the parallel
864 type we make for variable size records.
865 * gigi.h (add_parallel_type, get_parallel_type): Declare.
866 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
867 parallel debug types we make.
868 * trans.c (extract_encoding, decode_name): New functions.
869 (gigi): If the DWARF attribute extensions are available, setup
870 to use them.
871 * lang.opt: Register language specific processing request
872 for -gdwarf+.
873 * misc.c (gnat_dwarf_extensions): New global variable. How much
874 do we want of our DWARF extensions. 0 by default.
875 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
876 (gnat_post_options): Map gnat_dwarf_extensions to the
877 commonuse_gnu_debug_info_extensions for later processing.
878
879 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
880
881 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
882
883 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
884
885 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
886 * gnat_ugn.texi (Style Checking)
887 (Adding the Results of Compiler Checks to gnatcheck Output)
888 (Example of Binder Output File): Fix typos.
889 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
890 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
891 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
892 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
893 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
894 sinfo.ads, utils.c: Fix typos in comments.
895 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
896
897 2008-05-29 Thomas Quinot <quinot@adacore.com>
898
899 * sem_eval.adb: Minor reformatting
900
901 2008-05-29 Ed Schonberg <schonberg@adacore.com>
902
903 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
904 is abstract, do not apply abstractness check on subprogram if this is
905 a renaming declaration.
906
907 2008-05-29 Arnaud Charlet <charlet@adacore.com>
908
909 PR ada/864
910 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
911 allow recognition of program suffix in addition to prefix.
912
913 * gnatchop.adb (Locate_Executable): Add support for prefix.
914
915 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
916 mlib-utl.adb: Adjust calls to Program_Name.
917
918 2008-05-29 Robert Dewar <dewar@adacore.com>
919
920 * sem_ch3.adb: Minor reformatting
921 * sem_prag.adb: Minor reformatting
922 * sem_res.adb: Minor reformatting
923 * sinput-p.ads: Minor reformatting
924
925 2008-05-29 Javier Miranda <miranda@adacore.com>
926
927 * sem_util.adb:
928 (Abstract_Interface_List): Add missing support for full type-declaration
929 associated with synchronized types.
930
931 2008-05-29 Robert Dewar <dewar@adacore.com>
932
933 * sem_eval.adb (Is_Same_Value): Take care of several more cases
934
935 2008-05-28 Ed Schonberg <schonberg@adacore.com>
936
937 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
938 access type, wrap the expression in a conversion to force an
939 accessibility check.
940
941 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
942 accessibility checks even when expansion is disabled in order to
943 generate messages in the presence of previous errors or in
944 semantics-only mode.
945
946 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
947
948 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
949 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
950
951 2008-05-28 Vincent Celier <celier@adacore.com>
952
953 PR ada/34446
954 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
955 preprocessing expressions
956
957 2008-05-28 Vincent Celier <celier@adacore.com>
958
959 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
960 for preprocessing
961
962 * sinput-p.ads: Minor comment update and reformatting
963
964 2008-05-28 Ed Schonberg <schonberg@adacore.com>
965
966 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
967 type has a deeper level than any master only when it is the type of an
968 access parameter.
969
970 2008-05-28 Javier Miranda <miranda@adacore.com>
971
972 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
973
974 2008-05-28 Javier Miranda <miranda@adacore.com>
975
976 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
977 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
978 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
979 Add code that was previously located in
980 Find_Overridden_Synchronized_Primitive because it is only used here.
981
982 2008-05-28 Sergey Rybin <rybin@adacore.com>
983
984 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
985 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
986
987 2008-05-28 Robert Dewar <dewar@adacore.com>
988
989 * restrict.ads:
990 Add missing restrictions, and properly label all GNAT defined ones
991
992 * rtsfind.ads:
993 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
994 Add entry for Ada.Task_Termination.Set_Specific_Handler
995 Add entry for Ada.Task_Termination.Specific_Handler
996
997 * s-rident.ads:
998 Add missing restrictions and properly mark all gnat defined ones
999
1000 * sem_ch3.adb:
1001 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1002
1003 * sem_res.adb:
1004 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1005
1006 * gnat_rm.texi: Add missing restrictions, and properly label all
1007 GNAT defined ones
1008
1009 2008-05-28 Robert Dewar <dewar@adacore.com>
1010
1011 * restrict.adb:
1012 (Check_Restriction): violation of restriction No_Finalization is
1013 treated as a serious error to stop expansion
1014
1015 2008-05-28 Robert Dewar <dewar@adacore.com>
1016
1017 * exp_util.adb: Minor reformatting
1018 * exp_util.ads: Minor reformatting.
1019
1020 2008-05-28 Arnaud Charlet <charlet@adacore.com>
1021
1022 * Make-lang.in: Remove gprmake.
1023
1024 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1025
1026 2008-05-28 Ed Schonberg <schonberg@adacore.com>
1027
1028 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1029 improper progenitor names, and avoid cascaded errors.
1030
1031 2008-05-28 Robert Dewar <dewar@adacore.com>
1032
1033 * gnat_rm.texi: Add note on Old giving warning when applied to constant
1034
1035 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1036 a constant
1037
1038 2008-05-28 Robert Dewar <dewar@adacore.com>
1039
1040 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1041 size
1042
1043 2008-05-28 Robert Dewar <dewar@adacore.com>
1044
1045 * exp_ch5.adb:
1046 (Expand_Simple_Function_Return): Copy unaligned result into temporary
1047
1048 2008-05-28 Javier Miranda <miranda@adacore.com>
1049
1050 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1051 for user-defined predefined primitives.
1052
1053 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1054 (Find_Overridden_Synchronized_Primitive): Ditto.
1055
1056 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1057
1058 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1059
1060 * a-ststio.adb, s-direio.adb:
1061 Further code clean up of previous change.
1062 Update comments.
1063
1064 2008-05-27 Vincent Celier <celier@adacore.com>
1065
1066 * prj-nmsc.adb: Minor reformatting
1067
1068 2008-05-27 Bob Duff <duff@adacore.com>
1069
1070 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
1071 untagged private type with a tagged full type, where the full type has
1072 a self reference, create the corresponding class-wide type early, in
1073 case the self reference is "access T'Class".
1074
1075 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1076
1077 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
1078 tasks and context is an object declaration. create master entity before
1079 expansion.
1080
1081 2008-05-27 Robert Dewar <dewar@adacore.com>
1082
1083 * mlib-prj.adb: Minor reformatting
1084
1085 * prj-part.adb: Minor reformatting
1086
1087 * prj.ads: Minor reformatting
1088
1089 * exp_ch3.adb: Minor reformatting.
1090
1091 * sem_ch3.ads: Minor reformatting
1092
1093 * sem_eval.adb: Minor reformatting
1094
1095 2008-05-27 Vincent Celier <celier@adacore.com>
1096
1097 * gnatcmd.adb:
1098 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
1099
1100 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1101
1102 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
1103 tasks, create an activation chain now, before the expansion into
1104 assignments and build-in-place calls that require the presence of an
1105 activation chain.
1106 (Backend_Processing_Possible): If the component type is inherently
1107 limited, the aggregate must be expanded into individual built-in-place
1108 assignments.
1109
1110 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
1111 determine whether an allocation extra parameter must be built, to
1112 handle case of a private type whose full type is a discriminated type
1113 with defaults.
1114
1115 2008-05-27 Bob Duff <duff@adacore.com>
1116
1117 * gnat_rm.texi:
1118 Document the new behavior regarding trampolines.
1119
1120 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1121
1122 * a-direio.adb, a-sequio.adb: Replace address clause by
1123 unrestricted_access, simpler and compatible with .NET.
1124
1125 2008-05-27 Vincent Celier <celier@adacore.com>
1126
1127 * prj-part.adb:
1128 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
1129 a project file, so that symbolic links are not resolved.
1130
1131 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1132
1133 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
1134 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
1135 portable across GNAT targets, since this kind of address clause is not
1136 supported by VM back-ends (.NET/JGNAT).
1137
1138 2008-05-27 Arnaud Charlet <charlet@adacore.com>
1139
1140 * bindgen.adb: Update comments.
1141
1142 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
1143
1144 2008-05-27 Vincent Celier <celier@adacore.com>
1145
1146 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
1147 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
1148 mlib-tgt.adb, prj-env.adb, prj-env.ads:
1149 (Path_Information): New record type
1150 Use component of type Path_Information when there are two paths, one in
1151 canonical format and one in display format.
1152 Update the project manager to these new components.
1153
1154 2008-05-27 Robert Dewar <dewar@adacore.com>
1155
1156 * makeutl.adb: Minor reformatting
1157 * prj-nmsc.adb: Minor reformatting
1158 * s-stausa.adb: Minor reformatting
1159 * s-stausa.ads: Minor reformatting
1160 * sem_ch6.adb: Minor reformatting
1161
1162 2008-05-27 Thomas Quinot <quinot@adacore.com>
1163
1164 * sem_res.adb: Minor comment fixes
1165
1166 2008-05-27 Thomas Quinot <quinot@adacore.com>
1167
1168 * makeutl.adb: Minor code reorganization
1169
1170 * exp_aggr.adb: Add ??? comment
1171 Fix typo
1172
1173 * exp_ch6.adb: Minor reformatting
1174
1175 2008-05-27 Quentin Ochem <ochem@adacore.com>
1176
1177 * s-stausa.adb (Initialize): Updated result initialization, and
1178 initialization of environment stack.
1179 (Fill_Stack): Improved computation of the pattern zone, taking into
1180 account already filled at the calling point.
1181 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
1182 Measure and Overflow_Guard.
1183 (Report_Result): Fixed computation of the result using new fields of
1184 Stack_Analyzer.
1185
1186 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
1187 params by more explicit Stack_Size / Max_Pattern_Size params.
1188 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
1189 Added Stack_Used_When_Filling field.
1190 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
1191 Min_Measure and Max_Measure fields.
1192
1193 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
1194
1195 2008-05-27 Vincent Celier <celier@adacore.com>
1196
1197 * prj-nmsc.adb:
1198 (Check_File): Make sure that a unit that replaces the same unit in a
1199 project being extended is properly processed.
1200
1201 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1202
1203 * sem_ch3.adb:
1204 (Get_Discr_Value): Remove obsolete code that failed to find the value
1205 of a discriminant for an inherited task component appearing in a type
1206 extension.
1207
1208 2008-05-27 Thomas Quinot <quinot@adacore.com>
1209
1210 (System.File_IO.{Close, Delete, Reset}):
1211 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
1212
1213 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
1214 Pass File parameter by reference.
1215
1216 2008-05-27 Vincent Celier <celier@adacore.com>
1217
1218 * prj-nmsc.adb:
1219 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
1220 sources of the same project that have the same object file name.
1221 (Find_Explicit_Sources): Always remove a source exception that was not
1222 found.
1223
1224 2008-05-27 Thomas Quinot <quinot@adacore.com>
1225
1226 * sem_ch3.adb: Minor reformatting
1227
1228 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1229
1230 * sem_ch6.adb:
1231 (Is_Interface_Conformant): Handle properly a primitive operation that
1232 overrides an interface function with a controlling access result.
1233 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
1234 inherited and overriding operations, omit as well the conformance check
1235 on result types, to prevent spurious errors.
1236
1237 2008-05-27 Vincent Celier <celier@adacore.com>
1238
1239 * makeutl.ads, makeutl.adb:
1240 (Set_Location): New procedure
1241 (Get_Location): New function
1242 (Update_Main): New procedure
1243
1244 2008-05-27 Vincent Celier <celier@adacore.com>
1245
1246 * prj-nmsc.adb:
1247 (Check_Library): Allow standard project to be extended as a static
1248 library project.
1249 (Get_Mains): Do not inherit attribute Main in an extending library
1250 project.
1251
1252 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1253
1254 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
1255 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
1256 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
1257 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
1258 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
1259 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
1260 * system-mingw.ads (Always_Compatible_Rep): Likewise.
1261 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
1262 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
1263 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
1264
1265 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1266
1267 * sem_attr.adb: add guard to previous patch.
1268
1269 2008-05-27 Ed Schonberg <schonberg@adacore.com>
1270
1271 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
1272 a synchronized tagged type, do not attempt to build dispatch table for
1273 full view. The table is built for the corresponding record type, which
1274 has its own declaration.
1275
1276 2008-05-27 Gary Dismukes <dismukes@adacore.com>
1277
1278 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
1279 to the known type entity E, rather than setting it to Any_Type. Fixes
1280 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
1281 for objects whose type had an illegal constraint.
1282
1283 2008-05-27 Vincent Celier <celier@adacore.com>
1284
1285 * gnat_ugn.texi:
1286 Add succinct documentation for attribute Excluded_Source_List_File
1287
1288 2008-05-27 Vincent Celier <celier@adacore.com>
1289
1290 * prj-attr.adb: Add new project level attribute Map_File_Option
1291
1292 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
1293
1294 * prj.ads: Minor reformatting and comment update
1295 (Project_Configuration): New component Map_File_Option
1296
1297 * snames.adb: New standard name Map_File_Option
1298
1299 * snames.ads: New standard name Map_File_Option
1300
1301 2008-05-27 Vincent Celier <celier@adacore.com>
1302
1303 * xsnames.adb: Remove unused variable Oname
1304
1305 2008-05-27 Doug Rupp <rupp@adacore.com>
1306
1307 * exp_ch6.adb:
1308 (Expand_N_Function_Call): Fix comments. Minor reformatting.
1309
1310 * exp_vfpt.ads:
1311 (Expand_Vax_Foreign_Return): Fix comments.
1312
1313 2008-05-27 Thomas Quinot <quinot@adacore.com>
1314
1315 * exp_dist.adb: Minor reformating
1316
1317 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1318
1319 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
1320 No_Default_Initialization, which is now delayed until the freeze point
1321 of the object. Add a comment about deferral of the check.
1322
1323 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
1324 on objects is moved here.
1325
1326 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1327
1328 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
1329 (Compare_Array_S16): Adjust for above change.
1330 * s-casi32.adb (Uword): Likewise.
1331 (Compare_Array_S32): Likewise.
1332 * s-casi64.adb (Uword): Likewise.
1333 (Compare_Array_S64): Likewise.
1334 * s-caun16.adb (Uhalf): Likewise.
1335 (Compare_Array_U16): Likewise.
1336 * s-caun32.adb (Uword): Likewise.
1337 (Compare_Array_U32): Likewise.
1338 * s-caun64.adb (Uword): Likewise.
1339 (Compare_Array_U64): Likewise.
1340
1341 2008-05-26 Robert Dewar <dewar@adacore.com>
1342
1343 * exp_ch6.adb: Add ??? comment for previous change
1344
1345 * exp_vfpt.adb: Minor reformatting
1346
1347 * exp_vfpt.ads: Add ??? comment for last change
1348
1349 * sem_attr.adb: Add some ??? comments for previous change
1350
1351 * s-vaflop.ads: Add comments for previous change
1352
1353 2008-05-26 Doug Rupp <rupp@adacore.com>
1354
1355 * s-vaflop-vms-alpha.adb:
1356 Remove System.IO use clause, to prevent spurious ambiguities when
1357 package is access through rtsfind.
1358
1359 2008-05-26 Sergey Rybin <rybin@adacore.com>
1360
1361 * tree_io.ads (ASIS_Version_Number): Update because of the changes
1362 made in front-end
1363
1364 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1365
1366 * sem_attr.adb:
1367 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
1368 converted to S (A)'address only if A .. B is known to be a non-null
1369 range.
1370
1371 2008-05-26 Doug Rupp <rupp@adacore.com>
1372
1373 * s-vaflop.adb:
1374 (Return_D, Return_F, Return_G): New functions.
1375
1376 * s-vaflop.ads:
1377 (Return_D, Return_F, Return_G): New functions.
1378
1379 * exp_vfpt.adb:
1380 (Expand_Vax_Foreign_Return): New procedure
1381
1382 * exp_vfpt.ads:
1383 (Expand_Vax_Foreign_Return): New procedure
1384
1385 * rtsfind.ads:
1386 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
1387 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
1388
1389 * exp_ch6.adb:
1390 Import Exp_Vfpt
1391 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
1392
1393 * s-vaflop-vms-alpha.adb:
1394 (Return_D, Return_F, Return_G): New functions.
1395
1396 2008-05-26 Gary Dismukes <dismukes@adacore.com>
1397
1398 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
1399 init proc entity when there is actual default initialization associated
1400 with the component type, to avoid spurious errors on objects of scalar
1401 array types that are marked Is_Public when No_Default_Initialization
1402 applies.
1403
1404 2008-05-26 Thomas Quinot <quinot@adacore.com>
1405
1406 * rtsfind.ads, rtsfind.adb:
1407 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
1408 (Check_RPC): Support per-PCS-kind API versioning.
1409
1410 exp_dist.ads, exp_dist.adb:
1411 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
1412 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
1413 library function Get_RACW.
1414 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
1415 library function Get_Reference.
1416 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
1417 through an intermediate Any.
1418 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
1419 going through an intermediate Any.
1420
1421 * sem_dist.adb: Minor reformatting.
1422
1423 2008-05-26 Javier Miranda <miranda@adacore.com>
1424
1425 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
1426 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1427 (Is_Internal): Adding documentation on internal entities that have
1428 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
1429
1430 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
1431 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1432 Added assertion to force entities with this attribute to have
1433 attribute Is_Internal set to True.
1434 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
1435
1436 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
1437 renamed as Derive_Progenitor_Subprograms. In addition, its code is
1438 a new implementation.
1439 (Add_Interface_Tag_Components): Remove special management of
1440 synchronized interfaces.
1441 (Analyze_Interface_Declaration): Minor reformating
1442 (Build_Derived_Record_Type): Minor reformating
1443 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
1444 predefined primitive inherited from interface type because the body of
1445 internally generated predefined primitives of tagged types are generated
1446 later by Freeze_Type
1447 (Derive_Subprogram): Avoid generating an internal name if the parent
1448 subprogram overrides an interface primitive.
1449 (Derive_Subprograms): New implementation that keeps separate the
1450 management of tagged types not implementing interfaces, from tagged
1451 types that implement interfaces.
1452 (Is_Progenitor): New implementation.
1453 (Process_Full_View): Add documentation
1454 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
1455 by call to Derive_Progenitor_Subprograms.
1456
1457 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
1458 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1459 Skip_Controlling_Formals.
1460
1461 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
1462 (Check_Conventions): New implementation. Remove local subprogram
1463 Skip_Check. Remove formal Search_From of routine Check_Convention.
1464 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1465 Skip_Controlling_Formals.
1466 (New_Overloaded_Entity): Enable addition of predefined dispatching
1467 operations.
1468
1469 * sem_disp.ads
1470 (Find_Primitive_Covering_Interface): New subprogram.
1471
1472 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
1473 the task body procedure as a primitive of the corresponding tagged
1474 type.
1475 (Check_Operation_From_Private_Type): Avoid adding twice an entity
1476 to the list of primitives.
1477 (Find_Primitive_Covering_Interface): New subprogram.
1478 (Override_Dispatching_Operation): Add documentation.
1479
1480 * sem_type.adb (Covers): Minor reformatings
1481
1482 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
1483 Collect_Interfaces.
1484 Rename formal.
1485 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
1486 (Implements_Interface): New subprogram.
1487 (Is_Parent): Removed.
1488 (Primitive_Names_Match): New subprogram.
1489 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1490 (Ultimate_Alias): New subprogram.
1491
1492 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
1493 Collect_Interfaces.
1494 Remove special management for synchronized types. Rename formal. Remove
1495 internal subprograms Interface_Present_In_Parent and Add_Interface.
1496 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
1497 on non-record types by code to return false in such case.
1498 (Implements_Interface): New subprogram.
1499 (Is_Parent): Removed. No special management is now required for
1500 synchronized types covering interfaces.
1501 (Primitive_Names_Match): New subprogram.
1502 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1503 (Ultimate_Alias): New subprogram.
1504
1505 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
1506 Add internal entities associated with secondary dispatch tables to
1507 the list of tagged type primitives that are not interfaces.
1508 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
1509 (Make_Predefined_Primitive_Specs): Code reorganization to improve
1510 the management of predefined equality operator. In addition, if
1511 the type has an equality function corresponding with a primitive
1512 defined in an interface type, the inherited equality is abstract
1513 as well, and no body can be created for it.
1514
1515 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
1516 exp_util to exp_disp.
1517 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
1518 an entity corresponds with one of the predefined primitives required
1519 to implement interfaces.
1520 Update copyright notice.
1521
1522 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
1523 final check on abstract subprograms all the primitives associated with
1524 interface primitives because they must be visible in the public and
1525 private part.
1526 (Write_DT): Use Find_Dispatching_Type to locate the name of the
1527 interface type. This allows the use of this routine, for debugging
1528 purposes, when the tagged type is not fully decorated.
1529 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
1530 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
1531 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
1532 entity corresponds with one of the predefined primitives required to
1533 implement interfaces.
1534
1535 * exp_util.adb (Find_Interface_ADT): New implementation
1536 (Find_Interface): Removed.
1537
1538 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
1539 list of interfaces associated with nodes
1540 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
1541
1542 2008-05-26 Thomas Quinot <quinot@adacore.com>
1543
1544 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
1545 condition for assignment to temporary.
1546
1547 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1548
1549 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
1550 checks on the upper bound if the index type is a modular type, to
1551 prevent wrap-around computations when size is close to upper bound of
1552 type.
1553
1554 2008-05-26 Robert Dewar <dewar@adacore.com>
1555
1556 * sem_ch3.adb: Minor reformatting
1557
1558 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1559
1560 * sem_ch12.adb (Remove_Parent): Use specification of instance
1561 to retrieve generic parent,
1562 to handle properly the case where the instance is a child unit.
1563 Add guard to handle properly wrapper packages.
1564 Minor reformatting
1565
1566 2008-05-26 Thomas Quinot <quinot@adacore.com>
1567
1568 * sinfo.ads: Minor reformatting
1569
1570 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1571
1572 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
1573 Generate a tag check when the result subtype of a function, defined by
1574 an access definition, designates a specific tagged type.
1575 (Make_Tag_Check): New routine.
1576
1577 2008-05-26 Arnaud Charlet <charlet@adacore.com>
1578
1579 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
1580
1581 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1582
1583 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
1584 (builtin_decl_for): Likewise.
1585 * trans.c (gigi): Likewise.
1586 * utils.c (def_builtin_1): Fix formatting.
1587
1588 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1589
1590 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
1591 Create the statements which map a string name to protected or task
1592 entry indix.
1593
1594 * exp_ch9.adb: Add with and use clause for Stringt.
1595 Minor code reformatting.
1596 (Build_Entry_Names): New routine.
1597 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
1598 for flag Build_Entry_Names which controls the allocation of the data
1599 structure for the string names of entries.
1600
1601 * exp_ch9.ads (Build_Entry_Names): New subprogram.
1602
1603 * exp_util.adb (Entry_Names_OK): New function.
1604
1605 * exp_util.ads (Entry_Names_OK): New function.
1606
1607 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
1608 enumerations RE_Id and RE_Unit_Table.
1609
1610 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
1611 (Free_Entry_Names_Array): New routine.
1612
1613 * s-taskin.ads: Comment reformatting.
1614 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
1615 Add component Entry_Names to record Ada_Task_Control_Block.
1616 (Free_Entry_Names_Array): New routine.
1617
1618 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
1619 dynamically allocate an array
1620 of string pointers. This structure holds string entry names.
1621 (Free_Entry_Names): New routine.
1622 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
1623 (Set_Entry_Names): New routine.
1624
1625 * s-tassta.ads:
1626 (Create_Task): Add formal Build_Entry_Names. The flag is used to
1627 control the allocation of the data structure which stores entry names.
1628 (Set_Entry_Name): New routine.
1629
1630 * s-tpoben.adb:
1631 Add with and use clause for Ada.Unchecked_Conversion.
1632 (Finalize): Deallocate the entry names array.
1633 (Free_Entry_Names): New routine.
1634 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
1635 create an array of string pointers to hold the entry names.
1636 (Set_Entry_Name): New routine.
1637
1638 * s-tpoben.ads:
1639 Add field Entry_Names to record Protection_Entries.
1640 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
1641 (Set_Entry_Name): New routine.
1642
1643 2008-05-26 Vincent Celier <celier@adacore.com>
1644
1645 * prj-nmsc.adb:
1646 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
1647
1648 * prj.ads:
1649 (Project_Configuration): New component Shared_Lib_Driver
1650
1651 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1652
1653 * inline.adb:
1654 (Cleanup_Scopes): For a protected operation, transfer finalization list
1655 to protected body subprogram, to force cleanup actions when needed.
1656
1657 2008-05-26 Robert Dewar <dewar@adacore.com>
1658
1659 * sem_cat.adb: Minor reformatting
1660
1661 * gnatname.adb: Minor reformatting
1662
1663 * osint.ads: Minor reformatting
1664
1665 * s-carun8.ads: Minor reformatting
1666
1667 * g-heasor.ads: Minor comment fix (unit is now pure)
1668
1669 2008-05-26 Robert Dewar <dewar@adacore.com>
1670
1671 * exp_ch2.adb:
1672 (Expand_Current_Value): Properly type generated integer literal
1673
1674 2008-05-26 Sergey Rybin <rybin@adacore.com>
1675
1676 * gnat_ugn.texi: Add description for the new gnatcheck rule -
1677 Separate_Numeric_Error_Handlers.
1678
1679 2008-05-26 Pascal Obry <obry@adacore.com>
1680
1681 * sem_aggr.adb: Minor reformatting.
1682
1683 2008-05-26 Jose Ruiz <ruiz@adacore.com>
1684
1685 * s-osinte-aix.adb:
1686 (To_Target_Priority): Setting the time slice value to 0 or greater sets
1687 the scheduling policy to FIFO within priorities or round-robin
1688 respectively.
1689 Hence, the priority must be set in this case to the one selected by the
1690 user.
1691
1692 2008-05-26 Ed Schonberg <schonberg@adacore.com>
1693
1694 * sem_ch12.adb:
1695 (Remove_Parent): If the enclosing scope is an instance whose generic
1696 parent is declared within some parent scope of the just completed
1697 instance, make full views of the entities in that parent visible, when
1698 applicable.
1699
1700 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1701
1702 * mingw32.h (STD_MINGW): Set to true for target w64.
1703
1704 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1705
1706 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
1707 instead of TREE_STATIC on the ADDR_EXPR.
1708
1709 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
1710
1711 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
1712 (Sloc_to_locus): Do not overwrite known GCC locations when translating
1713 GNAT standard locations.
1714
1715 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1716
1717 * gigi.h (mark_visited): Declare.
1718 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
1719 only the topmost node of expressions.
1720 (elaborate_expression_1): Look deeper for read-only variables.
1721 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
1722 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
1723 (mark_visited_r): New function.
1724
1725 2008-05-23 Vincent Celier <celier@adacore.com>
1726
1727 * snames.adb: New standard name Excluded_Source_List_File.
1728
1729 * snames.ads: New standard name Excluded_Source_List_File.
1730
1731 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
1732
1733 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
1734 Get excluded sources from
1735 file indicated by attribute Excluded_Source_List_File, when present and
1736 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1737
1738 2008-05-23 Robert Dewar <dewar@adacore.com>
1739
1740 * exp_dist.adb: Minor reformatting
1741
1742 2008-05-23 Ed Schonberg <schonberg@adacore.com>
1743
1744 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1745 slice, convert it to an indexed component, which is equivalent, more
1746 efficient, and usable even if the slice itself is not addressable.
1747
1748 2008-05-23 Olivier Hainque <hainque@adacore.com>
1749
1750 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
1751 convention also allows access to named compiler built-in subprograms
1752 such as the GCC __builtin family.
1753
1754 2008-05-23 Vincent Celier <celier@adacore.com>
1755
1756 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
1757 sep. If there are several possibilities, choose the one with the
1758 longer prefix.
1759
1760 2008-05-23 Vincent Celier <celier@adacore.com>
1761
1762 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
1763 back end switches when executable specified with --GCC= is same as
1764 default, even if there are additional options.
1765
1766 * gnat_ugn.texi:
1767 Document when the back end switches from the ALI file are taken into
1768 account when gnatlink is invoked with --GCC=
1769
1770 2008-05-23 Thomas Quinot <quinot@adacore.com>
1771
1772 * s-os_lib.adb:
1773 (copy_File): Do not open destination file if source file is unreadable.
1774
1775 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1776
1777 * utils.c (handle_type_generic_attribute): Adjust to accept
1778 fixed arguments before an elipsis.
1779
1780 2008-05-21 Thomas Quinot <quinot@adacore.com>
1781
1782 * g-sothco.ads, g-sothco.adb: New files.
1783
1784 2008-05-20 Thomas Quinot <quinot@adacore.com>
1785
1786 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
1787
1788 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
1789 Add missing "with" of Ada.Unchecked_Conversion
1790
1791 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
1792 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
1793 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1794 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1795 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
1796 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
1797 Move common code out of GNAT.Sockets.Thin implementations and into
1798 Thin_Common.
1799 New constant SIZEOF_fd_set
1800 New flag Has_Sockaddr_Len
1801 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1802
1803 * g-stsifd-sockets.adb
1804 (Create): Remove call to Set_Length; use Set_Family to set the family
1805 and (on appropriate platforms) length fields in struct sockaddr.
1806
1807 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
1808 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
1809 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
1810 Move common code out of GNAT.Sockets.Thin implementations and into
1811 Thin_Common.
1812
1813 * g-socket.ads, g-socket.adb:
1814 Move common code out of GNAT.Sockets.Thin implementations and into
1815 Thin_Common.
1816 (Connect_Socket, Accept_Socket): Provide new versions of these two
1817 routines that operate with a user specified timeout.
1818 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
1819 this is now handled automatically by Set_Family on platforms that
1820 require it.
1821
1822 * gen-soccon.c:
1823 Move common code out of GNAT.Sockets.Thin implementations and into
1824 Thin_Common.
1825 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
1826 this constant to 0 (not -1) because we use it to initialize an
1827 unsigned_char value.
1828 Align values for numeric constants only.
1829 Handle the case of systems that do not support AF_INET6.
1830 New constant SIZEOF_fd_set
1831 New flag Has_Sockaddr_Len
1832 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1833
1834 * gsocket.h: New flag Has_Sockaddr_Len
1835 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
1836
1837 2008-05-20 Santiago Uruena <uruena@adacore.com>
1838
1839 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
1840
1841 2008-05-20 Arnaud Charlet <charlet@adacore.com>
1842
1843 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
1844 the underlying issue with malloc/free has been fixed. Remove associated
1845 comments.
1846 Minor reformatting.
1847 Related to PR ada/24533
1848
1849 2008-05-20 Robert Dewar <dewar@adacore.com>
1850
1851 * ali.adb: Correct casing of ASCII.NUL
1852
1853 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
1854 properly.
1855
1856 2008-05-20 Robert Dewar <dewar@adacore.com>
1857 Gary Dismukes <dismukes@adacore.com>
1858
1859 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
1860 overflow if result converted to wider integer type.
1861 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
1862 discriminated types when discriminant checks are suppressed.
1863
1864 2008-05-20 Vincent Celier <celier@adacore.com>
1865
1866 * cstand.adb (Print_Standard): Issue the correct Size clause for type
1867 Wide_Wide_Character.
1868
1869 2008-05-20 Tristan Gingold <gingold@adacore.com>
1870
1871 * decl.c: Do not emit a variable for a object that has an address
1872 representation clause whose value is known at compile time.
1873 When a variable has an address clause whose value is known at compile
1874 time, refer to this variable by using directly the address instead of
1875 dereferencing a pointer.
1876
1877 2008-05-20 Robert Dewar <dewar@adacore.com>
1878
1879 PR ada/30740
1880 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
1881 subtypes, always False for non-modular types.
1882 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
1883 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
1884 for Shared_Storage package.
1885 (Is_RACW_Stub_Type): New entity flag.
1886
1887 * exp_ch4.adb
1888 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
1889 case where we have a modular type with a non-binary modules.
1890 Comments reformattings.
1891
1892 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
1893 all types.
1894
1895 2008-05-20 Javier Miranda <miranda@adacore.com>
1896
1897 * exp_aggr.adb
1898 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
1899 tests did not covered the case in which the type of the aggregate has
1900 no progenitors but some its parents has progenitors.
1901
1902 2008-05-20 Gary Dismukes <dismukes@adacore.com>
1903 Hristian Kirtchev <kirtchev@adacore.com>
1904
1905 * exp_ch3.adb
1906 (Expand_N_Object_Declaration): Correct the condition which triggers the
1907 generation of a call to Displace when initializing a class-wide object.
1908 (Build_Dcheck_Functions): Build discriminant-checking for null variants
1909 when Frontend_Layout_On_Target is true to ensure that they're available
1910 for calling when a record variant size function is built in Layout.
1911
1912 2008-05-20 Ed Schonberg <schonberg@adacore.com>
1913
1914 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
1915 procedure for a derived type retrieve the discriminant values from the
1916 parent using the corresponding discriminant.
1917 (Expand_N_Assignment_Statement): Skip generation of implicit
1918 if-statement associated with controlled types if we are
1919 compiling with restriction No_Finalization.
1920
1921 2008-05-20 Vincent Celier <celier@adacore.com>
1922
1923 * prj.adb (Hash (Project_Id)): New function
1924 (Project_Empty): Add new component Interfaces_Defined
1925
1926 * prj.ads (Source_Data): New component Object_Linked
1927 (Language_Config): New components Object_Generated and Objects_Linked
1928 (Hash (Project_Id)): New function
1929 (Source_Data): New Boolean components In_Interfaces and
1930 Declared_In_Interfaces.
1931 (Project_Data): New Boolean component Interfaces_Defined
1932
1933 * prj-attr.adb:
1934 New project level attribute Object_Generated and Objects_Linked
1935 Add new project level attribute Interfaces
1936
1937 * prj-dect.adb: Use functions Present and No throughout
1938 (Parse_Variable_Declaration): If a string type is specified as a simple
1939 name and is not found in the current project, look for it also in the
1940 ancestors of the project.
1941
1942 * prj-makr.adb:
1943 Replace procedure Make with procedures Initialize, Process and Finalize
1944 to implement H414-023: process different directories with different
1945 patterns.
1946 Use functions Present and No throughout
1947
1948 * prj-makr.ads:
1949 Replace procedure Make with procedures Initialize, Process and Finalize
1950
1951 * prj-nmsc.adb
1952 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
1953 the language configuration.
1954 (Process_Project_Level_Array_Attributes): Process new attributes
1955 Object_Generated and Object_Linked.
1956 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
1957 False, to indicate that the erreor/warning is a continuation.
1958 (Check): Call Report_No_Sources with Contnuation = True after the first
1959 call.
1960 (Error_Msg): Process successively contnuation character and warning
1961 character.
1962 (Find_Explicit_Sources): Check that all declared sources have been found
1963 (Check_File): Indicate in hash table Source_Names when a declared source
1964 is found.
1965 (Check_File): Set Other_Part when found
1966 (Find_Explicit_Sources): In multi language mode, check if all exceptions
1967 to the naming scheme have been found. For Ada, report an error if an
1968 exception has not been found. Otherwise, disregard the exception.
1969 (Check_Interfaces): New procedure
1970 (Add_Source): When Other_Part is defined, set mutual pointers in spec
1971 and body.
1972 (Check): In multi-language mode, call Check_Interfaces
1973 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
1974 for an excluded source.
1975 (Remove_Source): A source replacing a source in the interfaces is also
1976 in the interfaces.
1977
1978 * prj-pars.adb: Use function Present
1979
1980 * prj-part.adb: Use functions Present and No throughout
1981 (Parse_Single_Project): Set the parent project for child projects
1982 (Create_Virtual_Extending_Project): Register project with no qualifier
1983 (Parse_Single_Project): Allow an abstract project to be extend several
1984 times. Do not allow an abstract project to extend a non abstract
1985 project.
1986
1987 * prj-pp.adb: Use functions Present and No throughout
1988 (Print): Take into account the full associative array attribute
1989 declarations.
1990
1991 * prj-proc.adb: Use functions Present and No throughout
1992 (Expression): Call itself with the same From_Project_Node for the
1993 default value of an external reference.
1994
1995 * prj-strt.adb: Use functions Present and No throughout
1996 (Parse_Variable_Reference): If a variable is specified as a simple name
1997 and is not found in the current project, look for it also in the
1998 ancestors of the project.
1999
2000 * prj-tree.ads, prj-tree.adb (Present): New function
2001 (No): New function
2002 Use functions Present and No throughout
2003 (Parent_Project_Of): New function
2004 (Set_Parent_Project_Of): New procedure
2005
2006 * snames.ads, snames.adb:
2007 Add new standard names Object_Generated and Objects_Linked
2008
2009 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2010
2011 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2012 and the derived type are of the same kind.
2013 (Expand_Call): Generate type conversions for actuals of
2014 record or array types when the parent and the derived types differ in
2015 size and/or packed status.
2016
2017 2008-05-20 Javier Miranda <miranda@adacore.com>
2018 Ed Schonberg <schonberg@adacore.com>
2019
2020 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2021 generating dispatch tables of locally defined tagged types statically.
2022 Remove implicit if-statement that is no longer required.
2023 (Expand_Dispatching_Call): If this is a call to an instance of the
2024 generic dispatching constructor, the type of the first argument may be
2025 a subtype of Tag, so always use the base type to recognize this case.
2026
2027 2008-05-20 Thomas Quinot <quinot@adacore.com>
2028
2029 * exp_dist.adb
2030 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2031 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2032 assigning NULL into the result, to avoid a spurious warning.
2033 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2034 is not frozen.
2035 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2036 type.
2037 (Build_From_Any_Function, Build_To_Any_Function,
2038 Build_TypeCode_Function): For a type that has user-specified stream
2039 attributes, use an opaque sequence of octets as the representation.
2040
2041 2008-05-20 Kevin Pouget <pouget@adacore.com>
2042
2043 * exp_smem.ads, exp_smem.adb: Construction of access and assign
2044 routines has been replaced by an instantiation of
2045 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2046 shared variable declaration.
2047 Calls to access and assign routines have been replaced by calls to
2048 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2049 instantiated package.
2050
2051 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2052 It identifies the new generic package added in s-shasto.
2053
2054 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2055 is instantiated for each shared passive variable. It provides
2056 supporting procedures called upon each read or write access by the
2057 expanded code.
2058
2059 * sem_attr.adb:
2060 For this runtime unit (always compiled in GNAT mode), we allow
2061 stream attributes references for limited types for the case where
2062 shared passive objects are implemented using stream attributes,
2063 which is the default in GNAT's persistent storage implementation.
2064
2065 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2066
2067 * freeze.adb
2068 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
2069 convention from its base type, do not set the type to that of integer,
2070 because it may inherit a size clause.
2071 Warn on a size clause with a size different
2072 from that of Integer, if the type has convention C.
2073
2074 2008-05-20 Vincent Celier <celier@adacore.com>
2075
2076 * gnatname.adb
2077 (Scan_Args): Rewrite to take into account new switch --and to separate
2078 arguments into sections.
2079 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
2080 section, then Finalize.
2081
2082 2008-05-20 Tristan Gingold <gingold@adacore.com>
2083
2084 * init.c: Enable stack probing on ppc-linux.
2085
2086 * tracebak.c: Add symbolic traceback for ppc-linux.
2087
2088 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
2089
2090 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2091
2092 * Makefile.in
2093 (common-tools): New rule, to avoid parallel build failure on gnat tools.
2094 Reenable parallel builds on this Makefile.
2095
2096 * Make-lang.in: Update dependencies.
2097
2098 2008-05-20 Robert Dewar <dewar@adacore.com>
2099
2100 * opt.ads (Treat_Restrictions_As_Warnings): New switch
2101
2102 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
2103 Treat_Restrictions_As_Warnings.
2104
2105 * switch-c.adb: Recognize new switch -gnatr
2106
2107 * usage.adb: Add line for -gnatr
2108
2109 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2110
2111 * par-ch3.adb
2112 (P_Access_Definition): Change the error message when parsing "access
2113 all" in Ada 95 mode. The message no longer forces the user to recompile
2114 in 05 mode only to discover that anonymous access types are not allowed
2115 to have "all".
2116
2117 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2118
2119 * par-ch9.adb
2120 (P_Protected): Update the error message on missing "-gnat05" switch when
2121 using interfaces in conjunction with protected types. Remove the
2122 incorrect error message associated with the presence of "private" after
2123 a "with".
2124
2125 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2126
2127 * sem_aggr.adb: Update comments.
2128 Improve previous change for PR ada/17985
2129
2130 2008-05-20 Thomas Quinot <quinot@adacore.com>
2131
2132 * sem_cat.adb
2133 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
2134 the visible part of the spec of a remote types unit.
2135 (Validate_Remote_Access_Object_Type_Declaration):
2136 New local subprogram Is_Valid_Remote_Object_Type, replaces
2137 Is_Recursively_Limited_Private.
2138 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
2139 non-controlling formals (and the return type, even though this is not
2140 explicit in the standard) must support external streaming.
2141 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
2142 as above for of RAS types and RCI subprograms. (The return type is not
2143 checked yet).
2144 Update comments related to RACWs designating limited interfaces per
2145 ARG ruling on AI05-060.
2146
2147 * sem_util.ads, sem_util.adb
2148 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
2149 Is_Remote_Call_Interface to identify RACW types in a stable and
2150 consistent way. We used to rely in this predicate on the privateness of
2151 the designated type and its ancestors, but depending on the currently
2152 visible private parts, this caused false negatives. We now uniformly
2153 rely on checks made at the point where the RACW type is declared.
2154 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
2155
2156 2008-05-20 Javier Miranda <miranda@adacore.com>
2157 Ed Schonberg <schonberg@adacore.com>
2158 Hristian Kirtchev <kirtchev@adacore.com>
2159
2160 * sem_ch3.adb
2161 (Analyze_Object_Declaration): Fix over-conservative condition
2162 restricting use of predefined assignment with tagged types that have
2163 convention CPP.
2164 (Analyze_Object_Declaration): Relax the check regarding deferred
2165 constants declared in scopes other than packages since they can be
2166 completed with pragma Import.
2167 Add missing escaping of all-caps word 'CPP' in error messages.
2168 (Build_Discriminated_Subtype): Do not inherit representation clauses
2169 from parent type if subtype already carries them, because they are
2170 inherited earlier during derivation and already include those that may
2171 come from a partial view.
2172
2173 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
2174 Check the declarations of a subprogram body for proper deferred
2175 constant completion.
2176
2177 * sem_ch7.ads, sem_ch7.adb
2178 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
2179
2180 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2181 Thomas Quinot <quinot@adacore.com>
2182
2183 * sem_ch4.adb
2184 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
2185 F is a parameterless function that returns an array, and S is a subtype
2186 mark.
2187 (Analyze_Call): Insert dereference when the prefix is a parameterless
2188 function that returns an access to subprogram and the call has
2189 parameters.
2190 Reject a non-overloaded call whose name resolves to denote
2191 a primitive operation of the stub type generated to support a remote
2192 access-to-class-wide type.
2193
2194 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2195
2196 * sem_ch8.adb
2197 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
2198 when there is a use clause for the same entity in the context.
2199 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
2200 created for a stream attribute of an abstract type or interface type.
2201
2202 2008-05-20 Thomas Quinot <quinot@adacore.com>
2203
2204 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
2205 subprogram.
2206
2207 * sem_type.adb
2208 (Add_One_Interp): Ignore any interpretation that is a primitive
2209 operation of an RACW stub type (these primitives are only executed
2210 through dispatching, never through static calls).
2211 (Collect_Interps): When only one interpretation has been found, set N's
2212 Entity and Etype to that interpretation, otherwise Entity and Etype may
2213 still refer to an interpretation that was ignored by Add_One_Interp,
2214 in which case would end up with being marked as not overloaded but with
2215 an Entity attribute not pointing to its (unique) correct interpretation.
2216
2217 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2218
2219 * sem_eval.adb
2220 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
2221 denotes the whole array of its prefix.
2222
2223 2008-05-20 Robert Dewar <dewar@adacore.com>
2224
2225 * sem_res.adb (Resolve_Op_Not): Warn on double negation
2226
2227 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2228
2229 * sprint.adb
2230 (Print_Itype): Do not modify the sloc of the component type of a
2231 (packed) array itype, because it is an unrelated type whose source
2232 location is independent of the point of creation of the itype itself.
2233
2234 2008-05-20 Thomas Quinot <quinot@adacore.com>
2235
2236 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
2237 Append.
2238
2239 2008-05-20 Robert Dewar <dewar@adacore.com>
2240 Vincent Celier <celier@adacore.com>
2241
2242 * vms_data.ads: Add entry for -gnatr
2243 Put GNAT SYNC section in proper alpha order
2244 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
2245
2246 * gnat_ugn.texi: Add documentation for new gnatname switch --and
2247 Update the style checks section
2248 Add documentation of -gnatr
2249 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
2250 subsection the explanation how compiler checks should be disabled for
2251 gnatcheck.
2252 Update the list of Ada 95 reserved words used by in the project language
2253 Add documentation for project qualifiers.
2254 Document that abstract projects may be extended by different projects in
2255 the same project tree.
2256 Add documentation for gnatmake switch -d
2257
2258 * ug_words: Add -gnatyy VMS equivalence string.
2259 Add entry for -gnatr
2260
2261 2008-05-20 Bob Duff <duff@adacore.com>
2262
2263 * a-rttiev.adb
2264 (Set_Handler): Remove code from both of these that implements
2265 RM-D.15(15/2), because it causes a race condition and potential
2266 deadlock.
2267 (Process_Queued_Events): Add comment explaining "exception when others
2268 => null". Add clarifying ".all", even though implicit .all is legal
2269 here.
2270
2271 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2272
2273 * s-winext.ads: Replace representation clause by pragma Pack. Gives
2274 equivalent representation, but has the advantage of allowing
2275 compilation of this file under 64 bits platforms.
2276
2277 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
2278
2279 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
2280
2281 * adaint.c:
2282 Don't define dummy implementation of convert_addresses on ppc-linux.
2283
2284 2008-05-20 Ed Schonberg <schonberg@adacore.com>
2285
2286 * exp_ch7.adb
2287 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
2288 if expression is aggregate component.
2289
2290 2008-05-20 Robert Dewar <dewar@adacore.com>
2291
2292 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
2293 sem_ch12.adb: Update comments. Minor reformatting.
2294
2295 * exp_ch2.adb: Typo
2296
2297 * s-unstyp.ads: Fixed some typos in comments.
2298
2299 2008-05-20 Arnaud Charlet <charlet@adacore.com>
2300
2301 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
2302 type/constant.
2303
2304 * g-socthi-vxworks.ads: Update to latest socket changes.
2305
2306 * a-caldel-vms.adb: Resync with a-caldel spec.
2307
2308 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
2309 Update comments.
2310
2311 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2312
2313 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
2314 for dummy types pointed to by the converted pointer types.
2315
2316 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
2317
2318 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
2319 of records and unions.
2320 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
2321
2322 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
2323 Robert Dewar <dewar@adacore.com>
2324
2325 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
2326 restrictions to the prefix of 'Old.
2327 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
2328 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
2329 variables.
2330
2331 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
2332
2333 PR ada/24880
2334 PR ada/26635
2335 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
2336 expression to an integral type with lower precision, use NOP_EXPR
2337 directly in a couple of special cases.
2338
2339 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
2340 Ed Schonberg <schonberg@adacore.com>
2341
2342 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
2343 constraint expressions.
2344
2345 2008-05-12 Tomas Bily <tbily@suse.cz>
2346
2347 * utils2.c (known_alignment, contains_save_expr_p)
2348 (gnat_mark_addressable): Use CASE_CONVERT.
2349 * decl.c (annotate_value): Likewise.
2350 * trans.c (maybe_stabilize_reference): Likewise.
2351 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
2352 * utils.c (rest_of_record_type_compilation): Likewise.
2353 * trans.c (protect_multiple_eval, Attribute_to_gnu)
2354 (protect_multiple_eval): Likewise.
2355
2356 2008-05-08 Andreas Schwab <schwab@suse.de>
2357
2358 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
2359 DECL_IS_PURE to DECL_PURE_P.
2360
2361 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
2362
2363 * decl.c (maybe_pad_type): Add ??? comment.
2364
2365 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2366
2367 * decl.c (components_to_record): Zero the alignment of the qualified
2368 union built for the variant part upon creating it.
2369
2370 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2371
2372 * decl.c (maybe_pad_type): Try to get a form of the type with integral
2373 mode even if the alignment is not a factor of the original size. But
2374 make sure to create the inner field with the original size. Reorder.
2375 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
2376 record as always addressable.
2377 * utils.c (convert): Deal specially with conversions between original
2378 and packable versions of a record type.
2379 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
2380 recognizing an assignment between padded objects.
2381
2382 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
2383
2384 * decl.c (make_packable_type): Resize the last component to its RM size
2385 only if it is of an aggregate type.
2386 * trans.c (call_to_gnu): Fix nit in comment.
2387 (gnat_to_gnu): Likewise.
2388
2389 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
2390
2391 * Makefile.in: Adapt sh4-linux target.
2392
2393 2008-04-29 Ed Schonberg <schonberg@adacore.com>
2394
2395 PR ada/35792
2396 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
2397 tagged type by an untagged protected or task type.
2398
2399 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
2400 Tristan Gingold <gingold@adacore.com>
2401
2402 PR ada/36007
2403 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
2404 of aliased objects with an unconstrained nominal subtype.
2405 Cap the promotion to the effective alignment of the word mode.
2406
2407 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2408
2409 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
2410 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
2411 Use '&&' instead of ';'.
2412
2413 2008-04-24 Olivier Hainque <hainque@adacore.com>
2414
2415 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
2416 doesn't require signed arithmetic anymore.
2417
2418 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
2419
2420 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
2421 (call_to_gnu): Don't set TREE_INVARIANT.
2422 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
2423
2424 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
2425
2426 * s-osinte-rtems.adb: Add sigalstack function.
2427 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
2428 function. Add Alternate_Stack and Alternate_Stack_Size.
2429 Add missing process_shared field to pthread_condattr_t
2430 and change ss_low_priority to int from timespec.
2431
2432 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
2433
2434 * i-forbla.adb: Link against -llapack and -lblas by default
2435 instead of the private -lgnalasup.
2436
2437 2008-04-21 Olivier Hainque <hainque@adacore.com>
2438
2439 Access to most C builtins from Ada
2440 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
2441 (handle_pure_attribute, handle_novops_attribute,
2442 handle_nonnull_attribute, handle_sentinel_attribute,
2443 handle_noreturn_attribute, handle_malloc_attribute,
2444 handle_type_generic_attribute): New attribute handlers, from C fe.
2445 (gnat_internal_attribute_table): Map the new handlers.
2446 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
2447 (init_gigi_decls): ... here.
2448 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
2449 Move to a section dedicated to builtins processing.
2450 (build_void_list_node, builtin_type_for_size): New functions.
2451 (def_fn_type, get_nonnull_operand): Likewise.
2452 (install_builtin_elementary_type, install_builtin_function_types,
2453 install_builtin_attributes): Likewise.
2454 (fake_attribute_handler): Fake handler for attributes we don't
2455 support in Ada.
2456 (def_builtin_1): New function, worker for DEF_BUILTIN.
2457 (install_builtin_functions): New function.
2458 (gnat_install_builtins): Move to the builtins processing section.
2459 Now calling the newly introduced installers.
2460
2461 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2462
2463 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
2464 constant objects, but not exceptions.
2465 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
2466 compatibility test.
2467 * utils.c (create_var_decl_1): Likewise.
2468 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
2469 the type when copying to padded object and the source is a constructor.
2470
2471 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2472
2473 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
2474 alignment, reset it to zero if it would end up not being greater
2475 than that of the type.
2476
2477 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2478
2479 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
2480 the padded type has a variable size.
2481
2482 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2483
2484 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
2485 target pointer mechanism as soon as the size is not constant.
2486
2487 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2488
2489 * gigi.h (create_var_decl_1): Declare.
2490 (create_var_decl): Turn into a macro invoking create_var_decl_1.
2491 (create_true_var_decl): Likewise.
2492 * utils.c (create_var_decl_1): Make global and reorder parameters.
2493 (create_var_decl): Delete.
2494 (create_true_var_decl): Likewise.
2495
2496 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
2497
2498 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
2499 objects by default.
2500 * fe.h (Debug_Flag_Dot_A): Delete.
2501 * debug.adb (-gnatd.a): Update documentation.
2502
2503 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
2504
2505 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
2506 "not null" parameter.
2507
2508 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
2509
2510 * g-socket.adb: Add a message "IPv6 not supported" to the
2511 Socket_Error exception.
2512
2513 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
2514
2515 PR ada/29015
2516 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
2517 the type is known instead of the underlying type.
2518
2519 2008-04-15 Ed Schonberg <schonberg@adacore.com>
2520
2521 PR ada/22387
2522 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2523 procedure for a derived type retrieve the discriminant values from
2524 the parent using the corresponding discriminant.
2525
2526 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
2527 Gary Dismukes <dismukes@adacore.com>
2528
2529 PR ada/28733
2530 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
2531 which is not an entity (and hence not a package).
2532 (End_Use_Package): Ditto.
2533
2534 2008-04-15 Ed Schonberg <schonberg@adacore.com>
2535
2536 PR ada/16086
2537 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
2538 protected operation that matches the signature, not only an entry, a
2539 regular subprogram or a literal.
2540
2541 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2542
2543 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
2544 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
2545 if a size or alignment is specified. Do not take into account
2546 alignment promotions for the computation of the object's size.
2547 <type>: Call maybe_pad_type only if a size or alignment is specified.
2548 (maybe_pad_type): Really reuse the RM_Size of the original type if
2549 requested.
2550 * trans.c (Attribute_to_gnu): Fix a couple of nits.
2551 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
2552 statements. Use the padded view of the type when copying between
2553 padded objects of the same underlying type.
2554
2555 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2556
2557 * vms_data.ads: Fix typo in constant.
2558 * gen-soccon.c: Fix typo in error string.
2559 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
2560 Fix typos.
2561 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
2562 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
2563 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
2564 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
2565 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
2566 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
2567 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
2568 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
2569 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
2570 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
2571 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
2572 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
2573 sinfo.ads: Fix typos in comments.
2574
2575 2008-04-14 Robert Dewar <dewar@adacore.com>
2576
2577 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
2578 to every non-object and change error message.
2579
2580 2008-04-14 Robert Dewar <dewar@adacore.com>
2581
2582 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
2583 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
2584 directly.
2585
2586 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2587
2588 PR ada/18680
2589 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
2590 apply pragma Linker_Section on type.
2591
2592 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2593
2594 PR ada/16098
2595 * sem_prag.adb (Error_Pragma_Ref): New.
2596 (Process_Convention): Specialized message for non-local
2597 subprogram renaming. Detect the problem in homonyms as well.
2598
2599 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2600
2601 PR ada/15915
2602 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
2603 * sem_ch12.adb (Instantiate_Object): Use it.
2604 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
2605 storage pool denotes a variable as per RM 13.11(15).
2606
2607 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2608
2609 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
2610 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
2611
2612 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
2613
2614 PR ada/20822
2615 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
2616 line endings even on non-Unix platforms.
2617
2618 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
2619
2620 PR ada/35050
2621 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
2622 renaming information.
2623
2624 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
2625
2626 PR ada/17985
2627 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
2628 itself.
2629
2630 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2631
2632 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
2633 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
2634 snames.ads, sprint.adb, stand.ads, stringt.ads,
2635 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
2636 switch.ads, sysdep.c, table.adb, table.ads,
2637 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
2638 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
2639 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
2640 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
2641 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
2642 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
2643 Fix comment typos.
2644
2645 * sem_ch10.adb, sem_ch10.ads,
2646 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
2647 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2648 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2649 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
2650 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
2651 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
2652 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
2653 sem_warn.ads: Fix comment typos.
2654
2655 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
2656 s-soflin.ads, s-stalib.ads, s-stausa.adb,
2657 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
2658 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
2659 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
2660 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2661 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
2662 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
2663 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
2664 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
2665 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
2666 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
2667 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
2668 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
2669 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
2670 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
2671 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
2672 sem_cat.adb, sem_cat.ads: Fix comment typos.
2673
2674 2008-04-12 Joel Sherrill <joel@oarcorp.com>
2675
2676 PR ada/35825
2677 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
2678
2679 2008-04-12 Arnaud Charlet <charlet@adacore.com>
2680
2681 * s-linux-hppa.ads: Fix syntax errors.
2682
2683 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2684
2685 * gnat_ugn.texi: Fix typos.
2686 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
2687 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
2688 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
2689 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
2690 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
2691 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
2692 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2693 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
2694 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
2695 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
2696 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
2697 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
2698 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
2699 s-osinte-darwin.ads, s-osinte-freebsd.ads,
2700 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
2701 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
2702 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
2703 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
2704 s-parame-hpux.ads, s-parame-vms-alpha.ads,
2705 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
2706 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
2707 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
2708 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
2709 s-rident.ads: Fix comment typos.
2710
2711 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
2712
2713 PR ada/28305
2714 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
2715 environment if generic instance is a top-level one.
2716
2717 2008-04-09 Doug Rupp <rupp@adacore.com>
2718
2719 * decl.c (validate_size): Set minimum size for fat pointers same as
2720 access types. Code clean ups.
2721
2722 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
2723 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
2724
2725 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
2726
2727 * s-crtl.ads (malloc32) New function, alias for malloc
2728 (realloc32) New function, alias for realloc
2729
2730 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2731
2732 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2733 allocator size is 32 and default pointer size is 64.
2734 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2735 lhs type if smaller, whatever the modes.
2736
2737 * gigi.h (malloc32_decl): New macro definition
2738
2739 * utils.c (init_gigi_decls): New malloc32_decl
2740 Various code clean ups.
2741
2742 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2743 Task_Address vice System.Address.
2744
2745 * s-taspri-vms.ads: Import System.Aux_DEC
2746 (Task_Address): New subtype of System.Aux_DEC.Short_Address
2747 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2748
2749 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2750 Task_Address vice System.Address.
2751
2752 * s-inmaop-vms.adb: Import System.Task_Primitives
2753 (To_Address): Unchecked convert to Task_Address vice System.Address
2754
2755 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
2756 expires now.
2757 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
2758 (To_Address) Unchecked convert to Task_Address vice System.Address
2759
2760 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
2761
2762 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
2763
2764 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2765
2766 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
2767 (fdesc_type_node): Define.
2768 (null_fdesc_node): Likewise.
2769 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
2770 uses descriptors for vtables and the type comes from a dispatch table,
2771 return the descriptor type.
2772 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
2773 uses descriptors for vtables and the type comes from a dispatch table,
2774 build a descriptor in the static case and copy the existing one in the
2775 non-static case.
2776 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
2777 the type is a pointer-to-subprogram coming from a dispatch table,
2778 return the null descriptor.
2779 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
2780 vtables, the source type is the descriptor type and the target type
2781 is a pointer type, first build the pointer.
2782 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
2783 build the descriptor type and the null descriptor.
2784
2785 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2786
2787 * decl.c (prepend_attributes): Fix typo.
2788 * trans.c (Pragma_to_gnu): Likewise.
2789 * utils.c (gnat_genericize): Likewise.
2790
2791 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2792 Richard Kenner <kenner@adacore.com>
2793
2794 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
2795 * decl.c (gnat_to_gnu_entity): Adjust for above change.
2796 <E_Record_Type>: Try to get a better form of the component for
2797 packing, even if it has an integral mode.
2798 <E_Record_Subtype>: Likewise.
2799 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
2800 exception suppressing the final conversion between record types.
2801
2802 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2803
2804 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
2805 alignment for space, promote the alignment of non-scalar variables with
2806 no size and alignment.
2807 * gigi.h (gnat_types_compatible_p): Declare.
2808 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
2809 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
2810 * utils.c (gnat_types_compatible_p) : New predicate.
2811 (convert): Use it throughout to test for cases where a mere view
2812 conversion is sufficient.
2813 * utils2.c (build_binary_op): Minor tweaks.
2814 (build_unary_op): Likewise.
2815
2816 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2817
2818 * decl.c (adjust_packed): Expand comment.
2819
2820 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2821
2822 * s-tasuti.ads: Use Task_Address instead of System.Address.
2823
2824 * makeutl.adb (Path_Or_File_Name): New function
2825
2826 * nlists.ads, itypes.ads: Update comments.
2827
2828 * s-crtl.ads (malloc32, realloc32): New functions.
2829
2830 * s-auxdec.ads (Short_Address_Size): New constant.
2831
2832 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
2833
2834 * s-ststop.ads, s-ststop.adb: New file.
2835
2836 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
2837 Minor reformatting.
2838
2839 2008-04-08 Pascal Obry <obry@adacore.com>
2840
2841 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
2842 (Stop_Bits_Number): New type.
2843 (Parity_Check): Likewise.
2844 (Set): Add parameter to set the number of stop bits and
2845 the parity. Parameter timeout is now a duration instead
2846 of a plain integer.
2847
2848 * g-sercom-linux.adb:
2849 Implement the stop bits and parity support for GNU/Linux.
2850 Fix handling of timeout, it must be given in tenth of seconds.
2851
2852 * g-sercom-mingw.adb:
2853 Implement the stop bits and parity support for Windows.
2854 Use new s-win32.ads unit instead of declaring Win32 services
2855 directly into this body.
2856 Update handling of timeout as now a duration.
2857
2858 * s-win32.ads, s-winext.ads: New files.
2859
2860 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
2861 Arnaud Charlet <charlet@adacore.com>
2862
2863 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
2864
2865 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
2866 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
2867
2868 * s-osinte-lynxos-3.ads,
2869 (Alternate_Stack): Remove when not needed. Simplify declaration
2870 otherwise.
2871 (Alternate_Stack_Size): New constant.
2872
2873 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
2874 'Unrestricted_Access.
2875
2876 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
2877 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
2878 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
2879 s-osinte-solaris.ads, s-osinte-vms.ads
2880 (SA_ONSTACK): New constant.
2881 (stack_t): New record type.
2882 (sigaltstack): New imported function.
2883 (Alternate_Stack): New imported variable.
2884 (Alternate_Stack_Size): New constant.
2885
2886 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
2887
2888 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
2889 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
2890 s-taspri-vms.ads (Task_Address): New subtype of System.Address
2891 (Task_Address_Size): New constant size of System.Address
2892 (Alternate_Stack_Size): New constant.
2893
2894 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
2895 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
2896 Establish the alternate stack if the platform makes use of n alternate
2897 signal stack for stack overflows.
2898 (Create_Task): Take into account the alternate stack in the stack size.
2899 (Initialize): Save the address of the alternate stack into the ATCB for
2900 the environment task.
2901 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
2902
2903 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
2904
2905 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
2906
2907 * s-intman-posix.adb:
2908 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
2909 alternate signal stack for stack overflows.
2910
2911 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
2912 x86-64, adjust the saved value of the stack pointer if the signal was
2913 raised by a stack checking probe.
2914 (HP-UX section): Use global __gnat_alternate_stack as signal handler
2915 stack and only for SIGSEGV.
2916 (Linux section): Likewise on x86 and x86-64.
2917 [VxWorks section]
2918 (__gnat_map_signal): Now static.
2919 (__gnat_error_handler): Not static any more.
2920 (__gnat_adjust_context_for_raise): New function. Signal context
2921 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
2922 propagation circuitry.
2923 (__gnat_error_handler): Second argument of a sigaction handler is a
2924 pointer, not an int, and is unused.
2925 Adjust signal context before mapping to exception.
2926 Install signal handlers for LynxOS case.
2927
2928 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
2929 (Task_Id): Set size to Task_Address_Size
2930 (To_Task_id): Unchecked convert from Task_Address vice System.Address
2931 (To_Address): Unchecked convert to Task_Address vice System.Address
2932
2933 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
2934 address into the ATCB if the platform makes use of an alternate signal
2935 stack for stack overflows.
2936 (Free_Task): Add call to Finalize_Attributes_Link.
2937 Add argument Relative_Deadline to pass the value specified for
2938 the task. This is not yet used for any target.
2939
2940 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
2941 the value specified for the task.
2942
2943 2008-04-08 Arnaud Charlet <charlet@adacore.com>
2944
2945 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
2946 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
2947 s-vxwext-rtp.adb): New files.
2948
2949 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
2950 Minor updates to accomodate changes above.
2951
2952 2008-04-08 Pascal Obry <obry@adacore.com>
2953
2954 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
2955 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
2956 Use new s-win32.ads unit instead of declaration
2957 from s-osinte-mingw.ads.
2958
2959 * s-osinte-mingw.ads:
2960 Move all non tasking based interface to s-win32.ads.
2961
2962 * s-osprim-mingw.adb:
2963 Remove duplicated declarations and use s-win32.ads
2964 unit instead.
2965
2966 2008-04-08 Vincent Celier <celier@adacore.com>
2967 Arnaud Charlet <charlet@adacore.com>
2968
2969 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
2970 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
2971 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
2972 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
2973 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
2974
2975 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
2976 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
2977 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
2978 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
2979 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
2980 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
2981 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
2982 mlib-tgt-specific-mingw.adb: New names.
2983
2984 * Makefile.in:
2985 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
2986 Get rid of gnatbl.
2987 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
2988 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
2989 Minor updates for VMS
2990
2991 * gnatbl.c: Removed.
2992
2993 2008-04-08 Thomas Quinot <quinot@adacore.com>
2994
2995 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
2996 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
2997 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
2998 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
2999 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3000 ASCII.NUL throughout.
3001
3002 2008-04-08 Arnaud Charlet <charlet@adacore.com>
3003 Matthew Heaney <heaney@adacore.com>
3004
3005 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3006 renaming.
3007
3008 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
3009 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3010 to convention for non-RM specs.
3011 Add descriptive header, and documented each operation
3012 document each operation
3013
3014 2008-04-08 Robert Dewar <dewar@adacore.com>
3015 Bob Duff <duff@adacore.com>
3016 Gary Dismukes <dismukes@adacore.com>
3017 Ed Schonberg <schonberg@adacore.com>
3018
3019 * alloc.ads: Add entries for Obsolescent_Warnings table
3020
3021 * einfo.ads, einfo.adb: Minor reformatting.
3022 (Is_Discriminal): New subprogram.
3023 (Is_Prival): New subprogram.
3024 (Is_Protected_Component): New subprogram.
3025 (Is_Protected_Private): Removed.
3026 (Object_Ref, Set_Object_Ref): Removed.
3027 (Prival, Set_Prival): Change assertion.
3028 (Privals_Chain, Set_Privals_Chain): Removed.
3029 (Prival_Link, Set_Prival_Link): New subprogram.
3030 (Protected_Operation, Set_Protected_Operation): Removed.
3031 (Protection_Object, Set_Protection_Object): New subprogram.
3032 (Write_Field17_Name): Remove case for Object_Ref.
3033 (Write_Field20_Name): Add case for Prival_Link.
3034 (Write_Field22_Name): Remove case for Protected_Operation,
3035 Privals_Chain.
3036 Add case for Protection_Object.
3037 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3038 so clients
3039 (Overlays_Constant): New flag
3040 (Is_Constant_Object): New predicate
3041 (Is_Standard_Character_Type): New predicate
3042 (Optimize_Alignment_Space): New flag
3043 (Optimize_Alignment_Time): New flag
3044 (Has_Postconditions): New flag
3045 (Obsolescent_Warrning): Field removed
3046 (Spec_PPC_List): New field
3047 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3048 subprograms to get and set the relative deadline associated to a task.
3049
3050 * exp_attr.adb (May_Be_External_Call): Account for the case where the
3051 Access attribute is part of a named parameter association.
3052 (Expand_Access_To_Protected_Op): Test for the attribute occurring
3053 within an init proc and use that directly as the scope rather than
3054 traversing up to the protected operation's enclosing scope. Only apply
3055 assertion on Is_Open_Scopes in the case the scope traversal is done.
3056 For the init proc case use the address of the first formal (_init) as
3057 the protected object reference.
3058 Implement Invalid_Value attribute
3059 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3060 contents of the dispatch table there is no need to duplicate the
3061 itypes associated with record types (i.e. the implicit full view
3062 of private types).
3063 Implement Enum_Val attribute
3064 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3065 within _Postconditions procedure
3066 (Expand_N_Attribute_Reference, case Result): Implement new attribute
3067
3068 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
3069 a return statement calls a function that is not available in
3070 configurable runtime.
3071 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
3072 (Expand_Non_Function_Return): Generate call to _Postconditions proc
3073 (Expand_Simple_Function_Return): Ditto
3074
3075 * frontend.adb: Add call to Sem_Aux.Initialize
3076
3077 * sem_aux.ads, sem_aux.adb: New file.
3078
3079 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
3080 Add new Pragma_Relative_Deadline.
3081 Add support for pragmas Check and Check_Policy
3082
3083 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
3084 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
3085 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
3086 missing check because they are not allowed in CPP tagged types.
3087 Add Sure parameter to Note_Possible_Modification calls
3088 Add implementation of Invalid_Value attribute
3089 Implement new attribute Has_Tagged_Values
3090 Implement Enum_Val attribute
3091 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
3092 generated attributes.
3093 (Analyze_Attribute, case Result): If prefix of the attribute is
3094 overloaded, it always resolves to the enclosing function.
3095 (Analyze_Attribute, case Result): Properly deal with analysis when
3096 Postconditions are not active.
3097 (Resolve_Attribute, case Result): Properly deal with appearence during
3098 preanalysis in spec.
3099 Add processing for attribute Result
3100
3101 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
3102 for operators.
3103 (Analyze_Subprogram_Body): Install private_with_clauses when the body
3104 acts as a spec.
3105 (Check_Inline_Pragma): recognize an inline pragma that appears within
3106 the subprogram body to which it applies.
3107 (Analyze_Function_Return): Check that type of the expression of a return
3108 statement in a function with a class-wide result is not declared at a
3109 deeper level than the function.
3110 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
3111 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
3112 user- defined operators.
3113 (Install_Formals): Moved to spec to allow use from Sem_Prag for
3114 analysis of precondition/postcondition pragmas.
3115 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
3116 Last_Formal, along with lots of comments on what this is about
3117 (Analyze_Subprogram_Body): Fix case where we move entities from the
3118 spec to the body when there are no body entities (now possible with
3119 precondition and postcondition pragmas).
3120 (Process_PPCs): New procedure
3121 (Analyze_Subprogram_Body): Add call to Process_PPCs
3122
3123 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
3124 clause.
3125 (Pop_Scope): Restore Check_Policy_List on scope exit
3126 (Push_Scope): Save Check_Policy_List on scope entry
3127 Change name In_Default_Expression => In_Spec_Expression
3128 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3129 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3130 (Analyze_Object_Renaming): Allow 'Reference as object
3131 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
3132 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
3133 of restriction identifier.
3134 Add Sure parameter to Note_Possible_Modication calls
3135
3136 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
3137 Don't check for primitive operations when calling Rep_Item_Too_Late.
3138 (Process_Import_Or_Interface): Do not place flag on formal
3139 subprograms.
3140 (Analyze_Pragma, case Export): If the entity is a deferred constant,
3141 propagate information to full view, which is the one elaborated by the
3142 back-end.
3143 (Make_Inline): the pragma is effective if it applies to an internally
3144 generated subprogram declaration for a body that carries the pragma.
3145 (Analyze_Pragma, case Optimize_Alignment): Set new flag
3146 Optimize_Alignment_Local.
3147 (Analyze_PPC_In_Decl_Part): New procedure
3148 (Get_Pragma_Arg): Moved to outer level
3149 (Check_Precondition_Postcondition): Change to allow new visibility
3150 rules for package spec
3151 (Analyze_Pragma, case Check_Policy): Change placement rules to be
3152 same as pragma Suppress/Unsuppress.
3153 Change name In_Default_Expression => In_Spec_Expression
3154 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3155 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3156 (Check_Precondition_Postcondition): Do proper visibility preanalysis
3157 for the case of these pragmas appearing in the spec.
3158 (Check_Enabled): New function
3159 (Initialize): New procedure
3160 (Tree_Read): New procedure
3161 (Tree_Write): New procedure
3162 (Check_Precondition_Postcondition): New procedure
3163 Implement pragmas Check and Check_Policy
3164 Merge Assert processing with Check
3165
3166 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
3167 New warning flag -gnatw.e
3168
3169 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
3170 returning whether a task (or main procedure) has a pragma
3171 Relative_Deadline.
3172 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
3173 (or main procedure) has a pragma Relative_Deadline.
3174 Add Next_Pragma field to N_Pragma node
3175 (PPC_Enabled): New flag
3176 (Next_Pragma): Now used for Pre/Postcondition processing
3177
3178 * snames.h, snames.ads, snames.adb: New standard name
3179 Inherit_Source_Path
3180 Add entry for 'Invalid_Value attribute
3181 Add entry for new attribute Has_Tagged_Values
3182 Add entry for Enum_Val attribute
3183 Add new standard names Aggregate, Configuration and Library.
3184 Add _Postconditions
3185 Add _Result
3186 Add Pragma_Precondition
3187 Add Pragma_Postcondition
3188 Add Attribute_Result
3189 New standard name Archive_Builder_Append_Option
3190 (Preset_Names): Add _relative_deadline and relative_deadline definitions
3191 There was also a missing non_preemptive_within_priorities.
3192 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
3193 Relative_Deadline.
3194 Add support for pragmas Check and Check_Policy
3195
3196 * tree_gen.adb: Call Sem_Aux.Tree_Write
3197
3198 * tree_in.adb: Call Sem_Aux.Tree_Read
3199
3200 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
3201 sequence
3202
3203 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
3204 sequence
3205
3206 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
3207 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
3208 Relative_Deadline.
3209 (Expand_Pragma_Check): New procedure
3210
3211 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
3212 buffer.
3213
3214 * sinfo.adb (PPC_Enabled): New flag
3215
3216 2008-04-08 Robert Dewar <dewar@adacore.com>
3217 Gary Dismukes <dismukes@adacore.com>
3218 Javier Miranda <miranda@adacore.com>
3219 Ed Schonberg <schonberg@adacore.com>
3220
3221 * fe.h: Remove global Optimize_Alignment flag, no longer used
3222
3223 * layout.adb: Test Optimize_Alignment flags rather than global switch
3224
3225 * lib.ads, lib.adb: New OA_Setting field in library record
3226
3227 * lib-load.adb: New OA_Setting field in library record
3228
3229 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
3230 units mentioned in limited_with_ clauses in the ali file, with an
3231 'Y' marker.
3232 New Ox fields in U line
3233
3234 * opt.adb: New flag Optimize_Alignment_Local
3235 (Check_Policy_List[_Config]): New flags
3236
3237 * opt.ads (Invalid_Value_Used): New flag
3238 New switch Optimize_Alignment_Local
3239 (Warn_On_Parameter_Order): New flag
3240 (Check_Policy_List[_Config]): New flags
3241
3242 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
3243 limited_with clauses.
3244 New data structures for Optimize_Alignment
3245
3246 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
3247 New procedure
3248 (Check_Consistent_Optimize_Alignment): Rework for new structure
3249 (Check_Consistent_Restrictions): Fix incorrect error message
3250
3251 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
3252 created class-wide type (to the Parent field of the specific type).
3253 (Install_Siblings): Handle properly private_with_clauses on subprogram
3254 bodies and on generic units.
3255 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
3256 illegal limited_with_clause that names a non-existent package.
3257 (Check_Body_Required): Determine whether a unit named a limited_with
3258 clause needs a body.
3259 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
3260 Capture Optimize_Alignment settings to set new OA_Setting field in
3261 library record.
3262 (Build_Limited_Views): Include task and protected type declarations.
3263
3264 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
3265 case of a possible constant redeclaration where the current object is
3266 an entry index constant.
3267 (Analyze_Object_Declaration): Generate an error in case of CPP
3268 class-wide object initialization.
3269 (Analyze_Object_Declaration): Add extra information on warnings for
3270 declaration of unconstrained objects.
3271 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
3272 conflicts with the setting of Stored_Constraint in the case where the
3273 access type entity has already been created as an E_Incomplete_Type due
3274 to a limited with clause.
3275 Use new Is_Standard_Character_Type predicate
3276 (Analyze_Object_Declaration): Apply access_constant check only after
3277 expression has been resolved, given that it may be overloaded with
3278 several access types.
3279 (Constant_Redeclaration): Additional legality checks for deferred
3280 constant declarations tha involve anonymous access types and/or null
3281 exclusion indicators.
3282 (Analyze_Type_Declaration): Set Optimize_Alignment flags
3283 (Analyze_Subtype_Declaration): Ditto
3284 (Analyze_Object_Declaration): Ditto
3285 (Analyze_Object_Declaration): Don't count tasks in generics
3286 Change name In_Default_Expression => In_Spec_Expression
3287 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3288 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3289 (Process_Discriminants): Additional check for illegal use of default
3290 expressions in access discriminant specifications in a type that is not
3291 explicitly limited.
3292 (Check_Abstract_Overriding): If an inherited function dispaches on an
3293 access result, it must be overridden, even if the type is a null
3294 extension.
3295 (Derive_Subprogram): The formals of the derived subprogram have the
3296 names and defaults of the parent subprogram, even if the type is
3297 obtained from the actual subprogram.
3298 (Derive_Subprogram): In the presence of interfaces, a formal of an
3299 inherited operation has the derived type not only if it descends from
3300 the type of the formal of the parent operation, but also if it
3301 implements it. This is relevant for the renamings created for the
3302 primitive operations of the actual for a formal derived type.
3303 (Is_Progenitor): New predicate, to determine whether the type of a
3304 formal in the parent operation must be replaced by the derived type.
3305
3306 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
3307 predicate recursive to handle components that have a user-defined
3308 Initialize procedure. Handle controlled derived types whose ancestor
3309 has a user-defined Initialize procedured.
3310 (Note_Possible_Modification): Add Sure parameter, generate warning if
3311 sure modification of constant
3312 Use new Is_Standard_Character_Type predicate
3313 (Find_Parameter_Type): when determining whether a protected operation
3314 implements an interface operation, retrieve the type of the formal from
3315 the entity when the formal is an access parameter or an
3316 anonymous-access-to-subprogram.
3317 Move Copy_Parameter_List to sem_util, for use when building stubbed
3318 subprogram bodies.
3319 (Has_Access_Values): Tagged types now return False
3320 (Within_HSS_Or_If): New procedure
3321 (Set_Optimize_Alignment_Flags): New procedure
3322 Change name In_Default_Expression => In_Spec_Expression
3323 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3324 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3325
3326 2008-04-08 Tristan Gingold <gingold@adacore.com>
3327
3328 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
3329
3330 2008-04-08 Tristan Gingold <gingold@adacore.com>
3331
3332 PR ada/10768
3333
3334 * cuintp.c: Fix 16 bits issue for AVR.
3335 On AVR, integer is 16 bits, so it can't be used to do math with
3336 Base (=32768).
3337 So use long_integer instead.
3338
3339 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3340
3341 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
3342 System.OS_Primitives.
3343 Change type of various constants, parameters and local variables from
3344 Time to representation type OS_Time.
3345 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
3346 Remove the declaration of constant Mili_F from several routines. New
3347 body for internal package Conversions_Operations.
3348 (Time_Of): Add default parameters for several formals.
3349
3350 * a-caldel.adb: Minor reformatting
3351
3352 * a-calend.ads, a-calend.adb: New body for internal package
3353 Conversions_Operations.
3354 (Time_Of): Add default parameters for several formals.
3355
3356 * Makefile.rtl: Add a-ststop
3357 Add Ada.Calendar.Conversions to the list of runtime files.
3358 Add g-timsta
3359
3360 * a-calcon.adb, a-calcon.ads: New files.
3361
3362 2008-04-08 Jose Ruiz <ruiz@adacore.com>
3363 Tristan Gingold <gingold@adacore.com>
3364
3365 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
3366 (Install_Restricted_Handlers): New procedure
3367 which is a simplified version of Install_Handlers that does not store
3368 previously installed.
3369
3370 * s-interr-vxworks.adb: Fix ACATS cxc3001
3371 On VxWorks interrupts can't be detached.
3372 (Install_Restricted_Handlers): New procedure.
3373
3374 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
3375 procedure.
3376
3377 2008-04-08 Olivier Hainque <hainque@adacore.com>
3378
3379 * s-intman-vxworks.ads, s-intman-vxworks.adb
3380 (Map_And_Raise_Exception): Remove. Was an import of only part of the
3381 required services already implemented elsewhere.
3382 (Notify_Exception): Delete body, import __gnat_error_handler instead.
3383 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
3384 argument passed to the handler, which we need for ZCX propagation
3385 purposes.
3386
3387 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3388
3389 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
3390
3391 * g-timsta.adb, g-timsta.ads: New files.
3392
3393 2008-04-08 Robert Dewar <dewar@adacore.com>
3394
3395 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
3396 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
3397 (Raise_Exception_Always): Fix documentation accordingly
3398
3399 2008-04-08 Robert Dewar <dewar@adacore.com>
3400
3401 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
3402 Stream_Convert)
3403
3404 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
3405 FOnly
3406
3407 2008-04-08 Javier Miranda <miranda@adacore.com>
3408 Robert Dewar <dewar@adacore.com>
3409 Ed Schonberg <schonberg@adacore.com>
3410
3411 * a-tags.adb (Register_Interface_Offset): New subprogram.
3412 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
3413 (To_Predef_Prims_Table_Ptr): Removed.
3414 (Acc_Size): Removed.
3415 (To_Acc_Size): Removed.
3416 (Parent_Size): Modified to the call the subprogram returning the size of
3417 the parent by means of the new TSD component Size_Func.
3418
3419 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
3420 (DT_Offset_To_Top_Offset): New constant value that is used to generate
3421 code referencing the Offset_To_Top component of the dispatch table's
3422 prologue.
3423 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
3424 use of 'address to initialize dispatch table slots.
3425 (Size_Func): New component of the TSD. Used by the run-time to call the
3426 size primitive of the tagged type.
3427
3428 * checks.adb (Apply_Access_Check): Avoid check when accessing the
3429 Offset_To_Top component of a dispatch table.
3430 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
3431 deferred constant declaration. do not add a null expression, to prevent
3432 spurious errors when full declaration is analyzed.
3433 (Apply_Discriminant_Check): If both discriminant constraints share a
3434 node which is not static but has no side effects, do not generate a
3435 check for that discriminant.
3436 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
3437 subexpr, since the prefix of an attribute is a name.
3438
3439 * checks.ads: Fix nit in comment.
3440
3441 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
3442 and body of predefined primitives in case of CPP tagged type
3443 derivations.
3444 (Freeze_Type): Deal properly with no storage pool case
3445 (Make_Predefined_Primitive_Specs): Generate specification of abstract
3446 primitive Deep_Adjust if a nonlimited interface is derived from a
3447 limited interface.
3448 (Build_Dcheck_Functions): Create discriminant-checking functions only
3449 for variants that have some component(s).
3450 (Build_Slice_Assignment): In expanded code for slice assignment, handle
3451 properly the case where the slice bounds extend to the last value of the
3452 underlying representation.
3453 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
3454 (Is_Variable_Size_Record): An array component has a static size if
3455 index bounds are enumeration literals.
3456
3457 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
3458 an external tag has been specified for the type.
3459 (Building_Static_DT): Add missing support for private types.
3460 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
3461 to the entity associated with the parent of Typ. This is done to
3462 avoid wrong access when the parent is a private type.
3463 (Expand_Interface_Conversion): Improve error message when the
3464 configurable runtime has no support for dynamic interface conversion.
3465 (Expand_Interface_Thunk): Add missing support to interface types in
3466 configurable runtime.
3467 (Expand_Dispatching_Call): remove obsolete code.
3468 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
3469 ensure that all subtypes and aggregates associated with dispatch
3470 tables have the attribute Is_Dispatch_Table_Entity set to true.
3471 (Register_Primitive): Rename one variable to improve code reading.
3472 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
3473 of the pointer to the 'size primitive in the TSD.
3474
3475 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
3476 (RE_Offset_To_Top_Ptr): New entity.
3477 (RE_Register_Interface_Offset): New entity.
3478 (RE_Set_Dynamic_Offset_To_Top): New entity.
3479 (RE_Set_Offset_To_Top): Removed entity.
3480 (RE_Prim_Ptr): New entity
3481 (RE_Size_Func): New entity
3482 (RE_Size_Ptr): New entity
3483 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
3484 (Ada_Dispatching_Child): Define this new subrange.
3485 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
3486 RE_Time_Span, and RE_Time_Span_Zero).
3487 (RE_Unit_Table): Add new required run-time calls
3488
3489 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
3490 children.
3491
3492 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
3493 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
3494 initializes the Offset_To_Top component of a dispatch table.
3495 (Build_Predef_Prims): Removed.
3496 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
3497 its actual code.
3498 (Build_Set_Size_Function): New subprogram.
3499
3500 * exp_ch13.adb: Do not generate storage variable for storage_size zero
3501 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
3502
3503 2008-04-08 Robert Dewar <dewar@adacore.com>
3504
3505 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
3506 computing Fore when Exp > 0
3507
3508 2008-04-08 Robert Dewar <dewar@adacore.com>
3509
3510 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
3511
3512 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
3513 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
3514
3515 * fmap.adb: Remove Big_String declarations (now in Types)
3516 (No_Mapping_File): New Boolean global variable
3517 (Initialize): When mapping file cannot be read, set No_Mapping_File to
3518 False.
3519 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
3520 tables were empty before adding entries, open the mapping file
3521 with Truncate = True, instead of delete/re-create.
3522
3523 * fname-sf.adb: Remove Big_String declarations (now in Types)
3524
3525 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
3526 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
3527 big pointer types
3528
3529 * table.ads: Add for Table_Ptr'Storage_Size use 0
3530
3531 * types.ads: Add Big_String declarations
3532 Add Size_Clause of zero for big pointer types
3533
3534 2008-04-08 Vincent Celier <celier@adacore.com>
3535
3536 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
3537 (Usage): Add line for switch --subdirs=
3538 Add new switch -eL, to follow symbolic links when processing project
3539 files.
3540
3541 * gnatcmd.adb: Process switches -eL and --subdirs=
3542 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
3543 Program_Name to get proper tool names when AAMP_On_Target is set.
3544 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
3545 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
3546 Osint.Program_Name).
3547
3548 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
3549 (Usage): Add lines for switches -eL and --subdirs=
3550
3551 * makeusg.adb: Add line for switch --subdirs=
3552
3553 * prj.ads:
3554 (Source_Data): New Boolean component Compiled, defaulted to True
3555 (Empty_File_Name: New global variable in private part, initialized in
3556 procedure Initialize.
3557 (Subdirs_Option): New constant string
3558 (Subdirs): New String_Ptr global variable
3559 (Language_Config): New component Include_Compatible_Languages
3560 (Project_Qualifier): New type for project qualifiers
3561 (Project_Data): New component Qualifier
3562 (Project_Configuration): New component Archive_Builder_Append_Option
3563
3564 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
3565 another imported project indicate the name of this imported project.
3566 (Check_File): When a unit is in two project files, indicate the project
3567 names and the paths of the source files for each project.
3568 (Add_Source): Set Compiled to False if compiler driver is empty. Only
3569 set object, dependency and switches file names if Compiled is True.
3570 (Process_Compiler): Allow the empty string for value of attribute Driver
3571 (Get_Directories): When Subdirs is not null and Object_Dir is not
3572 specified, locate and create if necessary the actual object dir.
3573 (Locate_Directory): When Subdirs is not empty and Create is not the
3574 empty string, locate and create if necessary the actual directory
3575 as a subdirectory of directory Name.
3576 (Check_Library_Attributes.Check_Library): Allow a project where the only
3577 "sources" are header files of file based languages to be imported by
3578 library projects, in multi-language mode (gprbuild).
3579 (Check_Library_Attributes.Check_Library): In multi-language mode
3580 (gprbuild), allow a library project to import a project with no
3581 sources, even when this is not declared explicitly.
3582 (Check_If_Externally_Built): A virtual project extending an externally
3583 built project is also externally built.
3584 (Check_Library_Attributes): For a virtual project extending a library
3585 project, inherit the library directory.
3586 (Process_Project_Level_Array_Attributes): Process new attribute
3587 Inherit_Source_Path.
3588 For projects with specified qualifiers "standard", "library" or
3589 "abstract", check that the project conforms to the qualifier.
3590 (Process_Project_Level_Simple_Attributes): Process new attribute
3591 Archive_Builder_Append_Option.
3592
3593 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
3594 (Normalize_Compiler_Switches): Only keep compiler switches that are
3595 passed to gnat1 by the gcc driver and that are stored in the ALI file
3596 by gnat1.
3597 Do not take into account switc -save-temps
3598
3599 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
3600 gprmake is called with -eL.
3601 (Scan_Arg): Recognize switch -eL
3602 (Usage): Add line for switch -eL
3603
3604 * prj.adb (Initialize): Initialize Empty_File_Name
3605 (Project_Empty): New component Qualifier
3606
3607 * prj-attr.ads, prj-attr.adb: New project level attribute
3608 Inherit_Source_Path.
3609 New project level attribute Archive_Builder_Append_Option
3610
3611 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
3612
3613 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
3614 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
3615 upward compatibility.
3616
3617 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
3618 each Trying ..." on different lines.
3619 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
3620 is "configuration" when not in configuration. Fail when in configuration
3621 when a specified qualifier is other than "configuration".
3622
3623 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
3624 full associative array together.
3625 (Recursive_Process): Put the project qualifier in the project data
3626
3627 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
3628 (Set_Project_Qualifier_Of): New procedure
3629
3630 2008-04-08 Robert Dewar <dewar@adacore.com>
3631
3632 * errout.ads: Update comments for new handling of info: messages
3633
3634 * erroutc.adb (Matches): New procedure
3635 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
3636 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
3637 info messages as well as style messages.
3638
3639 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
3640
3641 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
3642 subprograms.
3643 (Check_A_Call): Special "info: " warnings now have ? in the text
3644 (Elab_Warning): Use info message in static case
3645
3646 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3647
3648 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
3649 whether an array aggregate with static bounds and scalar components
3650 should be expanded into a static constant.
3651
3652 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3653 Ed Schonberg <schonberg@adacore.com>
3654 Robert Dewar <dewar@adacore.com>
3655
3656 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
3657 Has_Stream_Attribute_ Definition when checking for available stream
3658 attributes on parameters of a limited type in Ada 2005. Necessary for
3659 proper recognition of visible stream attribute clauses.
3660 (Has_Stream_Attribute_Definition): If the type is derived from a
3661 private type, then use the derived type's underlying type for checking
3662 whether it has stream attributes.
3663 (Validate_Object_Declaration): The check for a user-defined Initialize
3664 procedure applies also to types with controlled components or a
3665 controlled ancestor.
3666 Reject an object declaration in a preelaborated unit if the type is a
3667 controlled type with an overriding Initialize procedure.
3668 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
3669 checking when the parent of a dereference is a selected component and
3670 the name has not been analyzed.
3671
3672 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
3673 prefixes that are invalid explicit dereferences of remote
3674 access-to-class-wide values, first checking whether the selected
3675 component is a prefixed form of call to a tagged operation.
3676 (Analyze_Call): Remove code that issues an error for limited function
3677 calls in illegal contexts, as we now support all of the contexts that
3678 were forbidden here.
3679 Allow a function call that returns a task.and appears as the
3680 prefix of a selected component.
3681 (Analyze_Reference): Give error message if we try to make a 'Reference
3682 for an object that is atomic/aliased without its type having the
3683 corresponding attribute.
3684 (Analyze_Call): Remove condition checking for attributes to allow
3685 calls to functions with inherently limited results as prefixes of
3686 attributes. Remove related comment about Class attributes.
3687 (Analyze_Selected_Component): If the prefix is a remote type, check
3688 whether this is a prefixed call before reporting an error.
3689 (Complete_Object_Operation): If the controlling formal is an access to
3690 variable reject an actual that is a constant or an access to one.
3691 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3692 primitive operations from base type.
3693
3694 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
3695 build-in-place
3696 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3697 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
3698 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3699 (Expand_N_Slice): Test for prefix that is a build-in-place function call
3700 and call Make_Build_In_Place_Call_In_Anonymous_Context.
3701 (Analyze_Call): Remove code that issues an error for limited function
3702 calls in illegal contexts, as we now support all of the contexts that
3703 were forbidden here.
3704 New calling sequence for Get_Simple_Init_Val
3705 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
3706 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
3707
3708 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3709 Ed Schonberg <schonberg@adacore.com>
3710 Robert Dewar <dewar@adacore.com>
3711
3712 * exp_ch2.adb: Minor reformatting.
3713 (Expand_Entry_Index_Parameter): Set the type of the identifier.
3714 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
3715 (Expand_Protected_Component): New routine.
3716 (Expand_Protected_Private): Removed.
3717 Add Sure parameter to Note_Possible_Modification calls
3718
3719 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
3720 generated subprogram declaration must inherit the overriding indicator
3721 from the instantiation node.
3722 (Validate_Access_Type_Instance): If the designated type of the actual is
3723 a limited view, use the available view in all cases, not only if the
3724 type is an incomplete type.
3725 (Instantiate_Object): Actual is illegal if the formal is null-excluding
3726 and the actual subtype does not exclude null.
3727 (Process_Default): Handle properly abstract formal subprograms.
3728 (Check_Formal_Package_Instance): Handle properly defaulted formal
3729 subprograms in a partially parameterized formal package.
3730 Add Sure parameter to Note_Possible_Modification calls
3731 (Validate_Derived_Type_Instance): if the formal is non-limited, the
3732 actual cannot be limited.
3733 (Collect_Previous_Instances): Generate instance bodies for subprograms
3734 as well.
3735
3736 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3737 try to set RM_Size.
3738 Add Sure parameter to Note_Possible_Modification calls
3739 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3740 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3741 constant overlaid by variable and issue warning.
3742 Use new Is_Standard_Character_Type predicate
3743 (Analyze_Record_Representation_Clause): Check that the specified
3744 Last_Bit is not less than First_Bit - 1.
3745 (Analyze_Attribute_Definition_Clause, case Address): Check for
3746 self-referential address clause
3747
3748 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3749 detection mechanism when the lhs is a prival.
3750 (Analyze_Assignment): Call Check_Unprotected_Access to detect
3751 assignment of a pointer to protected data, to an object declared
3752 outside of the protected object.
3753 (Analyze_Loop_Statement): Check for unreachable code after loop
3754 Add Sure parameter to Note_Possible_Modication calls
3755 Protect analysis from previous syntax error such as a scope mismatch
3756 or a missing begin.
3757 (Analyze_Assignment_Statement): The assignment is illegal if the
3758 left-hand is an interface.
3759
3760 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
3761 violation of restriction No_Implicit_Conditionals
3762 Add Sure parameter to Note_Possible_Modication calls
3763 Use new Is_Standard_Character_Type predicate
3764 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
3765 call as operator. Fixes problems (e.g. validity checking) which
3766 come from the result looking as though it does not come from source).
3767 (Resolve_Call): Check case of name in named parameter if style checks
3768 are enabled.
3769 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
3770 from the checking that such calls should not occur from an entry body.
3771 (Resolve_Call): If the return type of an Inline_Always function
3772 requires the secondary stack, create a transient scope for the call
3773 if the body of the function is not available for inlining.
3774 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
3775 that are actuals for in-out formals.
3776 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3777 primitive operations from base type.
3778 (Analyze_Selected_Component): If the context is a call to a protected
3779 operation the parent may be an indexed component prior to expansion.
3780 (Resolve_Actuals): If an actual is of a protected subtype, use its
3781 base type to determine whether a conversion to the corresponding record
3782 is needed.
3783 (Resolve_Short_Circuit): Handle pragma Check
3784
3785 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
3786 Use new Is_Standard_Character_Type predicate
3787 (Eval_Relational_Op): Catch more cases of string comparison
3788
3789 2008-04-08 Robert Dewar <dewar@adacore.com>
3790 Gary Dismukes <dismukes@adacore.com>
3791
3792 * s-rident.ads: Add No_Default_Initialization restriction
3793
3794 * exp_tss.adb:
3795 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
3796 (Set_TSS): Handle No_Default_Initialization case
3797
3798 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
3799 No_Default_Initialization
3800 (Expand_N_Subprogram_Body): Remove redundant initialization of out
3801 parameters when Normalize_Scalars is active.
3802 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
3803 Fix casing error in formal parameter name in call
3804 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
3805 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3806 dispatching call on VM targets.
3807
3808 2008-04-08 Gary Dismukes <dismukes@adacore.com>
3809 Thomas Quinot <quinot@adacore.com>
3810
3811 * exp_ch7.adb (Find_Final_List): Change the test for generating a
3812 selected component from an access type's Associated_Final_Chain to
3813 check for the presence of that field, rather than assuming it exists
3814 for all named access types.
3815 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
3816 procedure to call at the end of the generated cleanup procedure.
3817 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
3818 and an At_End_Proc already exists in the handled sequence of statements
3819 for which cleanup actions are being expanded, the original cleanup
3820 action must be preserved.
3821
3822 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3823 Ed Schonberg <schonberg@adacore.com>
3824 Robert Dewar <dewar@adacore.com>
3825 Gary Dismukes <dismukes@adacore.com>
3826
3827 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
3828 Build_Unprotected_Subprogram_Body): Generate debug info for
3829 declarations related to the handling of private data in task and
3830 protected types.
3831 (Debug_Private_Data_Declarations): New subprogram.
3832 (Install_Private_Data_Declarations): Remove all debug info flagging.
3833 This is now done by Debug_Private_Data_Declarations at the correct
3834 stage of expansion.
3835 (Build_Simple_Entry_Call): If the task name is a function call, expand
3836 the prefix into an object declaration, and make the surrounding block a
3837 task master.
3838 (Build_Master_Entity): An internal block is a master if it wraps a call.
3839 Code reformatting, update comments. Code clean up.
3840 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
3841 (Replicate_Entry_Formals): If the formal is an access parameter or
3842 anonymous access to subprogram, copy the original tree to create new
3843 entities for the formals of the subprogram.
3844 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
3845 for tasks to store the value passed using pragma Relative_Deadline.
3846 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
3847 run-time call to create a task.
3848 (Build_Wrapper_Spec): If the controlling argument of the interface
3849 operation is an access parameter with a non-null indicator, use the
3850 non-null indicator on the wrapper.
3851
3852 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
3853 present, which it may not be in the case where the type entity is an
3854 incomplete view brought in by a limited with.
3855 (Analyze_Task_Type): Only retrieve the full view when present, which it
3856 may not be in the case where the type entity is an incomplete view brought
3857 in by a limited with.
3858 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
3859 private components of a protected type, to prevent the generation of freeze
3860 nodes for which there is no proper scope of elaboration.
3861
3862 * exp_util.ads, exp_util.adb
3863 (Remove_Side_Effects): If the expression is a function call that returns a
3864 task, expand into a declaration to invoke the build_in_place machinery.
3865 (Find_Protection_Object): New routine.
3866 (Remove_Side_Effects): Also make a copy of the value
3867 for attributes whose result is of an elementary type.
3868 (Silly_Boolean_Array_Not_Test): New procedure
3869 (Silly_Boolean_Array_Xor_Test): New procedure
3870 (Is_Volatile_Reference): New function
3871 (Remove_Side_Effects): Use Is_Volatile_Reference
3872 (Possible_Bit_Aligned_Component): Handle slice case properly
3873
3874 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
3875 case test to Exp_Util
3876 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
3877
3878 2008-04-08 Thomas Quinot <quinot@adacore.com>
3879
3880 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
3881 in call
3882 (Add_RACW_Features): When processing an RACW in another unit than the
3883 main unit, set Body_Decls to No_List to indicate that the bodies of
3884 the type's TSS must not be generated.
3885 (GARLIC_Support.Add_RACW_Read_Attribute,
3886 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
3887 Body_Decls is No_List.
3888 (PolyORB_Support.Add_RACW_Read_Attribute,
3889 PolyORB_Support.Add_RACW_Write_Attribute,
3890 PolyORB_Support.Add_RACW_From_Any,
3891 PolyORB_Support.Add_RACW_To_Any,
3892 PolyORB_Support.Add_RACW_TypeCode): Same.
3893 (Transmit_As_Unconstrained): New function.
3894 (Build_Ordered_Parameters_List): Use the above to order parameters.
3895 (GARLIC_Support.Build_General_Calling_Stubs):
3896 Use the above to determine which parameters to unmarshall using 'Input
3897 at the point where their temporary is declared (as opposed to later on
3898 with a 'Read call).
3899 (PolyORB_Support.Build_General_Calling_Stubs):
3900 Use the above to determine which parameters to unmarshall using From_Any
3901 at the point where their temporary is declared (as opposed to later on
3902 with an assignment).
3903
3904 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3905
3906 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
3907 an Input function for an access type, do not perform default
3908 initialization on the local variable that receives the value, to
3909 prevent spurious warnings when the type is null-excluding.
3910
3911 2008-04-08 Robert Dewar <dewar@adacore.com>
3912 Ed Schonberg <schonberg@adacore.com>
3913
3914 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
3915 units.
3916 (Size_Known): Generic formal scalar types have known at compile
3917 time size, so remove check.
3918 Fix casing error in formal parameter name in call
3919 (Freeze_Subprogram): If the subprogram is a user-defined operator,
3920 recheck its overriding indication.
3921
3922 2008-04-08 Vincent Celier <celier@adacore.com>
3923
3924 * gnat1drv.adb: Send all messages indicating an error to standard error
3925
3926 2008-04-08 Robert Dewar <dewar@adacore.com>
3927
3928 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
3929 (List_Applicable_Restrictions): Do not list existing restrictions
3930
3931 2008-04-08 Thomas Quinot <quinot@adacore.com>
3932
3933 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
3934 add a pointer to generic sockets literature
3935 do not mention that the given example is "typical" usage.
3936 Remove obsolete comment about multicast not being supported on Windows.
3937 (Connect_Socket): Make Server mode IN rather than IN OUT
3938 since this formal is never modified.
3939
3940 2008-04-08 Robert Dewar <dewar@adacore.com>
3941
3942 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
3943 the declaration for some different entity.
3944 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
3945 list is precent (following the parent subtype indication), display
3946 appropriate "and" keyword.
3947
3948 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
3949 Remove unnecessary calls to Init_Size_Align and Init_Esize.
3950 Add notes on use of Parent field of an Itype
3951
3952 2008-04-08 Ed Schonberg <schonberg@adacore.com>
3953 Robert Dewar <dewar@adacore.com>
3954 Gary Dismukes <dismukes@adacore.com>
3955
3956 * lib-xref.adb (Is_On_LHS): Remove dead code
3957 (Output_Overriden_Op): If the overridden operation is itself inherited,
3958 list the ancestor operation, which is the one whose body or absstract
3959 specification is actually being overridden. For source navigation
3960 purposes.
3961
3962 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
3963 operation is primitive for the type.
3964 (Declare_Inherited_Private_Subprograms): If the new operation overrides
3965 an inherited private subprogram, set properly the Overridden_Operation
3966 attribute, for better cross-reference information.
3967 (Analyze_Package_Specification): Do late analysis of spec PPCs
3968 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
3969 properly the full view and underlying full views of a private type in a
3970 child unit, whose full view is derived from a private type in a parent
3971 unit, and whose own full view becomes visible in the child body.
3972
3973 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
3974 primitive operation after the type has been frozen, add an explicit
3975 reference to the type and the operation, because other primitive
3976 references have been emitted already.
3977 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
3978 dispatching call on VM targets.
3979
3980 2008-04-08 Vincent Celier <celier@adacore.com>
3981 Thomas Quinot <quinot@adacore.com>
3982
3983 * make.adb: (Gnatmake_Called): Remove, no longer necessary
3984 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
3985 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
3986 (Insert_Project_Sources): Take into account index in multi-unit source
3987 files.
3988 After building a library project, delete all temporary files.
3989 (Initialize): Reset current output after parsing project file.
3990 (Collect_Arguments_And_Compile): Never insert in the queue the sources
3991 of library projects that are externally built.
3992 Put file name in error and inform messages if -df is used
3993 (Display): If invoked with -d7, do not display path names, but only
3994 file names.
3995
3996 * makeutl.ads (Path_Or_File_Name): New function
3997 (Path_Or_File_Name): New function
3998
3999 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4000
4001 * Make-lang.in: Disable warnings during first stage of bootstrap
4002 Get rid of gnatbl.
4003 Update dependencies.
4004
4005 2008-04-08 Vincent Celier <celier@adacore.com>
4006
4007 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4008 case to decide if ALI object file is included in library.
4009 (Build_Library): Never attempt to build a library if the project is
4010 externally built.
4011
4012 2008-04-08 Thomas Quinot <quinot@adacore.com>
4013
4014 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4015 (No_List) is defined to return Empty.
4016
4017 2008-04-08 Jose Ruiz <ruiz@adacore.com>
4018
4019 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4020 documentation.
4021 Update comments.
4022 (Read_Default_Search_Dirs): Do not consider spaces as path separators
4023 because spaces may be part of legal paths.
4024
4025 2008-04-08 Robert Dewar <dewar@adacore.com>
4026
4027 * par-ch11.adb (P_Exception_Handler): Check indentation level for
4028 handler
4029
4030 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4031
4032 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4033 in a type declaration, if this is not an interface declaration or
4034 private type extension.
4035
4036 2008-04-08 Vincent Celier <celier@adacore.com>
4037
4038 * prj-util.adb (Executable_Of): New String parameter Language. When
4039 Ada_Main is False and Language is not empty, attempt to remove the body
4040 suffix or the spec suffix of the language to get the base of the
4041 executable file name.
4042 (Put): New Boolean parameter Lower_Case, defauilted to False. When
4043 Lower_Case is True, put the value in lower case in the name list.
4044 (Executable_Of): If there is no executable suffix in the configuration,
4045 then do not modify Executable_Extension_On_Target.
4046
4047 * prj-util.ads (Executable_Of): New String parameter Language,
4048 defaulted to the empty string.
4049 (Put): New Boolean parameter Lower_Case, defauilted to False
4050
4051 2008-04-08 Robert Dewar <dewar@adacore.com>
4052
4053 * scng.adb (Scan_Identifier): Handle case of identifier starting with
4054 wide character using UTF-8 encoding.
4055
4056 2008-04-08 Javier Miranda <miranda@adacore.com>
4057
4058 * sem.adb (Analyze): Consider case in which we analyze an empty node
4059 that was generated by a call to a runtime function that is not
4060 available under the configurable runtime.
4061
4062 * sem.ads (Inside_Freezing_Actions): New flag.
4063 (Save_Check_Policy_List): New field in scope stack entry
4064
4065 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4066 Robert Dewar <dewar@adacore.com>
4067
4068 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
4069 the ancestor part of an extension aggregate for a limited type.
4070 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
4071 enumeration index bounds.
4072 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
4073 when array is too short.
4074 (Check_Expr_OK_In_Limited_Aggregate): Move function
4075 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
4076 change name).
4077 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
4078 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
4079 component associations.
4080 (Check_Non_Limited_Type): Moved to outer level and renamed.
4081 (Resolve_Record_Aggregate): In an extension aggregate, an association
4082 with a box initialization can only designate a component of the
4083 extension, not a component inherited from the given ancestor
4084
4085 * sem_case.adb: Use new Is_Standard_Character_Type predicate
4086
4087 2008-04-08 Robert Dewar <dewar@adacore.com>
4088
4089 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
4090 negative scale
4091 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
4092 Properly handle case where Aft > Scale and input number is less than
4093 one.
4094
4095 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4096
4097 * s-stoele.ads, s-soflin.ads: Move the location of
4098 Dummy_Communication_Block from System.Storage_Elements to
4099 System.Soft_Links.
4100
4101 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
4102 emulate Communication_Block in certain scenarios.
4103
4104 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4105
4106 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
4107 subprogram.
4108 Add new subtype S_WWC, unchecked conversion routines From_WWC and
4109 To_WWC.
4110 (I_WWC, O_WWC): New routines for input and output of
4111 Wide_Wide_Character.
4112
4113 2008-04-08 Robert Dewar <dewar@adacore.com>
4114
4115 * stringt.adb (Write_String_Table_Entry): Handle wide characters
4116 properly
4117
4118 2008-04-08 Robert Dewar <dewar@adacore.com>
4119
4120 * styleg.adb (Check_Comment): Allow special char after -- in
4121 non-end-of-line case
4122
4123 2008-04-08 Robert Dewar <dewar@adacore.com>
4124
4125 * stylesw.adb: Implement -gnaty + - y options
4126 (Set_GNAT_Style_Check_Options): Includ I in style check string
4127
4128 * stylesw.ads: Add comments for new style switch options
4129
4130 2008-04-08 Sergey Rybin <rybin@adacore.com>
4131
4132 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
4133 to the set of the GNAT components needed by ASIS.
4134
4135 2008-04-08 Bob Duff <duff@adacore.com>
4136
4137 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
4138
4139 2008-04-08 Tristan Gingold <gingold@adacore.com>
4140
4141 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
4142 Improve error message generation.
4143
4144 2008-04-08 Vincent Celier <celier@adacore.com>
4145
4146 * a-direct.adb (Start_Search): Check for Name_Error before checking for
4147 Use_Error, as specified in the RM. Check if directory is open and raise
4148 Use_Error if it is not.
4149
4150 2008-04-08 Vincent Celier <celier@adacore.com>
4151 Robert Dewar <dewar@adacore.com>
4152
4153 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
4154 AAMP_On_Target is set.
4155
4156 * vms_data.ads: Add NOxxx to style check switch list
4157 Add entry COMPONENTS for -gnatVe
4158 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
4159 (/SUBDIRS=).
4160 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
4161 Add qualifiers for gnatmetric coupling options
4162 Add note that -gnata enables all checks
4163 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
4164 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
4165 New warning flag -gnatw.e
4166
4167 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
4168 Add entry for -gnatyN (forgotten before)
4169 Line for new warning switch -gnatw.p
4170 New warning flag -gnatw.e
4171
4172 * gnat_ugn.texi: Add documentation fpr project file switch -aP
4173 Document -gnaty - + y
4174 Replace occurences of "package specification" with "package spec"
4175 Define preprocessing symbols in documentation of gnatprep
4176 Clarify reason for distinguishing overflow checking
4177 Add documentation for project-aware tool switches -eL and --subdirs=
4178 Complete list of configuration pragmas
4179 Specify that, even when gnatmake switch -x is used, mains on the command
4180 line need to be sources of project files.
4181 Editing of gnatcheck/gnatmetric doc.
4182 Add documentation for -gnatw.p/-gnatw.P
4183 Add missing documentation for -fno-inline-functions.
4184 Add documentation for -gnatw.e
4185
4186 * gnat_rm.texi: Add documentation for No_Default_Initialization
4187 Replace occurences of "package specification" with "package spec"
4188 Document use of * in Warnings Off string
4189 Update documentation of alignment/component clauses.
4190 Add documentation for Invalid_Value
4191 Document new consistency rule for Optimize_Alignment
4192 Add documentation for Precondition and Postcondition pragmas
4193 Add documentation for Check and Check_Policy pragmas
4194 Document new Enum_Val attribute
4195 Remove requirement for static string in pragma Assert
4196 Add documentation on GNAT.Time_Stamp
4197
4198 * ug_words: add entry for -gnatVe
4199 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
4200 Add entry for -gnatw.e
4201
4202 * debug.adb: Add missing documentation for d.a flag
4203 Document new -gnatd.a switch.
4204 Add documentation for new gnatmake debug switch -df
4205
4206 2008-04-08 Thomas Quinot <quinot@adacore.com>
4207
4208 * gen-soccon.c: Bump year in copyright notices.
4209
4210 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
4211
4212 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4213
4214 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
4215 Minor reformatting.
4216
4217 2008-04-08 Robert Dewar <dewar@adacore.com>
4218 Bob Duff <duff@adacore.com>
4219
4220 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
4221 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
4222
4223 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
4224
4225 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
4226
4227 * g-trasym.ads: Minor comment improvements
4228
4229 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
4230
4231 * a-sequio.ads, a-direio.ads: improve message for tagged type
4232
4233 * a-strunb.ads: Minor reformatting
4234
4235 * a-tifiio.adb: Minor reformatting
4236
4237 * atree.adb (Fix_Parents): Use clearer names for formals
4238 Cleanup and simplify code
4239 Use named notation in calls
4240
4241 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
4242 confusing calls
4243
4244 * uintp.adb: Used named notation for some confusing calls
4245
4246 * bindusg.adb: Minor change in one line of output
4247
4248 * cstand.adb: Minor reformatting of src representation of Standard
4249
4250 * a-assert.ads: Add comment.
4251
4252 * g-decstr.adb: Fix bad indentation
4253
4254 * expander.ads, expander.adb: Code clean up.
4255
4256 * sem_dist.ads: Minor comment improvement
4257
4258 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
4259 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
4260
4261 * i-cstrin.adb: Fix casing error in formal parameter name in call
4262
4263 2008-04-08 Ed Schonberg <schonberg@adacore.com>
4264
4265 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
4266 mentioned in limited_with_clauses to do create semantic dependencies
4267 even though they appear in the ali file.
4268
4269 2008-04-08 Emmanuel Briot <briot@adacore.com>
4270
4271 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
4272 statement.
4273 (Get_Configuration): New subprogram.
4274
4275 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
4276 These optional parameters help preserve the casing of the project's name
4277 when pretty-printing.
4278
4279 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
4280 Arnaud Charlet <charlet@adacore.com>
4281
4282 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
4283 then use __gnat_set_exit_status to report the returned status code.
4284
4285 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
4286 messages on .NET, since some constructs of the language are not
4287 properly supported.
4288
4289 * gnatlink.adb (Gnatlink): In case the command line is too long for the
4290 .NET linker, gnatlink now concatenate all .il files and pass this to
4291 ilasm.
4292
4293 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4294 Xavier Grave <grave@ipno.in2p3.fr>
4295
4296 * Makefile.in: Add make ifeq define for mips/mipsel support.
4297 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
4298 system-linux-mips.ads: New files.
4299
4300 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4301
4302 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
4303 detect systems using GNU libc.
4304 * gsocket.h: ditto.
4305 * socket.c: ditto.
4306 * adaint.c: ditto.
4307 * link.c: ditto.
4308
4309 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4310
4311 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
4312 constant constant for sysconf call.
4313 (bit_field): New packed boolean type used by cpu_set_t.
4314 (cpu_set_t): New type corresponding to the C type with
4315 the same name. Note that on the Ada side we use a bit
4316 field array for the affinity mask. There is not need
4317 for the C macro for setting individual bit.
4318 (pthread_setaffinity_np): New imported routine.
4319 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
4320 on GNU/kFreeBSD.
4321
4322 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4323
4324 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
4325
4326 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4327
4328 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
4329 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
4330 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
4331 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
4332 Return by Depressed Stack Pointer.
4333
4334 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4335
4336 * decl.c (is_variable_size): Do not unconditionally return false
4337 on non-strict alignment platforms.
4338
4339 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4340
4341 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
4342 used to process all the variants of the specified type.
4343 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
4344 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
4345 (rest_of_type_decl_compilation): Likewise.
4346 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
4347
4348 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
4349
4350 * gigi.h (insert_block): Kill.
4351 * utils.c (insert_block): Kill.
4352
4353 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
4354
4355 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4356 type has self-referential size, get the size from the initializing
4357 expression directly if it is also a constant whose nominal type
4358 has self-referential size.
4359
4360 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4361
4362 PR ada/33688
4363 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
4364
4365 PR ada/33857
4366 * env.c: Always include crt_externs.h if __APPLE__ is defined.
4367 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
4368
4369 2008-04-01 Andreas Jaeger <aj@suse.de>
4370
4371 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
4372 IP_PKTINFO.
4373
4374 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4375
4376 * g-table.adb, g-tasloc.adb, g-traceb.ads,
4377 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
4378 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
4379 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
4380 gnatlink.adb, gnatmem.adb, gprep.adb,
4381 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
4382 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
4383 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
4384 lib-xref.ads, lib.adb, link.c, live.ads,
4385 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
4386 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
4387 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
4388 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
4389 namet.adb, namet.h, nlists.adb, nlists.ads,
4390 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
4391 osint-c.ads, osint.adb, osint.ads, output.ads,
4392 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
4393 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
4394 par-endh.adb, par-labl.adb, par-prag.adb,
4395 par-sync.adb, par-tchk.adb, par-util.adb,
4396 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
4397 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4398 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
4399 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
4400
4401 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
4402
4403 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
4404 size if it has overflowed.
4405
4406 2008-03-31 Olivier Hainque <hainque@adacore.com>
4407 Eric Botcazou <ebotcazou@adacore.com>
4408
4409 * utils2.c (find_common_type): Document assumption on t1/t2 vs
4410 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
4411
4412 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4413
4414 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
4415 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
4416 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
4417 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
4418 exp_tss.ads, exp_util.adb, exp_util.ads,
4419 exp_vfpt.adb, freeze.adb, freeze.ads,
4420 frontend.adb, g-alleve.adb, g-altcon.adb,
4421 g-altive.ads, g-alveop.ads, g-alvevi.ads,
4422 g-arrspl.adb, g-busorg.ads, g-calend.adb,
4423 g-calend.ads, g-casuti.ads, g-cgideb.adb,
4424 g-comlin.adb, g-comlin.ads, g-curexc.ads,
4425 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
4426 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
4427 g-dyntab.adb, g-encstr.ads, g-excact.ads,
4428 g-except.ads, g-expect.ads, g-heasor.adb,
4429 g-hesora.adb, g-hesorg.adb, g-htable.ads,
4430 g-locfil.ads, g-md5.adb, g-md5.ads,
4431 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
4432 g-pehage.adb, g-pehage.ads, g-regexp.adb,
4433 g-regexp.ads, g-regpat.adb, g-regpat.ads,
4434 g-soccon-aix.ads, g-soccon-darwin.ads,
4435 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
4436 g-soccon-hpux.ads, g-soccon-irix.ads,
4437 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
4438 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
4439 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
4440 g-soccon-solaris.ads, g-soccon-tru64.ads,
4441 g-soccon-vms.ads, g-soccon-vxworks.ads,
4442 g-soccon.ads, g-socket.adb, g-socket.ads,
4443 g-socthi-mingw.adb, g-socthi-vms.adb,
4444 g-socthi-vxworks.adb, g-soliop-mingw.ads,
4445 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
4446 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
4447 typos.
4448
4449 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
4450
4451 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
4452 if the procedure is imported.
4453
4454 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4455
4456 * adaint.c: Fix warnings.
4457
4458 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4459
4460 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
4461
4462 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4463
4464 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
4465 Fix problem of status check for null file
4466
4467 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4468
4469 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
4470 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
4471 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
4472 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
4473 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
4474 comments.
4475
4476 2008-03-26 Thomas Quinot <quinot@adacore.com>
4477
4478 PR ada/33688
4479 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
4480 Get_Socket_Option): Add support for Receive_Packet_Info.
4481
4482 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4483 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4484 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
4485 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
4486 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
4487 new constants SO_REUSEPORT and IP_PKTINFO
4488
4489 2008-03-26 Robert Dewar <dewar@adacore.com>
4490
4491 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
4492 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
4493 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
4494 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
4495 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
4496 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
4497 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
4498 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4499 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
4500 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
4501 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
4502 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
4503 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
4504 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
4505 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
4506 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
4507 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
4508 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
4509 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
4510 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
4511 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
4512 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
4513 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
4514 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
4515 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
4516 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
4517 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
4518 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
4519 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
4520 s-tasloc.adb: Minor reformatting.
4521 Update comments.
4522 Remove "used for" sections from comments.
4523
4524 2008-03-26 Robert Dewar <dewar@adacore.com>
4525
4526 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4527 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4528 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4529 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4530 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4531 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4532 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4533 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4534 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4535 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4536 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4537 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4538 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4539 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4540 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4541 double spaced if it fits on one line and otherwise single spaced.
4542
4543 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4544
4545 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
4546 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4547 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
4548 or task info if the thread could not be created.
4549
4550 2008-03-26 Arnaud Charlet <charlet@adacore.com>
4551
4552 * gnatvsn.ads (Library_Version): Bump to 4.4.
4553 (Current_Year): Bump to 2008.
4554
4555 2008-03-26 Robert Dewar <dewar@adacore.com>
4556
4557 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
4558
4559 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
4560
4561 * debug.adb: Add debug flags d.r and d.v
4562 Add debug flag .T (Optimize_Alignment (Time))
4563 Add debug flag .S (Optimize_Alignment (Space))
4564
4565 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
4566 depending on setting of relevant debug flags.
4567 Replace use of Warnings_Off by Has_Warnings_Off
4568 (Freeze_Entity): In circuit for warning on suspicious convention
4569 actuals, do not give warning if subprogram has same entity as formal
4570 type, or if subprogram does not come from source.
4571 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
4572 if Optimize_Alignment set to Space.
4573
4574 * frontend.adb: Add call to Sem_Warn.Initialize
4575 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
4576 Reset Optimize_Alignment mode from debug switches .S and .T
4577
4578 * layout.adb (Layout_Composite_Object): Rewritten for
4579 Optimize_Aligment pragma.
4580
4581 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
4582 mode.
4583
4584 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
4585
4586 * par-prag.adb (N_Pragma): Chars field removed, use Chars
4587 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4588 this change. Add entry for pragma Optimize_Alignment
4589
4590 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
4591 (Pragma_Identifier (..
4592 instead, adjustments throughout to accomodate this change.
4593 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
4594 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
4595 Add implementation of pragma Optimize_Alignment
4596
4597 2008-03-26 Vincent Celier <celier@adacore.com>
4598
4599 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
4600 Improve memory usage to avoid use of stack.
4601
4602 2008-03-26 Robert Dewar <dewar@adacore.com>
4603
4604 * a-teioed.ads: Correct value of Default_Fill
4605
4606 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
4607
4608 2008-03-26 Robert Dewar <dewar@adacore.com>
4609
4610 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
4611 with Current_Output (introduce Self).
4612
4613 2008-03-26 Robert Dewar <dewar@adacore.com>
4614
4615 * checks.adb (Ensure_Valid): Capture valid status if possible
4616 (eliminate checks)
4617
4618 2008-03-26 Robert Dewar <dewar@adacore.com>
4619
4620 * stand.ads: Deal with reordering of package standard declarations
4621
4622 * cstand.adb: Put package Standard declarations in proper order
4623
4624 2008-03-26 Robert Dewar <dewar@adacore.com>
4625
4626 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
4627 (Pragma_Identifier (.. instead.
4628 (OK_To_Reorder_Components): New flag
4629 (Has_Entries): Code cleanup.
4630 (Warnings_Off_Used): New flag
4631 (Warnings_Off_Used_Unmodified): New flag
4632 (Warnings_Off_Used_Unreferenced): New flag
4633 (Has_Warnings_Off): New function
4634 (Has_Unmodified): New function
4635 (Has_Unreferenced): New function
4636 (Is_Trivial_Subprogram): New flag
4637 (Is_Static_Dispatch_Table_Entity): New attribute.
4638 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
4639 (more consistent with other similar names)
4640 (Access_Subprogram_Type): New classification function
4641
4642 2008-03-26 Robert Dewar <dewar@adacore.com>
4643
4644 * errout.ads: Document new !! insertion sequence
4645
4646 * errout.adb (N_Pragma): Chars field removed, use Chars
4647 (Pragma_Identifier (.. instead.
4648 Replace use of Warnings_Off by Has_Warnings_Off
4649 (Error_Msg_Internal): Don't delete warning ending in !!
4650
4651 2008-03-26 Robert Dewar <dewar@adacore.com>
4652
4653 * par.adb (Check_No_Right_Paren): Removed no longer used
4654
4655 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
4656 (Pragma_Identifier (.. instead.
4657
4658 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
4659
4660 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
4661 par-ch4.adb: Minor improvements in error recovery and messages.
4662
4663 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
4664 non-serious
4665
4666 * par-ch9.adb: Minor improvements in error recovery and messages
4667 (P_Protected): Better error recovery for "protected type x;"
4668
4669 * par-util.adb: Minor improvements in error recovery and messages
4670 (Check_No_Right_Paren): Removed no longer used
4671
4672 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4673
4674 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
4675 that the prefix of an attribute is the type of the aggregate being
4676 expanded.
4677
4678 2008-03-26 Javier Miranda <miranda@adacore.com>
4679 Robert Dewar <dewar@adacore.com>
4680
4681 * exp_attr.adb (N_Pragma): Chars field removed.
4682 (Expand_N_Attribute_Reference): If the designated type associated with
4683 attribute 'Unrestricted_Access is a subprogram entity then replace it
4684 by an E_Subprogram_Type itype.
4685 Implement attribute Old
4686
4687 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
4688
4689 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
4690 Replace call to
4691 New_Internal_Entity by call to Create_Itype to centralize calls
4692 building itypes, ad propagate the convention of the designated
4693 subprogram. In addition, disable the machinery cleaning constant
4694 indications from all entities in current scope when 'Unrestricted_Access
4695 corresponds with a node initializing a dispatch table slot.
4696 (Analyze_Attribute): Parameterless attributes returning a string or a
4697 type will not be called with improper arguments, so we can remove junk
4698 code that was dealing with this case.
4699 Implement attribute Old
4700
4701 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
4702 Add entry for pragma Optimize_Alignment
4703 New standard names Sync and Synchronize
4704
4705 2008-03-26 Robert Dewar <dewar@adacore.com>
4706 Arnaud Charlet <charlet@adacore.com>
4707
4708 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
4709 stmt.
4710 (No_Exception_Propagation_Active): New function.
4711 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4712 Update comments, and review all uses of No_Exception_Propagation, which
4713 are now correct and in sync with what gigi expects.
4714
4715 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
4716 function.
4717 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4718 Update comments, and review all uses of No_Exception_Propagation, which
4719 are now correct and in sync with what gigi expects.
4720
4721 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4722
4723 * sem_ch3.adb (Access_Definition): If the access type is the return
4724 result of a protected function, create an itype reference for it
4725 because usage will be in an inner scope from the point of declaration.
4726 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
4727 OK_To_Reorder_Components.
4728 (Make_Index): If an overloaded range includes a universal integer
4729 interpretation, resolve to Standard.Integer.
4730 (Analyze_Subtype_Indication): Copy Convention to subtype
4731 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4732 limited an synchronized progenitors in type declaration and private
4733 extension declarations.
4734
4735 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4736 protected subprogram body, determine proper scope from subprogram
4737 declaration.
4738
4739 2008-03-26 Robert Dewar <dewar@adacore.com>
4740
4741 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4742 No_Run_Time_Mode
4743
4744 2008-03-26 Gary Dismukes <dismukes@adacore.com>
4745
4746 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4747 of a heap allocator for a limited unconstrained function return when
4748 resstriction No_Allocators is active.
4749 (Analyze_Allocator): The restriction No_Allocators is now only checked
4750 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4751
4752 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
4753 of a heap allocator for a limited unconstrained function return when
4754 resstriction No_Allocators is active.
4755 (Analyze_Allocator): The restriction No_Allocators is now only checked
4756 on allocators that have Comes_From_Source set, as per RM-H.4(7).
4757 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
4758 operands are fixed-point types, the universal_fixed predefined operation
4759 is used, regardless of whether the operand type (s) have a primitive
4760 operation of the same name.
4761
4762 2008-03-26 Javier Miranda <miranda@adacore.com>
4763
4764 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
4765 Is_Static_Dispatch_Table
4766 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
4767 to Exchange_Declarations to exchange the private and full-view. Bug
4768 found working in this issue.
4769 (Expand_Dispatching_Call): Propagate the convention of the subprogram
4770 to the subprogram pointer type.
4771 (Make_Secondary_DT): Replace generation of Prim'Address by
4772 Address (Prim'Unrestricted_Access)
4773 (Make_DT): Replace generation of Prim'Address by
4774 Address (Prim'Unrestricted_Access)
4775 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
4776 simple call form for single entry.
4777 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
4778 tables of predefined primitives).
4779 (Make_Secondary_DT): Add support to handle access to dispatch tables of
4780 predefined primitives.
4781 (Make_Tags): Add entities to Access_Dispatch_Table associated with
4782 access to dispatch tables containing predefined primitives.
4783
4784 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
4785 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4786 this change.
4787 (Register_Predefined_DT_Entry): Updated to handle the new contents
4788 of attribute Access_Disp_Table (pointers to dispatch tables containing
4789 predefined primitives).
4790
4791 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
4792 subprogram.
4793 (Find_Interface_ADT): Updated to skip the new contents of attribute
4794 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4795 primitives).
4796
4797 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
4798 concurrent types.
4799 (Set_Convention): Use new function Is_Access_Subprogram_Type
4800 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
4801 Access_Dispatch_Table (pointers to dispatch tables containing predefined
4802 primitives).
4803
4804 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
4805 expanded code avoiding calls to Build_Predef_Prims.
4806 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
4807 call to Build_Get_Predefined_Prim_Op_Address.
4808
4809 2008-03-26 Javier Miranda <miranda@adacore.com>
4810
4811 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
4812 subprogram Corresponding_Runtime_Package to know the runtime package
4813 that will provide support to a given protected type.
4814
4815 * exp_ch9.adb (Add_Private_Declarations,
4816 Build_Protected_Subprogram_Call,
4817 Build_Protected_Entry, Build_Simple_Entry_Call,
4818 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
4819 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
4820 cleanup using the new centralized subprogram Corresponding_Runtime
4821 Package to know the runtime package that provides support to
4822 a given protected type.
4823
4824 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4825
4826 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
4827 assignment is within the initialization procedure for a packed array,
4828 and Initialize_Scalars is enabled, compile right-hand side with checks
4829 off, because the value is purposely out of range.
4830
4831 2008-03-26 Vincent Celier <celier@adacore.com>
4832
4833 * gnatcmd.adb: Add processing for GNAT SYNC
4834
4835 * vms_conv.ads: (Command_Type): Add command Sync
4836
4837 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
4838
4839 * vms_data.ads: Add entries for -gnatw.w
4840 Add qualifier for gnatstub --header-file option
4841 Add switches for GNAT SYNC
4842
4843 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
4844 (Add_Package_Name): New procedure
4845 (Package_Name_List): New function
4846 (Initialize): Add known package names to the list
4847 (Register_New_Package): Add the new package name to the list
4848
4849 2008-03-26 Robert Dewar <dewar@adacore.com>
4850
4851 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
4852 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
4853 Raise_Exception by "raise with" construct.
4854
4855 2008-03-26 Pascal Obry <obry@adacore.com>
4856
4857 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
4858 supported platforms.
4859
4860 * Makefile.rtl: Add g-sercom.o.
4861
4862 * impunit.adb: Add g-sercom.adb.
4863
4864 * s-crtl.ads (open): New routine.
4865 (close): Likewise.
4866 (write): Likewise.
4867
4868 * s-osinte-mingw.ads (BYTE): New type.
4869 (CHAR): Likewise.
4870 (OVERLAPPED): Likewise.
4871 (GENERIC_READ): New constant.
4872 (GENERIC_WRITE): Likewise.
4873 (OPEN_EXISTING): Likewise.
4874 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
4875 type instead.
4876 (CreateFile): New routine.
4877 (WriteFile): Likewise.
4878 (ReadFile): Likewise.
4879 (CloseHandle): Move next to the other file oriented routines.
4880
4881 * g-sercom.ads: New unit.
4882
4883 * g-sercom.adb: Default implementation, calls to this unit will raise
4884 a program error exception.
4885
4886 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
4887 GNU/Linux implementations.
4888
4889 2008-03-26 Robert Dewar <dewar@adacore.com>
4890
4891 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
4892
4893 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
4894 unchecked conversion for different conventions only for subprogram
4895 pointers or on VMS.
4896
4897 2008-03-26 Vincent Celier <celier@adacore.com>
4898
4899 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
4900 to check if the specified object file is correct.
4901
4902 2008-03-26 Thomas Quinot <quinot@adacore.com>
4903
4904 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
4905 Comes_From_Source to exclude primitives from being checked. We want to
4906 exclude predefined primitives only, so use the appropriate specific
4907 predicate. Also, flag a formal parameter of an anonymous
4908 access-to-subprogram type as illegal for a primitive operation of a
4909 remote access to class-wide type.
4910
4911 2008-03-26 Vincent Celier <celier@adacore.com>
4912
4913 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
4914 known, check if it may be a missspelling of a known package name. In
4915 not verbose, not mode, issue warnings only if the package name is a
4916 possible misspelling.
4917 In verbose mode, always issue a warning for a not known package name,
4918 plus a warning if the name is a misspelling of a known package name.
4919
4920 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
4921 limited withs or limited withs are parse during one call.
4922 (Parse_Single_Project): Post parse context clause in two passes: non
4923 limited withs before current project and limited withs after current
4924 project.
4925
4926 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
4927 project with the name With_Name, even if it is only extended indirectly.
4928 (Recursive_Process): Process projects in order: first single withs, then
4929 current project, then limited withs.
4930
4931 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
4932 project with the name With_Name, even if it is only extended indirectly.
4933
4934 2008-03-26 Robert Dewar <dewar@adacore.com>
4935
4936 * scn.adb (Initialize_Scanner): Format messages belong on standard error
4937
4938 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4939
4940 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
4941 a generic subprogram that is imported, do not attempt to compile
4942 non-existent body.
4943
4944 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
4945 imported, do not generate a raise_program_error for the non-existent
4946 body.
4947 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
4948 perform minimal name resolution on the generic to avoid spurious
4949 warnings.
4950 (Find_Actual_Type): the designated type of the actual in a child unit
4951 may be declared in a parent unit without being an actual.
4952
4953 2008-03-26 Robert Dewar <dewar@adacore.com>
4954
4955 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
4956 * sinfo.ads, sinfo.adb (From_At_End): New flag
4957
4958 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4959
4960 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
4961 operations that have an interface parameter.
4962 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
4963 Don't treat No_Return call as raise.
4964
4965 * sem_disp.adb (Check_Dispatching_Operations): apply check for
4966 non-primitive interface primitives to access parameters, not to all
4967 parameters of an access type.
4968
4969 2008-03-26 Ed Schonberg <schonberg@adacore.com>
4970
4971 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
4972 declarations of a parent unit are made visible when compiling a child
4973 instance, the parent is not a hidden open scope, even though it may
4974 contain other pending instance.
4975
4976 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
4977 hidden open scope for some child instance, it does affect the
4978 visibility status of other stach entries.
4979 (Analyze_Object_Renaming): Check that a class-wide object cannot be
4980 renamed as an object of a specific type.
4981
4982 2008-03-26 Robert Dewar <dewar@adacore.com>
4983
4984 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
4985 recursion and raise SE directly.
4986 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
4987 set for formal type for IN mode parameter.
4988
4989 2008-03-26 Robert Dewar <dewar@adacore.com>
4990
4991 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
4992 (Initialize): New procedure
4993 (Output_Warnings_Off_Warnings): New procedure
4994 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
4995 (Output_Non_Modifed_In_Out_Warnings): Ditto
4996 (Warn_On_Unreferenced_Entity): Ditto
4997
4998 2008-03-26 Vincent Celier <celier@adacore.com>
4999
5000 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5001 readable.
5002
5003 2008-03-26 Matthew Heaney <heaney@adacore.com>
5004
5005 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
5006 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5007 Marked with clauses as private, and controlled operations as overriding
5008
5009 2008-03-26 Robert Dewar <dewar@adacore.com>
5010
5011 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5012
5013 2008-03-26 Robert Dewar <dewar@adacore.com>
5014
5015 * back_end.adb, back_end.ads: Minor reformatting
5016
5017 * bindgen.adb: Minor clarification of comments
5018
5019 * fname.ads: Minor comment fixes
5020
5021 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5022 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5023
5024 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5025 xsnames.adb: Remove warnings off pragma no longer needed
5026
5027 * a-catizo.ads, a-calari.ads, a-calfor.adb,
5028 a-calfor.ads: Fix header.
5029
5030 2008-03-26 Tristan Gingold <gingold@adacore.com>
5031
5032 * init.c: Do not adjust pc for HPARITH on alpha/vms.
5033
5034 2008-03-26 Robert Dewar <dewar@adacore.com>
5035
5036 * lib-xref.adb: (OK_To_Set_Reference): New function
5037 (Generate_Reference): Don't set referenced from occurrence in Warnings,
5038 Unmodified, or Unreferenced pragma
5039
5040 2008-03-26 Robert Dewar <dewar@adacore.com>
5041
5042 * alloc.ads: Add entries for Warnings_Off_Pragmas table
5043
5044 2008-03-26 GNAT Script <nobody@adacore.com>
5045
5046 * Make-lang.in: Makefile automatically updated
5047
5048 2008-03-26 Robert Dewar <dewar@adacore.com>
5049
5050 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5051 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5052 removed, use Chars (Pragma_Identifier (.. instead, adjustments
5053 throughout to accomodate this change.
5054
5055 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5056
5057 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5058 Einfo.Set_Needs_Debug_Info)
5059
5060 2008-03-26 Robert Dewar <dewar@adacore.com>
5061
5062 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5063 Add description for the new gnatstub option '--header-file'
5064 clarification of -gnatwz/-gnatwZ
5065 Add a "Irix-Specific Considerations" section to document the need to
5066 set LD_LIBRARY_PATH when using the default shared runtime library.
5067 Added documentation for both gcov and gprof.
5068
5069 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
5070 messages that are not suppressed when clients are compiled.
5071 Add documentation of s-pooglo s-pooloc
5072 Document the new GNAT.Serial_Communications API.
5073 Add documentation for 'Old attribute
5074 Add description of pragma Optimize_Alignment
5075
5076 * ug_words: Add entries for -gnatw.w -gnatw.W
5077
5078 * usage.adb: Add line for -gnatw.w (warn on warnings off)
5079
5080 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
5081
5082 Revert
5083 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5084 PR ada/35186
5085 * decl.c (maybe_pad_type): Avoid padding an integral type when
5086 bumping its alignment is sufficient.
5087
5088 2008-03-25 Arnaud Charlet <charlet@adacore.com>
5089
5090 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
5091 Fix wrong formatting (lines too long)
5092
5093 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5094
5095 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
5096 a-calend-vms.adb, a-calend.adb, a-calend.ads,
5097 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
5098 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
5099 a-cohama.ads, a-comlin.ads, a-coorse.adb,
5100 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
5101 a-except-2005.ads, a-except.adb, a-except.ads,
5102 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
5103 a-exextr.adb, a-filico.ads, a-finali.ads,
5104 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
5105 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
5106 a-sequio.ads, a-strbou.ads, a-strfix.adb,
5107 checks.adb, exp_ch3.adb, exp_ch4.adb,
5108 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
5109 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
5110 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
5111 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
5112 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
5113
5114 2008-03-24 Robert Dewar <dewar@adacore.com>
5115
5116 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5117 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5118 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5119 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5120 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5121 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5122 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5123 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5124 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5125 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5126 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5127 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5128 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5129 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5130 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5131 double spaced if it fits on one line and otherwise single spaced.
5132
5133 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5134
5135 PR documentation/15479
5136 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
5137 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
5138 (doc/gnat_ugn.info): Renamed from ...
5139 (doc/gnat_ugn_unw.info): ... this.
5140 (doc/gnat_ugn.dvi): Renamed from ...
5141 (doc/gnat_ugn_unw.dvi): ... this.
5142 (doc/gnat_ugn.pdf): Renamed from ...
5143 (doc/gnat_ugn_unw.pdf): ... this.
5144 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
5145 Adjusted.
5146 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
5147 unconditionally to gnat_ugn.info. Fix cross references to the
5148 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
5149 and GNU make manuals to be proper texinfo links.
5150 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
5151
5152 2008-03-21 Olivier Hainque <hainque@adacore.com>
5153
5154 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
5155 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
5156
5157 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
5158
5159 * trans.c (addressable_p): Add notes on addressability issues.
5160
5161 2008-03-21 Olivier Hainque <hainque@adacore.com>
5162 Ed Schonberg <schonberg@adacore.com>
5163
5164 * trans.c (addressable_p): Accept COND_EXPR when both arms
5165 are addressable.
5166 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
5167 (call_to_gnu): Do not use name reference in the error message
5168 for a misaligned by_reference_parameter. The actual may be a
5169 general expression.
5170
5171 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
5172
5173 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5174
5175 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5176
5177 * gnat_rm.texi (Implementation Defined Characteristics)
5178 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
5179 appropriate.
5180 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
5181 (Switches for gnatchop, Installing a library): Likewise.
5182
5183 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
5184
5185 * trans.c (emit_range_check): Do not emit the check if the base type
5186 of the expression is the type against which its range must be checked.
5187
5188 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5189
5190 * decl.c (maybe_pad_type): Use value_factor_p.
5191
5192 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5193
5194 * lang.opt (nostdlib): Move around.
5195 * misc.c (gnat_handle_option): Fix formatting.
5196 (gnat_dwarf_name): Move around.
5197 * trans.c (Case_Statement_to_gnu): Fix formatting.
5198 (gnat_to_gnu): Likewise.
5199 * utils.c (aggregate_type_contains_array_p): Likewise.
5200 (create_subprog_decl): Likewise.
5201
5202 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5203
5204 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
5205 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
5206
5207 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5208
5209 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
5210 BIGGEST_ALIGNMENT when capping the alignment of records with
5211 strict alignment and size clause.
5212
5213 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5214
5215 * lang-specs.h: Pass -gnatwa if -Wall is passed.
5216 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
5217 and -Wuninitialized.
5218 (gnat_post_options): Clear warn_unused_parameter.
5219
5220 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5221
5222 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
5223 aligned bit-fields, bumping the alignment of the record type if deemed
5224 profitable.
5225 (value_factor_p): Return false instead of 0.
5226
5227 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5228
5229 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
5230 for scalar types with small alignment.
5231
5232 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5233
5234 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
5235 from that of the front-end's end label.
5236 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
5237 from that of the loop label.
5238
5239 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5240
5241 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
5242 comment for the packed array type case.
5243 * utils.c (build_template): Use a loop to strip padding or
5244 containing records for justified modular types.
5245
5246 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5247
5248 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
5249 large alignments specified for types.
5250 (validate_alignment): Minor cleanup.
5251
5252 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5253
5254 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
5255 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
5256 the component for packing, if possible, as well as if a component
5257 size clause is specified.
5258 <E_Record_Subtype>: For an array type used to implement a packed
5259 array, get the component type from the original array type.
5260 Try to get a smaller form of the component for packing, if possible,
5261 as well as if a component size clause is specified.
5262 (round_up_to_align): New function.
5263 (make_packable_type): Add in_record parameter.
5264 For a padding record, preserve the size. If not in_record and the
5265 size is too large for an integral mode, attempt to shrink the size
5266 by lowering the alignment.
5267 Ditch the padding bits of the last component.
5268 Compute sizes and mode manually, and propagate the RM size.
5269 Return a BLKmode record type if its size has shrunk.
5270 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
5271 Use Original_Array_Type to retrieve the type in case of an error.
5272 Adjust call to make_packable_type.
5273 (gnat_to_gnu_field): Likewise.
5274 (concat_id_with_name): Minor tweak.
5275 * trans.c (larger_record_type_p): New predicate.
5276 (call_to_gnu): Compute the nominal type of the object only if the
5277 parameter is by-reference. Do the conversion actual type -> nominal
5278 type if the nominal type is a larger record.
5279 (gnat_to_gnu): Do not require integral modes on the source type to
5280 avoid the conversion for types with identical names.
5281 (addressable_p): Add gnu_type parameter. If it is specified, do not
5282 return true if the expression is not addressable in gnu_type.
5283 Adjust recursive calls.
5284 * utils.c (finish_record_type): Remove dead code.
5285
5286 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5287
5288 PR ada/35186
5289 * decl.c (maybe_pad_type): Avoid padding an integral type when
5290 bumping its alignment is sufficient.
5291
5292 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5293
5294 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
5295 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
5296 statement.
5297 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
5298 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
5299 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
5300 code output strings.
5301 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
5302 system-vms_64.ads: Fix typos in ada source code comments.
5303 * sinfo-cn.adb: Remove incomplete sentence.
5304
5305 PR documentation/15479
5306 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
5307
5308 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5309
5310 PR ada/22255
5311 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
5312
5313 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
5314
5315 PR ada/34799
5316 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
5317 that underlying type is present.
5318
5319 2008-02-26 Tom Tromey <tromey@redhat.com>
5320
5321 * misc.c (internal_error_function): Remove test of
5322 USE_MAPPED_LOCATION.
5323 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
5324 (Sloc_to_locus): Remove old location code.
5325
5326 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5327
5328 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
5329 `i.e.' by adding comma or `@:' as appropriate.
5330 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
5331 plain characters `C', use `@samp{C}'.
5332 * gnat_ugn.texi (File Naming Rules, About gnatkr)
5333 (Krunching Method): Likewise.
5334
5335 * gnat_ugn.texi (Conventions): List environment variables and
5336 metasyntactic variables.
5337 (Compiling Programs): Fix notation of metasyntactic variables.
5338 Add @file where appropriate. Use @file for file extensions,
5339 @samp for strings.
5340 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
5341 instead of @file, @env instead of @code.
5342
5343 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5344
5345 PR documentation/15479
5346 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
5347 and `...' with `@dots{}' or `@enddots{}'.
5348
5349 PR documentation/15479
5350 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
5351 use @command instead of @code, @option instead of @samp or @code,
5352 @code instead of @var, @samp instead of @file.
5353
5354 PR documentation/15479
5355 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
5356 in Makefile rules, by using `&&' rather than `;'.
5357
5358 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5359
5360 PR documentation/15479
5361 * gnat_ugn.texi: In non-code, avoid space before colon.
5362 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
5363 (Examples of gnatxref Usage): Use @command{vi} instead of
5364 @file{vi}.
5365 (Character Set Control): Do not use @code for UTF-8.
5366 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
5367 use @code for IEEE.
5368 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
5369 sample.
5370 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
5371
5372 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
5373
5374 PR ada/35143
5375 * env.c: Add __rtems__ to if defined.
5376 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
5377 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
5378 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
5379 pragma Convention as required.
5380 * gsocket.h: Make compile in and out of RTS.
5381 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
5382 Use g-soccon-rtems.ads.
5383 * g-soccon-rtems.ads, system-rtems.ads: New files.
5384
5385 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5386
5387 PR other/35107
5388 * Make-lang.in (gnat1): Add $(GMPLIBS).
5389
5390 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
5391
5392 * decl.c (components_to_record): Improve comment.
5393
5394 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5395
5396 * decl.c (components_to_record): Do not reuse the empty union type
5397 if there is a representation clause on the record.
5398 * trans.c (addressable_p): Return true for INTEGER_CST.
5399
5400 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
5401
5402 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
5403 in pointer arithmetics.
5404 * utils2.c (build_allocator): Likewise.
5405
5406 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5407
5408 * utils.c (build_function_stub): Properly build the call expression.
5409
5410 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5411
5412 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
5413 before converting the expression to the type of the object.
5414 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
5415 Stabilize constructors for special wrapping types.
5416
5417 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
5418
5419 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
5420 when necessary. Merge some conditional statements. Update comments.
5421 Rename unchecked_convert_p local variable to suppress_type_conversion.
5422 Do not suppress conversions in the In case.
5423 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
5424 into account on non strict-alignment platforms.
5425
5426 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5427
5428 * utils.c (aggregate_type_contains_array_p): New predicate.
5429 (create_field_decl): In a packed record, force byte alignment
5430 for fields without specified position that contain an array.
5431
5432 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5433
5434 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
5435
5436 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
5437
5438 PR ada/34466
5439 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
5440 sysconf call.
5441 (bit_field): New packed boolean type used by cpu_set_t.
5442 (cpu_set_t): New type corresponding to the C type with
5443 the same name. Note that on the Ada side we use a bit
5444 field array for the affinity mask. There is not need
5445 for the C macro for setting individual bit.
5446 (pthread_setaffinity_np): New imported routine.
5447
5448 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
5449
5450 PR ada/34647
5451 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5452 on OpenBSD as is done on other BSD systems.
5453
5454 PR ada/34645
5455 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
5456 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
5457 I/O.
5458
5459 PR ada/34644
5460 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
5461 clearenv().
5462
5463 PR ada/34646
5464 * init.c (__gnat_error_handler, __gnat_install_handler,
5465 __gnat_init_float): Define for OpenBSD.
5466
5467 * initialize.c (__gnat_initialize): Define for OpenBSD.
5468
5469 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
5470
5471 PR ada/34553
5472 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5473 instead of mktemp() or tmpnam() on NetBSD.
5474
5475 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
5476
5477 * trans.c (call_to_gnu): Make the temporary for non-addressable
5478 In parameters passed by reference.
5479 (addressable_p): Return true for STRING_CST and CALL_EXPR.
5480
5481 2007-12-19 Robert Dewar <dewar@adacore.com>
5482
5483 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
5484 Add pragma Warnings (Off) for unassigned IN OUT arguments
5485
5486 * sem_warn.adb (Output_Reference): Suppress messages for internal names
5487 (Check_References): Extensive changes to tune up warnings
5488 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
5489 (Has_Pragma_Unmodifed_Check_Spec): New function
5490 (Check_References): Implement pragma Unmodified
5491 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
5492
5493 * par-prag.adb: Dummy entry for pragma Unmodified
5494
5495 * sem_prag.adb: Implement pragma Unmodified
5496
5497 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
5498 (Proc_Next_Component_Or_Discriminant): Fix typo.
5499 Update comments.
5500
5501 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
5502 Unmodified.
5503 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
5504 because the former already takes care of discarding the result.
5505 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
5506 Add comment.
5507
5508 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
5509
5510 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
5511
5512 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
5513 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5514 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
5515 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
5516 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5517 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5518 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5519 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5520 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5521 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
5522 (Dynamic_Trampolines_Used): Delete.
5523
5524 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
5525 Turn on stack probing mechanism on LynxOS.
5526
5527 2007-12-19 Bob Duff <duff@adacore.com>
5528
5529 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
5530 the resulting tail recursion by hand. This prevents running out of
5531 memory on deeply nested concatenations, since Field2 is where the left
5532 operand of concatenations is stored.
5533 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
5534 clarify that it can only return OK or Abandon.
5535
5536 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
5537 operand by iteration, in order to avoid running out of memory on
5538 deeply-nested concatenations. Use the Parent pointer to get back up the
5539 tree.
5540 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
5541 Resolve_Op_Concat_Rest): New procedures split out of
5542 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
5543 clearer.
5544
5545 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
5546 Traverse_Func, because the former already takes care of discarding the
5547 result.
5548
5549 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
5550 because the former already takes care of discarding the result.
5551 (Remove_Warning_Messages): Use appropriate subtype for Status and
5552 Discard
5553
5554 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5555
5556 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
5557 discriminants forces expansion of the aggregate into assignments.
5558 (Init_Record_Controller): If the type of the aggregate is untagged and
5559 is not inherently limited, the record controller is not limited either.
5560
5561 2007-12-19 Robert Dewar <dewar@adacore.com>
5562
5563 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
5564 handling compile time known size of record or array (case of front end
5565 layout active, e.g. in GNAAMP).
5566
5567 2007-12-19 Javier Miranda <miranda@adacore.com>
5568
5569 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
5570 that forces the construction of static dispatch tables in case of
5571 record subtypes.
5572
5573 2007-12-19 Robert Dewar <dewar@adacore.com>
5574
5575 * exp_ch9.adb (Null_Statements): Moved to library level
5576 (Trivial_Accept_OK): New function
5577 (Expand_Accept_Declaration): Use Trivial_Accept_OK
5578 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
5579
5580 2007-12-19 Robert Dewar <dewar@adacore.com>
5581
5582 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
5583 in complex case where array is Volatile.
5584
5585 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5586
5587 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
5588 properly the Ada2005 rules concerning when the current instance of a
5589 record type is aliased.
5590
5591 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5592
5593 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
5594 mangled declaration
5595 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
5596 declarations.
5597 (P_Variant_Part): Cleaner patch for parenthesized discriminant
5598
5599 2007-12-19 Vincent Celier <celier@adacore.com>
5600
5601 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
5602 package is not known
5603
5604 * prj-attr.ads (Unknown_Package): New constant
5605 Do not crash when an unknown package is in several projects
5606
5607 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
5608 ignored
5609
5610 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
5611 existing package Language_Processing.
5612
5613 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5614 Gary Dismukes <dismukes@adacore.com>
5615 Samuel Tardieu <sam@rfc1149.net>
5616
5617 PR ada/15803, ada/15805
5618 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
5619 illegal access subtypes when there is a constrained partial view.
5620 (Check_For_Premature_Usage): New procedure inside
5621 Access_Subprogram_Declaration for checking that an access-to-subprogram
5622 type doesn't reference its own name within any formal parameters or
5623 result type (including within nested anonymous access types).
5624 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
5625 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
5626 context is an access_to_variable, the expression cannot be an
5627 access_to_constant.
5628
5629 2007-12-19 Bob Duff <duff@adacore.com>
5630
5631 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
5632 (Analyze_Concatenation): Use iteration instead of recursion in order
5633 to avoid running out of stack space for deeply nested concatenations.
5634
5635 2007-12-19 Ed Schonberg <schonberg@adacore.com>
5636 Gary Dismukes <dismukes@adacore.com>
5637
5638 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
5639 whose renamed entity is a subprogram that requires overriding.
5640 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
5641 issuing an error for premature usage and issue a message that says
5642 'type' rather than 'object'.
5643
5644 2007-12-19 Gary Dismukes <dismukes@adacore.com>
5645
5646 PR ada/34149
5647 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
5648 presence of a statically tagged operand (Present (Static_Tag)) with
5649 test for Indeterm_Ancestor_Call when determining whether to propagate
5650 the static tag to tag-indeterminate operands (which forces dispatching
5651 on such calls).
5652 (Check_Controlling_Formals): Ada2005, access parameters can have
5653 defaults.
5654 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
5655 not insert subprogram in list of primitive operations if already there.
5656
5657 2007-12-19 Tristan Gingold <gingold@adacore.com>
5658
5659 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
5660 global variable.
5661
5662 2007-12-19 Thomas Quinot <quinot@adacore.com>
5663
5664 Part of PR ada/33688
5665 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
5666 datagram info on Linux.
5667
5668 2007-12-19 Vincent Celier <celier@adacore.com>
5669
5670 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
5671 that the source path name is always found in the dependencies.
5672
5673 2007-12-19 Robert Dewar <dewar@adacore.com>
5674
5675 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
5676 Fix name of Wide_Wide_Latin_1/9 file names
5677 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
5678 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
5679 Add missing documentation for Ada.Command_Line.Response_File
5680 Update list of warning letters for Warnings pragma
5681 Add documentation for pragma Unmodified
5682
5683 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
5684
5685 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
5686
5687 2007-12-17 Arnaud Charlet <charlet@adacore.com>
5688
5689 * s-vxwork-alpha.ads: Removed, no longer used.
5690
5691 2007-12-15 Jakub Jelinek <jakub@redhat.com>
5692
5693 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
5694
5695 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
5696
5697 PR ada/34360
5698 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
5699 mlib-tgt-specific.adb.
5700
5701 2007-12-13 Bob Duff <duff@adacore.com>
5702
5703 * trans.c (Attribute_to_gnu): Check for violations of the
5704 No_Implicit_Dynamic_Code restriction. This checking used to be done in
5705 the front end, but is moved here so we can make it more accurate.
5706
5707 2007-12-13 Pascal Obry <obry@adacore.com>
5708
5709 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
5710 version is provided for older GNU/Linux distribution not
5711 supporting thread affinity sets.
5712
5713 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
5714 call.
5715 (bit_field): New packed boolean type used by cpu_set_t.
5716 (cpu_set_t): New type corresponding to the C type with
5717 the same name. Note that on the Ada side we use a bit
5718 field array for the affinity mask. There is not need
5719 for the C macro for setting individual bit.
5720 (pthread_setaffinity_np): New imported routine.
5721
5722 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
5723 no null.
5724 (Create_Task): Set the processor affinity mask if information
5725 is present.
5726
5727 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
5728
5729 2007-12-13 Robert Dewar <dewar@adacore.com>
5730
5731 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5732 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
5733 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
5734 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5735 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5736 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
5737 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
5738 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5739 for subprogram pointers.
5740
5741 * g-ctrl_c.adb: New file.
5742
5743 * g-ctrl_c.ads (Install_Handler): New body.
5744
5745 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5746 instead of obsolete function Is_Always_Inlined.
5747 (Freeze_Entity): check for tagged type in imported C subprogram
5748 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5749 (Freeze_Entity): check for convention Ada subprogram pointer in
5750 imported C subprogram.
5751 (Freeze_Fixed_Point_Type): In the case of a base type where the low
5752 bound would be chopped off and go from negative to zero, force
5753 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
5754 bound) so that the size computation for the base type will take
5755 negative values into account.
5756
5757 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
5758 Bob Duff <duff@adacore.com>
5759 Tristan Gingold <gingold@adacore.com>
5760
5761 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
5762 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5763 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5764 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5765 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5766 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5767 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
5768 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
5769 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
5770 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
5771 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
5772 (Always_Compatible_Rep): New flag to control trampolines globally.
5773 (Dynamic_Trampolines_Used): New flag for implementing the
5774 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
5775 and not yet set correctly for some targets).
5776
5777 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
5778 Simply indirectly call s-stchop when a task is created.
5779
5780 * ali.ads:
5781 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
5782 appears as an argument (entries A) in an ALI file.
5783
5784 * fe.h (Stack_Check_Limits): Declare new target parameter.
5785 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
5786
5787 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
5788 This variable is declared in C to be sure not subject to elaboration
5789 code.
5790 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
5791 Storage_Error.
5792
5793 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
5794 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
5795
5796 * s-stchop.ads: Add comments.
5797
5798 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
5799 limit method of stack checking.
5800
5801 * s-stchop-limit.ads: New file.
5802
5803 2007-12-13 Robert Dewar <dewar@adacore.com>
5804
5805 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
5806 a-cihama.adb, g-awk.adb,
5807 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
5808 warnings
5809
5810 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
5811
5812 * sem.adb: Update handling of assigned value/unreferenced warnings
5813
5814 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
5815
5816 * lib-xref.ads: Improve documentation for k xref type
5817
5818 * lib-xref.adb:
5819 Update handling of assigned value/unreferenced warnings
5820 (Generate_Reference): Warning for reference to entity for which a
5821 pragma Unreferenced has been given should be unconditional.
5822 If the entity is a discriminal, mark the original
5823 discriminant as referenced.
5824
5825 * sem_warn.ads, sem_warn.adb
5826 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
5827 no entities referenced in package
5828 (Check_One_Unit): Don't give message about no entities referenced in
5829 a package if a pragma Unreferenced has appeared.
5830 Handle new warning flag -gnatw.a/-gnatw.A
5831 Update handling of assigned value/unreferenced warnings
5832
5833 * atree.h: Add flags up to Flag247
5834 (Flag231): New macro.
5835
5836 2007-12-13 Jose Ruiz <ruiz@adacore.com>
5837
5838 * adaint.h: (__gnat_plist_init): Not defined for RTX.
5839
5840 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
5841 RTX systems.
5842
5843 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
5844 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
5845 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
5846 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
5847
5848 * mingw32.h:
5849 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
5850
5851 * sysdep.c (winflush_function for RTX): Procedure that does nothing
5852 since we only have problems with Windows 95/98, which are not
5853 supported by RTX.
5854 (__gnat_ttyname): Return the empty string on Nucleus, just as
5855 done on vxworks.
5856
5857 2007-12-13 Robert Dewar <dewar@adacore.com>
5858
5859 * a-textio.adb, a-textio.ads:
5860 Extensive changes to private part for wide character encoding
5861
5862 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
5863 (Look_Ahead): Fix mishandling of encoded sequences
5864 Move declaration of Wch_Con to private part (should not be visible)
5865
5866 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
5867 UTF-8. Probably this is never used, but if it is, brackets is
5868 clearly correct.
5869
5870 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
5871 setting wide character encoding for no main program case and when
5872 encoding is specified using -W?
5873 Initialize stack limit of environment task if stack limit method of
5874 stack checking is enabled.
5875 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
5876 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
5877 (Get_Main_Unit_Name): New function.
5878 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
5879 (Gen_Output_File): Set Bind_Main_Program to True for .NET
5880
5881 * bindusg.adb: Add line for -Wx switch
5882
5883 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
5884 Add comments
5885 Add new useful constant WC_Longest_Sequences
5886
5887 * switch-b.adb: Clean up handling of -Wx switch
5888 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5889
5890 * switch-c.adb: -gnatg activates warning on assertion errors
5891 For -gnatWx, set Wide_Character_Encoding_Method_Specified
5892
5893 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
5894
5895 2007-12-13 Robert Dewar <dewar@adacore.com>
5896 Ed Schonberg <schonberg@adacore.com>
5897
5898 * a-ngcoty.adb: New pragma Fast_Math
5899
5900 * opt.adb: New pragma Fast_Math
5901
5902 * par-prag.adb:
5903 Add Implemented_By_Entry to the list of pragmas which do not require any
5904 special processing.
5905 (Favor_Top_Level): New pragma.
5906 New pragma Fast_Math
5907
5908 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
5909 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
5910 Expand_Allocator_Expression): Take into account VM_Target
5911 (Expand_Attribute, case 'Identity): Handle properly the case where
5912 the prefix is a task interface.
5913 New pragma Fast_Math
5914
5915 * par.adb (Next_Token_Is): New function
5916 (P_Pragma): Add Skipping parameter
5917 (U_Left_Paren): New procedure
5918 (U_Right_Paren): New procedure
5919 New pragma Fast_Math
5920
5921 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
5922 subunit
5923 New pragma Fast_Math
5924
5925 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
5926 Implemented_By_Entry.
5927 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
5928 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
5929 items, since it can apply to more than one overloadable entity. Set
5930 new flag Has_Pragma_Inline_Always for Inline_Always case.
5931 (Analyze_Pragma, case Complex_Representation): Improve error message.
5932 (Analyze_Pragma, case Assert): When assertions are disabled build the
5933 rewritten code with Sloc of expression rather than pragma, so new
5934 warning about failing is not deleted.
5935 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
5936 protected types and update error message to reflect that. Test whether
5937 the protected type is allowed for the pragma (an error is issued if the
5938 type has any entries, or components that do not have preelaborable
5939 initialization).
5940 New pragma Fast_Math
5941 (Analyze_Pragma, case No_Return): Handle generic instance
5942
5943 * snames.h, snames.ads, snames.adb:
5944 Add new predefined name for interface primitive _Disp_Requeue.
5945 New pragma Fast_Math
5946
5947 * a-tags.ads, a-tags.adb: New calling sequence for
5948 String_To_Wide_[Wide_]String
5949 (Secondary_Tag): New subprogram.
5950
5951 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
5952 from Exp_Attr
5953 New calling sequence for String_To_Wide_[Wide_]String
5954 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
5955 the use of the secondary stack for image routines.
5956
5957 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
5958 calling sequence for String_To_Wide_[Wide_]String
5959
5960 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
5961 Ada 95 mode
5962 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
5963 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5964
5965 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
5966 (P_Formal_Part): Use Skipping parameter in P_Pragma call
5967 to improve error recovery
5968
5969 * par-util.adb (Next_Token_Is): New function
5970 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
5971
5972 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
5973 semicolon if missing
5974 (P_Pragma): Implement new Skipping parameter
5975 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5976 Fix location of flag for unrecognized pragma message
5977
5978 * par-tchk.adb (U_Left_Paren): New procedure
5979 (U_Right_Paren): New procedure
5980
5981 2007-12-13 Geert Bosch <bosch@adacore.com>
5982
5983 * a-tifiio.adb:
5984 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
5985 the second or later Scaled_Divide would omit leading zeroes,
5986 resulting in too few digits produced and a Layout_Error as result.
5987 (Put): Initialize Pos.
5988
5989 2007-12-13 Robert Dewar <dewar@adacore.com>
5990
5991 atree.ads, atree.adb (Flag231..Flag247): New functions
5992 (Set_Flag231..Set_Flag247): New procedures
5993 (Basic_Set_Convention): Rename Set_Convention to be
5994 Basic_Set_Convention
5995 (Nkind_In): New functions
5996 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
5997
5998 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
5999 instead
6000 of obsolete function Is_Always_Inlined
6001 (Register_Predefined_DT_Entry): Initialize slots of the second
6002 secondary dispatch table.
6003 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6004 (Expand_N_Function_Call): Remove special provision for stack checking.
6005
6006 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6007 Include _Disp_Requeue in the list of predefined operations.
6008 (Find_Interface_ADT): Modified to fulfill the new specification.
6009 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6010
6011 * par-ch4.adb, nlists.ads, nlists.adb:
6012 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6013
6014 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6015 Fix location of flag for unrecognized pragma message
6016
6017 * sem_ch7.adb: Use Nkind_In
6018
6019 2007-12-13 Vincent Celier <celier@adacore.com>
6020
6021 * opt.ads:
6022 Indicate what flags are used by the Project Manager, gprbuild and
6023 gprclean.
6024 (Opt.Follow_Links_For_Dirs): New flag
6025 (Warn_On_Assertion_Failure): New flag
6026 (Wide_Character_Encoding_Method_Specified): New flag
6027 (Suppress_All_Inlining): New switch set by -fno-inline
6028 (Real_VMS_Target): New flag
6029 New pragma Fast_Math
6030
6031 2007-12-13 Robert Dewar <dewar@adacore.com>
6032
6033 * back_end.adb: Recognize -fno-inline
6034
6035 2007-12-13 Robert Dewar <dewar@adacore.com>
6036
6037 * checks.adb: Fix optimization problem with short-circuited form
6038
6039 2007-12-13 Bob Duff <duff@adacore.com>
6040
6041 * clean.adb (Usage): Add line for -aP
6042 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6043 with a parameter "procedure Usage", instead of passing a pointer to a
6044 procedure. This is to eliminate trampolines (since the Usage procedure
6045 is often nested in a main procedure, and it would be inconvenient to
6046 unnest it).
6047
6048 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6049 to be generic, with a parameter "procedure Callback (...)", instead of
6050 passing a pointer to a procedure. This is to eliminate trampolines
6051 (since the Callback procedure is usually nested).
6052
6053 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
6054 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6055 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6056
6057 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6058 Use the generic Heap_Sort_G instead of Heap_Sort_A.
6059
6060 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6061
6062 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6063 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6064 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6065 (Renamed_In_Spec): New flag
6066 (Has_Pragma_Inline_Always): New flag
6067 Add missing doc for pragma Obsolescent_Warning
6068 Add missing doc for 17 additional unused flags (230-247)
6069 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
6070 Alphabetize with clauses.
6071 Separate Is_Thunk and Has_Thunks flags
6072 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
6073 (Related_Interface): Renamed to Related_Type.
6074 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
6075 (Set_Is_Flag): Restrict the assertion.
6076
6077 2007-12-13 Vincent Celier <celier@adacore.com>
6078
6079 * errout.adb (Output_Source_Line): Do not keep a trailing space after
6080 the source line number if the source line is empty.
6081
6082 2007-12-13 Geert Bosch <bosch@adacore.com>
6083
6084 * eval_fat.adb (Decompose_Int): Handle argument of zero.
6085 (Compose): Remove special casing of zero.
6086 (Exponent): Likewise.
6087 (Fraction): Likewise.
6088 (Machine): Likewise.
6089 (Decompose): Update comment.
6090
6091 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6092
6093 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
6094 limited ancestor part, initialize controllers of enclosing record
6095 before expanding ancestor aggregate.
6096 (Gen_Assign): If a component of the aggregate is box-initialized, add
6097 code to call Initialize if the component is controlled, and explicit
6098 assignment of null if the component is an access type.
6099
6100 Handle properly aggregates for limited types that appear in object
6101 declarations when the aggregate contains controlled values such as
6102 protected types.
6103 When expanding limited aggregates into individual components, do not
6104 call Adjust on controlled components that are limited.
6105
6106 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6107
6108 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
6109
6110 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6111
6112 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
6113 predefined primitive _Disp_Requeue.
6114 (Make_Predefined_Primitive_Specs): Create the spec for predefined
6115 primitive _Disp_Requeue.
6116 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
6117 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
6118 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
6119 an interface type. In case of limited interfaces we now declare all the
6120 predefined primitives associated with synchronized interfaces as
6121 abstract.
6122 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
6123 declarations.
6124 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
6125 tagged type is an interface type and there is no user-defined equality
6126 function.
6127 Add also bodies of predefined primitives associated with synchronized
6128 interfaces.
6129 (Freeze_Record_Type): Do not build bodies of predefined primitives of
6130 interface types because they are now defined abstract.
6131 Add missing documentation.
6132 (Expand_Record_Controller): Update occurrence of Related_Interface
6133 to Related_Type.
6134 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
6135 (Expand_N_Object_Declaration): Take into account VM_Target when handling
6136 class wide interface object declaration.
6137 (Expand_Previous_Access_Type): Do not create a duplicate master entity
6138 if the access type already has one.
6139 (Expand_N_Object_Declaration): Defend against attempt to validity check
6140 generic types. Noticed for -gnatVcf specified with previous errors.
6141
6142 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6143
6144 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6145 Expand_Allocator_Expression): Take into account VM_Target
6146
6147 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
6148 secondary stack when VM_Target /= No_VM
6149
6150 2007-12-13 Javier Miranda <miranda@adacore.com>
6151 Ed Schonberg <schonberg@adacore.com>
6152
6153 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
6154 Is_Complation_Unit by Is_Library_Level_Entity in the code
6155 that decides if the static dispatch tables need to be built.
6156 (Wrap_Transient_Declaration): Do not generate a finalization call if
6157 this is a renaming declaration and the renamed object is a component
6158 of a controlled type.
6159
6160 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6161
6162 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
6163 In the case where the renamed subprogram is a dereference, call
6164 Force_Evaluation on the prefix.
6165
6166 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6167 Ed Schonberg <schonberg@adacore.com>
6168
6169 * exp_ch9.adb (Expand_N_Asynchronous_Select,
6170 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
6171 comment reformatting.
6172 (Set_Privals): Inherit aliased flag from formal. From code reading.
6173 (Build_Simple_Entry_Call): Out parameters of an access type are passed
6174 by copy and initialized from the actual. This includes entry parameters.
6175 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
6176 and Ada 2005 models of requeue.
6177 (Null_Statements): Still connsider do-end block null if it contains
6178 Unreferenced and Warnings pragmas.
6179 (Expand_N_Accept_Statement): Do not optimize away null do end if
6180 dispatching policy is other than defaulted.
6181 (Expand_N_Timed_Entry_Call): When the triggering statement is a
6182 dispatching call, manually analyze the delay statement.
6183 (Find_Parameter_Type): Move subprogram to Sem_Util.
6184
6185 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6186 Javier Miranda <miranda@adacore.com>
6187
6188 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
6189 _Disp_Requeue occupies dispatch table slot number 15. Move
6190 _Disp_Timed_Select to slot 16.
6191 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
6192 generate the spec and body of _Disp_Reqeueue.
6193 (Make_DT): Build and initialize the second dispatch table.
6194 Handle initialization of RC_Offset when the parent
6195 is a private type with variable size components.
6196 (Make_Secondary_DT): Complete documentation. Add support to
6197 initialize the second dispatch table.
6198 (Make_Tags): Generate the tag of the second dispatch table.
6199 (Register_Primitive): Add support to register primitives in the
6200 second dispatch table.
6201
6202 2007-12-13 Pascal Obry <obry@adacore.com>
6203
6204 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
6205 Windows. This signal is used by gnatmake to kill child processes for
6206 example.
6207
6208 2007-12-13 Javier Miranda <miranda@adacore.com>
6209
6210 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
6211 support for generic dispatching constructor calls in which we need to
6212 locate the tag of a secondary dispatch table associated with an
6213 interface type to properly dispatch the call.
6214 (Expand_N_Attribute_Reference [case Address],
6215 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
6216 handling of VM targets.
6217
6218 2007-12-13 Robert Dewar <dewar@adacore.com>
6219 Ed Schonberg <schonberg@adacore.com>
6220
6221 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
6222 assert fail
6223
6224 * ug_words: Add entries for -gnatw.a -gnatw.A
6225
6226 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
6227 literal is a subtype with non-static constraints, use the base type of
6228 the context as the base of the string subtype, to prevent type
6229 mismatches in gigi.
6230 (Resolve_Actuals): If the actual is an entity name, generate a
6231 reference before the actual is resolved and expanded, to prevent
6232 spurious warnings on formals of enclosing protected operations.
6233 (Analyze_Overloaded_Selected_Component): If type of prefix if
6234 class-wide, use visible components of base type.
6235 (Resolve_Selected_Component): Ditto.
6236 (Resolve_Short_Circuit): Detect case of pragma Assert argument
6237 evaluating to False, and issue warning message.
6238
6239 * usage.adb: Add lines for -gnatw.a and -gnatw.A
6240
6241 2007-12-13 Emmanuel Briot <briot@adacore.com>
6242
6243 * g-calend.ads (No_Time): New constant, to represent an uninitialized
6244 time value
6245
6246 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
6247 formats.
6248 (Month_Name_To_Number): New subprogram
6249
6250 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
6251 letter to upper-case.
6252
6253 2007-12-13 Robert Dewar <dewar@adacore.com>
6254 Ed Schonberg <schonberg@adacore.com>
6255
6256 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
6257
6258 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
6259 context is a limited view, use non-limited view when available. If the
6260 non-limited view is an unconstrained array, this enforces consistency
6261 requirements in 3.10.2 (27).
6262 (Layout_Type): For an access type whose designated type is a limited
6263 view, examine its declaration to determine if it is an unconstrained
6264 array, and size the access type accordingly.
6265 (Layout_Type): Do not force 32-bits for convention c subprogram
6266 pointers in -gnatdm mode, only if real vms target.
6267
6268 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
6269 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6270 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
6271 violations of the No_Implicit_Dynamic_Code restriction.
6272 (Resolve_Attribute, case 'Access): If designated type of context is a
6273 limited view, use non-limited view when available. If the non-limited
6274 view is an unconstrained array, this enforces consistency requirements
6275 in 3.10.2 (27).
6276 (Layout_Type): For an access type whose designated type is a limited
6277 view, examine its declaration to determine if it is an unconstrained
6278 array, and size the access type accordingly.
6279
6280 2007-12-13 Vincent Celier <celier@adacore.com>
6281
6282 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
6283 object directory of main project does not exist.
6284 On VMS, correctly set then environment variable for the source
6285 directories.
6286
6287 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6288
6289 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
6290 set to True this procedure will create the value of type REG_EXPAND_SZ.
6291 It was only possible to create REG_SZ values before.
6292
6293 2007-12-13 Robert Dewar <dewar@adacore.com>
6294
6295 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
6296 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
6297 namet-sp.adb, namet-sp.ads: New files.
6298
6299 * g-speche.adb: Use generic routine in g-spchge
6300
6301 * s-wchcnv.ads, s-wchcnv.adb:
6302 Minor code cleanup (make formal type consistent with spec)
6303
6304 * namet.adb: Update comments.
6305
6306 * par-endh.adb (Evaluate_End_Entry): Use new
6307 Namet.Sp.Is_Bad_Spelling_Of function
6308
6309 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
6310
6311 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
6312 ancestor is an access type initialized with a box, set its type
6313 explicitly, for use in subsequent expansion.
6314 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
6315 function
6316
6317 2007-12-13 Robert Dewar <dewar@adacore.com>
6318
6319 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
6320 access Vstring)
6321
6322 2007-12-13 Robert Dewar <dewar@adacore.com>
6323
6324 * inline.adb (Back_End_Cannot_Inline): Use new flag
6325 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6326
6327 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
6328 Has_Pragma_Inline_Always instead.
6329 of obsolete function Is_Always_Inlined
6330 (Build_Body_To_Inline): Same change
6331 (Cannot_Inline): Same change
6332 Do not give warning on exception raise in No_Return function
6333
6334 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
6335 component has two inconsistent component clauses in the same record
6336 representation clause, favor the message that complains about
6337 duplication rather than inconsistency.
6338 Update comments.
6339 (Record_Representation_Clause): Do not warn on missing component
6340 clauses for inherited components of a type extension.
6341 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
6342 an overloadable item if it is a pragma that can apply to multiple
6343 overloadable entities (e.g. Inline) because a pragma cannot be on
6344 more than one chain at a time.
6345 (Validate_Unchecked_Conversion): Add code to warn on unchecked
6346 conversion where one of the operands is Ada.Calendar.Time.
6347 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
6348 For now, ignore Component_Size clause on VM targets, as done for
6349 pragma Pack.
6350
6351 2007-12-13 Emmanuel Briot <briot@adacore.com>
6352 Vincent Celier <celier@adacore.com>
6353
6354 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
6355 string
6356 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
6357 prj.ads
6358 (Hash): Move instantiation of System.HTable.Hash from spec to body
6359 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
6360 systems, since we do not need to recompute the Name_Id for the canonical
6361 file name.
6362 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6363 as a parameter. This parameter is in fact always "ada" in all calls, and
6364 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
6365 while loading a project with 40000 files
6366
6367 * prj-attr.adb: Fix name of attribute Dependency_Driver
6368 Change the kind of indexing for attribute Root
6369
6370 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
6371 variables already declared, in case constructions.
6372
6373 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
6374 Current_Object_Path_File to No_Path.
6375
6376 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
6377 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
6378
6379 * prj-makr.adb: new parameter Current_Dir
6380
6381 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
6382 Ada sources when language is not Ada.
6383 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6384 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
6385 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
6386 (Locate_Directory): Always resolve links when computing Canonical_Path
6387 (Look_For_Sources): Make sure that Name_Buffer contains the file name
6388 in Source_Files before checking for the presence of a directory
6389 separator.
6390 Optimize calls to Name_Find when on case sensitive systems.
6391 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6392 as a parameter.
6393 (Prj.Nmsc.Check): new parameter Current_Dir
6394 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
6395 cannot be empty and the spec suffix cannot be the same as the body or
6396 separate suffix.
6397 (Get_Unit): When a file name can be of several unit kinds (spec, body or
6398 subunit), always consider the longest suffix.
6399 (Check_Configuration): Do not issue an error if there is no compiler
6400 for a language. Just issue a warning and ignore the sources for the
6401 language.
6402 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
6403 not empty.
6404 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
6405 (Unit_Exceptions): New hash table
6406 (Check_Naming_Schemes): Check if a file that could be a unit because of
6407 the naming scheme is not in fact a source because there is an exception
6408 for the unit.
6409 (Look_For_Sources): Put the unit exceptions in hash table
6410 Unit_Exceptions
6411 (Get_Unit_Exceptions): Give initial value No_Source to local variable
6412 Other_Part to avoid exception when code is compiled with validity
6413 checking.
6414 (Get_Sources_From_File): Check that there is no directory information
6415 in the file names.
6416 (Look_For_Sources): Check that there is no directory information in the
6417 list of file names in Source_Files.
6418 (Look_For_Sources): In multi-language mode, do not allow exception file
6419 names that are excluded.
6420 (Excluded_Sources_Htable): New hash table
6421 (Search_Directories.Check_File): New procedure to simplify
6422 Search_Directories.
6423 (Search_Directories): Do not consider excluded sources
6424 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
6425 Search_Directories.
6426 (Get_Exceptions): Set component Lang_Kind of Source_Data
6427 (Get_Unit_Exceptions): Ditto
6428 (Search_Directories): Ditto
6429
6430 * prj-pars.adb: new parameter Current_Dir
6431
6432 * prj-part.ads, prj-part.adb:
6433 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6434 (Opt.Follow_Links_For_Dirs): New flag
6435 (Project_Path_Name_Of): Cache information returned by this routine as
6436 Locate_Regular_File is a costly routine. The code to output a log
6437 information and the effective call to Locate_Regular_File is now
6438 factorized into a routine (code clean-up).
6439 (Parse, Parse_Single_Project): new parameter Current_Dir
6440 When main project file cannot be found, indicate in the error
6441 message the project path that was used to do the search.
6442
6443 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
6444 (Prj.Proc.Process*): new parameter Current_Dir
6445
6446 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
6447
6448 2007-12-13 Bob Duff <duff@adacore.com>
6449
6450 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
6451 procedure to be called from the back end to check the
6452 No_Implicit_Dynamic_Code restriction.
6453
6454 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6455
6456 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
6457 Fixes another case where RTE_Available_Call was ignored instead of being
6458 taken into account.
6459 (Load_Fail): Ditto.
6460
6461 * rtsfind.ads: Add new entries.
6462
6463 2007-12-13 Robert Dewar <dewar@adacore.com>
6464
6465 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
6466 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
6467
6468 * scn.adb: Implement BOM recognition
6469
6470 2007-12-13 Thomas Quinot <quinot@adacore.com>
6471 Ed Schonberg <schonberg@adacore.com>
6472
6473 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
6474 subprogram body that acts as its own spec may not have a non-private
6475 WITH clause on a private sibling.
6476 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
6477 child unit is a renaming, create an implicit with_clause on that
6478 parent, and not on the unit it renames, to prevent visibility errors
6479 in the current unit.
6480
6481 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6482
6483 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
6484 renaming declaration, use the Slocs of the formal parameters from the
6485 declaration of the formal subprogram when creating the formal parameter
6486 entities in the renaming declaration.
6487 (Analyze_Formal_Type_Declaration): Change the placement of the error
6488 message concerning illegal known discriminants. It is now posted on the
6489 type rather than on the first discriminant. This change ensures early
6490 error report.
6491 (Freeze_Subprogram_Body): If the generic subprogram is nested within
6492 the package body that contains the instance, do not generate an
6493 out-of-place freeze node for the enclosing package.
6494 (Collect_Previous_Instantiations): Ignore internal instantiations
6495 generated for formal packages.
6496 (Validate_Derived_Type_Instance): Add a check that when a formal
6497 derived type is Known_To_Have_Preelab_Init then the actual type must
6498 have preelaborable initialization, and issue an error when this
6499 condition is violated.
6500
6501 2007-12-13 Robert Dewar <dewar@adacore.com>
6502
6503 * s-imenne.adb, s-imenne.ads: New files.
6504
6505 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
6506 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
6507 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
6508 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
6509 s-imgwch.ads: New calling sequence for Image routines to avoid sec
6510 stack usage.
6511
6512 2007-12-13 Javier Miranda <miranda@adacore.com>
6513 Ed Schonberg <schonberg@adacore.com>
6514
6515 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
6516 generation of spurious error if parent is an interface type; caused
6517 because predefined primitive bodies will be generated later by
6518 Freeze_Record_Type.
6519 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
6520 flag.
6521 (Derive_Subprograms): Handle derivations of predefined primitives
6522 after all the user-defined primitives to ensure that they are
6523 found in proper order in instantiations.
6524 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
6525 of Related_Interface to Related_Type.
6526 (Record_Type_Declaration): Minor reordering of calls to decorate the
6527 Tag component because the entity must have set its Ekind attribute
6528 before setting its Is_Tag attribute.
6529 (Analyze_Subtype_Declaration): In the case of subtypes with
6530 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
6531
6532 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6533 Ed Schonberg <schonberg@adacore.com>
6534
6535 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
6536 statement to the list of contexts where a selected component with a
6537 concurrent tagged type prefix should yield a primitive operation.
6538 (Find_Primitive_Operation): Handle case of class-wide types.
6539 (Analyze_Overloaded_Selected_Component): If type of prefix is
6540 class-wide, use visible components of base type.
6541 (Resolve_Selected_Component): Ditto.
6542 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
6543 formal of a generic subprogram. find candidate interpretations by
6544 scanning the list of generic formal declarations.:
6545 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
6546 type from a limited_with_clause, and the full view is available, use it
6547 for subsequent semantic checks.
6548 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
6549 (Find_Primitive_Operation): New function.
6550 (Analyze_Overloaded_Selected_Component): insert explicit dereference
6551 only once if several interpretations of the prefix yield an access type.
6552 (Try_Object_Operation): Code and comment cleanup.
6553 (Analyze_Selected_Component): Reorder local variables. Minot comment and
6554 code reformatting. When the type of the prefix is tagged concurrent, a
6555 correct interpretation might be available in the primitive and
6556 class-wide operations of the type.
6557
6558 2007-12-13 Robert Dewar <dewar@adacore.com>
6559 Ed Schonberg <schonberg@adacore.com>
6560
6561 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
6562 renaming entry as subprogram using rename-as-body if subprogram spec
6563 frozen.
6564 (Use_One_Type): The clause is legal on an access type whose designated
6565 type has a limited view.
6566 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6567 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6568 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
6569 operation denoted by a selected component.
6570 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
6571 it can be an expression, possibly overloaded, that returns a task or
6572 an access to one.
6573
6574 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6575 Gary Dismukes <dismukes@adacore.com>
6576
6577 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
6578 requeue statement is dispatching. Do not emit an error when the name is
6579 not an entry and the context is a dispatching select. Add code to
6580 perform subtype conformance between the formals of the current entry
6581 and those of the target interface primitive.
6582 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
6583 Timed_Entry_Call): Analyze the triggering statement as the first step of
6584 the processing. If this is a dispatching select, postpone the analysis
6585 of all select statements until the Expander transforms the select. This
6586 approach avoids generating duplicate identifiers after the Expander has
6587 replicated some of the select statements. In case the Expander is
6588 disabled, perform regular analysis.
6589 (Check_Triggering_Statement): New routine.
6590 (Analyze_Requeue): Exclude any interpretations that are not entries when
6591 checking overloaded names in a requeue. Also test type conformance for
6592 matching interpretations rather than requiring subtype conformance at
6593 that point to conform with the RM's resolution rule for requeues.
6594
6595 2007-12-13 Ed Schonberg <schonberg@adacore.com>
6596
6597 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
6598 inherited operation is a defaulted tag-indeterminate call, and there is
6599 a statically tagged actual, use the static tag as a controlling actual
6600 for the defaulted actual.
6601
6602 2007-12-13 Geert Bosch <bosch@adacore.com>
6603
6604 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
6605 context, so do not call Check_Non_Static_Context.
6606
6607 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6608
6609 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
6610 whether formal E is an entity which may have parameters.
6611
6612 2007-12-13 Bob Duff <duff@adacore.com>
6613 Javier Miranda <miranda@adacore.com>
6614 Robert Dewar <dewar@adacore.com>
6615
6616 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
6617 (Set_Convention): New procedure to set the Convention flag, and in
6618 addition make sure the Favor_Top_Level flag is kept in sync (all
6619 foreign-language conventions require Favor_Top_Level = True).
6620 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
6621 to Related_Type.
6622 (Collect_Interfaces_Info): Minor update to handle the two secondary
6623 dispatch tables. Update occurrence of Related_Interface to Related_Type.
6624 (Generate_Parent_Ref): Add parameter to specify entity to check
6625 (Is_Preelaborable_Expression): Allow the name of a discriminant to
6626 initialize a component of a type with preelaborable initialization.
6627 This includes the case of a discriminal used in such a context.
6628 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
6629 latest Ada 2005 rules about renaming and 'Access of
6630 discriminant-dependent components.
6631 (Check_Nested_Access): Add handling when there are no enclosing
6632 subprograms (e.g. case of a package body).
6633 (Find_Parameter_Type): Factor routine from several other compiler files.
6634 Remove routine from Find_Overridden_Synchronized_Primitive.
6635
6636 2007-12-13 Thomas Quinot <quinot@adacore.com>
6637
6638 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
6639 an invalid access to an uninitialized slot in the
6640 Source_File_Index_Table.
6641
6642 2007-12-13 Thomas Quinot <quinot@adacore.com>
6643
6644 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
6645
6646 2007-12-13 Bob Duff <duff@adacore.com>
6647
6648 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
6649 access-to-subprogram types in this package.
6650
6651 2007-12-13 Olivier Hainque <hainque@adacore.com>
6652
6653 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
6654 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
6655 Stack_Overlay_Address and document that we are using an internal
6656 abstraction.
6657 (Byte_Size, Unsigned_32_Size): Remove, now useless.
6658 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
6659 consistently throughout the various implementation pieces.
6660
6661 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
6662 overlay we are using to fill the stack area with patterns.
6663 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
6664 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
6665 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
6666
6667 2007-12-13 Robert Dewar <dewar@adacore.com>
6668
6669 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
6670
6671 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6672
6673 * s-tassta.adb:
6674 (Create_Task): Take into account tasks created by foreign threads.
6675 Code clean up: use constants instead of hard coded values.
6676
6677 2007-12-13 Robert Dewar <dewar@adacore.com>
6678
6679 * styleg.adb (Check_Comment): More liberal rules for comment placement
6680
6681 2007-12-13 Olivier Hainque <hainque@adacore.com>
6682
6683 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
6684 of Procedure Value instead of Frame Pointer as the invocation
6685 identifier associated with the instruction pointer in each traceback
6686 entry.
6687
6688 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
6689 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
6690 Pointer as the invocation identifier passed to tbk$symbolize.
6691
6692 * s-traent-vms.ads, s-traent-vms.adb
6693 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
6694 Procedure Value instead of Frame Pointer as the invocation identifier
6695 passed to tbk$symbolize.
6696
6697 2007-12-13 Robert Dewar <dewar@adacore.com>
6698
6699 * tbuild.ads, tbuild.adb:
6700 Fix location of flag for unrecognized pragma message
6701
6702 2007-12-13 Robert Dewar <dewar@adacore.com>
6703
6704 * treepr.ads, treepr.adb: (pl): implement use of positive value
6705 shorthands
6706
6707 2007-12-13 Robert Dewar <dewar@adacore.com>
6708
6709 * xeinfo.adb: Remove warnings
6710 * xnmake.adb: Remove warnings
6711 * xsinfo.adb: Remove warnings
6712 * xtreeprs.adb: Remove warnings
6713 * xsnames.adb: Remove warnings
6714
6715 * a-ngcoar.adb: Fix typo.
6716 * s-interr.adb: Minor reformatting
6717 * env.c: Minor reformatting.
6718 * g-bytswa.adb: Minor reformatting.
6719 * g-rannum.ads: Minor documentation improvements
6720 * s-tasinf-mingw.adb: Minor header fix
6721 * a-clrefi.adb: Minor reformatting
6722 * g-sttsne.ads: Minor documentation improvement
6723 * g-sttsne-locking.ads: Minor documentation improvement
6724 * g-soliop-solaris.ads: Minor documentation improvement
6725 * g-soliop-mingw.ads: Minor documentation improvement
6726 * g-soliop.ads: Minor documentation improvement
6727 * exp_aggr.ads: Minor reformatting
6728 * debug.adb: Add documentation for the gprbuild debug flags
6729 * exp_ch2.adb: Use Nkind_In to simplify code throughout
6730 * exp_pakd.adb: Minor reformatting
6731
6732 * g-altive.ads, g-alleve.adb: Remove assertions.
6733 Add comment about minor differences between targets regarding
6734 floating-point operations.
6735
6736 * g-thread.adb: Remove pragma unreferenced.
6737 * lib.ads: Minor reformatting
6738 * par-ch9.adb: Minor reformatting of error messages
6739 * sem_case.adb: Minor reformatting
6740 * s-fileio.adb: Minor reformattinng
6741 * s-vmexta.ads: Minor typo
6742 * vxaddr2line.adb:
6743 Take into account 'Success' value as per new GNAT warning.
6744
6745 2007-12-13 Vincent Celier <celier@adacore.com>
6746
6747 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6748 even on Windows
6749
6750 2007-12-13 Robert Dewar <dewar@adacore.com>
6751 Bob Duff <duff@adacore.com>
6752
6753 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
6754 Document that suffixes may be terminations of each others
6755 Add doc for -gnatw.a and -gnatw.A
6756 Document gnatbind -Wx switch
6757 Document BOM recognition
6758 Document pragma Implemented_By_Entry.
6759 Document new units.
6760
6761 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
6762 Add doc for pragma Unreferenced suppressing no entities referenced msg
6763 Add documentation of GNAT.Directory_Operations.Iteration
6764 Add documentation of GNAT.Random_Numbers
6765 Add documentation for pragma Shared.
6766 Correct documentation for Bit_Order
6767 Add documentation for the Pool_Address attribute.
6768 Fix and improve documentation of pragma machine_attribute.
6769 New pragma Fast_Math
6770 Document BOM recognition
6771
6772 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
6773 Add /Wide_Character_Encoding for binder
6774 Add qualifier for the new gnatpp option --no-separate-loop-then
6775
6776 2007-12-13 Matthew Heaney <heaney@adacore.com>
6777
6778 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
6779 which generic formal operations are called for each operation.
6780
6781 2007-12-13 Olivier Hainque <hainque@adacore.com>
6782
6783 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
6784 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
6785
6786 2007-12-13 Emmanuel Briot <briot@adacore.com>
6787
6788 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
6789 Reference_Dir unless we actually need it.
6790
6791 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6792 Tristan Gingold <gingold@adacore.com>
6793
6794 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
6795
6796 * s-osprim-vms.adb,
6797 a-calend-vms.adb: Remove pragma warning off and add pragma
6798 unreferenced.
6799
6800 2007-12-13 Robert Dewar <dewar@adacore.com>
6801
6802 * impunit.adb: Add entries for missing units
6803
6804 * Makefile.rtl: Add new run-time units.
6805
6806 * Make-lang.in: Update dependencies.
6807
6808 2007-12-13 Bob Duff <duff@adacore.com>
6809
6810 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
6811 types, set Can_Use_Internal_Rep appropriately, based on
6812 Always_Compatible_Rep_On_Target.
6813
6814 2007-12-13 Gary Dismukes <dismukes@adacore.com>
6815 Arnaud Charlet <charlet@adacore.com>
6816
6817 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
6818 it to the front end and setting the aamp_target environment variable
6819 to the switch's argument to ensure that gnaampbind and gnaamplink will
6820 take the specified library into account.
6821 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
6822 target, since the CIL compiler supports an "object" file (.il files).
6823
6824 2007-12-13 Vincent Celier <celier@adacore.com>
6825
6826 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
6827 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
6828
6829 2007-12-13 Geert Bosch <bosch@adacore.com>
6830
6831 * s-parame-vxworks.adb:
6832 Update comments to reflect usage of this package by Nucleus.
6833
6834 2007-12-13 Arnaud Charlet <charlet@adacore.com>
6835
6836 * i-vxwork.ads: Kill new warning on Convention C, since changing the
6837 spec would break code.
6838
6839 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
6840
6841 * system-vxworks-alpha.ads: Removed.
6842
6843 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
6844
6845 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
6846
6847 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
6848
6849 PR ada/34366
6850 * sem_ch3.adb (Designates_T): New function.
6851 (Mentions_T): Factor reusable part of the logic into Designates_T.
6852 Consider non-access parameters and access and non-access result.
6853 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
6854 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
6855
6856 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
6857
6858 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
6859
6860 PR ada/34361
6861 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
6862 the new implementation of target-specific calls.
6863
6864 2007-12-07 Olivier Hainque <hainque@adacore.com>
6865
6866 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
6867 the designated full view, only follow a second level Full_View link
6868 for Non_Limited_Views of from_limited_with references.
6869
6870 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
6871
6872 PR ada/15805
6873 * sem_ch6.adb (Process_Formals): Prevent an access type formal
6874 to be initialized with an access to constant object.
6875
6876 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
6877 when an access to constant is used to initialize an access
6878 value.
6879
6880 PR ada/21346
6881 * a-direct.adb (Compose): Containing_Directory can be an empty string.
6882
6883 2007-12-07 Olivier Hainque <hainque@adacore.com>
6884
6885 PR ada/34173
6886 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
6887 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
6888 this is from an alignment clause on the GNAT entity.
6889 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
6890 to distinguish the case where we set it from the type's alignment.
6891 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
6892 whether this alignment was set from an explicit alignment clause.
6893
6894 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
6895
6896 * decl.c (make_packable_type): Revert last change.
6897 (gnat_to_gnu_field): Avoid setting size and position multiple times.
6898 * utils.c (finish_record_type): Retrieve the real name of the type.
6899
6900 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
6901
6902 * trans.c (lvalue_required_p): Take base node directly instead
6903 of its parent. Rename second parameter to 'gnu_type'.
6904 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
6905 <N_Slice>: Likewise.
6906 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
6907 Adjust calls to lvalue_required_p.
6908
6909 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
6910
6911 PR ada/21489
6912 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
6913 parameters of an entry call.
6914
6915 2007-12-03 Robert Dewar <dewar@adacore.com>
6916 Samuel Tardieu <sam@rfc1149.net>
6917
6918 PR ada/34287
6919 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
6920 of variables declared in a library-level package.
6921
6922 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
6923
6924 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
6925 of Empty_String'Unchecked_Access.
6926
6927 * Makefile.in: Add support for sh4-linux.
6928
6929 * system-linux-sh4.ads: New file.
6930
6931 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
6932
6933 PR ada/33722
6934 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
6935 and its argument must not be free()ed.
6936
6937 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
6938
6939 * decl.c (make_packable_type): Retrieve the real name of the type.
6940 (maybe_pad_type): Simplify similar code.
6941
6942 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
6943
6944 PR ada/15804
6945 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
6946 than an identifier is used after "case" in a variant_part.
6947
6948 PR ada/17318
6949 * par-ch4.adb (Is_Parameterless_Attribute): New map.
6950 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
6951 attribute name or not depending on the new map.
6952
6953 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
6954 returning a string or a type will not be called with improper
6955 arguments.
6956
6957 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
6958
6959 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
6960
6961 PR ada/32792
6962 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
6963 Signal an error when attribute argument is a fixed-point value of
6964 an unknown type.
6965
6966 PR ada/22559
6967 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
6968 a derived ordinary fixed point type.
6969
6970 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
6971 RM_Size when a Small clause is found.
6972
6973 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
6974
6975 PR 34081/C++
6976 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
6977 Pass 'false' for the new allocate_struct_function parameter.
6978 * utils.c (build_function_stub): Likewise.
6979
6980 2007-11-25 Richard Guenther <rguenther@suse.de>
6981
6982 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
6983 (gnat_poplevel): Likewise.
6984
6985 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
6986
6987 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
6988 strict alignment, no alignment clause and a known static size, cap
6989 the type alignment to the greatest power of 2 factor of the size.
6990 (gnat_to_gnu_field): If the field has a component clause, is aliased
6991 or of a type with strict alignment, require that its size be equal to
6992 that of the type.
6993 (validate_size): Use the type size as the minimum size for a type with
6994 strict alignment.
6995
6996 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
6997
6998 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
6999 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7000 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7001 Use 'Access instead of 'Unchecked_Access in second and third
7002 arguments of pthread_sigmask.
7003
7004 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
7005
7006 * decl.c (ceil_alignment): New function.
7007 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7008 (make_packable_type): Likewise.
7009
7010 2007-11-22 Olivier Hainque <hainque@adacore.com>
7011
7012 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7013 to fit in 80 columns.
7014
7015 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
7016
7017 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7018 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7019
7020 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
7021
7022 PR ada/34098
7023 * misc.c (gnat_adjust_rli): Delete.
7024 (gnat_init): Do not initialize the translation code here.
7025 Do not call set_lang_adjust_rli.
7026 * trans.c (init_code_table): Make static.
7027 (gnat_init_stmt_group): Delete.
7028 (gigi): Initialize the translation code entirely here.
7029 Emit debug info for the common types here instead of...
7030 * utils.c (gnat_init_decl_processing): ...here.
7031 * gigi.h (init_code_table): Delete.
7032 (gnat_init_stmt_group): Likewise.
7033
7034 2007-11-16 Olivier Hainque <hainque@adacore.com>
7035
7036 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7037 retrieving an allocator return value from a super-aligned address from
7038 here to ...
7039 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7040 expect a super-aligned address for a fat or thin pointer.
7041
7042 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
7043
7044 * trans.c (call_to_gnu): Always set the source location on the call
7045 expression. If the function returns-by-target, also set it on the
7046 address expression.
7047
7048 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
7049
7050 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
7051 sections of non-supported Interix target.
7052
7053 * s-osinte-interix.ads: Removed.
7054
7055 * i-cstrin.ads (chars_ptr): Make it a C convention type.
7056
7057 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
7058
7059 * a-tasatt.adb: Add a comment at the beginning of the package
7060 explaining why in general 'Unchecked_Access must be used instead
7061 of 'Access.
7062
7063 * sem_prag.adb (Process_Convention): Move the test for the
7064 entity on which the Convention pragma applies down to also
7065 forbid pragma Convention on enumeration literals reached
7066 through renamings.
7067
7068 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
7069
7070 * a-tasatt.adb: Revert previous change for this file as it will
7071 generate an error when this package is instantiated from a
7072 local context.
7073
7074 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
7075
7076 * a-tasatt.adb: Type Wrapper should be declared in comment instead
7077 of already declared type Node_Access.
7078 Use 'Access instead of 'Unchecked_Access when applicable. Local
7079 lifetime is the one of the package.
7080 (Set_Value): W is allocated on the heap.
7081
7082 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
7083 applicable.
7084 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
7085 access type.
7086 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
7087 access type.
7088
7089 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
7090 applicable.
7091 (elaboration code): Timer_Queue lifetime is the one of the
7092 package.
7093
7094 * tracebak.c (i386 alternative): Remove useless comparaison
7095 which is always false; LOWEST_ADDRESS is 0 and is never greater
7096 than an unsigned integer.
7097
7098 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
7099 embedded check for "Ada_Version >= Ada_05".
7100
7101 2007-11-07 Olivier Hainque <hainque@adacore.com>
7102
7103 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
7104 craft and expand comment.
7105
7106 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
7107
7108 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
7109
7110 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
7111
7112 * misc.c (gnat_handle_option): Replace call to abort with
7113 call to gcc_unreachable.
7114 (gnat_init): Likewise.
7115 (gnat_expand_expr): Likewise.
7116 (fp_prec_to_size): Likewise.
7117 (fp_size_to_prec): Likewise.
7118
7119 2007-10-23 Richard Guenther <rguenther@suse.de>
7120
7121 PR bootstrap/33608
7122 * tracebak.c: #undef abort after including system.h.
7123
7124 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
7125
7126 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
7127 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
7128 for win32 targets.
7129 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
7130
7131 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
7132
7133 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
7134 Set the protection status of the guard page based on the value of On.
7135
7136 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
7137
7138 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
7139 (Exit_Task): Pass False to Hide_Yellow_Zone.
7140
7141 2007-10-15 Robert Dewar <dewar@adacore.com>
7142
7143 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7144 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
7145 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
7146 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
7147 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
7148 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
7149 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
7150 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
7151 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
7152 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
7153 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
7154 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
7155 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
7156 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
7157 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
7158 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
7159 Minor reformatting.
7160 Add Unreferenced and Warnings (Off) pragmas for cases of
7161 variables modified calls where they are IN OUT or OUT parameters and
7162 the resulting values are not subsequently referenced. In a few cases,
7163 we also remove redundant code found by the new warnings.
7164
7165 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
7166 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
7167 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
7168 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
7169 warning controlled by -gnatw.o that warns on cases of out parameter
7170 values being ignored.
7171
7172 2007-10-15 Geert Bosch <bosch@adacore.com>
7173
7174 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
7175
7176 * expect.c: Initial port to arm-mentor-nucleus.
7177 Use kill for __gnat_kill() on VMS.
7178
7179 2007-10-15 Emmanuel Briot <briot@adacore.com>
7180
7181 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
7182 value.
7183 (Xref_Record): Change type for Line, since in the case of a reference to
7184 a predefined entity (as happens for array index types), the line is set
7185 to 0.
7186 Add support for parsing multiple array index types info, or
7187 multiple inherited interfaces info. This information cannot be stored
7188 in Xref_Entity_Record, which only supports a single instance of Tref_*,
7189 and is therefore stored in the list of references instead. It has a
7190 special treatement later on in tools that use this information.
7191
7192 2007-10-15 Tristan Gingold <gingold@adacore.com>
7193
7194 * debug.adb: Document use of -gnatd.a and -gnatd.I
7195
7196 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
7197
7198 2007-10-15 Javier Miranda <miranda@adacore.com>
7199
7200 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
7201 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
7202 care of access to class-wide interface types plus removal of bizarre
7203 conversion of tagged object to access type (reported by Gary
7204 Dismukes). After this patch there is no need to perform any
7205 additional management on these nodes in Expand_Interface_Actuals.
7206
7207 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
7208 that handles use of 'Access and 'Unchecked_Access applied to
7209 actuals covering interface types. Such code is now
7210 centralized in Expand_N_Attribute_Reference.
7211
7212 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7213
7214 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
7215 of tagged types whose ultimate ancestor is a CPP type.
7216 (Freeze_Array_Type): For a packed array type, generate an initialization
7217 procedure if the type is public, to handle properly a client that
7218 specifies Normalize_Scalars.
7219
7220 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7221
7222 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
7223 inside a generic body, retrieve the full view of the entry family
7224 discrete subtype if available.
7225
7226 2007-10-15 Thomas Quinot <quinot@adacore.com>
7227
7228 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
7229 attempt to generate stubs for hidden primitive operations.
7230
7231 2007-10-15 Vincent Celier <celier@adacore.com>
7232
7233 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
7234 returning None, used when there is no platform specific body for
7235 MLib.Tgt.Specific.
7236
7237 2007-10-15 Bob Duff <duff@adacore.com>
7238
7239 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
7240 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
7241 the generic Heap_Sort_G, in order to avoid trampolines.
7242
7243 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
7244 Jose Ruiz <ruiz@adacore.com>
7245
7246 * vx_stack_info.c: New file.
7247
7248 * i-forbla-unimplemented.ads: New file.
7249
7250 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
7251 for unsupported configurations; use it on VMS targets instead of the
7252 real one.
7253 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
7254 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
7255 used by VxWorks targets to have access to task-specific data and be
7256 able to extract the stack boundaries for stack checking.
7257 Use system-vms-ia64.ads on ivms.
7258
7259 * Make-lang.in: Update dependencies.
7260
7261 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
7262 (vx_stack_info.c).
7263
7264 2007-10-15 Vincent Celier <celier@adacore.com>
7265
7266 * snames.adb, snames.ads: Add new standard name runtime_library_dir
7267
7268 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
7269
7270 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
7271
7272 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
7273 the source is unknown.
7274
7275 * prj-ext.adb: Spelling error fix
7276
7277 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
7278 95 reserved word in its name.
7279 (Process_Project_Level_Array_Attributes): Process new attribute
7280 Runtime_Library_Dir.
7281
7282 * prj-part.adb (Parse_Single_Project): Do not check the name of the
7283 config project against the user project names.
7284
7285 * prj-proc.adb (Expression): In multi-language mode, indexes that do
7286 not include a dot are always case insensitive.
7287 (Process_Declarative_Items): Ditto
7288 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
7289 detected.
7290
7291 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
7292 True, compare both indexes in lower case.
7293
7294 2007-10-15 Robert Dewar <dewar@adacore.com>
7295
7296 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
7297
7298 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7299
7300 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
7301 association for an access component, add an association with null as
7302 the expression. Remove testing for array subtypes and the setting in
7303 that case of Ctyp to the array component type, which prevented proper
7304 inclusion of an association for null-initialized arrays. Collapse
7305 condition that tests for array subtypes into just a test of
7306 Is_Partially_Initialized_Type (which already covers arrays anyway).
7307
7308 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7309
7310 * sem_ch12.adb: Minor code reformatting.
7311 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
7312 find the parent package which may have been hidden by local
7313 declarations.
7314
7315 2007-10-15 Gary Dismukes <dismukes@adacore.com>
7316
7317 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
7318 flag of derived concurrent types, taking into account the flag setting
7319 on the parent subtype and any new set of discriminants.
7320
7321 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7322
7323 * sem_ch4.adb: Minor code and comment reformatting.
7324 (Analyze_Allocator): When the designated type of an unconstrained
7325 allocator is a record with unknown discriminants or an array with
7326 unknown range bounds, emit a detailed error message depending on the
7327 compilation mode and whether the designated type is limited.
7328
7329 2007-10-15 Tristan Gingold <gingold@adacore.com>
7330
7331 * system-vms-ia64.ads: New file.
7332
7333 * system-vms_64.ads: Minor comment fix.
7334
7335 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7336
7337 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
7338 body generated for a function with a controlling result that is a null
7339 extension, discard the generated body in favor of the current explicit
7340 one.
7341
7342 2007-10-15 Ed Schonberg <schonberg@adacore.com>
7343
7344 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
7345 examining its original form, to handle properly operator calls that
7346 have been rewritten.
7347
7348 2007-10-15 Olivier Hainque <hainque@adacore.com>
7349
7350 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
7351 instead of a procedure value in each traceback entry.
7352
7353 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
7354 instead of procedure value to TBK$SYMBOLIZE.
7355
7356 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
7357 field.
7358 (TB_Entry_For): Account for the PV/FP renaming.
7359
7360 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
7361 add comment.
7362 (Null_TB_Entry): Account for change of component name.
7363 (PV_For): Rename as FP_For.
7364
7365 2007-10-15 Tristan Gingold <gingold@adacore.com>
7366
7367 * trans.c (gnat_to_gnu): Remove the padding structure more often.
7368 This optimize assignment to over-aligned record.
7369
7370 2007-10-15 Emmanuel Briot <briot@adacore.com>
7371
7372 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
7373 interfaces.
7374
7375 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
7376 type, for dispatching calls.
7377
7378 2007-10-15 Vincent Celier <celier@adacore.com>
7379 Robert Dewar <dewar@adacore.com>
7380
7381 * gnat_ugn.texi: Add documentation for switches --version and --help
7382 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
7383 gnatxref, gnatfind, gnatls, and gnatclean.
7384 Document -gnatw.o.
7385 Mention attribute Excluded_Source_Dirs
7386 Replace obsolescent attribute Locally_Removed_Files with attribute
7387 Excluded_Source_Files.
7388 Improve documentation of -u (gnatbind)
7389 Document how to do reliable stack checking for the environmental task
7390 on iVMS.
7391
7392 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
7393 Document attribute Excluded_Source_Files and indicate that attribute
7394 Locally_Removed_Files is obsolescent.
7395
7396 2007-10-15 Thomas Quinot <quinot@adacore.com>
7397
7398 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
7399
7400 * gen-soccon.c:
7401 Update documentation to note that OpenVMS 8.3 or later must be used
7402 to generate g-soccon-vms.ads.
7403
7404 * atree.adb: Add ??? comment
7405
7406 * exp_util.adb: Minor reformatting.
7407 Add ??? comment in Kill_Dead_Code.
7408
7409 2007-10-15 Robert Dewar <dewar@adacore.com>
7410
7411 * errout.ads: Comment clarification
7412
7413 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7414 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
7415
7416 * lib.ads: Comment update
7417
7418 * init.c: Minor reformatting.
7419
7420 * sem_attr.adb: Minor formatting
7421
7422 * osint-b.ads: Minor reformatting
7423
7424 * sem_ch9.adb: Implement -gnatd.I switch
7425
7426 * g-comlin.adb: (Start): Fix handling of empty command line.
7427
7428 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
7429 even when -rules follows the -cargs section.
7430
7431 2007-10-08 Ollie Wild <aaw@google.com>
7432
7433 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
7434 gnat_return_tree.
7435 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
7436 gnat_return_tree.
7437 (gnat_eh_runtime_type): Removed.
7438 (gnat_return_tree): New function.
7439
7440 2007-10-08 Ben Elliston <bje@au.ibm.com>
7441
7442 PR ada/33454
7443 Revert:
7444 2007-08-31 Ben Elliston <bje@au.ibm.com>
7445
7446 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7447 when compiling for powerpc64-*-linux.
7448 * system-linux-ppc64.ads: New file.
7449
7450 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
7451
7452 Mapped location support
7453 * back_end.adb (Call_Back_End): Pass information about source
7454 files instead of units to gigi.
7455 * gigi.h (struct File_Info_Type): New.
7456 (gigi): Rename and change type of number_units parameter, change
7457 type of file_info_ptr parameter.
7458 * trans.c (number_files): New global variable.
7459 (gigi): Rename and change type of number_units parameter, change
7460 type of file_info_ptr parameter.
7461 If mapped location support is enabled, create the isomorphic mapping
7462 between source files and line maps.
7463 (Sloc_to_locus): If mapped location support is enabled, translate
7464 source location into mapped location.
7465 (annotate_with_node): Rename into set_expr_location_from_node.
7466 Call set_expr_location instead of annotate_with_locus.
7467 (Pragma_to_gnu): Adjust for above change.
7468 (Loop_Statement_to_gnu): Likewise.
7469 (call_to_gnu): Likewise.
7470 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7471 (gnat_to_gnu): Likewise.
7472 (add_stmt_with_node): Likewise.
7473 (add_cleanup): Likewise.
7474 * utils.c (gnat_init_decl_processing): Do not set input_line.
7475
7476 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7477
7478 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
7479 (Applicable_Use): Emit a warning when a package tries to use itself.
7480 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
7481 is already in use or the package where it is declared is in use or is
7482 declared in the current package.
7483 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
7484
7485 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
7486 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
7487 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
7488
7489 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7490
7491 * a-calend-vms.adb, a-calend.adb:
7492 Add a section on leap seconds control along with two entities used to
7493 enable and disable leap seconds support. The array Leap_Second_Times is
7494 now constant and contains hard time values pre-generated. Remove
7495 all elaboration code used to populate the table of leap seconds.
7496
7497 * bindgen.adb:
7498 Add entity Leap_Seconds_Support to the list of global run-time variables
7499 along with a comment on its usage and values.
7500 (Gen_Adainit_Ada): Add code to generate the declaration and import of
7501 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
7502 or one (enabled) depending on the presence of binder switch "-y".
7503 (Gen_Adainit_C): Add code to generate the declaration of external int
7504 __gl_leap_seconds_support. Set is value to zero (disabled) or one
7505 (enabled) depending on the presence of binder switch "-y".
7506
7507 * init.c: Add __gl_leap_seconds_support to the list of global values
7508 computed by the binder.
7509
7510 2007-09-26 Jerome Guitton <guitton@adacore.com>
7511
7512 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
7513 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
7514 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7515 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
7516
7517 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
7518
7519 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
7520 function which can be called by the debugger to interrupt the tasks of
7521 an Ada application asynchronously, as needed on VxWorks.
7522 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
7523
7524 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
7525 renamed from Stop_All_Tasks. Update comments.
7526 (Stop_All_tasks): New function declaration.
7527
7528 2007-09-26 Olivier Hainque <hainque@adacore.com>
7529
7530 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
7531 #include <utime.h> and #define GCC_RESOURCE_H before
7532 #include <sys/wait.h>.
7533 Add more protections in __gnat_translate_vms.
7534
7535 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
7536 #include <sys/wait.h>.
7537
7538 2007-09-26 Thomas Quinot <quinot@adacore.com>
7539 Sergey Rybin <rybin@adacore.com>
7540
7541 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
7542
7543 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7544 where it belongs.
7545
7546 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7547
7548 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7549 where it belongs.
7550
7551 * sem_dist.ads: Minor comment fix
7552
7553 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7554
7555 2007-09-26 Javier Miranda <miranda@adacore.com>
7556 Eric Botcazou <ebotcazou@adacore.com>
7557
7558 * a-tags.adb:
7559 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
7560 indirection added to the HT_Link component of the TSD. This is required
7561 to statically allocate the TSD.
7562
7563 * a-tags.ads:
7564 Minor reordering of the declarations in the private part. Required to
7565 add a level of indirection to the contents of the TSD component HT_Link.
7566 This is required to statically allocate the TSD.
7567
7568 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
7569 Is_Statically_Allocated set from constant objects.
7570 Do not make exported constants created by the compiler volatile.
7571 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
7572 as read-only.
7573
7574 * trans.c (Identifier_to_gnu): For constants, unshare initializers
7575 before returning them.
7576
7577 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
7578 public part of the package.
7579 (Make_DT): Move HT_Link component out of the TSD record. For this
7580 purpose Make_DT now declares a separate object that stores the
7581 HT_Link value, and initializes the TSD component with the address
7582 of this new object. The addition of this level of indirection is
7583 required to statically allocate the TSD because the TSD cannot
7584 have variable components.
7585 (Expand_Interface_Conversion): Improve the expanded code.
7586 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
7587
7588 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
7589 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
7590 if we are building static dispatch tables then we must not generate
7591 extra code to register the primitive because the dispatch table will
7592 be built at the end of the library package; otherwise we notify that
7593 we cannot build the static dispatch table.
7594
7595 2007-09-26 Robert Dewar <dewar@adacore.com>
7596
7597 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
7598 overlays.
7599
7600 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
7601 (Analyze_Record_Representation_Clause): Suppress junk warning for
7602 missing component clause.
7603 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
7604 tests for controlled type overlay to composites with controlled
7605 components.
7606 (Analyze_Record_Representation_Clause): Add reference for component name
7607
7608 2007-09-26 Javier Miranda <miranda@adacore.com>
7609 Gary Dismukes <dismukes@adacore.com>
7610
7611 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
7612 for thunks associated with interface types.
7613
7614 * einfo.ads: Improve documentatation of Is_Internal
7615 (Is_Thunk): New attribute applicable to subprograms. True for thunks
7616 associated with interface types.
7617 Extensive comment fixes regarding flags that appear in all entities. The
7618 documentation is now consistent for all such flags (there were a number
7619 of errors in the documentation in this regard).
7620
7621 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
7622
7623 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
7624 of these procedures are passed a function call that already has
7625 build-in-place actuals (testing new flag
7626 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
7627 the case where processing continues.
7628 (Expand_Call): If the call is generated from a thunk body then we
7629 propagate the extra actuals associated with the accessibility
7630 level of the access type actuals.
7631
7632 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
7633 of each extra formal of a protected operation to reference the
7634 corresponding extra formal of the subprogram denoted by the
7635 operation's Protected_Body_Subprogram.
7636
7637 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
7638 N_Function_Call nodes.
7639
7640 2007-09-26 Robert Dewar <dewar@adacore.com>
7641
7642 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
7643
7644 * debug.adb: Add d.s flag.
7645
7646 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7647
7648 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
7649 debug variable so that it won't be initialized when pragma
7650 Initialize_Scalars is in effect.
7651
7652 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7653
7654 * freeze.adb (Freeze_Entity): Remove check for preelaborable
7655 initialization of a full view. This is moved to
7656 Analyze_Package_Specification.
7657
7658 * sem_ch7.adb (Analyze_Package_Specification): Add check for
7659 preelaborable initialization of a full view in entity loop.
7660 (Uninstall_Declarations): If entity is a use-visible compilation unit,
7661 its child units are use-visible only if they are visible child units.
7662
7663 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
7664 whether an expression can be used within a type declaration that
7665 requires preelaborable init.
7666 (Check_Components): Replace inline code that does partial checking for
7667 preelaborable default expressions with call to
7668 Is_Preelaborable_Expression.
7669 (Has_Preelaborable_Initialization): In the case of a generic actual
7670 subtype, (that is, Is_Generic_Actual is True), return the result of
7671 applying Has_Preelaborable_Initialization to the generic actual's base
7672 type.
7673
7674 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7675
7676 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
7677 call to Jan_1_Day _Of_Week to optimize its performance.
7678 (Is_Leap): Move the routine to the scope of Week_In_Year.
7679 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
7680 weekday on which January 1 falls of Year - 1 and Year + 1. This function
7681 avoids calling Time_Of and Split, thus making it more efficent.
7682 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
7683
7684 * g-calend.ads (Week_In_Year): Change comment to reflect new
7685 implementation.
7686
7687 2007-09-26 Emmanuel Briot <briot@adacore.com>
7688
7689 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
7690 Command_Line): New types
7691 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
7692 support for defining how switches can be grouped on a command line (as
7693 is the case for -gnatw... for GNAT), and how simple switches can be
7694 used as aliases for more complex switches (-gnatwa is same as
7695 -gnatwbcef...)
7696 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
7697 (Start, Current_*): New subprograms
7698 Added support for parsing an array of strings in addition to the real
7699 command line.
7700 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
7701 be moved from the body to the private part of the spec.
7702 (*): All subprograms now have an extra parameter with default value to
7703 specify which parser should be used. For backward compatibility, it
7704 defaults to parsing the command line of the application. They were also
7705 modified to properly handle cases where each of the argument does not
7706 start at index 1 (which is always true for Ada.Command_Line, but not
7707 when processing any Argument_List).
7708 (Free): New subprogram
7709 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
7710 Argument): New subprograms
7711 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
7712 special characters like ':', '=',... are now handled in a single place,
7713 which makes the code more extensible eventually.
7714 (Getopt, Full_Switch): When the switch was returned as part of the
7715 special character '*', make sure it is prepended by the switch character
7716 ('-' in general), so that the application knows whether "foo" or "-foo"
7717 was specified on the command line.
7718
7719 2007-09-26 Florian Villoing <villoing@adacore.com>
7720
7721 * g-dirope.adb (Remove_Dir): In case we are removing directories
7722 recursively, make sure that if an exception is raised during the
7723 processing, the current working directory is reset to its initial
7724 value before propagating the exception.
7725
7726 2007-09-26 Vincent Celier <celier@adacore.com>
7727
7728 * gnatbind.adb: If there are several ALI files specified and there is
7729 a main program to bind, the first ALI is expected to contain the main
7730 subprogram and the names of the binder generated files will be derived
7731 from the first ALI file name.
7732 (Gnatbind): Fix insertion character in invocation of Error_Msg
7733
7734 2007-09-26 Vincent Celier <celier@adacore.com>
7735
7736 * gnatcmd.adb (Check_Files): Do not include sources that have been
7737 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7738
7739 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7740
7741 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7742 information about each of its index types, following the type
7743 reference for its component type.
7744
7745 2007-09-26 Vincent Celier <celier@adacore.com>
7746
7747 * make.adb: (Kill): New procedure (__gnat_kill imported)
7748 (Running_Compile, Outstanding_Compiles): Global variables that
7749 were previously local to procedure Compile_Sources.
7750 (Sigint_Intercepted): Send signal SIGINT to all outstanding
7751 compilation processes.
7752
7753 (Gnatmake): If project files are used, create the mapping of all the
7754 sources, so that the correct paths will be found.
7755
7756 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
7757
7758 2007-09-26 Vincent Celier <celier@adacore.com>
7759
7760 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
7761
7762 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
7763 Replace components Compiler_Min_Options and Binder_Min_Options with
7764 Compiler_Required_Switches and Binder_Required_Switches in record
7765 Language_Config.
7766 Remove components Default_Language and Config in Project_Tree_Data,
7767 no longer used.
7768
7769 * prj-attr.adb: New attributes Required_Switches (<language>) in
7770 packages Compiler and Binder.
7771
7772 * prj-nmsc.adb: Major rewrite of the processing of configuration
7773 attributes for gprbuild. No impact on GNAT tools.
7774
7775 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
7776 process configuration attributes: this is done in Prj.Nmsc.Check.
7777 (Recursive_Process): Make a full copy of packages inherited from project
7778 being extended, instead of a shallow copy.
7779 (Process_Project_Tree_Phase_1): New procedure
7780 (Process_Project_Tree_Phase_1): New procedure
7781 (Process): Implementation now uses the two new procedures
7782
7783 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
7784 from the project config, not the tree config that no longer exists.
7785
7786 2007-09-26 Vincent Celier <celier@adacore.com>
7787
7788 * Make-lang.in: Update dependencies..
7789
7790 2007-09-26 Vincent Celier <celier@adacore.com>
7791
7792 * osint.adb, osint.ads: Minor reformatting
7793
7794 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
7795
7796 2007-09-26 Gary Dismukes <dismukes@adacore.com>
7797
7798 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
7799 message to cite use of <> in aggregate component associations rather
7800 than wrongly indicating use of limited aggregates.
7801
7802 2007-09-26 Robert Dewar <dewar@adacore.com>
7803
7804 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
7805 Address_Taken.
7806
7807 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7808
7809 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
7810 ancestor of the derived type, the operations are inherited from the
7811 primary dispatch table of the parent.
7812 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
7813 when the context is an explicit type conversion.
7814
7815 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7816
7817 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
7818 rule for qualified expressions properly, to detect improper conversions
7819 and resolve some cases of overloading.
7820
7821 2007-09-26 Ed Schonberg <schonberg@adacore.com>
7822
7823 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
7824 proper kind of reference to the primitive operation, for better source
7825 navigation.
7826 (Valid_Conversion): A tagged conversion is legal if both operands are
7827 tagged.
7828
7829 2007-09-26 Robert Dewar <dewar@adacore.com>
7830
7831 * sem_warn.adb (Check_References): Catch more cases of unreferenced
7832 packages.
7833
7834 2007-09-26 Vincent Celier <celier@adacore.com>
7835
7836 * snames.adb, snames.ads: Change Include_Option to Include_Switches
7837
7838 2007-09-26 Robert Dewar <dewar@adacore.com>
7839
7840 * s-wchstw.adb: provide messages for run time unit exceptions
7841
7842 * a-witeio.adb: Minor reformatting
7843
7844 * exp_ch13.adb: Minor reformatting
7845
7846 2007-09-26 Sergey Rybin <rybin@adacore.com>
7847
7848 * vms_data.ads: Revise gnatmetric qualifiers.
7849 Add qualified for the new gnatbind option '-y'
7850
7851 * gnat_ugn.texi: Revise the gnatmetric section.
7852 Add entry for new gnatbind option '-y'.
7853
7854 * gnat_rm.texi: Minor spelling correction.
7855 Document restriction on overlaying controlled types
7856
7857 2007-09-26 Vincent Celier <celier@adacore.com>
7858
7859 * makegpr.adb (Link_Executables): Do not fail when the root project has
7860 no sources, but is an extending project.
7861
7862 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
7863
7864 * trans.c: Fix misplaced #define.
7865
7866 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
7867
7868 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
7869 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
7870
7871 2007-09-21 Olivier Hainque <hainque@adacore.com>
7872
7873 * utils.c (type_for_nonaliased_component_p): Return false for
7874 all AGGREGATE_TYPEs.
7875
7876 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
7877
7878 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
7879 object covered by 13.3(19) volatile.
7880
7881 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
7882
7883 PR ada/26797
7884 PR ada/32407
7885 * utils.c (unchecked_convert): Use a subtype as the intermediate type
7886 in the special VIEW_CONVERT_EXPR case.
7887
7888 2007-09-12 Robert Dewar <dewar@adacore.com>
7889
7890 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
7891
7892 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
7893 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
7894 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
7895 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
7896 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
7897 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
7898 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
7899 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
7900 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
7901 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
7902 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
7903 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
7904 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
7905 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
7906 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
7907 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
7908 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
7909 pragma Compiler_Unit and adds it to relevant library units.
7910
7911 2007-09-12 Ed Schonberg <schonberg@adacore.com>
7912
7913 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
7914 a box need not correspond to any component.
7915
7916 2007-09-12 Robert Dewar <dewar@adacore.com>
7917
7918 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
7919 the tasking version of the Ada run time when foreign threads are
7920 present and there are no explicit Ada tasks or tasking constructs.
7921
7922 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
7923
7924 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
7925
7926 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
7927 the usage of switch -y.
7928
7929 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
7930 when switch -y is present.
7931
7932 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
7933 leap seconds in Ada.Calendar and its children.
7934
7935 2007-09-12 Jose Ruiz <ruiz@adacore.com>
7936
7937 * a-extiti.ads (Timer): The discriminant is a "not null access
7938 constant" in the Reference Manual.
7939 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
7940
7941 2007-09-12 Robert Dewar <dewar@adacore.com>
7942
7943 * a-swuwha.adb: Remove junk RM header
7944
7945 2007-09-12 Vincent Celier <celier@adacore.com>
7946
7947 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
7948 indicator
7949
7950 * g-bytswa.ads: Minor reformatting
7951
7952 2007-09-12 Thomas Quinot <quinot@adacore.com>
7953
7954 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
7955 Add new constant Thread_Blocking_IO, always True by default, set False
7956 on a per-runtime basis.
7957 (Need_Netdb_Buffer): New constant.
7958
7959 2007-09-12 Arnaud Charlet <charlet@adacore.com>
7960
7961 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
7962 Added renames for corresponding functions in System.Partition_Interface.
7963
7964 2007-09-12 Doug Rupp <rupp@adacore.com>
7965
7966 * Makefile.in: Remove VMS specific System.CRTL packages which are no
7967 longer needed.
7968
7969 * s-crtl-vms64.ads: Removed.
7970
7971 2007-09-12 Olivier Hainque <hainque@adacore.com>
7972
7973 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
7974 with discriminant constraints, generalize the code for BIT_FIELDs
7975 to PACKED fields of constant size and propagate DECL_PACKED.
7976
7977 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
7978
7979 * decl.c (array_type_has_nonaliased_component): New predicate.
7980 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
7981 set the TYPE_NONALIASED_COMPONENT flag on the type.
7982 <E_Array_Subtype>: Likewise.
7983 * gigi.h (type_for_nonaliased_component_p): Declare.
7984 * utils.c (type_for_nonaliased_component_p): New predicate.
7985 (create_field_decl): Invoke the above predicate to set the
7986 DECL_NONADDRESSABLE_P flag on the field.
7987
7988 2007-09-11 Javier Miranda <miranda@adacore.com>
7989
7990 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
7991 in library level record type entities if we are generating statically
7992 allocated dispatch tables.
7993
7994 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
7995 importing/exporting the _tag declaration by new code
7996 importing/exporting the dispatch table wrapper. This change allows us
7997 to statically allocate of the TSD.
7998 (Make_DT.Export_DT): New procedure.
7999 (Build_Static_DT): New function.
8000 (Has_DT): New function.
8001
8002 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8003 True_Constant and Current_Value. Required to statically
8004 allocate the dispatch tables.
8005 (Check_Allocator): Make function iterative instead of recursive.
8006 Also return inner allocator node, when present, so that we do not have
8007 to look for that node again in the caller.
8008
8009 2007-09-11 Jan Hubicka <jh@suse.cz>
8010
8011 * misc.c (gnat_expand_body): Kill.
8012 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8013
8014 2007-09-10 Robert Dewar <dewar@adacore.com>
8015
8016 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8017 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8018 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8019 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8020 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8021 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8022 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8023 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8024 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8025 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8026 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8027 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8028 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8029 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8030 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8031 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8032 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8033 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8034 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8035 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8036 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8037 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8038 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8039 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8040 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8041 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8042 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8043 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8044 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8045 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8046 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8047 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8048 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8049 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8050 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8051 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8052 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8053 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8054 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8055 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8056 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8057 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8058 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8059 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8060 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8061 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8062 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8063 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8064 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8065 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8066 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
8067 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
8068 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
8069 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
8070 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
8071 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
8072 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
8073 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8074 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8075 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
8076 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8077 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8078 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
8079 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
8080 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
8081 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
8082 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
8083 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
8084 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
8085 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
8086 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8087 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
8088 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
8089 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
8090 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
8091 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
8092 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
8093 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
8094 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
8095 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
8096 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
8097 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
8098 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
8099
8100 2007-09-10 Emmanuel Briot <briot@adacore.com>
8101
8102 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
8103 classes ("[]").
8104
8105 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
8106
8107 * adaint.c (__gnat_translate_vms): new function.
8108
8109 2007-09-10 Gary Dismukes <dismukes@adacore.com>
8110 Thomas Quinot <quinot@adacore.com>
8111
8112 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
8113 create an abstract subprogram in the case of 'Input. For 'Output we now
8114 create a real spec/body when the type is abstract, since it can
8115 potentially be called.
8116 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
8117 body for 'Output when the type is abstract (only the creation of the
8118 body for 'Input is excluded when the type is abstract).
8119 (Stream_Operation_OK): Add an additional condition in the return
8120 statement, so that False will be returned for TTS_Stream_Input if the
8121 associated tagged type is an abstract extension. Add comments for
8122 return statement.
8123 (Expand_N_Object_Declaration): For the case of a shared passive
8124 variable, insert init proc call only after the shared variable
8125 procedures have been processed, because the IP call needs to undergo
8126 shared passive variable reference expansion, which requires these
8127 procedures to be available (and elaborated).
8128
8129 2007-09-10 Vincent Celier <celier@adacore.com>
8130
8131 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
8132 parameter Runtime_Project.
8133
8134 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8135
8136 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
8137 given a box association, the type of the component is discriminated,
8138 and the value of the discriminant is the discriminant of the enclosing
8139 type, retrieve its value from the aggregate itself, where it must have
8140 been supplied.
8141
8142 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
8143 to remove other spurious ambiguities on arithmetic operations involving
8144 literals and addresses, on systems where Address is a visible integer
8145 type, when the operator is called in functional notation.
8146 (Try_Primitive_Operation): Within an instance, a call in prefixed form
8147 is legal when the types match, even if the operation is currently
8148 hidden.
8149
8150 2007-09-10 Ed Schonberg <schonberg@adacore.com>
8151
8152 * sem_ch12.adb (Build_Local_Package): A formal package with no
8153 associations is legal if all formals have defaults. It is not
8154 equivalent to a formal declared with a box.
8155
8156 2007-09-10 Sergey Rybin <rybin@adacore.com>
8157
8158 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
8159
8160 2007-09-10 Sergey Rybin <rybin@adacore.com>
8161
8162 * gnat_ugn.texi: Add description of the new '-lratio' option
8163 Update 7.3.1 section about availability of the feature.
8164
8165 2007-09-10 Thomas Quinot <quinot@adacore.com>
8166
8167 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
8168 inserted node.
8169
8170 2007-09-10 Olivier Hainque <hainque@adacore.com>
8171
8172 * Makefile.in: (mips-irix section): Activate build of libgmem.
8173
8174 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8175
8176 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
8177 x87 registers.
8178
8179 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8180
8181 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
8182 a debug renaming declaration specially.
8183
8184 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8185
8186 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
8187 which a constant renaming is treated as a normal object declaration.
8188 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
8189 the N_Indexed_Component case.
8190 <N_Indexed_Component>: Fall through to above case.
8191 <N_Object_Renaming_Declaration>: Return true for all composite types.
8192
8193 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8194
8195 * decl.c (make_packable_type): If the new type has been given BLKmode,
8196 try again to get an integral mode for it.
8197
8198 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
8199
8200 Re-apply accidentally reverted change:
8201
8202 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
8203
8204 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8205 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8206 and _Unwind_SWord with _sleb128_t.
8207
8208 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
8209
8210 * trans.c (convert_with_check): Update call to real_2expN.
8211
8212 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
8213
8214 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
8215 * utils.c (end_subprog_body): Likewise.
8216
8217 2007-09-03 Nick Clifton <nickc@redhat.com>
8218
8219 * Make-lang.in: Change copyright header to refer to version 3 of
8220 the GNU General Public License and to point readers at the
8221 COPYING3 file and the FSF's license web page.
8222 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
8223 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
8224 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
8225 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
8226 Likewise.
8227
8228 2007-08-31 Vincent Celier <celier@adacore.com>
8229
8230 PR ada/4720
8231
8232 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8233 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
8234 (Check_Version_And_Help): New procedure in package Switch to process
8235 switches --version and --help.
8236 Use Check_Version_And_Help in GNAT tools
8237
8238 * make.adb: Ditto.
8239 (Compile_Sources): Make sure that sources that are "excluded" are not
8240 compiled.
8241 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
8242 project file is used.
8243 (Version_Switch): Remove, moved to Switch
8244 (Help_Switch): Remove, moved to Switch
8245 (Display_Version): Remove, moved to Switch
8246
8247 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
8248 package Switch to process switches --version and --help.
8249 (Display_Version): New procedure
8250
8251 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
8252
8253 2007-08-31 Javier Miranda <miranda@adacore.com>
8254
8255 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
8256 internal tags.
8257
8258 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8259
8260 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
8261 (Mark_Non_Null): If the node for which we just generated an access check
8262 is a reference to an *in* parameter and the reference appears in the
8263 declarative part of a subprogram body, mark the node as known non null.
8264
8265 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8266
8267 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
8268 structure of E_Exception to reflect the new flag.
8269 (Is_Raised, Set_Is_Raised): New inlined routines.
8270 Update the usage of available flag to reflect the addition of Is_Raised.
8271 (Is_Raised, Set_Is_Raised): Bodies of new routines.
8272 (Write_Entity_Flags): Write the status of flag Is_Raised.
8273 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
8274 spurious ambiguities when integer literals appear in the context of an
8275 address type that is a visible integer type.
8276
8277 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
8278 exceptions never being raised.
8279 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
8280 explicitly raised.
8281
8282 2007-08-31 Javier Miranda <miranda@adacore.com>
8283
8284 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
8285 statement when compiling under restriction No_Exceptions_Proparation.
8286
8287 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8288
8289 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
8290 initialization aggregate for the type, generate itype references for
8291 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
8292
8293 2007-08-31 Gary Dismukes <dismukes@adacore.com>
8294
8295 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
8296 library-level package renaming, pass the declaration associated with
8297 the renaming's special debug variable to Qualify_Entity_Names to ensure
8298 that its encoded name is properly qualified.
8299
8300 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
8301 occurring in the list of entities to qualify, and do not attempt to
8302 traverse an entity list in that case. Variables associated with
8303 ` library-level package renamings can now occur in the table.
8304
8305 * exp_dbug.ads: Revise documentation of the encoding for renaming
8306 declarations.
8307
8308 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8309
8310 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
8311 access type points to an unconstrained array.
8312
8313 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8314
8315 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8316 conversion.
8317
8318 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
8319 simple redundant qualifications. The check is performed whenever the
8320 expression is a non-overloaded identifier.
8321 (Resolve_Type_Conversion): Enchance the redundant type conversion check
8322 to include loop parameters.
8323 (Valid_Conversion): Avoid generation of spurious error message.
8324
8325 2007-08-31 Bob Duff <duff@adacore.com>
8326
8327 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
8328 concatenations of string literals into a single literal, in order to
8329 avoid very deep recursion in the front end, which was causing stack
8330 overflow.
8331
8332 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
8333 string, and the right operand is a string literal (the case of "" &
8334 "..."), optimize by avoiding copying the right operand -- just use the
8335 value of the right operand directly.
8336
8337 * stringt.adb (Store_String_Chars): Optimize by growing the
8338 String_Chars table all at once, rather than appending characters one by
8339 one.
8340 (Write_String_Table_Entry): If the string to be printed is very long,
8341 just print the first few characters, followed by the length. Otherwise,
8342 doing "pn(n)" in the debugger can take an extremely long time.
8343
8344 * sem_prag.adb (Process_Interface_Name): Replace loop doing
8345 Store_String_Char with Store_String_Chars.
8346
8347 2007-08-31 Vincent Celier <celier@adacore.com>
8348
8349 * prj-attr.adb: Add new attribute Excluded_Source_Files
8350
8351 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
8352 Locally_Removed_Files.
8353
8354 * snames.ads, snames.adb: New standard name Excluded_Source_Files
8355
8356 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8357
8358 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
8359 clauses of subunits, ignore limited_with_clauses that are illegal and
8360 have not been fully analyzed.
8361
8362 2007-08-31 Ed Schonberg <schonberg@adacore.com>
8363
8364 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
8365 flag, for effiency. It is called when analyzing arithmetic operators
8366 and also for actuals in calls that are universal_integers. The flag is
8367 set for the predefined type address, and for any type or subtype
8368 derived from it.
8369
8370 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
8371 Universal_Integer, when the formal is a descendent of address and the
8372 call appears in user code.
8373 (Analyze_Selected_Component): if the prefix is a private extension, the
8374 tag component is visible.
8375
8376 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
8377 entity flag.
8378
8379 2007-08-31 Robert Dewar <dewar@adacore.com>
8380
8381 * s-fileio.adb (Open): Normalize file name to lower case in non-case
8382 sensitive file name systems to avoid unexpected mismatch in Vista.
8383
8384 2007-08-31 Vincent Celier <celier@adacore.com>
8385
8386 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
8387
8388 2007-08-31 Vincent Celier <celier@adacore.com>
8389
8390 * symbols-vms.adb (Initialize): Read symbol files with continuation
8391 lines
8392 (Finalize): If symbol is long, split the line
8393
8394 2007-08-31 Vincent Celier <celier@adacore.com>
8395
8396 * fmap.ads: Minor comment updates
8397
8398 2007-08-31 GNAT Script <nobody@adacore.com>
8399
8400 * Make-lang.in: Makefile automatically updated
8401
8402 2007-08-31 Bob Duff <duff@adacore.com>
8403
8404 * sinfo.ads: Minor comment fix.
8405
8406 2007-08-31 Thomas Quinot <quinot@adacore.com>
8407
8408 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
8409 with implementation.
8410 Documentation cleanup only.
8411
8412 2007-08-31 Sergey Rybin <rybin@adacore.com>
8413
8414 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
8415 gnatpp '--separate-stmt-name' option.
8416 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
8417 option.
8418
8419 * gnat_ugn.texi: Add description for the new gnatpp
8420 '--separate-stmt-name' and '--use-on-new-line' options.
8421
8422 2007-08-31 Ben Elliston <bje@au.ibm.com>
8423
8424 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8425 when compiling for powerpc64-*-linux.
8426 * system-linux-ppc64.ads: New file.
8427
8428 2007-08-22 Krister Walfridsson <cato@df.lth.se>
8429
8430 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
8431 NetBSD.
8432
8433 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8434
8435 * misc.c (gnat_type_max_size): Constify.
8436
8437 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8438
8439 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
8440 associated with Standard_Debug_Renaming_Type, to be used as the type of
8441 the special variables whose names provide debugger encodings for
8442 renaming declarations.
8443
8444 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
8445 (Set_Debug_Renaming_Link): Change to set Node25.
8446 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
8447 (Write_Field25_Name): Add case for E_Variable to output
8448 "Debug_Renaming_Link".
8449 (Write_Field23_Name): Correct the output string for "Limited_View".
8450
8451 * exp_dbug.adb: Add with and use of Tbuild.
8452 (Debug_Renaming_Declaration): Replace creation of an enumeration type
8453 and literal with creation of a variable of type
8454 Standard_Debug_Renaming_Type whose name encodes both the renamed object
8455 and the entity of the renaming declaration.
8456 (Qualify_Entity_Name): Add the delayed qualification of the entity name
8457 part of the name of a variable that has a Debug_Renaming_Link.
8458
8459 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
8460 special type to be associated with variables that provide debugger
8461 encodings for renaming declarations.
8462
8463 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8464 Ed Schonberg <schonberg@adacore.com>
8465 Javier Miranda <miranda@adacore.com>
8466
8467 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
8468 ancestor part given by an aggregate to test for an unchecked conversion,
8469 since this can occur in some cases when the ancestor part is a function
8470 call, and we don't want to fall into the recursive call to this
8471 procedure in that case.
8472
8473 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
8474 stream attributes on limited types to account for user-specified
8475 attributes as well as whether Input (resp. Output) becomes available
8476 due to Read (resp. Write) being available for the type. Change Boolean
8477 variable to the more accurate name
8478 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
8479 double-"not" predicate at beginning of return statement to more
8480 understandable form.
8481
8482 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
8483 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
8484 in a block statement and use that as the first statement of the
8485 expanded return rather than incorrectly using the handled sequence as
8486 the first statement.
8487
8488 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
8489 operation, generate an explicit freeze node for it rather than
8490 generating extra formals, to ensure that gigi has the proper order of
8491 elaboration for anonymous subtypes in the signature of the subprograms.
8492 (Build_In_Place_Formal): Move assertion to beginning of loop.
8493 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
8494 applied to a function call (occurs for some cases of 'Input).
8495 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
8496 applied to a function call (occurs for some cases of 'Input).
8497
8498 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
8499 2005, generate an extended return statement enclosing the result object
8500 and 'Read call.
8501
8502 * freeze.adb (Freeze_Record_Type): Extend the current management of
8503 components that are access type with an allocator as default value: add
8504 missing support to the use of qualified expressions of the
8505 allocator (which also cause freezing of the designated type!)
8506 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
8507 dispatching operation, since extra formals may be needed by calls to
8508 build-in-place functions (such as stream 'Input).
8509
8510 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
8511 formals for 'Constrained and accessibility level in the case of a
8512 predefined dispatching operation.
8513
8514 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
8515 point, no need to find the parent node.
8516
8517 2007-08-16 Javier Miranda <miranda@adacore.com>
8518
8519 * exp_attr.adb (Attribute_Priority): Add missing support for entries
8520 and entry barriers.
8521
8522 2007-08-16 Javier Miranda <miranda@adacore.com>
8523
8524 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
8525 is not really required and can introduce regression with the debugger.
8526 The original problem is fixed with the patch written for checks.adb.
8527
8528 2007-08-16 Thomas Quinot <quinot@adacore.com>
8529
8530 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
8531 Range_Check on Allocated_Table.
8532
8533 2007-08-16 Vincent Celier <celier@adacore.com>
8534
8535 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
8536 Including_Non_Switch set to False.
8537 (Gnatmake): For the compiler, call Test_If_Relative_Path with
8538 Including_Non_Switch set to False.
8539
8540 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
8541 parameter Including_Non_Switch, defaulted to True. When
8542 Including_Non_Switch is False, options that are not switches and
8543 appear as relative path are not converted to absolute paths.
8544
8545 2007-08-16 Nicolas Roche <roche@adacore.com>
8546
8547 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
8548 makefiles
8549
8550 * Make-lang.in: Update dependencies
8551
8552 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8553
8554 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
8555 currently inspected is a selected component, retrieve the entity of
8556 its selector.
8557 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
8558 from the immediate ancestor of Main_Unit_Entity.
8559 (Install_Limited_Withed_Unit): Do not install the limited view of
8560 package P if P is reachable through an ancestor chain from package C
8561 and C also has a with clause for P in its body.
8562 (Has_Limited_With_Clause): New routine.
8563 (Has_With_Clause): New routine.
8564
8565 2007-08-16 Ed Schonberg <schonberg@adacore.com>
8566
8567 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
8568 generic for an enclosing instance is a global reference, even though
8569 its scope is the enclosing instance.
8570
8571 2007-08-16 Gary Dismukes <dismukes@adacore.com>
8572 Javier Miranda <miranda@adacore.com>
8573
8574 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
8575 initialize a limited object.
8576 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
8577 13/2 and 14/2.
8578 Make sure Has_Complex_Representation is inherited by derived type.
8579
8580 2007-08-16 Robert Dewar <dewar@adacore.com>
8581
8582 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
8583 exception case
8584
8585 2007-08-16 Ed Schonberg <schonberg@adacore.com>
8586
8587 * sem_disp.adb (Check_Dispatching_Operation): If the operation
8588 implements an operation inherited from a progenitor interface, verify
8589 that they are subtype-conformant.
8590
8591 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8592 Bob Duff <duff@adacore.com>
8593 Nicolas Setton <setton@adacore.com>
8594
8595 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
8596 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
8597 the statement which is being resolved comes from a predefined library
8598 unit, all non-predefined library interpretations are skipped.
8599 (Resolve_Op_Concat): If string concatenation was folded in the parser,
8600 but the "&" is user defined, give an error, because the folding would
8601 be wrong.
8602
8603 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
8604 the parser has folded a long sequence of concatenations of string
8605 literals.
8606
8607 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
8608 and "JMP_BUF" variables as artificial.
8609 (N_String_Literal): Do not use alloca for very long string literals. Use
8610 xmalloc/free instead. Otherwise the stack might overflow.
8611
8612 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
8613 compiler.
8614
8615 2007-08-16 Vincent Celier <celier@adacore.com>
8616
8617 * vms_conv.adb (Process_Argument): Ensure that project related options
8618 are not put in the -cargs section when using GNAT COMPILE.
8619
8620 2007-08-16 Robert Dewar <dewar@adacore.com>
8621
8622 * gnat_ugn.texi: Add note on preprocessing (output file not written)
8623
8624 2007-08-16 Thomas Quinot <quinot@adacore.com>
8625
8626 * a-tags.adb: Minor reformatting.
8627
8628 2007-08-16 Bob Duff <duff@adacore.com>
8629
8630 * sem_type.ads, sem_ch4.adb: Minor reformatting.
8631
8632 2007-08-14 Thomas Quinot <quinot@adacore.com>
8633
8634 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
8635 s-osinte-interix.ads, system-interix.ads: Removed.
8636
8637 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8638
8639 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
8640 calls to Check_Within_Time_Bounds.
8641 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
8642 (Difference): Account for possible rounding of the resulting difference
8643
8644 2007-08-14 Robert Dewar <dewar@adacore.com>
8645
8646 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
8647 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
8648 s-osinte-solaris.adb, s-osinte-solaris.ads,
8649 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
8650
8651 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
8652 switch -gnatyS. Enable -gnatyS in GNAT style check mode
8653
8654 2007-08-14 Robert Dewar <dewar@adacore.com>
8655 Ed Schonberg <schonberg@adacore.com>
8656
8657 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
8658 Suppress unmodified in-out parameter warning in some cases
8659 This patch is a also fairly significant change to the way suppressible
8660 checks are handled.
8661
8662 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
8663 needed for access to concurrent record types generated by the expander.
8664 (Generate_Range_Check): When generating a temporary to capture the
8665 value of a conversion that requires a range check, set the type of the
8666 temporary before rewriting the node, so that the type is always
8667 properly placed for back-end use.
8668 (Apply_Float_Conversion_Check): Handle case where the conversion is
8669 truncating.
8670 (Get_Discriminal): Code reformatting. Climb the scope stack looking
8671 for a protected type in order to examine its discriminants.
8672
8673 2007-08-14 Robert Dewar <dewar@adacore.com>
8674 Gary Dismukes <dismukes@adacore.com>
8675 Ed Schonberg <schonberg@adacore.com>
8676 Thomas Quinot <quinot@adacore.com>
8677
8678 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
8679 a-stwisu.adb, a-strsup.adb: Fix warnings for range
8680 tests optimized out.
8681
8682 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
8683 (Get_Allocator_Final_List): For the case of an anonymous access type
8684 that has a specified Associated_Final_Chain, do not go up to the
8685 enclosing scope.
8686 (Expand_N_Type_Conversion): Test for the case of renamings of access
8687 parameters when deciding whether to apply a run-time accessibility
8688 check.
8689 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
8690 aggregate code before allocator, and ahead of declaration for
8691 temporary, to prevent access before elaboration when the allocator is
8692 an actual for an access parameter.
8693 (Expand_N_Type_Conversion): On an access type conversion involving an
8694 access parameter, do not apply an accessibility check when the
8695 operand's original node was an attribute other than 'Access. We now
8696 create access conversions for the expansion of 'Unchecked_Access and
8697 'Unrestricted_Access in certain cases and clearly accessibility should
8698 not be checked for those.
8699
8700 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
8701 includes a type conversion of a packed component that has been expanded,
8702 recover the original expression for the object, and use this expression
8703 in the post-call assignment statement, so that the assignment is made
8704 to the object and not to a back-end temporary.
8705 (Freeze_Subprogram): In case of primitives of tagged types not defined
8706 at the library level force generation of code to register the primitive
8707 in the dispatch table. In addition some code reorganization has been
8708 done to leave the implementation clear.
8709 (Expand_Call): When expanding an inherited implicit conversion,
8710 preserve the type of the inherited function after the intrinsic
8711 operation has been expanded.
8712
8713 * exp_ch2.ads, exp_ch2.adb
8714 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
8715 of an entry formal appearing in an assignment statement does not assign
8716 to the formal.
8717 (Expand_Current_Value): Instead of calling a routine to determine
8718 whether the prefix of an attribute reference should be optimized or
8719 not, prevent the optimization of such prefixes all together.
8720
8721 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
8722 component whose prefix is known to be of an access type is an implicit
8723 dereference and does not assign to the prefix.
8724
8725 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8726 Robert Dewar <dewar@adacore.com>
8727
8728 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
8729 itype is visited, make an entry into table to link associated node and
8730 new itype.
8731 Add comments and correct harmless error in Build_NCT_Hash_Tables
8732 (Array_Aggr_Subtype): Associate each itype created for an index type to
8733 the corresponding range construct, and not to the aggregate itself. to
8734 maintain a one-to-one correspondence between itype and its associated
8735 node, to prevent errors when complex expression is copied.
8736 Fix mishandling of multiple levels of parens
8737
8738 * sem_aggr.adb: Create a limited view of an incomplete type, to make
8739 treatment of limited views uniform for all visible declarations in a
8740 limited_withed package.
8741 (New_Copy_Tree): If hash table is being used and itype is visited,
8742 make an entry into table to link associated node and new itype.
8743 (Resolve_Record_Aggregate): Do not add an others box association for a
8744 discriminated record component that has only discriminants, when there
8745 is a box association for the component itself.
8746
8747 * par-ch4.adb: Fix mishandling of multiple levels of parens
8748
8749 2007-08-14 Robert Dewar <dewar@adacore.com>
8750
8751 * comperr.adb: Fix problem with suppressing warning messages from gigi
8752
8753 * erroutc.ads, erroutc.adb, errout.ads,
8754 errout.adb (Write_Eol): Remove trailing spaces before writing the line
8755 (Write_Eol_Keep_Blanks): New procedure to write a line, including
8756 possible trailing spaces.
8757 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
8758 Fix problem with suppressing warning messages from back end
8759 Improve handling of deleted warnings
8760
8761 * gnat1drv.adb:
8762 Fix problem with suppressing warning messages from back end
8763 Handle setting of Static_Dispatch_Tables flag.
8764
8765 * prepcomp.adb:
8766 Fix problem with suppressing warning messages from back end
8767
8768 * exp_intr.adb: Improve handling of deleted warnings
8769
8770 2007-08-14 Robert Dewar <dewar@adacore.com>
8771
8772 * debug.adb: Improve -gnatdI to cover all cases of serialization
8773 Add documentation of dZ, d.t
8774
8775 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
8776 serialization.
8777 (Sprint_Node_Actual): Generate new output associated with implicit
8778 importation and implicit exportation of object declarations.
8779
8780 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8781 Robert Dewar <dewar@adacore.com>
8782 Javier Miranda <miranda@adacore.com>
8783 Gary Dismukes <dismukes@adacore.com>
8784
8785 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
8786 to make treatment of limited views uniform for all visible declarations
8787 in a limited_withed package.
8788 Improve warnings for in out parameters
8789 (Set_Related_Interaface/Related_Interface): Allow the use of this
8790 attribute with constants.
8791 (Write_Field26_Name): Handle attribute Related_Interface in constants.
8792 Warn on duplicate pragma Preelaborable_Initialialization
8793
8794 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
8795 generation of a freezing node to ensure proper management of null
8796 excluding access types in the backend.
8797 (Create_Extra_Formals): Test base type of the formal when checking for
8798 the need to add an extra accessibility-level formal. Pass the entity E
8799 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
8800 originally being done in a couple of cases), to ensure that the
8801 Extra_Formals list gets set on the entity E when the first entity is
8802 added.
8803 (Conforming_Types): Add missing calls to Base_Type to the code that
8804 handles anonymous access types. This is required to handle the
8805 general case because Process_Formals builds internal subtype entities
8806 to handle null-excluding access types.
8807 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8808 functions that need it, even when not marked Requires_Overriding.
8809 Improve warnings for in out parameters
8810 (Analyze_Function_Return): Warn for disallowed null return
8811 Warn on return from procedure with unset out parameter
8812 Ensure consistent use of # in error messages
8813 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
8814 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
8815 the implicit conversion of the expression done for anonymous access
8816 types. This is required to generate the code of the null excluding
8817 check (if required).
8818
8819 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
8820 A formal parameter is never publicly referenceable outside of its body.
8821 (Check_References): For an unreferenced formal parameter in an accept
8822 statement, use the same warning circuitry as for subprogram formal
8823 parameters.
8824 (Warn_On_Unreferenced_Entity): New subprogram, taken from
8825 Output_Unreferenced_Messages, containing the part of that routine that
8826 is now reused for entry formals as described above.
8827 (Goto_Spec_Entity): New function
8828 (Check_References): Do not give IN OUT warning for dispatching operation
8829 Improve warnings for in out parameters
8830 (Test_Ref): Check that the entity is not undefinite before calling
8831 Scope_Within, in order to avoid infinite loops.
8832 Warn on return from procedure with unset out parameter
8833 Improved warnings for unused variables
8834
8835 2007-08-14 Robert Dewar <dewar@adacore.com>
8836 Javier Miranda <miranda@adacore.com>
8837 Gary Dismukes <dismukes@adacore.com>
8838
8839 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
8840 (Expand_N_Attribute_Reference): Further unify the handling of the
8841 three forms of access attributes, using common code now for all three
8842 cases. Add a test for the case of applying an access attribute to
8843 an explicit dereference when the context is an access-to-interface
8844 type. In that case we need to apply the conversion to the prefix
8845 of the explicit dereference rather than the prefix of the attribute.
8846 (Attribute_Version, UET_Address): Set entity as internal to ensure
8847 proper dg output of implicit importation.
8848 (Expand_Access_To_Type): Removed.
8849 (Expand_N_Attribute_Reference): Merge the code from the three cases
8850 of access attributes, since the processing is largely identical for
8851 these cases. The substantive fix here is to process the case of a
8852 type name prefix (current instance case) before handling the case
8853 of interface prefixes.
8854
8855 2007-08-14 Thomas Quinot <quinot@adacore.com>
8856 Ed Schonberg <schonberg@adacore.com>
8857 Javier Miranda <miranda@adacore.com>
8858 Robert Dewar <dewar@adacore.com>
8859
8860 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
8861 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
8862 type that is an anonymous access to controlled object, establish
8863 an associated finalization chain to avoid corrupting the global
8864 finalization list when a dynamically allocated object designated
8865 by such a component is deallocated.
8866 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
8867 functions that need it, even when not marked Requires_Overriding.
8868 (Initialize_Tag): Replace call to has_discriminants by call to
8869 Is_Variable_Size_Record in the circuitry that handles the
8870 initialization of secondary tags.
8871 (Is_Variable_Size_Record): New implementation.
8872 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
8873 Suppress_Initialization pragma for a derived type.
8874 (Is_Variable_Size_Record): New subprogram.
8875 (Build_Offset_To_Top_Functions): New implementation that simplifies the
8876 initial version of this routine and also fixes problems causing
8877 incomplete initialization of the table of interfaces.
8878 (Build_Init_Procedure): Improve the generation of code to initialize the
8879 the tag components of secondary dispatch tables.
8880 (Init_Secondary_Tags): New implementation that simplifies the previous
8881 version of this routine.
8882 (Make_DT): Add parameter to indicate when type has been frozen by an
8883 object declaration, for diagnostic purposes.
8884 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
8885 diagnose attemps to freeze a subprogram when some untagged type of its
8886 profile is a private type whose full view has not been analyzed yet.
8887 (Freeze_Array_Type): Generate init proc for packed array if either
8888 Initialize or Normalize_Scalars is set.
8889 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
8890 constructing the new profile, copy the null_exclusion indicator for each
8891 parameter, to ensure full conformance of the new body with the spec.
8892
8893 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
8894 Create wrappers for constructor functions that need it, even when not
8895 marked Requires_Overriding.
8896 (Covers): Handle properly designated types of anonymous access types,
8897 whose non-limited views are themselves incomplete types.
8898 (Add_Entry): Use an entity to store the abstract operation which hides
8899 an interpretation.
8900 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
8901 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
8902 initialization aggregate.
8903 (Function_Interp_May_Be_Hidden): Rename to
8904 Function_Interp_Has_Abstract_Op.
8905 (Has_Compatible_Type): Remove machinery that skips interpretations if
8906 they are labeled as potentially hidden by an abstract operator.
8907 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
8908 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
8909 (Write_Overloads): Output the abstract operator if present.
8910 (Add_Entry): Before inserting a new entry into the interpretation table
8911 for a node, determine whether the entry will be disabled by an abstract
8912 operator.
8913 (Binary_Op_Interp_May_Be_Hidden): New routine.
8914 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
8915 aggregate.
8916 (Function_Interp_May_Be_Hidden): New routine.
8917 (Has_Compatible_Type): Do not consider interpretations hidden by
8918 abstract operators when trying to determine whether two types are
8919 compatible.
8920 (Has_Hidden_Interp): New routine.
8921 (Set_May_Be_Hidden_Interp): New routine.
8922 (Write_Overloads): Write the status of flag May_Be_Hidden.
8923
8924 2007-08-14 Ed Schonberg <schonberg@adacore.com>
8925 Javier Miranda <miranda@adacore.com>
8926
8927 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
8928 types declared in the declarative part of a nested package body or in
8929 the proper body of a stub.
8930 (Set_All_DT_Position): Add missing check to avoid wrong assignation
8931 of the same dispatch table slot to renamed primitives.
8932 (Make_Select_Specific_Data_Table): Handle private types.
8933 (Tagged_Kind): Handle private types.
8934 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
8935 output of implicit importation and exportation.
8936 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
8937 first formal of the thunk is always associated with the controlling
8938 type. In addition perform the following code cleanup: remove formal
8939 Thunk_Alias which is no longer required, cleanup evaluation of the
8940 the controlling type, and update the documentation.
8941 Replace occurrence of Default_Prim_Op_Count by
8942 Max_Predef_Prims. Addition of compile-time check to verify
8943 that the value of Max_Predef_Prims is correct.
8944 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
8945 (Make_DT): Add parameter to indicate when type has been frozen by an
8946 object declaration, for diagnostic purposes.
8947 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
8948 construction of statically allocated dispatch tables.
8949 (Make_DT): In case of library-level tagged types export the declaration
8950 of the primary tag. Remove generation of tags (now done by Make_Tags).
8951 Additional modifications to handle non-static generation of dispatch
8952 tables. Take care of building tables for asynchronous interface types
8953 (Make_Tags): New subprogram that generates the entities associated with
8954 the primary and secondary tags of Typ and fills the contents of Access_
8955 Disp_Table. In case of library-level tagged types imports the forward
8956 declaration of the primary tag that will be declared later by Make_DT.
8957 (Expand_Interface_Conversion): In case of access types to interfaces
8958 replace an itype declaration by an explicit type declaration to avoid
8959 problems associated with the scope of such itype in transient blocks.
8960
8961 2007-08-14 Robert Dewar <dewar@adacore.com>
8962 Ed Schonberg <schonberg@adacore.com>
8963 Javier Miranda <miranda@adacore.com>
8964
8965 * exp_util.ads, exp_util.adb:
8966 This patch replaces a number of occurrences of explicit tests for N_Null
8967 with calls to Known_Null. This improves tracking of null values, since
8968 Known_Null also catches null constants, and variables currently known to
8969 be null, so we get better tracking.
8970 (Ensure_Defined): create an itype reference only in the scope of the
8971 itype.
8972 (Side_Effect_Free): A selected component of an access type that
8973 denotes a component with a rep clause must be treated as not
8974 side-effect free, because if it is part of a linked structure its
8975 value may be affected by a renaming.
8976 (Expand_Subtype_From_Expr): For limited objects initialized with build
8977 in place function calls, do nothing; otherwise we prematurely introduce
8978 an N_Reference node in the expression initializing the object, which
8979 breaks the circuitry that detects and adds the additional arguments to
8980 the called function. Bug found working in the new patch for statically
8981 allocated dispatch tables.
8982 (Is_Library_Level_Tagged_Type): New subprogram.
8983 (Remove_Side_Effects): If the expression of an elementary type is an
8984 operator treat as a function call.
8985 (Make_Literal_Range): If the index type of the array is not integer, use
8986 attributes properly to compute the constraint on the resulting aggregate
8987 which is a string.
8988
8989 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
8990 class-wide type whose base type is an incomplete private type, leave
8991 class-wide type unfrozen so that freeze nodes can be generated
8992 properly at a later point.
8993 (Freeze_Entity, array case): Handle case of pragma Pack and component
8994 size attributre clause for same array.
8995
8996 2007-08-14 Vincent Celier <celier@adacore.com>
8997
8998 * prj.ads, prj.adb: Update Project Manager to new attribute names for
8999 gprbuild.
9000 Allow all valid declarations in configuration project files
9001 (Reset): Initialize all tables and hash tables in the project tree data
9002 Major update of the Project Manager and of the project aware tools,
9003 including gprmake, so that the same sources in the GNAT repository
9004 can be used by gprbuild.
9005 (Slash_Id): Change type to be Path_Name_Type
9006 (Slash): Return a Path_Name_Type instead of a File_Name_Type
9007
9008 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9009 gprbuild.
9010 Update Project Manager to new attribute names for ghprbuild
9011 Allow all valid declarations in configuration project files
9012 Major update of the Project Manager and of the project aware tools,
9013 including gprmake, so that the same sources in the GNAT repository
9014 can be used by gprbuild.
9015
9016 * prj-com.ads:
9017 Major update of the Project Manager and of the project aware tools,
9018 including gprmake, so that the same sources in the GNAT repository
9019 can be used by gprbuild.
9020
9021 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9022 insensitive flag for attributes with optional index.
9023 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9024 array attribute, put the index in lower case.
9025 Update Project Manager to new attribute names for ghprbuild
9026 Allow all valid declarations in configuration project files
9027 Major update of the Project Manager and of the project aware tools,
9028 including gprmake, so that the same sources in the GNAT repository
9029 can be used by gprbuild.
9030
9031 * prj-env.ads, prj-env.adb:
9032 Major update of the Project Manager and of the project aware tools,
9033 including gprmake, so that the same sources in the GNAT repository
9034 can be used by gprbuild.
9035 (Get_Reference): Change type of parameter Path to Path_Name_Type
9036
9037 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9038 removing '-' from the path to start with the first character of the
9039 next directory.
9040 Major update of the Project Manager and of the project aware tools,
9041 including gprmake, so that the same sources in the GNAT repository
9042 can be used by gprbuild.
9043 Major update of the Project Manager and of the project aware tools,
9044 including gprmake, so that the same sources in the GNAT repository
9045 can be used by gprbuild.
9046
9047 * prj-nmsc.ads, prj-nmsc.adb:
9048 Update Project Manager to new attribute names for ghprbuild
9049 Allow all valid declarations in configuration project files
9050 (Search_Directories): Detect subunits that are specified with an
9051 attribute Body in package Naming. Do not replace a source/unit in the
9052 same project when the order of the source dirs are known. Detect
9053 duplicate sources/units in the same project when the order of the
9054 source dirs are not known.
9055 (Check_Ada_Name): Allow all identifiers that are not reserved words
9056 in Ada 95.
9057 Major update of the Project Manager and of the project aware tools,
9058 including gprmake, so that the same sources in the GNAT repository
9059 can be used by gprbuild.
9060 (Look_For_Sources): If the list of sources is empty, set the object
9061 directory of non extending project to nil.
9062 Change type of path name variables to be Path_Name_Type
9063 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9064 otherwise creating missing directories will fail.
9065
9066 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
9067 prj-part.ads, prj-part.adb:
9068 Major update of the Project Manager and of the project aware tools,
9069 including gprmake, so that the same sources in the GNAT repository
9070 can be used by gprbuild.
9071
9072 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9073 insensitive flag for attributes with optional index.
9074 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9075 array attribute, put the index in lower case.
9076 (Parse_Variable_Reference): Allow the current project name to be used in
9077 the prefix of an attribute reference.
9078
9079 * prj-util.ads, prj-util.adb
9080 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
9081 defaulted to False. When True, always check against indexes in lower
9082 case.
9083
9084 * snames.ads, snames.h, snames.adb:
9085 Update Project Manager to new attribute names for gprbuild
9086 Allow all valid declarations in configuration project files
9087
9088 2007-08-14 Robert Dewar <dewar@adacore.com>
9089 Ed Schonberg <schonberg@adacore.com>
9090
9091 * opt.ads: Warning for non-local exception propagation now off by
9092 default
9093 New switch -gnatI to disable representation clauses
9094 Implement new pragma Implicit_Packing
9095
9096 * usage.adb:
9097 Warning for non-local exception propagation now off by default
9098 Add warning for unchecked conversion of pointers wi different
9099 conventions.
9100 New switch -gnatI to disable representation clauses
9101
9102 * usage.adb: new switch -gnatyS
9103
9104 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
9105 note that aggregates of anonymous array types are not flagged.
9106 -gnatwc now includes membership tests optimized away
9107 -gnatw.x warnings are now off by default
9108 Added conditional compilation Appendix
9109 Add documentation of -gnatI
9110 Add documentation for new -gnatyS style check
9111 Update documentation about SAL and auto-init on Windows.
9112
9113 * gnat_rm.texi:
9114 Add documentation for pragma Check_Name and 'Enabled attribute
9115 Document that Eliminate on dispatching operation is ignored
9116 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
9117 Document pragma Main
9118 Document pragma Implicit_Packing
9119
9120 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
9121 different conventions
9122 New switch -gnatI to disable representation clauses
9123
9124 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
9125 recognized, report the invalid characters including "-gnat" instead of
9126 just the first character in the switch.
9127 New switch -gnatI to disable representation clauses
9128 Set Warn_On_Object_Renames_Function true for -gnatg
9129
9130 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
9131 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
9132 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
9133 to switch -aP (add directory to project search dir).
9134
9135 * par-prag.adb: Implement new pragma Implicit_Packing
9136
9137 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
9138 type as having a non-standard representation, to force expansion on
9139 conversion to related types.
9140 (Analyze_Pragma): Warn on misspelled pragma
9141 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
9142 Ensure consistent use of # in error messages
9143 Implement pragma Implicit_Packing
9144
9145 2007-08-14 Olivier Hainque <hainque@adacore.com>
9146 Eric Botcazou <ebotcazou@adacore.com>
9147
9148 * targtyps.c (get_target_maximum_default_alignment): New function.
9149 Maximum alignment
9150 that the compiler might choose by default for a type or object.
9151 (get_target_default_allocator_alignment): New function. Alignment known
9152 to be honored by the target default allocator.
9153 (get_target_maximum_allowed_alignment): New function. Maximum alignment
9154 we might accept for any type or object on the target.
9155 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
9156
9157 * gigi.h (get_target_maximum_default_alignment): Declare new function.
9158 (get_target_default_allocator_alignment): Likewise.
9159 (get_target_maximum_allowed_alignment): Likewise.
9160
9161 PR ada/19037
9162 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
9163 result of a function call, first try to use a stabilized reference for
9164 a constant renaming too.
9165 (validate_alignment): Use target_maximum_allowed_alignment instead of
9166 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
9167 (gnat_to_gnu_entity): Use common nodes directly.
9168 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
9169 alignment and size for the object.
9170 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
9171 and N_Procedure_Call_Statement.
9172 (takes_address): Rename to lvalue_required_p, add third parameter
9173 'aliased' and adjust recursive calls.
9174 <N_Indexed_Component>: Update 'aliased' from the array type.
9175 <N_Selected_Component>: New case.
9176 <N_Object_Renaming_Declaration>: New Likewise.
9177 (Identifier_to_gnu): Adjust for above changes.
9178 (maybe_stabilize_reference) <CONST_DECL>: New case.
9179
9180 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
9181 between type variants.
9182 (build_simple_component_ref): Likewise.
9183 (build_call_alloc_dealloc): Use target_default_allocator_alignment
9184 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
9185 aligning type circuitry for allocations from the default storage pool.
9186 (build_allocator): Likewise.
9187 (build_simple_component_ref): Manually fold the reference for a
9188 constructor if the record type contains a template.
9189
9190 * utils.c (value_zerop): Delete.
9191 (gnat_init_decl_processing): Emit debug info for common types.
9192 (rest_of_record_type_compilation): If a union contains a field
9193 with a non-constant qualifier, treat it as variable-sized.
9194 (finish_record_type): Give the stub TYPE_DECL a name.
9195 (rest_of_record_type_compilation): Likewise.
9196 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
9197 types are equivalent array types.
9198 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
9199 even if the type is not passed by reference.
9200 (static_ctors, static_dtors): Delete.
9201 (end_subprog_body): Do not record constructors and destructors.
9202 (build_global_cdtor): Delete.
9203 (gnat_write_global_declarations): Do not call build_global_cdtor.
9204
9205 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
9206 -fRTS=rtp is specified.
9207 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
9208 specified.
9209
9210 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
9211 of the personality function with SJLJ exceptions.
9212
9213 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
9214 the name of the personality function with SJLJ exceptions.
9215
9216 2007-08-14 Robert Dewar <dewar@adacore.com>
9217 Ed Schonberg <schonberg@adacore.com>
9218
9219 * par.ads, par.adb: Improve handling of extra right parens.
9220 (Par): Remove flag From_Limited_With_Clause.
9221
9222 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
9223 Improve handling of extra right parens.
9224
9225 2007-08-14 Robert Dewar <dewar@adacore.com>
9226
9227 * par-tchk.adb (TF_Semicolon): Improve error recovery
9228
9229 2007-08-14 Robert Dewar <dewar@adacore.com>
9230 Ed Schonberg <schonberg@adacore.com>
9231
9232 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
9233 enumeration type, mark all literals as referenced.
9234 (Eval_Attribute, case 'Image): If the argument is an enumeration
9235 literal and names are available, constant-fold but mark nevertheless as
9236 non-static.
9237 Clean up function names.
9238 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
9239 comment.
9240 (Requires_Simple_Name_Prefix): Removed.
9241
9242 2007-08-14 Robert Dewar <dewar@adacore.com>
9243 Ed Schonberg <schonberg@adacore.com>
9244
9245 * sem_ch11.adb: Improved warnings for unused variables
9246
9247 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
9248 is a synchronized interface, the derived type is limited.
9249 (Analyze_Object_Declaration): Mark the potential coextensions in the
9250 definition and expression of an object declaration node.
9251 (Build_Derived_Type): For the completion of a private type declaration
9252 with a derived type declaration, chain the parent type's representation
9253 items to the last representation item of the derived type (not the
9254 first one) if they are not present already.
9255 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
9256 object declaration of forward references to tags.
9257 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
9258 subprogram types can appear as access discriminants of synchronized
9259 types.
9260 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
9261 given in prefixed form as a selected component.
9262 (Process_Discriminants): If not all discriminants have defaults, place
9263 error message on a default that is present.
9264 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
9265 extend a synchronized tagged type.
9266 Improved warnings for unused variables
9267 (Is_Visible_Component): Fix a visibility hole on a component inherited
9268 by a private extension when parent is itself declared as a private
9269 extension, and the derivation is in a child unit.
9270 (Find_Hidden_Interface): Move spec from the package body.
9271
9272 2007-08-14 Robert Dewar <dewar@adacore.com>
9273 Ed Schonberg <schonberg@adacore.com>
9274
9275 * sem_ch5.adb: Improve warnings on redundant assignments
9276
9277 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
9278 parameter
9279 (Is_Synchronized_Tagged_Type): New subprogram that returns true
9280 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
9281 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
9282 is set to False. Improves handling of Known_[Not_]Null.
9283 (Wrong_Type): Special case address arithmetic attempt
9284 (Collect_Abstract_Interfaces): Add new formal to allow collecting
9285 abstract interfaces just using the partial view of private types.
9286 (Has_Abstract_Interfaces): Add new formal to allow checking types
9287 covering interfaces using the partial view of private types.
9288 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
9289 component still needs to be defined in this case, but is never
9290 initialized as VMs are using other dispatching mechanisms.
9291 (Abstract_Interface_List): For a protected type, use base type to get
9292 proper declaration.
9293 Improve warnings on redundant assignments
9294 (Is_Variable): Handle properly an implicit dereference of a prefixed
9295 function call.
9296 (Build_Actual_Subtype): If this is an actual subtype for an
9297 unconstrained formal parameter, use the sloc of the body for the new
9298 declaration, to prevent anomalises in the debugger.
9299
9300 2007-08-14 Robert Dewar <dewar@adacore.com>
9301
9302 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
9303 dispatching operation
9304
9305 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9306 Gary Dismukes <dismukes@adacore.com>
9307
9308 * exp_aggr.ads,
9309 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
9310 expanded aggregate code before allocator, and ahead of declaration for
9311 temporary, to prevent access before elaboration when the allocator is
9312 an actual for an access parameter.
9313 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
9314 the TSD and the table of interfaces.
9315 (Convert_To_Assignments): Augment the test for delaying aggregate
9316 expansion for limited return statements to include the case of extended
9317 returns, to prevent creation of an unwanted transient scope.
9318 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
9319 (Expand_Array_Aggregate): Handle aggregates associated with
9320 statically allocated dispatch tables.
9321 (Expand_Record_Aggregate): Handle aggregates associated with
9322 statically allocated dispatch tables.
9323 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
9324 of anonymous access type.
9325
9326 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9327
9328 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
9329 is a variable that renames a slice, use the variable itself in the
9330 expannsion when the renamed expression itself may be modified between
9331 the declaration of the renaming and the array assignment.
9332
9333 2007-08-14 Jerome Guitton <guitton@adacore.com>
9334
9335 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9336 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
9337 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
9338 New functions; dummy implementations.
9339
9340 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
9341 functions, used to implement the multi-tasks mode routines on VxWorks.
9342
9343 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
9344 New functions, thin
9345 binding to the VxWorks routines which have changed between VxWorks 5
9346 and 6.
9347 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
9348 which are not callable from a RTP.
9349
9350 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
9351 implemented for the multi-tasks mode on VxWorks 5 and 6.
9352
9353 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
9354
9355 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
9356 functions.
9357
9358 2007-08-14 Vincent Celier <celier@adacore.com>
9359
9360 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
9361 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9362 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
9363 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9364 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9365 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
9366 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
9367 procedure.
9368 (Major_Id_Name): New function.
9369 mlib-tgt.ads/mlib.tgt.adb:
9370 (Library_Major_Minor_Id_Supported): New function, default returns True
9371 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
9372 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
9373 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
9374 Implementation of Library_Major_Minor_Id_Supported returns False
9375 clean.adb:
9376 (Clean_Library_Directory): If major/minor ids are supported, clean all
9377 library files.
9378 Major update of the Project Manager and of the project aware tools,
9379 including gprmake, so that the same sources in the GNAT repository
9380 can be used by gprbuild.
9381
9382 2007-08-14 Olivier Hainque <hainque@adacore.com>
9383
9384 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
9385 (GCC_ZCX_Support): Switch to True.
9386
9387 * s-intman-solaris.adb (Notify_Exception): Call
9388 Adjust_Context_For_Raise before raising, as expected for signal
9389 handlers in general.
9390
9391 * s-intman-posix.adb (Notify_Exception): Remove declaration of
9392 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
9393 to other implementation bodies.
9394
9395 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
9396 be visible by multiple implementation bodies.
9397
9398 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
9399 only for conditions coming from hardware.
9400 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
9401 adjustments to signal context prior to exception raise from signal
9402 handler.
9403 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
9404 mode.
9405 Solaris section: (__gnat_adjust_context_for_raise): New function.
9406 Implementation of the machine context adjustments to perform prior to
9407 raise from a signal handler. Version for both sparc and x86.
9408 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
9409 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
9410 prior to raising as expected for any handler, before possible nested
9411 faults to make sure all the contexts in a chain have been adjusted by
9412 the time we propagate.
9413
9414 2007-08-14 Pascal Obry <obry@adacore.com>
9415
9416 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
9417 (SYSTEM_INFO): New record.
9418 (SetThreadIdealProcessor): New imported routine needed for supporting
9419 task_info pragma on Windows.
9420
9421 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
9422 info can be applied to the current host.
9423 (Create_Task): Set the ideal processor if information is present.
9424
9425 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
9426 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
9427
9428 2007-08-14 Olivier Hainque <hainque@adacore.com>
9429
9430 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
9431 stack size and initial stack pointer value for a given task.
9432 (Enter_Task): Get the stack attributes of the task we are entering and
9433 let the stack checking engine know about them.
9434
9435 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
9436 Let the stack-checking engine know about the initial sp value and stack
9437 size associated with the current task.
9438 (Set_Stack_Info): If a stack base has been notified for the current
9439 task, honor it. Fallback to the previous less accurate method otherwise.
9440
9441 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
9442
9443 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9444
9445 * sem_ch10.adb: Create a limited view of an incomplete type, to make
9446 treatment of limited views uniform for all visible declarations in a
9447 limited_withed package.
9448 Set flag indicating that a subprogram body for a child unit has a
9449 generated spec.
9450 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
9451 separate declaration, remove the unit name from visibility after
9452 compilation, so that environment is clean for subsequent compilations.
9453 (Install_Limited_Context_Clauses): Do not install a
9454 limited_private_with_clause unless the current unit is a body or a
9455 private child unit.
9456 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
9457 in the same fashion.
9458 (Install_Limited_Withed_Unit): Do not install a limited with clause if
9459 it applies to the declaration of the current package body.
9460 (Remove_Private_With_Clauses): If there is a regular with_clause for
9461 the unit, delete Private_With_Clause from context, to prevent improper
9462 hiding when processing subsequent nested packages and instantiations.
9463
9464 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9465
9466 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
9467 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
9468 representing absolute path names.
9469 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
9470
9471 * cstreams.c (__gnat_full_name for VxWorks): Use
9472 __gnat_is_absolute_path to detect whether we need to add the current
9473 directory to normalize the path.
9474
9475 2007-08-14 Javier Miranda <miranda@adacore.com>
9476
9477 * a-tags.ads,
9478 a-tags.adb (Displace): Associate a message with the raised CE
9479 exception.
9480 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
9481 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
9482 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
9483 spec.
9484 (Default_Prim_Op_Count): Removed.
9485 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
9486 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
9487 Remove pragma Inline_Always.
9488
9489 * rtsfind.ads (Default_Prim_Op_Count): Removed
9490 (Max_Predef_Prims): New entity
9491 (RE_Expanded_Name): Removed
9492 (RE_HT_Link): Removed
9493 (RE_Iface_Tag): Remmoved
9494 (RE_Ifaces_Table): Removed
9495 (RE_Interfaces_Array): Removed
9496 (RE_Interface_Data_Element): Removed
9497 (RE_Nb_Ifaces): Removed
9498 (RE_RC_Offset): Removed
9499 (RE_Static_Offset_To_Top): Removed
9500
9501 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
9502 formal.
9503 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
9504 Prim_Op_Count by Max_Predef_Prims.
9505
9506 2007-08-14 Thomas Quinot <quinot@adacore.com>
9507 Vincent Celier <celier@adacore.com>
9508
9509 * binde.adb (Elab_All_Links): Remove unnecessary call to
9510 Generic_Separately_Compiled (if a unit satisfies this predicate, there
9511 won't be an associated Afile).
9512 (Elab_All_Links): Fail if a referenced unit cannot be found
9513
9514 * bindgen.adb:
9515 Fix comments in bindgen regarding consistency checks done in Bcheck:
9516 the checks are made across units within a partition, not across several
9517 partitions.
9518 Fix generation of C binder file for VxWorks.
9519
9520 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
9521 Generic_May_Lack_ALI, more descriptive of the current use of the
9522 predicate, and update documentation.
9523
9524 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
9525 reorganization and documentation update for the case of predefined
9526 library generics (for which we do not reference an Afile).
9527
9528 2007-08-14 Robert Dewar <dewar@adacore.com>
9529
9530 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
9531 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
9532 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
9533 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
9534 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
9535 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
9536 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
9537 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
9538 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
9539 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
9540 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
9541 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
9542 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
9543 g-altcon.adb: Minor reformatting
9544
9545 ada-tree.h: Delete empty line.
9546
9547 ali.ads: Minor reformatting
9548 Clarification of comments.
9549 Minor spelling correction
9550
9551 * exp_dbug.adb: Add Warnings Off to suppress new warning
9552
9553 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9554 formal
9555
9556 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
9557 value
9558
9559 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
9560
9561 * a-textio.ads: Reorder the standard input/output/error declarations
9562 for consistency.
9563
9564 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
9565
9566 * par-ch2.adb: Recognize RM specially in errout
9567 Change 'R'M to RM in all error messages
9568
9569 * scng.adb: Recognize RM specially in errout
9570
9571 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
9572 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
9573
9574 * s-direio.adb: Add missing routine header box.
9575
9576 * sem_attr.ads: Add ??? comments
9577
9578 * sem_eval.adb: Recognize RM specially in errout
9579 Change 'R'M to RM in all error messages
9580
9581 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
9582
9583 * s-tasinf.ads: Fix minor comment typo.
9584
9585 * a-cihama.adb: Minor comment addition
9586
9587 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9588 formal
9589
9590 * s-tasinf-tru64.ads: Fix minor comment typo.
9591
9592 * itypes.ads: Comment update.
9593
9594 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
9595 anymore.
9596
9597 * argv.c: Added protection against null gnat_argv and gnat_envp.
9598
9599 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
9600 warning message when Tolerate_Consistency_Errors is True.
9601
9602 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
9603 Any_Id, as this subprogram is only applicable to *type* entities (it
9604 sets RM_Size). Instead initialize just Esize and Alignment.
9605
9606 2007-08-14 Bob Duff <duff@adacore.com>
9607
9608 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9609 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9610 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
9611 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
9612 a-coorse.ads (Next): Applied pragma Inline.
9613 Make all Containers packages Remote_Types (unless they are already
9614 Pure).
9615 (Previous): applied pragma Inline
9616 (Elements_Type): is now a record instead of an array
9617
9618 2007-08-14 Thomas Quinot <quinot@adacore.com>
9619
9620 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
9621 of Set_Item.
9622 (Set_Item): When the new item is an element of the currently allocated
9623 table passed by reference, save a copy on the stack if we're going
9624 to reallocate. Also, in Table.Set_Item, make sure we test the proper
9625 variable to determine whether to call Set_Last.
9626
9627 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
9628 symbols-vms.adb, symbols-processing-vms-alpha.adb,
9629 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
9630 some occurrences of the pattern
9631 T.Increment_Last;
9632 T.Table (T.Last) := Value;
9633 with a cleaner call to
9634 T.Append (Value);
9635
9636 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9637 Gary Dismukes <dismukes@adacore.com>
9638 Thomas Quinot <quinot@adacore.com>
9639
9640 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
9641 derived type with interface progenitors use the analyzed formal as the
9642 parent of the actual, to create renamings for all the inherited
9643 operations in Derive_Subprograms.
9644 (Collect_Previous_Instances): new procedure within of
9645 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
9646 unit being loaded, to ensure that the generation of global symbols is
9647 consistent in different compilation modes.
9648 (Is_Tagged_Ancestor): New function testing the ancestor relation that
9649 takes progenitor types into account.
9650 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
9651 traversing over the primitives of the formal and actual types to locate
9652 any abstract subprograms of the actual type that correspond to a
9653 nonabstract subprogram of the formal type's ancestor type(s), and issue
9654 an error if such is found.
9655 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
9656 Instantiate_Package_Body, Instantiate_Subprogram_Body):
9657 Remove bogus guard around calls to Inherit_Context.
9658 (Reset_Entity): If the entity is the selector of a selected component
9659 that denotes a named number, propagate constant-folding to the generic
9660 template only if the named number is global to the generic unit.
9661 (Set_Instance_Env): Only reset the compilation switches when compiling
9662 a predefined or internal unit.
9663
9664 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9665
9666 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
9667 parameter to determine whether operation applies to the prefix.
9668 (Complete_Object_Operation): If actual has an access type and
9669 controlling formal is not an in_parameter, reject the actual if it is
9670 an access_to_constant type.
9671 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
9672 type, the candidate operations are found in the scope of declaration of
9673 the type, because the type has no primitive subprograms.
9674 (Analyze_Selected_Component): If prefix is class-wide, and root type is
9675 a private extension, only examine visible components before trying to
9676 analyze as a prefixed call.
9677 Change Entity_List to Type_To_Use, for better readability.
9678 (Has_Fixed_Op): Use base type when checking whether the type of an
9679 operator has a user-defined multiplication/division
9680 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
9681 user-defined operators are available for fixed-point types.
9682
9683 2007-08-14 Thomas Quinot <quinot@adacore.com>
9684 Ed Schonberg <schonberg@adacore.com>
9685
9686 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
9687 formal At_Any_Place indicating, when True, that we want to test for
9688 availability of the stream attribute at any place (as opposed to the
9689 current visibility context only).
9690 (Missing_Read_Write_Attributes): A stream attribute is missing for the
9691 purpose of enforcing E.2.2(8) only if it is not available at any place.
9692 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
9693 when checking the legality of an extension aggregate in a preelaborable
9694 package. Treat the literal null as a valid default expression in a
9695 component declaration for a type with preelaborable initialization.
9696 A limited interface is a legal progenitor for the designated type of a
9697 remote access to class-wide type.
9698
9699 2007-08-14 Thomas Quinot <quinot@adacore.com>
9700 Ed Schonberg <schonberg@adacore.com>
9701
9702 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
9703 reference): Use correct entity as denoted entity for the selector of
9704 the rewritten node.
9705 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
9706 setting the Referenced_As_LHS flag for entities that are implicitly
9707 dereferenced.
9708 (Find_Type): If the type is an internally generated incomplete type,
9709 mark the full view as referenced, to prevent spurious warnings.
9710 (Find_Selected_Component, Has_Components): Handle properly non-limited
9711 views that are themselves incomplete types.
9712 Handle interfaces visible through limited-with clauses.
9713 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
9714 subprogram generic actual for which we have generated a renaming.
9715 Warn when the renaming introduces a homonym of
9716 the renamed entity, and the renamed entity is directly visible.
9717
9718 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9719 Hristian Kirtchev <kirtchev@adacore.com>
9720
9721 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
9722 appear in the subtree to the current allocator if it is not a static
9723 coextension.
9724 (Resolve_Allocator): Perform cleanup if resolution has determined that
9725 the allocator is not a coextension.
9726 (Resolve): Skip an interpretation hidden by an abstract operator only
9727 when the type of the interpretation matches that of the context.
9728 (Resolve): When looping through all possible interpretations of a node,
9729 do not consider those that are hidden by abstract operators.
9730 (Resolve_Actuals): When verifying that an access to class-wide object
9731 is an actual for a controlling formal, ignore anonymous access to
9732 subprograms whose return type is an access to class_wide type.
9733 (Resolve_Slice): If the prefix of the slice is a selected component
9734 whose type depends on discriminants, build its actual subtype before
9735 applying range checks on the bounds of the slice.
9736 (Valid_Conversion): In an instance or inlined body, compare root types,
9737 to prevent anomalies between private and public views.
9738 (Resolve): Improve error message for ambiguous fixed multiplication
9739 expressions that involve universal_fixed multiplying operations.
9740
9741 2007-08-14 Javier Miranda <miranda@adacore.com>
9742 Hristian Kirtchev <kirtchev@adacore.com>
9743
9744 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9745 location to allow the correct generation of errors in case of
9746 restrictions applied to the expanded code.
9747 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9748 function if the condition does not reference them.
9749 (Expand_Entry_Body_Declarations): Mark the index constant as having a
9750 valid value.
9751
9752 2007-08-14 Thomas Quinot <quinot@adacore.com>
9753 Pablo Oliveira <oliveira@adacore.com>
9754
9755 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
9756 typecode parameters for a union (in a variant record), remove
9757 extraneous layer of Any wrapping for member label.
9758 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
9759 elabration statements, register the package with the name server
9760 at the beginning, not at the end, of the elaboration statements so
9761 that they can create remote access to subprogram values that designate
9762 remote subprograms from the package.
9763
9764 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
9765
9766 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
9767 values to compute the number of seconds since the Unix Epoc in order to
9768 account for Daylight Savings Time. Perform special processing for dates
9769 that are earlier than the Unix Epoc to obtain a negative number.
9770
9771 2007-08-14 Emmanuel Briot <briot@adacore.com>
9772
9773 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
9774 switches.
9775
9776 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
9777
9778 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
9779 binder-generated file is not in Ada.
9780 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
9781 recorded in the ALI file.
9782 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
9783
9784 2007-08-14 Vincent Celier <celier@adacore.com>
9785
9786 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
9787 (Output_Source): Do nothing if parameter is No_Sdep_Id
9788
9789 * make.adb (Gnatmake): Do not rebuild an archive simply because a
9790 shared library it imports has a later time stamp.
9791 (Check): Resolve the symbolic links in the path name of the object
9792 directory.
9793 Check that the ALI file is in the correct object directory
9794 Check if a file name does not correspond to the mapping of units
9795 to file names.
9796 (Display_Version): New procedure
9797 (Initialize): Process switches --version and --help
9798 Use type Path_Name_Type for path name
9799
9800 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
9801
9802 * impunit.adb: Re-organize System.Random_Numbers and
9803 GNAT.Random_Numbers and add to builds.
9804
9805 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
9806
9807 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
9808
9809 * a-assert.ads, a-assert.adb: New files.
9810
9811 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9812
9813 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
9814 if AAMP_On_Target is True, then the size of the type encompasses two
9815 addresses (a static link and a subprogram address), except in the case
9816 of library-level access types.
9817
9818 2007-08-14 Vincent Celier <celier@adacore.com>
9819
9820 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
9821 writing the line.
9822 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9823 possible trailing spaces.
9824 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9825
9826 2007-08-14 Javier Miranda <miranda@adacore.com>
9827
9828 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
9829 null-excluding access types.
9830
9831 2007-08-14 Javier Miranda <miranda@adacore.com>
9832
9833 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
9834 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
9835 of private types add missing check on matching interfaces in the
9836 partial and full declarations.
9837 (Analyze_Protected_Type): Code cleanup.
9838 (Analyze_Task_Type): Code cleanup.
9839
9840 2007-08-14 Javier Miranda <miranda@adacore.com>
9841
9842 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
9843 generated interface thunk.
9844
9845 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9846
9847 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
9848 obsolescent warning on application of 'Class to an incomplete type.
9849
9850 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
9851 prevent obsolescent warning on application of 'Class to an incomplete
9852 type.
9853
9854 2007-08-14 Pascal Obry <obry@adacore.com>
9855
9856 * s-fileio.adb (Is_Open): Add check for usability of the underlying
9857 file stream.
9858
9859 2007-08-14 Cyrille Comar <comar@adacore.com>
9860
9861 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
9862 since it is potentially used in cases implying double finalization of
9863 the same object.
9864
9865 2007-08-14 Jose Ruiz <ruiz@adacore.com>
9866
9867 * s-tasini.adb (Get_Stack_Info): Move this function to
9868 System.Soft_Links.Tasking because it is common to the full and the
9869 restricted run times.
9870 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
9871 in SSL.Tasking.Init_Tasking_Soft_Links.
9872
9873 * s-solita.adb (Get_Stack_Info): Function moved from
9874 System.Tasking.Initialization because it is common to the full and the
9875 restricted run times.
9876 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
9877
9878 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9879
9880 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
9881 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
9882 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
9883 parameter.
9884
9885 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
9886 guard to 12K.
9887
9888 2007-08-14 Gary Dismukes <dismukes@adacore.com>
9889
9890 * s-veboop.adb (SU): New named number initialized to
9891 System.Storage_Unit.
9892 (True_Val): The initialization expression is revised to use SU (=
9893 Storage_Unit) rather than assuming 8 for the component size of an
9894 unpacked Boolean array.
9895
9896 2007-08-14 Tristan Gingold <gingold@adacore.com>
9897
9898 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
9899
9900 * tb-ivms.c: New file.
9901
9902 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
9903
9904 2007-08-14 Geert Bosch <bosch@adacore.com>
9905
9906 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
9907 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
9908 Add required linker pragmas for automatically linking with the gnalasup
9909 linear algebra support library, and the systems math library.
9910 Rename cdot to cdotu and zdot to zdotu.
9911 Update header comment to describe purpose of package.
9912
9913 2007-08-14 Thomas Quinot <quinot@adacore.com>
9914
9915 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
9916 an explicitly specified Associated_Final_Chain, use that list.
9917 (Expand_N_Package_Body): Build dispatch tables of library level tagged
9918 types.
9919 (Expand_N_Package_Declaration): Build dispatch tables of library level
9920 tagged types. Minor code cleanup.
9921
9922 2007-08-14 Vincent Celier <celier@adacore.com>
9923
9924 * gnatchop.adb (Terminate_Program): Remove exception and use
9925 Types.Terminate_Program instead.
9926
9927 * osint.ads, osint.adb (Current_Exit_Status): New global variable
9928 (Find_Program_Name): Added protection against empty name.
9929 (OS_Exit_Through_Exception): New procedure
9930
9931 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
9932 (OS_Exit_Default): New procedure that contains the previous
9933 implementation of procedure OS_Exit.
9934 (Final_Value): Remove obsolete Interix stuff.
9935
9936 2007-08-14 Thomas Quinot <quinot@adacore.com>
9937
9938 * g-socket.ads: Reorganize example code so that it also works on
9939 Windows XP.
9940
9941 2007-08-14 Tristan Gingold <gingold@adacore.com>
9942
9943 * g-trasym.ads: AIX now supports symbolic backtraces.
9944
9945 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9946
9947 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
9948 units being loaded to detect circularities. A circularity may be
9949 present even if the current chain of pending units to load starts from
9950 a limited_with_clause.
9951
9952 * lib-load.ads: Change profile of Load_Unit to use a with_clause
9953 rather than a boolean flag, in order to detect circularities in
9954 with_clauses.
9955
9956 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
9957 than propagating the From_Limited_With flag, in order to handle
9958 properly circularities involving with_clauses.
9959
9960 2007-08-14 Nicolas Setton <setton@adacore.com>
9961
9962 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
9963 warnings.
9964
9965 2007-08-14 Arnaud Charlet <charlet@adacore.com>
9966
9967 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
9968 to build for libgnala.
9969 libgnat: Add rules to build libgnala.a
9970 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
9971 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
9972 Add s-osinte-vxworks-kernel.adb to the target pairs of the
9973 kernel run-time lib for VxWorks 6, which would provide a different
9974 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
9975 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
9976 running ZCX by default.
9977 Add g-sttsne-locking to LynxOS version.
9978 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
9979 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
9980
9981 * system-darwin-x86.ads: New file.
9982
9983 * Make-lang.in: Delete files before copying onto them, so if they are
9984 read-only, the copy won't fail.
9985 Update dependencies
9986
9987 2007-08-14 Pascal Obry <obry@adacore.com>
9988
9989 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
9990 naming scheme.
9991
9992 2007-08-14 Vincent Celier <celier@adacore.com>
9993
9994 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
9995 (Gcc): Initialize Gcc_Name at the first call
9996
9997 2007-08-14 Ed Schonberg <schonberg@adacore.com>
9998
9999 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10000 with_clauses of the enclosing unit when analyzing the package
10001 specification of a nested instance.
10002
10003 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10004
10005 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10006 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10007 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10008 layout of N_Allocator.
10009
10010 2007-08-14 Thomas Quinot <quinot@adacore.com>
10011
10012 * rtsfind.adb (Check_RPC): Add PCS version check.
10013
10014 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10015 (Gnat_Free_Software): New function.
10016
10017 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10018 the PCS_Version value from s-parint, used to check that it is consistent
10019 with what exp_dist expects.
10020
10021 * s-parint.ads (PCS_Version): New entity for checking consistency
10022 between exp_dist and PCS.
10023
10024 * gen-soccon.c: (SO_REUSEPORT): New constant.
10025
10026 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10027
10028 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10029 variable Sub_Second to Duration in order to accomodate a larger range
10030 of arithmetic operations.
10031
10032 2007-08-14 Bob Duff <duff@adacore.com>
10033
10034 * g-sttsne-locking.ads: Move comments from spec to body.
10035 * g-sttsne-locking.adb: Move comments from spec to body.
10036 * g-sttsne-vxworks.ads: Removed.
10037 * g-sttsne-vxworks.adb: Removed.
10038
10039 2007-08-11 Ian Lance Taylor <iant@google.com>
10040
10041 * misc.c (gnat_get_alias_set): Change return type to
10042 alias_set_type.
10043
10044 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10045
10046 * decl.c, utils2.c: Fix whitespace in last change.
10047
10048 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10049
10050 * decl.c (compare_field_bitpos): Constify.
10051 * utils2.c (compare_elmt_bitpos): Likewise.
10052
10053 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
10054
10055 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
10056 anonymous access type.
10057 (pthread_sigmask): Now take an access sigset_t.
10058
10059 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
10060
10061 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10062
10063 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
10064
10065 PR tree-optimization/25737
10066 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
10067
10068 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
10069
10070 * trans.c (Attribute_to_gnu): When subtracting an
10071 offset from a pointer, use POINTER_PLUS_EXPR with
10072 NEGATE_EXPR instead of MINUS_EXPR.
10073 (gnat_to_gnu): Likewise.
10074 * utils.c (convert): When converting between
10075 thin pointers, use POINTER_PLUS_EXPR and sizetype
10076 for the offset.
10077 * utils2.c (known_alignment): POINTER_PLUS_EXPR
10078 have the same semantics as PLUS_EXPR for alignment.
10079 (build_binary_op): Add support for the semantics of
10080 POINTER_PLUS_EXPR's operands.
10081 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
10082
10083 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
10084
10085 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
10086 of get_signed_or_unsigned_type.
10087 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
10088
10089 2007-06-11 Bob Duff <duff@adacore.com>
10090 Thomas Quinot <quinot@adacore.com>
10091
10092 * g-stsifd-sockets.adb (Create): Work around strange behavior of
10093 'bind' on windows that causes 'connect' to fail intermittently, by
10094 retrying the 'bind'.
10095 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10096
10097 2007-06-10 Duncan Sands <baldrick@free.fr>
10098
10099 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
10100 than to void, for the fields when making a new fat pointer type.
10101 (gnat_substitute_in_type): Now substitute_in_type.
10102 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
10103 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
10104 * utils.c (update_pointer_to): Update fat pointers by updating the
10105 dummy node pointers used for the fields.
10106
10107 2007-06-06 Thomas Quinot <quinot@adacore.com>
10108 Bob Duff <duff@adacore.com>
10109
10110 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
10111 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
10112 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
10113 constant Thread_Blocking_IO, always True by default, set False
10114 on a per-runtime basis.
10115 (Need_Netdb_Buffer): New constant.
10116
10117 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
10118 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
10119 files.
10120
10121 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
10122 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
10123 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
10124 child package Task_Safe_NetDB
10125 (Host_Error_Messages): Add stub body.
10126 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10127
10128 * g-soccon-mingw.ads: Add Windows-specific constants.
10129 (Need_Netdb_Buffer): New constant.
10130 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
10131 wrapper and import inet_addr(3) from the standard sockets library
10132 directly instead.
10133 (In_Addr): Add alignment clause.
10134 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10135
10136 2007-06-06 Robert Dewar <dewar@adacore.com>
10137
10138 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10139 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
10140 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
10141 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
10142 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
10143 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
10144 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
10145 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
10146 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
10147 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
10148 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
10149 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
10150 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
10151 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
10152 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
10153 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
10154 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
10155 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
10156 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
10157 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
10158 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
10159 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
10160 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
10161 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
10162 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
10163 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
10164 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
10165 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
10166 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
10167 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
10168 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
10169 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
10170 Unchecked_* by Ada.Unchecked_*
10171
10172 2007-06-06 Robert Dewar <dewar@adacore.com>
10173
10174 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
10175 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
10176 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
10177 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
10178 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
10179 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
10180
10181 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
10182 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
10183 s-tasloc.adb, s-tasloc.ads: New files.
10184
10185 2007-06-06 Bob Duff <duff@adacore.com>
10186
10187 * g-expect-vms.adb:
10188 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
10189 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
10190 (Send_Signal, Close): Raise Invalid_Process if the process id is
10191 invalid.
10192 (Pattern_Matcher_Access): Is now a general access type to be able to
10193 use aliased string.
10194
10195 2007-06-06 Thomas Quinot <quinot@adacore.com>
10196 Arnaud Charlet <charlet@adacore.com>
10197
10198 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
10199 (SIGEMT is now used instead of SIGTERM on AIX).
10200
10201 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
10202 (Time_Slice_Supported): Set to True.
10203 Use SIGEMT instead of SIGTERM as SIGADAABORT.
10204
10205 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10206
10207 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
10208 (Time, Time)): Use To_Relative_Time rather than manual calculation to
10209 express the bounds of Duration as Time. Raise Time_Error when the
10210 result is greater or equal to the higher bound of Duration (on the
10211 margin case).
10212 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
10213 Ada_High_And_Leaps.
10214 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
10215 Ada_High_And_Leaps.
10216 ("-" (Time, Time)): Reorder code.
10217 (All_Leap_Seconds): Removed.
10218 (Arithmetic_Operations.Add): Remove sign related kludge.
10219 (Arithmetic_Operations.Difference): Control the leaps seconds processing
10220 with flag Leap_Support.
10221 (Arithmetic_Operations.Subtract): Remove sign related kludge.
10222 (Check_Within_Time_Bounds): New procedure.
10223 (Clock): Control the leap seconds processing with flag Leap_Support.
10224 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
10225 (Formatting_Operations.Split): Control the leap seconds processing with
10226 flag Leap_Support.
10227 (Formatting_Operations.Time_Of): Control the leaps seconds processing
10228 with flag Leap_Support. Adjust the year, month and day (if applicable)
10229 when the value of day seconds designates a new day.
10230 (Split): Use parameter associations for better readability. Integrate
10231 flag Is_Ada_05.
10232 (Time_Of): Use parameter associations for better readability. Integrate
10233 flag Is_Ada_05.
10234
10235 * a-calfor.adb (Split): Use parameter associations for better
10236 readability. Integrate flag Is_Ada_05.
10237 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
10238 better readability. Integrate flag Is_Ada_05.
10239
10240 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10241
10242 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
10243 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
10244 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
10245 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
10246 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
10247 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
10248 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
10249 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
10250 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
10251 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
10252 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
10253 time when entering this routine to detect a backward clock setting
10254 (manual setting or DST adjustment), to avoid waiting for a longer delay
10255 than needed.
10256 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
10257 Remove handling of deferred priority change, and replace by setting the
10258 task priority directly, as required by AI-188.
10259 Update comments.
10260 (Max_Task_Image_Length): New constant.
10261 Replace Warnings (Off) by Unreferenced pragma, cleaner.
10262 (Dynamic_Priority_Support): Removed, no longer needed.
10263 (Poll_Base_Priority_Change): Ditto.
10264 (Set_Ceiling): Add this procedure to change the ceiling priority
10265 associated to a lock. This is a dummy implementation because dynamic
10266 priority ceilings are not supported by the underlying system.
10267
10268 * a-dynpri.adb (Set_Priority): Take into account case where Target is
10269 accepting a RV with its priority boosted.
10270 Remove handling of deferred priority change, and replace by setting the
10271 task priority directly, as required by AI-188.
10272
10273 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
10274 Succeeded = True.
10275 Remove handling of deferred priority change, and replace by setting the
10276 task priority directly, as required by AI-188.
10277 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
10278 of Self_Id earlier.
10279
10280 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
10281 (Poll_Base_Priority_Change): Removed.
10282 Code clean up: use SSL.Current_Target_Exception.
10283
10284 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
10285 to run as this is a potentially dispatching point.
10286 (Call_Synchronous): Use Local_Defer_Abort.
10287 (Callable): Relax assertion.
10288 (Selective_Wait): Relax assertion in case abort is not allowed.
10289 Remove handling of deferred priority change, and replace by setting the
10290 task priority directly, as required by AI-188.
10291
10292 * s-tasuti.adb (Make_Passive): Adjust assertions.
10293 Remove handling of deferred priority change, and replace by setting the
10294 task priority directly, as required by AI-188.
10295
10296 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10297
10298 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10299 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10300 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
10301 system-vxworks-mips.ads, system-vxworks-alpha.ads,
10302 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
10303 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
10304 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
10305 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
10306 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
10307 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
10308 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
10309 This patch changes the largest non-binary modulus from 2**31-1 to
10310 2**32-1.
10311 (Compiler_System_Version): Removed, no longer used.
10312 Clean up system files by removing flags only used on a single target.
10313 Also remove obsolete flags, only used during bootstrap from system.ads
10314 (Address): Add a pragma Preelaborable_Initialization.
10315
10316 * system-aix.ads: Ditto.
10317 (GCC_ZCX_Support): Set to true.
10318 Update priority range on AIX and map Ada priorities to target
10319 priorities appropriately for different scheduling policies.
10320
10321 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
10322
10323 2007-06-06 Vincent Celier <celier@adacore.com>
10324
10325 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
10326 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
10327
10328 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
10329 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
10330 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
10331 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10332 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
10333 MLib.Tgt, containing the default versions of the exported subprograms.
10334 For each platform, create a specific version of the body of new child
10335 package MLib.Tgt.Specific that contains only the body of subprograms
10336 that are different from the default.
10337 (Archive_Builder_Append_Options): New function.
10338
10339 2007-06-06 Matthew Gingell <gingell@adacore.com>
10340
10341 * s-osinte-aix.adb: Map Ada priorities to target priorities
10342 appropriately for different scheduling policies.
10343
10344 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10345
10346 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
10347 its C counterpart.
10348 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
10349 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
10350
10351 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10352
10353 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
10354 Noop on VMS, added for interface commonality.
10355
10356 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10357 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10358 Olivier Hainque <hainque@adacore.com>
10359
10360 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
10361 renamed expression of a full renaming at toplevel.
10362 (gnat_to_gnu_entity, case object): If not defining, do not look inside
10363 the values the constant is initialized to if it is an N_Allocator.
10364 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
10365 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
10366 (make_aligning_type): Accept an extra ROOM argument for storage to be
10367 made available before the aligned field, and an extra BASE_ALIGN
10368 argument for callers to pass the alignment guaranteed to be honored for
10369 the whole aligning object. Avoid call to finish_record_type, which only
10370 interferes with the sizes we want to set.
10371 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
10372 make_aligning_type for super-aligned objects on stack.
10373 (components_to_record): Pass the adjusted size of the type when creating
10374 fields in the qualified union for the variant part.
10375 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
10376 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
10377 packed array type.
10378 (maybe_pad_type): Set TYPE_USER_ALIGN.
10379 (make_aligning_type): Likewise.
10380 ALIGN argument is unsigned int.
10381 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
10382 (gnat_to_gnu_param): Likewise, for parameters.
10383 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
10384 if it is constant and stems from a function call.
10385 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
10386 of the record is specified. Adjust accordingly.
10387 (adjust_packed): New static function.
10388 (gnat_to_gnu_field): Use it to adjust the packedness setting.
10389 (components_to_record): Likewise.
10390 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
10391 side-effects if the object is deemed constant.
10392 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
10393 type instead of merely finalizing it. Tidy.
10394 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
10395 <E_Access_Type>: Likewise.
10396 (defer_debug_incomplete_list): Rename to defer_finalize_list.
10397 (defer_debug_level): Delete.
10398 (gnat_to_gnu_entity) <debug_deferred>: Likewise
10399 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
10400 type.
10401 <E_Record_Type>: Do not explicitly defer finalizing the type.
10402 Adjust for write_record_type_debug_info renaming.
10403 <E_Subprogram_Type>: Likewise.
10404 Finalize deferred types right after deferred incomplete types are
10405 expanded.
10406 (rest_of_type_decl_compilation): New global function.
10407 (components_to_record): Rename defer_debug parameter to do_not_finalize.
10408 (components_to_record): Propagate the packedness to the fields of the
10409 qualified union type if there is a variant part.
10410 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
10411 instead of inline code to adjust the XUT field offsets.
10412 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
10413 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
10414 and write the debug info if the type derives from a discriminated one.
10415 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
10416 <E_Array_Subtype>: Likewise.
10417 <E_String_Literal_Subtype>: Likewise.
10418 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
10419 an alignment clause.
10420 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
10421 before giving warning.
10422 (prepend_one_attribute_to): New function, helper to prepend an attribute
10423 to an attribute list.
10424 (gnat_to_gnu_entity) <E_Procedure>: Use it.
10425 (prepend_attributes): Likewise.
10426 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
10427 <E_Array_Type>: Declare the padding type for the element type, if any.
10428 <E_Array_Subtype>: Likewise.
10429 (defer_limited_with): New variable.
10430 (Gigi_Equivalent_Type): New function.
10431 (gnat_to_gnu_entity): Use it at start and use result throughout.
10432 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
10433 Gigi_Equivalent_Type, support Limited_With, allow two levels of
10434 indirection, precompute if unconstrained array to simplify logic, and
10435 use defer_limited_with to defer elaboration of some types from limited
10436 with.
10437 (finalize_from_with_types): New function.
10438
10439 2007-06-06 Gary Dismukes <dismukes@adacore.com>
10440 Eric Botcazou <ebotcazou@adacore.com>
10441 Tristan Gingold <gingold@adacore.com>
10442 Olivier Hainque <hainque@adacore.com>
10443
10444 * trans.c (Identifier_to_gnu): Change test for deferred constant by
10445 adding guard that the entity is an E_Constant before testing presence
10446 of Full_view (and remove unnecessary test that entity is not a type).
10447 For a CONST_DECL used by reference, manually retrieve
10448 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
10449 (struct language_function): Move from utils.c to here.
10450 (struct parm_attr): New structure.
10451 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
10452 (f_parm_attr_cache): New macro.
10453 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
10454 expressions for the 'First, 'Last and 'Length attributes of the
10455 unconstrained array IN parameters.
10456 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
10457 Allocate the information structure for the function earlier, as well
10458 as the language-specific part.
10459 If the parameter attributes cache has been populated, evaluate the
10460 cached expressions on entry.
10461 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
10462 N_Procedure_Call_Statement and N_Indexed_Component.
10463 (Pragma_to_gnu): Translate inspection_point to an asm statement
10464 containaing a comment and a reference to the object (either its address
10465 for BLKmode or its value).
10466 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
10467 to go to DECL_INITIAL. Together with the size constraint relaxation
10468 in create_var_decl, enlarges the set of situations in which an
10469 identifier may be used as an initializer without implying elaboration
10470 code.
10471 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
10472 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
10473 node.
10474 (maybe_stabilize_reference): Remove lvalues_only parameter.
10475 (gnat_stabilize_reference): Adjust for above change.
10476 (gnat_to_gnu): Do not set location information on the result
10477 if it is a reference.
10478 (add_cleanup): Add gnat_node parameter and set the location of the
10479 cleanup to it.
10480 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
10481 (Exception_Handler_to_gnu_zcx): Likewise.
10482 (gigi): Remove the cgraph node if the elaboration procedure is empty.
10483 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
10484 the former right after the latter.
10485 (start_stmt_group): Make global.
10486 (end_stmt_group): Likewise.
10487 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
10488 vars.
10489 (gnu_program_error_label_stack): Likewise.
10490 (gigi): Initialize them.
10491 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
10492 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
10493 New cases.
10494 (push_exception_label_stack): New function.
10495 (takes_address): New function.
10496
10497 * utils.c (struct language_function): Move to trans.c from here.
10498 (unchecked_convert): Do not wrap up integer constants in
10499 VIEW_CONVERT_EXPRs.
10500 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
10501 the latter for aggregate types, unexpected by later passes, and relax an
10502 arbitrary size constraint on the former.
10503 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
10504 to compare the sizes.
10505 (convert_vms_descriptor): When converting to a fat pointer type, be
10506 prepared for a S descriptor at runtime in spite of a SB specification.
10507 (shift_unc_components_for_thin_pointers): New function.
10508 (write_record_type_debug_info): For variable-sized fields, cap the
10509 alignment of the pointer to the computed alignment.
10510 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
10511 If REP_LEVEL is 2, do not compute the sizes.
10512 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
10513 (build_unc_object_type): Likewise.
10514 (declare_debug_type): New function.
10515
10516 * ada-tree.def: USE_STMT: removed (not emitted anymore).
10517
10518 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
10519 no statement is expandable anymore.
10520 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
10521 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
10522 when the user requested it explicitely.
10523 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
10524 to 0 for Ada.
10525 (get_alias_set): Return alias set 0 for a type if
10526 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
10527
10528 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
10529 (DECL_FUNCTION_STUB): New accessor macro.
10530 (SET_DECL_FUNCTION_STUB): New setter macro.
10531
10532 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
10533
10534 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
10535 declarations.
10536
10537 2007-06-06 Jose Ruiz <ruiz@adacore.com>
10538
10539 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
10540 Rename to Abort_Task_Interrupt to be able to keep the same interface
10541 as the rest of the targets.
10542
10543 * s-osinte-vxworks.ads s-osinte-vxworks.adb
10544 (To_VxWorks_Priority): Remove explicit "in" mode indicator
10545
10546 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
10547 New files.
10548
10549 2007-06-06 Robert Dewar <dewar@adacore.com>
10550
10551 * a-chahan.ads: Remove obsolescent pragmas
10552
10553 * a-chlat1.ads: Minor reformatting
10554
10555 2007-06-06 Robert Dewar <dewar@adacore.com>
10556
10557 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
10558 for Errout
10559
10560 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
10561 implementation
10562
10563 * errout.ads (Finalize): Changed interface
10564 (Output_Messages): New procedure
10565 (Compilation_Errors): New Interface
10566
10567 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
10568 Finalize/Output_Messages interface for Errout
10569 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
10570 Errout.
10571
10572 2007-06-06 Thomas Quinot <quinot@adacore.com>
10573 Olivier Hainque <hainque@adacore.com>
10574 Robert Dewar <dewar@adacore.com>
10575
10576 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
10577 check.
10578 (Raise_Current_Excep): Call Debug_Raise_Exception just before
10579 propagation starts, to let debuggers know about the event in a reliable
10580 fashion.
10581 (Local_Raise): Moved to System.Exceptions
10582 More convenient to have this as a separate unit
10583
10584 * s-except.adb, s-except.ads: New files.
10585
10586 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
10587 Debug_Unhandled_Exception in System.Exceptions where it belongs
10588 together with a couple of other debug helpers.
10589 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
10590 the former Unhandled_Exception.
10591
10592 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
10593 (Warn_No_Exception_Propagation): New procedure
10594 (Warn_If_No_Propagation): Rewritten for new warning generation
10595 (Expand_Exception_Handlers): New warning generation
10596 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
10597 (Add_Exception_Label): Use Special_Exception_Package_Used for test
10598 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
10599 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
10600 even if restriction is set (makes life easier in Check_Returns)
10601 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
10602 checking exception identities.
10603 (Expand_Local_Exception_Handlers): Do not optimize when all others case
10604 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
10605 block for handler (used by Check_Returns)
10606 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
10607 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
10608 remove all exception handlers when optimizing local raise statements.
10609 (Find_Local_Handler): Use Get_Renamed_Entity
10610 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
10611 marked analyzed after expanding exception handlers, do not generate
10612 redundant cleanup actions, because they have been constructed already.
10613
10614 2007-06-06 Thomas Quinot <quinot@adacore.com>
10615
10616 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
10617 presence of this categorization pragma is mandated by the language.
10618 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
10619 for this type.
10620
10621 2007-06-06 Vincent Celier <celier@adacore.com>
10622 Robert Dewar <dewar@adacore.com>
10623
10624 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
10625 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10626 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
10627 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
10628 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
10629 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
10630 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
10631 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
10632 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
10633 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
10634 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
10635 ali.ads, ali.adb:
10636 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
10637 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
10638 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
10639 Use variables of types File_Name_Type and Unit_Name_Type in error
10640 messages.
10641 (Get_Name): Add parameter Ignore_Special, and set it reading file name
10642 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
10643 here.
10644 Define flags Flag217-Flag230 with associated subprograms
10645 (Flag_Word5): New record type.
10646 (Flag_Word5_Ptr): New access type.
10647 (To_Flag_Word5): New unchecked conversion.
10648 (To_Flag_Word5_Ptr): Likewise.
10649 (Flag216): New function.
10650 (Set_Flag216): New procedure.
10651
10652 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10653
10654 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
10655 instead of 'Size.
10656
10657 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
10658
10659 2007-06-06 Javier Miranda <miranda@adacore.com>
10660
10661 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
10662 the package.
10663 (Object_Specific_Data_Array): This is now internal to the package.
10664 (Object_Specific_Data): This is now internal to the package.
10665 (Select_Specific_Data_Element): This is now internal to the package.
10666 (Select_Specific_Data_Array): This is now internal to the package.
10667 (Select_Specific_Data): This is now internal to the package.
10668 (Offset_To_Top_Function_Ptr): This is now public.
10669 (To_Offset_To_Top_Function_Ptr): Removed.
10670 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
10671 local to subprogram Offset_To_Top.
10672 (Predefined_DT): Removed.
10673 (Typeinfo_Ptr): Removed.
10674 (OSD): This function is now internal to this package.
10675 (SSD): This function is now internal to this package.
10676 (DT): New function that displaces the pointer to the table of primitives
10677 to get access to the enclosing wrapper record.
10678 (IW_Membership): Code cleanup.
10679 (Offset_To_Top): Code cleanup.
10680 (Predefined_DT): Removed.
10681 (Register_Interface_Tag): Removed.
10682 (Set_Interface_Table): Removed.
10683 (Set_Offset_Index): Removed.
10684 (Set_Offset_To_Top): Code cleanup.
10685 (Set_OSD): Removed.
10686 (Set_Signature): Removed.
10687 (Set_SSD): Removed.
10688 (Set_Tagged_Kind): Removed.
10689 (Typeinfo_Ptr): Removed.
10690 (TSD): Removed.
10691 (Displace): Add missing check on null actual.
10692
10693 * exp_disp.ads, exp_disp.adb
10694 (Select_Expansion_Utilities): Removed.
10695 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
10696 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
10697 the interface requires a new parameter.
10698 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
10699 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
10700 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
10701 Done to remove package Select_Expansion_Utilities.
10702 (Make_DT): New implementation for statically allocated dispatch tables.
10703 (Make_Secondary_DT): Moved to the scope of Make_DT.
10704 (Register_Primitive): Code cleanup plus incoporate the use of the new
10705 function DT_Address_Attribute.
10706 (Expand_Interface_Thunk): The profile of this subprogram has been
10707 changed to return the Thunk_Id and the corresponding code.
10708 (Fill_DT_Entry): Removed. Its functionality is now provided by
10709 subprogram Register_Primitive.
10710 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
10711 subprogram Register_Primitive.
10712 (Register_Primitive): New subprogram that incorporates the previous
10713 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
10714 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
10715 was only required to call Make_DT_Access_Action, which is now removed.
10716 (Ada_Actions): Removed
10717 (Action_Is_Proc): Removed
10718 (Action_Nb_Arg): Removed
10719 Replace all the calls to Make_DT_Access_Action by direct calls to
10720 Make_Procedure_Call_Statement or Make_Function_Call.
10721 (Set_DTC_Entity_Value): New subprogram.
10722 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
10723 (Expand_Interface_Thunk): Add missing support for primitives that are
10724 functions with a controlling result (case in which there is no need
10725 to generate the thunk).
10726
10727 * exp_atag.ads, exp_atag.adb
10728 (Build_DT): New subprogram that displaces the pointer to reference the
10729 base of the wrapper record.
10730 (Build_Typeinfo_Offset): Removed.
10731 (RTE_Tag_Node): Removed.
10732 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10733 (Build_Get_RC_Offset): Removed.
10734 (Build_Inherit_Predefined_Prims): Removed.
10735 (Build_Inherit_TSD: Removed.
10736 (Build_New_TSD): Removed.
10737 (Build_Set_External_Tag): Removed.
10738 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10739 (Build_Set_Prim_Op_Address): Add documentation.
10740 (Build_Set_TSD): Removed.
10741
10742 * rtsfind.ads, rtsfind.adb
10743 (Load_Fail): If load fails and we are not in configurable run-time
10744 mode, then raise Unrecoverable_Error.
10745 (Text_IO_Kludge): Generate an error message if a run-time library is
10746 not available in a given run-time (ie. zfp run-time).
10747 (RTE_Record_Component): Add code to check that the component we search
10748 for is not found in two records in the given run-time package.
10749 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
10750 (RE_DT_Predef_Prims_Offset): New entity
10751 (RE_Static_Offset_To_Top): New entity
10752 (RE_HT_Link): New entity.
10753 (System_Address_Image): Addition of this run-time package.
10754 (RE_Address_Image): New entity.
10755 (RE_Abstract_Interface): Removed.
10756 (RE_Default_Prim_Op_Count): Removed.
10757 (RE_DT_Entry_Size): Removed.
10758 (RE_DT_Min_Prologue_Size): Removed.
10759 (RE_DT_Prologue_Size): Removed.
10760 (RE_Ifaces_Table_Ptr): Removed.
10761 (RE_Interface_Data_Ptr): Removed.
10762 (RE_Type_Specific_Data): Removed.
10763 (RE_Primary_DT): Removed.
10764 (RE_Register_Interface_Tag): Removed.
10765 (RE_Set_Offset_Index): Removed.
10766 (RE_Set_OSD): Removed.
10767 (RE_Set_SSD): Removed.
10768 (RE_Set_Signature): Removed.
10769 (RE_Set_Tagged_Kind): Removed.
10770 (RE_Address_Array): New entity.
10771 (RE_DT): New entity.
10772 (RE_Iface_Tag): New entity.
10773 (RE_Interfaces_Table): New entity.
10774 (RE_No_Dispatch_Table): New entity.
10775 (RE_NDT_Prims_Ptr): New entity.
10776 (RE_NDT_TSD): New entity.
10777 (RE_Num_Prims): New entity.
10778 (RE_Offset_To_Top_Function_Ptr): New entity.
10779 (RE_OSD_Table): New entity.
10780 (RE_OSD_Num_Prims): New entity.
10781 (RE_Predef_Prims): New entity
10782 (RE_Predef_Prims_Table_Ptr): New entity.
10783 (RE_Primary_DT): New entity.
10784 (RE_Signature): New entity.
10785 (RE_SSD): New entity.
10786 (RE_TSD): New entity.
10787 (RE_Type_Specific_Data): New entity.
10788 (RE_Tag_Kind): New entity.
10789
10790 2007-06-06 Thomas Quinot <quinot@adacore.com>
10791
10792 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
10793 C imported variable.
10794 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
10795 on entry.
10796
10797 2007-06-06 Robert Dewar <dewar@adacore.com>
10798
10799 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
10800 character
10801
10802 2007-06-06 Vincent Celier <celier@adacore.com>
10803
10804 * a-tifiio.adb (Put, internal): For negative numbers, check that there
10805 is room for at least one digit and the minus sign.
10806 (Put.Put_Character): Never put a character outside of the range of
10807 string To.
10808
10809 2007-06-06 Olivier Hainque <hainque@adacore.com>
10810 Eric Botcazou <ebotcazou@adacore.com>
10811
10812 * utils2.c (build_allocator): Provide the extra arguments to
10813 make_aligning_type for super-aligned objects allocated from the default
10814 pool. Leave enough room for a pointer before the aligning field, and
10815 store the system's allocator return value there.
10816 (build_call_alloc_dealloc): When releasing a super-aligned object,
10817 retrieve the system's allocator return value from where build_allocator
10818 has stored it, just ahead of the adjusted address we are passed.
10819 (build_call_raise): Handle properly the generation of line numbers when
10820 the node is marked No_Location.
10821 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
10822 by using DECL_UID on ties.
10823 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
10824 main variant.
10825 (build_call_raise): Handle converting exception into goto; support new
10826 argument KIND.
10827 (build_component_ref): Add new arg to build_call_raise.
10828
10829 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10830
10831 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
10832 "." in the case of nnn.xxx when nnn terminates with an underscore.
10833 Parse the remaining "#" or ":" in the case of nnn#.xxx#
10834
10835 2007-06-06 Robert Dewar <dewar@adacore.com>
10836
10837 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
10838
10839 2007-06-06 Arnaud Charlet <charlet@adacore.com>
10840 Vincent Celier <celier@adacore.com>
10841 Robert Dewar <dewar@adacore.com>
10842
10843 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
10844 needed.
10845 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
10846 ((destructor)) for adafinal, even when switch -a is used.
10847 Do not issue pragma Linker_Destructor for adafinal when switch -a is
10848 used.
10849 (Gen_Object_Files_Options): Add formatting of Linker Options, when
10850 Output_Linker_Option_List is set. Suppress this formatting when
10851 Zero_Formatting is set.
10852 Add case for CLI_Target.
10853 (System_Restrictions_Used): New flag, used to avoid generating with of
10854 System_Restrictions and initialization of the data unless there is
10855 some use of System.Restrictions in the partition.
10856 (Check_System_Restrictions_Used): New procedure
10857
10858 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
10859 since we only with this unit in the binder file if it is used elsewhere
10860 in the partition.
10861
10862 2007-06-06 Vincent Celier <celier@adacore.com>
10863
10864 * bindusg.adb: Add line for @<response file>
10865 Add lines for new switches -R and -Z
10866
10867 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
10868 hierarchy in the list of files of the closure when -R is used
10869 (Gnatbind): Accept arguments starting with '@' to indicate response
10870 files and take the arguments from the response files.
10871 If List_Closure is set, display the referenced files
10872
10873 2007-06-06 Javier Miranda <miranda@adacore.com>
10874 Robert Dewar <dewar@adacore.com>
10875 Ed Schonberg <schonberg@adacore.com>
10876
10877 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
10878 which the address-clause is applied to in-mode actuals (allowed by
10879 13.1(22)).
10880 (Apply_Discriminant_Check): Do not generate a check if the type is
10881 constrained by a current instance.
10882 (Activate_Division_Check): New procedure
10883 (Activate_Overflow_Check): New procedure
10884 (Activate_Range_Check): New procedure
10885 Call these new Activate procedures instead of setting flags directly
10886 (Apply_Array_Size_Check): Removed, no longer needed.
10887 Code clean up: remove obsolete code related to GCC 2.
10888 (Get_E_Length): Protect against bomb in case scope is standard
10889 (Selected_Range_Checks): If the node to be checked is a conversion to
10890 an unconstrained array type, and the expression is a slice, use the
10891 bounds of the slice to construct the required constraint checks.
10892 Improve NOT NULL error messages
10893 (Apply_Constraint_Check): If the context is a null-excluding access
10894 type, diagnose properly the literal null.
10895
10896 2007-06-06 Pascal Obry <obry@adacore.com>
10897
10898 * clean.adb (Clean_Archive): Use untouched casing for the archive name
10899 and the corresponding .deps file.
10900 (Clean_Interface_Copy_Directory): Use untouched casing for the library
10901 src directory. Minor code-clean-up. Use untouched casing for files
10902 read into the library src dir.
10903 (Clean_Library_Directory): Idem.
10904 (Parse_Cmd_Line): Accept new switch -aP
10905
10906 2007-06-06 Javier Miranda <miranda@adacore.com>
10907 Ed Schonberg <schonberg@adacore.com>
10908 Robert Dewar <dewar@adacore.com>
10909 Eric Botcazou <ebotcazou@adacore.com>
10910 Arnaud Charlet <charlet@adacore.com>
10911
10912 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
10913 applicable to types that have the With_Type flag set. Returns the
10914 non-limited view of the type, if available, otherwise the type itself.
10915 For class-wide types, there is no direct link in the tree, so we have
10916 to retrieve the class-wide type of the non-limited view of the Etype.
10917 New attributes Static_Initialization and Static_Elaboration_Desired.
10918 Remove the pragma Thread_Body, and the associated flag
10919 Is_Thread_Body in entities, and all related code.
10920 (Suppress_Value_Tracking_On_Call): New flag
10921 E_Exception has Esize and Alignment fields
10922 (Universal_Aliasing): New function.
10923 (Set_Universal_Aliasing): New procedure.
10924 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
10925 (Check_Nested_Access): New procedure.
10926 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
10927 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
10928 (Related_Interface): New attribute. Present in dispatch table pointer
10929 components of records. Set to point to the entity of the corresponding
10930 interface type.
10931 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
10932 (Original_Access_Type): Remove, not needed.
10933 (Root_Type): Handle properly subtypes of class-wide-types.
10934 Update comments.
10935
10936 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
10937 class-wide types visible through limited-with clauses.
10938 (Try_Primitive_Operation): When examining all primitive operations of a
10939 tagged type, do not consider subprograms labeled as hidden unless they
10940 belong to a private generic type with a tagged parent.
10941 (Try_Object_Operation): Extensive rewriting, to handle properly various
10942 overloading cases, when several ancestors may have class-wide operations
10943 that are possible candidates, and when the overloaded functions return
10944 array types and have defaulted parameters so that the call may be
10945 interpreted as an indexing.
10946 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
10947 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
10948 successive actuals before analyzing the call itself.
10949 (Try_Primitive_Operation): A primitive operation is compatible with the
10950 prefix if the prefix has a synchronized type and the type of the formal
10951 is its corresponding record, as can be the case when the primitive
10952 operation is declared outside of the body of the type.
10953 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
10954 perform homonym traversal, looking for class-wide operation matches
10955 (formerly done in statements of Try_Class_Wide_Operation). Matches on
10956 access parameters are now restricted to anonymous access types.
10957 (Mark_Allocator): An allocator with a discriminant association parent is
10958 a coextension.
10959 (Try_One_Prefix_Interpretation): If the type of the object is
10960 incomplete, as can be happen when it is a limited view obtained through
10961 a limited_with_clause, the selected component is not part of a prefixed
10962 call.
10963 (Complete_Object_Operation): Diagnose properly an object that is not
10964 aliased when the corresponding controlling formal is an access
10965 parameter.
10966 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
10967 ambiguous calls in prefixed notation, where two primitives differ only
10968 in that the controlling argument of one is an access parameter.
10969
10970 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
10971 whether a function that returns an unconstrained type can be inlined.
10972 (Process_Formals): Diagnose properly the illegal use of an incomplete
10973 type in the profile of an access_to_subprogram declaration.
10974 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
10975 operations are attached to the corresponding record.
10976 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
10977 When processing a primitive of a concurrent type which implements an
10978 interface change the type of all controlling formals to that of the
10979 corresponding record type.
10980 (Check_Synchronized_Overriding): Relax the conditional logic when trying
10981 to determine the tagged type to which a primitive belongs.
10982 (Check_Conventions): Capture condition to ignore a primitive operation
10983 (which is shared between the loop in Check_Conventions and the one in
10984 Check_Convention) in a new local function Skip_Check.
10985 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
10986 confusion with Check_Conventions' own Prim_Op local variable.
10987 (Create_Extra_Formals): Test for a tagged result type rather than a
10988 controlling result when determining whether to add a BIP_Alloc_Form
10989 formal and a BIP_Final_List formal to the function.
10990 (Check_Conformance); For parameters that are anonymous access types,
10991 subtype conformance requires that the not null and the constant
10992 indicators must match
10993 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
10994 to retrieve the appropriate type when processing a concurrent type
10995 declared within a generic. Minor comment reformatting. Change invocation
10996 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
10997 mitive.
10998 (Analyze_Subprogram_Body): If the return type of a function is an
10999 anonymous access to the limited view of a class-wide type, and the
11000 non-limited view of the type is available, update the type of the
11001 function so that code can be generated.
11002 (Process_Formals): In case of access-subtype itype whose designated
11003 type is also an itype (situation that happens now with access to
11004 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11005 attribute to avoid backend problems.
11006 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11007 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11008 anonymous types' designated types are same before testing
11009 Subtypes_Statically_Match.
11010 (Create_Extra_Formals): Test for a named access parameter that is a
11011 controlling formal as an additional condition for adding an
11012 accessibility level formal. This can occur in the subp type created for
11013 dispatching calls in Expand_Dispatching_Call, and allows calling
11014 Create_Extra_Formals from that procedure rather than special-casing the
11015 extra formals there.
11016 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11017 when the function has a controlling result.
11018 (Check_Returns): Add much more knowledge of the optimization of local
11019 raise statements to gotos, to retain proper warnings in this case.
11020 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11021 nodes when looking for last statement.
11022
11023 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11024 class-wide types visible through limited with clauses.
11025 (Add_One_Interp): If the operands are anonymous access types, the
11026 predefined operator on universal_access is immediately visibles
11027 (Find_Unique_Type): Handle anonymous access to subprogram types just as
11028 other anonymous access types.
11029 (Disambiguate): Take into account CIL convention.
11030 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11031
11032 2007-06-06 Robert Dewar <dewar@adacore.com>
11033
11034 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11035 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11036 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11037 Fix lower bound of tables.
11038 Add rep clauses.
11039
11040 * nlists.adb: Ditto.
11041 (Prev_Node, Next_Node): Change index type to Int so that it properly
11042 covers the range First_Node_Id - 1 up.
11043
11044 2007-06-06 Javier Miranda <miranda@adacore.com>
11045 Ed Schonberg <schonberg@adacore.com>
11046 Bob Duff <duff@adacore.com>
11047 Hristian Kirtchev <kirtchev@adacore.com>
11048
11049 * exp_aggr.ads, exp_aggr.adb:
11050 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11051 in extension aggregates.
11052 (Flatten): Other conditions being met, an aggregate is static if the
11053 low bound given by component associations is different from the low
11054 bound of the base index type.
11055 (Packed_Array_Aggregate_Handled): If the component type is itself a
11056 packed array or record, the front-end must expand into assignments.
11057 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11058 Init_Pr, instead of Ancestor_Is_Expression.
11059 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11060 coextension chain root, either generate a list controller or use the
11061 already existing one.
11062 (Static_Array_Aggregate): New procedure to construct a positional
11063 aggregate that can be handled by the backend, when all bounds and
11064 components are compile-time known constants.
11065 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11066 types covering interface types into assignments.
11067 (Replace_Type): move to Build_Record_Aggr_Code.
11068 (Expand_Record_Aggr_Code): if the target of the aggregate is an
11069 interface type, convert to the definite type of the aggregate itself,
11070 so that needed components are visible.
11071 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
11072 components and the context is an extended return statement do not
11073 create a transient block for it, to prevent premature finalization
11074 before the return is executed.
11075 (Gen_Assign): Do not generate a call to deep adjust routine if the
11076 component type is itself an array of controlled (sub)-components
11077 initialized with an inner aggregate.
11078 (Component_Check): New name for Static_Check. This name is now more
11079 appropriate, and documentation is added which was missing.
11080 (Component_Check): Add test for bit aligned component value
11081 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
11082 Tagged_Comps, name is more appropriate given added function below.
11083 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
11084
11085 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11086 Javier Miranda <miranda@adacore.com>
11087 Robert Dewar <dewar@adacore.com>
11088
11089 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
11090 Terminated: Add unchecked type conversion from System.Address to
11091 System.Tasking.Task_Id when calling the predefined primitive
11092 _disp_get_task_id.
11093 Disable new Ada 05 accessibility check for JVM.NET targets, which
11094 cannot be implemented in a practical way.
11095 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
11096 the sources always references the tag of the actual object. Therefore,
11097 if 'Tag is applied in the sources to class-wide interface objects we
11098 generate code that displaces "this" to reference the base of the object.
11099 (Expand_N_Attribute_Reference, case Size): Return specified size if
11100 known to front end.
11101 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
11102 has code that displaces the pointer of the object to manage interface
11103 types. However this code must not be executed when the prefix is a
11104 subprogram. This bug caused the wrong expansion of the internally
11105 generated assignment that fills the dispatch table when the primitive
11106 is a function returning a class-wide interface type.
11107 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
11108 Set_Attribute_Name for Name_Unaligned_Valid.
11109
11110 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11111 Gary Dismukes <dismukes@adacore.com>
11112
11113 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
11114 If the initialization is the equivalent aggregate of the initialization
11115 procedure of the type, do not remove it.
11116 (Expand_N_Attribute_Definition_Clause): Exclude access variables
11117 initialized to null from having their expression reset to empty and
11118 note this exception in the comment.
11119
11120 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11121 Robert Dewar <dewar@adacore.com>
11122 Ed Schonberg <schonberg@adacore.com>
11123 Gary Dismukes <dismukes@adacore.com>
11124
11125 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
11126 Add "with" and "use" clauses for Sem_Attr.
11127 (Expand_Current_Value): Do not replace occurences of attribute
11128 references where the prefix must be a simple name.
11129
11130 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
11131 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
11132 Attribute_Requires_Simple_Name_Prefix.
11133 (Name_Modifies_Prefix): Body of new function.
11134 (Requires_Simple_Name_Prefix): Body of new function.
11135 (Resolve_Attribute, case Access): Improve error message for case of
11136 mismatched conventions.
11137 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
11138 incomplete type.
11139 (Analyze_Attribute, case 'Access): If the type of the prefix is a
11140 constrained subtype for a nominal unconstrained type, use its base type
11141 to check for conformance with the context.
11142 (Resolve_Attribute): Remove test of the access type being associated
11143 with a return statement from condition for performing accessibility
11144 checks on access attributes, since this case is now captured by
11145 Is_Local_Anonymous_Access.
11146 (Analyze_Access_Attribute): Set Address_Taken on entity
11147 (Analyze_Attribute, case Address): Set Address_Taken on entity
11148 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
11149 validating an access attribute whose prefix is a current instance.
11150 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
11151 applied to dispatching operations, if freezing is required then we set
11152 the attribute Has_Delayed_Freeze in the prefix's entity.
11153 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
11154 current scope if access of local subprogram taken
11155 (Analyze_Access_Attribute): Check legality of self-reference even if the
11156 expression comes from source, as when a single component association in
11157 an aggregate has a box association.
11158 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
11159 the prefix if it is a protected operation and the attribute is
11160 Unrestricted_Access.
11161 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
11162 reference to the base type of the context, to force a constraint check
11163 when the context is an access subtype with an explicit constraint.
11164 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
11165 node is rewritten as an interface conversion. leave unanalyzed after
11166 resolution, to ensure that type checking against the context will take
11167 place.
11168
11169 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11170 Javier Miranda <miranda@adacore.com>
11171 Robert Dewar <dewar@adacore.com>
11172
11173 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
11174 wrapper when the full view of the controlling type of an inherited
11175 function that dispatches on result implements interfaces.
11176 (Expand_N_Object_Declaration): In cases where the type of the
11177 declaration is anonymous access, create finalization list for it.
11178 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
11179 if the object has no explicit initialization, to match description of
11180 functionality of pragam Persistent_BSS.
11181 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
11182 new function to build static aggregates, to replace initialization call
11183 when static initialization is desired.
11184 (Freeze_Type): Generate a list controller for an access type whenever
11185 its designated type has controlled anonymous access discriminants.
11186 (Build_Equivalent_Aggregate): New procedure to compute a static
11187 aggregate to be used as default initialization for composite types,
11188 instead of a generating a call to the initialization procedure for the
11189 type.
11190 (Build_Initialization_Call): When available, replace a call to the
11191 initialization procedure with a copy of the equivalent static aggregate
11192 for the type.
11193 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
11194 declarations for objects of a class-wide interface type, rather than
11195 just identifiers, to prevent visibility problems.
11196 (Expand_N_Object_Declaration): When expanding the declaration for an
11197 object of a class-wide interface type, preserve the homonym chain of
11198 the original entity before exchanging it with that of the generated
11199 renaming declaration.
11200 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
11201 active, because there is no way to handle the exception.
11202 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
11203 to do a minimum decoration of the Access_Disp_Table list.
11204 (Expand_Record_Controller): Avoid the addition of the controller between
11205 the component containing the tag of a secondary dispatch table and its
11206 adjacent component that stores the offset to the base of the object.
11207 This latter component is only generated when the parent type has
11208 discriminants ---documented in Add_Interface_Tag_Components).
11209 (Apply_Array_Size_Check): Removed, no longer needed.
11210 (Expand_N_Full_Type_Declaration): If the type has anonymous access
11211 components, create a Master_Entity for it only if it contains tasks.
11212 (Build_Init_Procedure): Suppress the tag assignment compiling under
11213 no run-time mode.
11214 (Freeze_Record_Type): Remove code associated with creation of dispatch
11215 table.
11216 (Init_Secondary_Tags): Update type of actuals when generating calls to
11217 Ada.Tags.Set_Offset_To_Top
11218 (Stream_Operation_OK): Disable use of streams compiling under no
11219 run-time mode
11220 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
11221 if Has_Init_Expression set.
11222 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
11223 Register_Primitive, which provides the same functionality.
11224 (Requires_Init_Proc): Return false in case of interface types.
11225 (Add_Secondary_Tables): Use the new attribute Related_Interface to
11226 cleanup the code.
11227 (Predefined_Primitive_Freeze): Do not assume that an internal entity
11228 is always associated with a predefined primitive because the internal
11229 entities associated with interface types are not predefined primitives.
11230 Therefore, the call to Is_Internal is replaced by a call to the
11231 function Is_Predefined_Dispatching_Operation.
11232 (Make_Eq_If): When generating the list of comparisons for the
11233 components of a given variant, omit the controller component that is
11234 present if the variant has controlled components.
11235
11236 2007-06-06 Javier Miranda <miranda@adacore.com>
11237 Hristian Kirtchev <kirtchev@adacore.com>
11238 Bob Duff <duff@adacore.com>
11239
11240 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
11241 handle the creation of finalization lists and calls for nested
11242 coextensions when the root of the chains is part of a return statement.
11243 (Inside_A_Return_Statement): New function inside Complete_Coextension_
11244 Finalization.
11245 (Expand_Record_Equality): Skip components that are interface types.
11246 (Displace_Allocator_Pointer): Add missing support for interface subtypes
11247 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
11248 with Rewrite_Coextension. Change the condition for detecting coextension
11249 root nodes.
11250 (Is_Local_Access_Discriminant): Removed.
11251 (Rewrite_Coextension): New routine which rewrites a static coextension
11252 as a temporary and uses its unrestricted access in the construction of
11253 the outer object.
11254 (Complete_Coextension_Finalization): New routine. Generate finalization
11255 attachment calls to all delayed coextensions.
11256 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
11257 the allocator is not a coextension itself and has delayed coextensions.
11258 If the current allocator is controlled, but also a coextension, delay
11259 the generation of the finalization attachment call.
11260 Rename local variable "Node" to "Nod" in order to avoid confusion with
11261 "Elists.Node".
11262 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
11263 limited types that are not inherently limited. Such an allocator is
11264 illegal, but is generated by the expander for a return statement, to
11265 copy the result onto the secondary stack. This is the only case where a
11266 limited object can be copied. Generate code to displace the pointer
11267 to the object if the qualified expression is a class-wide interface
11268 object. Such displacement was missing and hence the copy of the object
11269 was wrong.
11270 (Apply_Accessibility_Check): Handle allocated objects initialized in
11271 place.
11272 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
11273 and Expand_Allocator_Expression. Allocating class-wide interface objects
11274 this routine displaces the pointer to the allocated object to reference
11275 the component referencing the corresponding secondary dispatch table.
11276 Expand_Allocator_Expression): Add missing support to allocate class-wide
11277 interface objects initialized with a qualified expression.
11278 (Get_Allocator_Final_List): Test for an anonymous access type that is a
11279 function result type, and use the finalization list associated with the
11280 function scope in that case (such an anonymous type should not be
11281 treated like an access parameter's type).
11282
11283 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11284 Gary Dismukes <dismukes@adacore.com>
11285 Javier Miranda <miranda@adacore.com>
11286
11287 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
11288 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
11289 required exception handler.
11290 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
11291 properly the case of a function whose return type is a limited
11292 class-wide interface type. Modify the code of the accessibility
11293 check to handle class-wide interface objects. In this case we need to
11294 displace "this" to reference the primary dispatch table to get access
11295 to the TSD of the object (to evaluate its accessibility level).
11296 (Expand_N_Extended_Return_Statement): Test for a tagged result type
11297 rather than a controlling result as one of the conditions for
11298 generating tests of the implicit BIP_Alloc_Form formal. The
11299 initialization assignment is also handled according to whether the
11300 result is tagged instead of controlling.
11301 In the case where the init assignment is inserted in the "then" part of
11302 the allocation conditional, rewrite the target to be a dereference of
11303 the implicit BIP_Object_Access formal.
11304 If the returned value is unconstrained and created on the secondary
11305 stack, mark the enclosing block and function so that the secondary
11306 stack is not reclaimed on return.
11307 Treat returns from functions with controlling results similarly to
11308 returns from functions with unconstrained result subtypes.
11309 If the object returned is unconstrained, and an allocator must be
11310 created for it, analyze the allocator once the block for the extended
11311 return is installed, to ensure that finalizable components
11312 of the expression use the proper finalization list. Guard the call to
11313 Move_Final_List with a check that there is something to finalize.
11314 (Make_Tag_Ctrl_Assignment): Use "old" handling
11315 of controlled type assignment for virtual machines, since new code uses
11316 unsupported features (such as direct access to bytes in memory).
11317
11318 2007-06-06 Gary Dismukes <dismukes@adacore.com>
11319 Ed Schonberg <schonberg@adacore.com>
11320
11321 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
11322 accessibility actual, check for the case of an aliased object that has
11323 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
11324 we fall into processing for the attribute rather than the name of the
11325 object.
11326 (Expand_Inline_Call): If an actual is a literal, and the corresponding
11327 formal has its address taken in the body, create a temporary to capture
11328 value. If the return type is a limited interface, do not treat the
11329 return value as Controlled.
11330 (Is_In_Place_Function): If the return type is a limited interface,
11331 treat as returning in place. The actual returned object may not always
11332 be limited, but the caller has to assume that it is returned in place.
11333 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
11334 context of an allocator, use the correct finalization chain (that is,
11335 the chain belonging to the access type, rather than the chain belonging
11336 to the current scope).
11337 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
11338 result type rather than a controlling result as a precondition for
11339 adding an allocation form actual to a build-in-place call.
11340 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
11341 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
11342 primitive in the dispatch tables. This work is now done by Make_DT when
11343 the type is frozen.
11344 (Register_Predefined_DT_Entry): Removed.
11345 (Add_Return): If end label is not present, use sloc of last statement
11346 for generated return statement in procedure, for better gdb behavior
11347 on expanded code.
11348 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
11349 object address nodes to ensure proper processing by routines like
11350 Insert_After*.
11351 (Expand_Call): Fix generation of validity check for parameter
11352 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
11353 the allocation form parameter if the result subtype is constrained,
11354 except when the function has a controlling result.
11355 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
11356 rather than Is_Controlled and Has_Controlled_Component, since we want to
11357 include class-wide result types in this treatment. Also test for a
11358 controlling result, since that also requires passing a finalization
11359 list.
11360 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
11361 even when the result subtype is constrained, to handle calls involving
11362 controlling results.
11363 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
11364 is now called even when the result subtype is constrained, to handle
11365 calls involving controlling results.
11366 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
11367 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
11368 now performs the test).
11369 (Make_Build_In_Place_Call_In_Object_Declaration):
11370 Add_Alloc_Form_Actual_* is now called even when the result subtype is
11371 constrained, to handle calls involving controlling results.
11372 (Add_Return): Accomodate rewritten pattern from local raise to goto
11373 transformation, so that we still recognize an transfer statement
11374 and do the right thing here in that case.
11375 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
11376 and end of subprogram code.
11377 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
11378 support for primitives that are functions (without formals) with a
11379 controlling result.
11380 (Inherited_From_Formal): If the actual subtype has not generic parent
11381 type, it is not an actual for a formal derived type, and there is no
11382 operation to inherit from the formal.
11383
11384 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11385 Thomas Quinot <quinot@adacore.com>
11386
11387 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
11388 inserted cleanup code appropriately for GDB use.
11389 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
11390 exception handler for Deep_Adjust or Deep_Finalize.
11391 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
11392 Raise_From_Controlled_Operation is available, use a call to that
11393 subprogram instead of a plain "raise Program_Error" node to raise
11394 Program_Error if an exception is propagated from an Adjust or Finalize
11395 operation.
11396 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
11397 appears in the optional statement list of a triggering alternative, the
11398 scope actions can be inserted directly there, and not in the list that
11399 includes the asynchronous select itself.
11400
11401 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11402 Robert Dewar <dewar@adacore.com>
11403 Hristian Kirtchev <kirtchev@adacore.com>
11404
11405 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
11406 generated exception handler appropriately when debugging generated code.
11407 Deal properly with No_Exception_Propagation restriction mode.
11408 (Expand_N_Abort_Statement): Add an unchecked type conversion from
11409 System.Address to System.Tasking.Task_Id when processing the result of
11410 the predefined primitive _disp_get_task_id.
11411 (Expand_N_Asynchronous_Select): Clarify comment.
11412 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
11413 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
11414 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
11415 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
11416 privals and for generated call to Complete_Entry_Body, for better gdb
11417 behavior.
11418 (Copy_Result_Type): Utility to construct a parameter and result profile
11419 for protected functions whose return type is an anonymous access to
11420 subprogram.
11421 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
11422 call the above.
11423 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
11424 point when the local-raise-to-goto transformation has taken place.
11425
11426 2007-06-06 Javier Miranda <miranda@adacore.com>
11427 Nicolas Setton <setton@adacore.com>
11428
11429 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
11430 functionality when the backend is generating code.
11431 Otherwise any serious error
11432 reported by the backend calling the frontend routine Error_Msg
11433 changes the Compilation_Mode to Check_Semantics, disables the
11434 functionality of this routine and causes the generation of
11435 spureous additional errors.
11436
11437 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
11438 debugging information now generated by the compiler for fat-pointer
11439 types.
11440 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
11441 DWARF2/3.
11442 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
11443
11444 2007-06-06 Thomas Quinot <quinot@adacore.com>
11445
11446 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
11447 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11448 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11449 For a remote call to a function with a classwide return type, apply an
11450 E.4(18) check to the returned value.
11451 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
11452 stream attributes of the designated type of an RACW, as they are not
11453 dispatching primitive operations.
11454
11455 2007-06-06 Geert Bosch <bosch@adacore.com>
11456
11457 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
11458 negative literal
11459 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
11460 positive
11461 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
11462 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
11463 positive
11464 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
11465
11466 2007-06-06 Javier Miranda <miranda@adacore.com>
11467
11468 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
11469 attribute compiling package Ada.Tags under No_Run_Time_Mode.
11470
11471 2007-06-06 Javier Miranda <miranda@adacore.com>
11472
11473 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
11474 deallocation of class-wide interface objects.
11475 (Expand_Dispatching_Constructor_Call): Take into account that if the
11476 result of the dispatching constructor is an interface type, the
11477 function returns a class-wide interface type; otherwise the returned
11478 object would be actual. The frontend previously accepted returning
11479 interface types because Expand_Interface_Actuals silently performed
11480 the management of the returned type "as if" it were a class-wide
11481 interface type.
11482 (Expand_Dispatching_Constructor_Call): Replace call to
11483 Make_DT_Access_Action by direct call to Make_Function_Call.
11484
11485 2007-06-06 Robert Dewar <dewar@adacore.com>
11486 Ed Schonberg <schonberg@adacore.com>
11487
11488 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
11489 compute masking constant, since we now set Esize properly to the
11490 underlying size.
11491 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
11492 to match the alignment.
11493 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
11494 packed arrays of 8 bits or less.
11495
11496 * freeze.adb (Freeze_Entity): When freezing the formals of a
11497 subprogram, freeze the designated type of a parameter of an access type
11498 only if it is an access parameter.
11499 Increase size of C convention enumeration object
11500 (Freeze_Entity, array type case): Make sure Esize value is properly
11501 adjusted for the alignment if it is known.
11502 (Freeze_Entity, array type case): When checking bit packed arrays for
11503 the size being incorrect, check RM_Size, not Esize.
11504 (Freeze_Record_Type): Check for bad discriminated record convention
11505 (In_Exp_Body): Return true if the body is generated for a subprogram
11506 renaming, either an attribute renaming or a renaming as body.
11507 (Check_Itype): If the designated type of an anonymous access component
11508 is a non-protected subprogram type, indicate that it is frozen, to
11509 prevent out-of-scope freeze node at some subsequent call.
11510 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
11511 only if the subprogram is neither imported nor exported, as well as the
11512 NCA descriptor class if the subprogram is exported.
11513
11514 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11515 Arnaud Charlet <charlet@adacore.com>
11516 Robert Dewar <dewar@adacore.com>
11517 Gary Dismukes <dismukes@adacore.com>
11518
11519 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
11520 default initialization on an imported object, when there is no
11521 initialization call generated for it.
11522 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
11523 restriction
11524
11525 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
11526 Static_Elaboration_Desired.
11527 Remove pragma Thread_Body.
11528 Implement a new pragma No_Body
11529 Removes the Explicit_Overriding pragma
11530 Remove Optional_Overriding pragma
11531 (Prag): Deal with Universal_Aliasing.
11532 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11533 Pragma_CIL_Constructor): New names.
11534
11535 * sem_cat.adb (Validate_Object_Declaration): An initialization that
11536 uses the equivalent aggregate of a type must be treated as an implicit
11537 initialization.
11538 (Get_Categorization): Check a unit for pragma Preelaborate only if it
11539 has none of the other categories.
11540 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
11541 to apply Import to an object renaming declaration.
11542
11543 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
11544 from a C++ class should be declared as limited and that it will be
11545 considererd limited.
11546 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
11547 should be declared as limited and that it will be considererd limited.
11548 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
11549 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
11550 (Analyze_Pragma): Deal with Universal_Aliasing.
11551 (Sig_Flags): Likewise.
11552 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
11553 (Overflow_Checks_Unsuppressed): New flag.
11554 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11555 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
11556 case of JVM or .NET targets, and compiling user code.
11557 Add debugging convenience routine rv
11558
11559 2007-06-06 Robert Dewar <dewar@adacore.com>
11560
11561 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
11562 are interface type.
11563 (Build_Elementary_Input_Call): For floating-point use right type in the
11564 absence of strange size or stream size clauses.
11565 (Build_Elementary_Write_Call): Same fix
11566 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
11567 set to value that does not match base type size.
11568
11569 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11570
11571 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
11572 object of a limited type can be initialized with a call to a function
11573 that returns in place. If the limited type has unknown discriminants,
11574 and the underlying type is a constrained composite type, build an actual
11575 subtype from the function call, as is done for private types.
11576 (Side_Effect_Free): An expression that is the renaming of an object or
11577 whose prefix is the renaming of a object, is not side-effect free
11578 because it may be assigned through the renaming and its value must be
11579 captured in a temporary.
11580 (Has_Controlled_Coextensions): New routine.
11581 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
11582 as is done for other limited types.
11583 (Non_Limited_Designated_Type): new predicate.
11584 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
11585 objects.
11586 Remove all handling of with_type clauses.
11587
11588 * par-ch10.adb: Remove all handling of with_type clauses.
11589
11590 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
11591 checksum if the main source could not be parsed.
11592 (Loat_Unit): When processing a child unit, determine properly whether
11593 the parent unit is a renaming when the parent is itself a child unit.
11594 Remove handling of with_type clauses.
11595
11596 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
11597 (Set_Is_Static_Coextension): New procedure.
11598 (Has_Local_Raise): New function
11599 (Set_Has_Local_Raise): New procedure
11600 (Renaming_Exception): New field
11601 (Has_Init_Expression): New flag
11602 (Delay_Finalize_Attach): Remove because flag is obsolete.
11603 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
11604 Remove all handling of with_type clauses.
11605 (Exception_Junk): Can now be set in N_Block_Statement
11606
11607 2007-06-06 Vincent Celier <celier@adacore.com>
11608 Robert Dewar <dewar@adacore.com>
11609
11610 * frontend.adb (Frontend): Return immediately if the main source could
11611 not be parsed, because of preprocessing errors.
11612
11613 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
11614 (Gnat1drv): Exit with errors if the main source could not be parsed,
11615 because of preprocessing errors.
11616 (Check_Rep_Info): New procedure
11617
11618 2007-06-06 Robert Dewar <dewar@adacore.com>
11619
11620 * g-hesorg.ads, g-heasor.ads,
11621 g-busorg.ads, g-bubsor.ads: Update documentation
11622 GNAT.Heap/Bubble_Sort_G is now pure
11623
11624 2007-06-06 Robert Dewar <dewar@adacore.com>
11625
11626 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
11627
11628 2007-06-06 Robert Dewar <dewar@adacore.com>
11629 Ed Schonberg <schonberg@adacore.com>
11630
11631 * g-comlin.ads, g-comlin.adb:
11632 Add new warning for renaming of function return objects
11633
11634 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
11635 (Tree_Read): Use size of object instead of type'object_size, since the
11636 latter is incorrect for packed array types.
11637 (Tree_Write): Same fix
11638
11639 * opt.ads: Add new warning for renaming of function return objects
11640 (Generating_Code): New boolean variable used to indicate that the
11641 frontend as finished its work and has called the backend to process
11642 the tree and generate the object file.
11643 (GCC_Version): Is now private
11644 (Static_Dispatch_Tables): New constant declaration.
11645 (Overflow_Checks_Unsuppressed): New flag.
11646 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11647 (List_Closure): New flag for gnatbind (-R)
11648 Zero_Formatting: New flag for gnatbind (-Z)
11649 (Special_Exception_Package_Used): New flag.
11650 (Warn_On_Unrepped_Components): New flag.
11651
11652 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
11653 unit is a compilation unit, rather than relying on its scope, so that
11654 Standard can be renamed.
11655 (Analyze_Object_Renaming): Add new warning for renaming of function
11656 return objects.
11657 Also reject attempt to rename function return object in Ada 83 mode.
11658 (Attribute_Renaming): In case of tagged types, add the body of the
11659 generated function to the freezing actions of the type.
11660 (Find_Type): A protected type is visible right after the reserved word
11661 "is" is encountered in its type declaration. Set the entity and type
11662 rather than emitting an error message.
11663 (New_Scope): Properly propagate Discard_Names to inner scopes
11664 (Check_Nested_Access): New procedure.
11665 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
11666 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11667
11668 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
11669 Add new warning for renaming of function return objects
11670 (Check_References): Suppress warnings for objects whose type or
11671 base type has Warnings suppressed.
11672 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
11673 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
11674
11675 2007-06-06 Vincent Celier <celier@adacore.com>
11676 Emmanuel Briot <briot@adacore.com>
11677 Olivier Hainque <hainque@adacore.com>
11678
11679 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
11680 absolute value of Header.Block_Size when displaying the freed physical
11681 memory in traces.
11682 (Allocate): Compute Storage_Address using Integer_Address, not
11683 Storage_Offset, because the range of Storage_Offset may not be large
11684 enough.
11685 (Configure): New parameter Low_Level_Traces
11686 (Allocate, Deallocation, Free_Physically): Added low-level traces
11687 (Configure): new parameter Errors_To_Stdout.
11688 (Output_File): new subprogram
11689 (Deallocate, Dereference): Send error messages to the proper stream
11690 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
11691 documented. Previous code would send it to the current output file
11692 defined in GNAT.IO, which might not be stdout
11693 (Is_Valid): Adjust comment to mention that a positive reply means that
11694 Header_Of may be used to retrieve the allocation header associated with
11695 the subprogram Storage address argument. Return False early if this
11696 address argument is misaligned.
11697
11698 2007-06-06 Vincent Celier <celier@adacore.com>
11699
11700 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
11701 switch -P
11702 (ASIS_Main): New global variable
11703 (Get_Closure): New procedure
11704 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
11705 check, metric or pretty. Call Get_Closure in this case.
11706 (Check_Files): For GNAT LIST, check all sources of all projects when
11707 All_Projects is True.
11708 (GNATCmd): Accept -U for GNAT LIST
11709
11710 2007-06-06 Vincent Celier <celier@adacore.com>
11711
11712 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
11713 has been specified
11714 Correct error message when invocation of the linker fails
11715 Add explicit size clause for the C imported variables
11716 Object_List_File_Supported and Using_GNU_Linker to emphasize that
11717 we expect char size.
11718 Read target parameters earlier, since this is needed to set
11719 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
11720 targets.
11721
11722 2007-06-06 Vincent Celier <celier@adacore.com>
11723
11724 * gnatls.adb:
11725 Add 3 spaces before the default project directory when displaying
11726 the project search path.
11727 Add new command line switch '-l' to display license information.
11728
11729 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
11730
11731 * gmem.c: Add support for timestamps on memory operations.
11732
11733 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11734 operations (not used currently, just foundation for future
11735 enhancements). Add possibility to perform full dump of gmem.out file.
11736 (Print_Back_Traces): Declare accesses to root arrays constants since
11737 they aren't modified.
11738 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11739
11740 2007-06-06 Vincent Celier <celier@adacore.com>
11741
11742 * gnatsym.adb: Update Copyright notice
11743 (Parse_Cmd_Line): Accept new switch -D
11744 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11745 file.
11746
11747 * prj.ads (Policy): New policy Direct
11748 (Yes_No_Unknown): New enumeration type
11749 (Project_Data): New component Libgnarl_Needed
11750
11751 * prj-nmsc.adb (Check_For_Source): When recording a source file make
11752 use the untouched pathname casing.
11753 (Get_Directories): Ensure that the Display_Exec_Directory is using the
11754 proper casing on non case-sensitive platforms like Windows.
11755 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
11756 on all platforms, as it is not possible to know which one is allowed
11757 before processing the project files.
11758 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
11759 specified when symbol policy is Direct. Check that when there is a
11760 symbol file defined (either by default or with attribute
11761 Library_Symbol_File) it is not the same as the reference symbol file.
11762 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
11763 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
11764 extending projects.
11765 (Record_Ada_Source): Record a source that has been locally removed in an
11766 imported project.
11767
11768 * symbols.ads (Policy): New policy Direct
11769
11770 * symbols-vms.adb (Initialize): Take new policy Direct in case
11771 statement
11772
11773 2007-06-06 Vincent Celier <celier@adacore.com>
11774
11775 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
11776 Correct obvious bug (return Dir; instead of return Directory;).
11777 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
11778
11779 2007-06-06 Thomas Quinot <quinot@adacore.com>
11780
11781 * g-pehage.adb (Produce): Open output files in Binary mode, so that
11782 they have UNIX line endings (LF only) even on Windows, and thus pass
11783 all GNAT style checks.
11784
11785 2007-06-06 Emmanuel Briot <briot@adacore.com>
11786
11787 * g-regpat.adb (Quote): Fix improper quoting of '.'
11788
11789 2007-06-06 Thomas Quinot <quinot@adacore.com>
11790
11791 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
11792 default, set False on a per-runtime basis.
11793 (Need_Netdb_Buffer): New constant.
11794
11795 * g-socket.ads, g-socket.adb: Import new package
11796 GNAT.Sockets.Thin.Task_Safe_NetDB.
11797 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
11798 binding to obtain proper message.
11799 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
11800 Replace various occurrences of Arry (Arry'First)'Address with the
11801 equivalent Arry'Address (GNAT always follows implementation advice from
11802 13.3(14)).
11803 (Get_Host_By_Address, Get_Host_By_Name,
11804 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
11805 instead, rely on platform-specific task safe netdb operations provided
11806 by g-socthi.
11807
11808 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
11809 parameter Process_Blocking_IO.
11810 (Host_Error_Messages): Add stub body.
11811 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11812 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
11813 Safe_Getservbyport): Move functions into new child package
11814 Task_Safe_NetDB.
11815 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
11816 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
11817 (In_Addr): Add alignment clause.
11818
11819 2007-06-06 Robert Dewar <dewar@adacore.com>
11820
11821 * g-trasym.ads, g-traceb.ads: Update list of supported targets
11822 Add note about symbolic traceback
11823
11824 2007-06-06 Pascal Obry <obry@adacore.com>
11825
11826 * hostparm.ads (Normalized_CWD): Use the host directory separator
11827 instead of the hardcoded forward slash which is not the proper
11828 character on Windows for example.
11829 (Java_VM): Removed.
11830
11831 2007-06-06 Vincent Celier <celier@adacore.com>
11832 Arnaud Charlet <charlet@adacore.com>
11833
11834 * a-clrefi.adb, a-clrefi.ads: New files
11835
11836 * impunit.adb: Add s-os_lib in the list of user visible units.
11837 (Non_Imp_File_Names_95): Add a-clrefi to this list
11838 Remove obsolete run-time entries.
11839 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
11840 "a-exetim" -- Ada.Execution_Time
11841 "a-extiti" -- Ada.Execution_Time.Timers
11842
11843 * mlib-prj.ads, mlib-prj.adb
11844 (Build_Library): Use untouched object dir and library dir. At the
11845 same time makes sure that the checks are done using the canonical
11846 form. Removes hard-coded directory separator and use the proper host
11847 one instead.
11848 (Process_Project): Do not look in object directory to check if libgnarl
11849 is needed for a library, if there is no object directory.
11850 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
11851 linking.
11852 (Build_Library): When invoking gnatbind, use a response file if the
11853 total size of the arguments is too large.
11854
11855 * Makefile.rtl: (g-sttsne): New object file.
11856 Add entry for a-clrefi, s-utf_32, System.Exceptions
11857
11858 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
11859 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
11860 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
11861 Change g-string to s-string, g-os_lib to s-os_lib
11862 Change all g-utf_32 references to s-utf_32
11863
11864 2007-06-06 Tristan Gingold <gingold@adacore.com>
11865 Olivier Hainque <hainque@adacore.com>
11866
11867 * init.c: Do not adjust IP of an imported VMS exception of ia64.
11868 LIB$STOP is called to raise an exception and the IP of the exception
11869 is the instruction right after the call.
11870 (__gnat_adjust_context_for_raise, AIX): Implement.
11871 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
11872 adjust_context_for_raise before Raise_From_Signal_Hanler.
11873 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
11874 siginfo is passed to the handler, necessary to let the zcx propagation
11875 engine unwind past it.
11876
11877 2007-06-06 Olivier Hainque <hainque@adacore.com>
11878
11879 * initialize.c (__gnat_initialize for vxworks): Update documentation
11880 on the ZCX support, using different sets of crtstuff objects than with
11881 GCC 3.4.
11882
11883 2007-06-06 Robert Dewar <dewar@adacore.com>
11884
11885 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
11886 spec from body
11887 (Layout_Type): Fix recomputation of size from alignment.
11888
11889 2007-06-06 Ed Schonberg <schonberg@adacore.com>
11890 Javier Miranda <miranda@adacore.com>
11891
11892 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
11893 association in an instance.
11894 (Copy_Generic_Node): If the node is a string literal, no need to copy
11895 its descendants.
11896 (Is_Generic_Formal): For a formal subprogram, the declaration is the
11897 grandparent of the entity.
11898 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
11899 to simplify handling of formal interfaces that derive from other formal
11900 interfaces.
11901 (Instantiate_Subprogram_Body): The defining unit name of the body of
11902 the instance should be a defining identifier.
11903 (Install_Formal_Packages): make global to the package, for use in
11904 instantiations of child units.
11905 (Analyze_Package_Instantiation): Do not attempt to set information on an
11906 enclosing master of an entry when expansion is disabled.
11907 (Instantiate_Type): If the actual is a tagged synchronized type and the
11908 generic ancestor is an interface, create a generic actual for the
11909 corresponding record.
11910 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
11911 declaration, to ensure that the interface list is processed correctly.
11912 (Inline_Instance_Body): If enclosing scope is an instance body, remove
11913 its entities from visibiility as well.
11914 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
11915 given with a named association, analyze the expression only, not the
11916 discriminant association itself.
11917 (Reset_Entity): If the analysis of a selected component is transformed
11918 into an expanded name in the prefix of a call with parameters, do not
11919 transform the original node into an expanded name, to prevent visibility
11920 errors in the case of nested generics.
11921 (Check_Private_View): For an array type, check whether the index types
11922 may need exchanging.
11923
11924 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11925 Vincent Celier <celier@adacore.com>
11926
11927 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
11928 since both are separated.
11929 Add support for imported CIL packages.
11930 Add further special handling of "value_type" for CIL.
11931 Add special handling of pragma Import for CIL.
11932
11933 * make.ads, make.adb: When switch -eS is used, direct all outputs to
11934 standard output instead of standard error, except errors.
11935 (Absolute_Path): Use untouched casing for the parent directory.
11936 (Add_Library_Search_Dir): Use the untouched directory name.
11937 (Add_Source_Search_Dir): Idem.
11938 (Change_To_Object_Directory): Update output to use proper casing.
11939 (Create_Binder_Mapping_File): Use the untouched filename to set
11940 ALI_Name.
11941 (Gnatmake): Use untouched library and executable directory names.
11942 (Insert_Project_Sources): Use untouched filename for spec and body.
11943 (Is_In_Object_Directory): Use untouched object directory.
11944 (Mark_Directory): Idem.
11945 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
11946 contains the non-canonical filename in all cases.
11947 (Change_To_Object_Directory): In verbose mode, display the name of the
11948 object directory we're changing to.
11949 (Compile_Sources): Make sure, when a project file is used, to compile
11950 the body of the unit, when there is one, even when only the spec is
11951 recorded in an ALI file.
11952 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
11953 spec to the body.
11954 (Report_Compilation_Failed): New procedure
11955 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
11956 procedures moved from the spec to the body.
11957 (Extract_Failure): Removed, not used
11958 Replace explicit raises of exception Bind_Failed and Link_Failed with
11959 calls to Make_Failed with the proper message.
11960 Replace explicit raises of exception Compilation_Failed with calls to
11961 procedure Report_Compilation_Failed.
11962 (Initialize): Create mapping files unconditionally when using project
11963 files.
11964
11965 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11966 Pragma_CIL_Constructor): New names.
11967
11968 * targparm.ads, targparm.adb
11969 (Compiler_System_Version): Removed, no longer used.
11970 (Get_Target_Parameters): Relax checks on system.ads validity. Add
11971 handling of two new system flags: JVM and CLI.
11972
11973 2007-06-06 Jose Ruiz <ruiz@adacore.com>
11974 Arnaud Charlet <charlet@adacore.com>
11975
11976 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
11977 time, use the default s-interr body that provides interrupt support
11978 based on signals.
11979 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
11980 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
11981 g-soccon.ads, and s-taprop.adb for the marte run time.
11982 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
11983 timers are supported on marte.
11984 (EH_MECHANISM for marte): Do not use ZCX.
11985 (THREADSLIB for marte): Use -lmarte.
11986 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
11987 Add mlib-tgt-specific.o to gnatmake objects
11988 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
11989 longer of MLib.Tgt.
11990 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
11991 6, either kernel or rtp, use a specialized version of s-osinte.ads.
11992
11993 2007-06-06 Pascal Obry <obry@adacore.com>
11994
11995 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
11996
11997 2007-06-06 Vincent Celier <celier@adacore.com>
11998
11999 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12000 separator, use instead the proper host directory separator.
12001 (Copy_ALI_Files): Make sure that an already existing ALI file in the
12002 ALI copy dir is writable, before doing the copy.
12003
12004 * mlib-utl.ads, mlib-utl.adb:
12005 (Gcc): If length of command line is too long, put the list of object
12006 files in a response file, if this is supported by the platform.
12007 (Ar): If invocation of the archive builder is allowed to be done in
12008 chunks and building it in one shot would go above an OS dependent
12009 limit on the number of characters on the command line, build the archive
12010 in chunks.
12011
12012 2007-06-06 Vincent Celier <celier@adacore.com>
12013
12014 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12015 of specified object file is not equal to base name of source.
12016
12017 2007-06-06 Javier Miranda <miranda@adacore.com>
12018 Hristian Kirtchev <kirtchev@adacore.com>
12019 Ed Schonberg <schonberg@adacore.com>
12020
12021 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12022 the full type declaration.
12023 (Analyze_Component_Declaration): Add local variable E to capture the
12024 initialization expression of the declaration. Replace the occurences of
12025 Expression (N) with E.
12026 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12027 limited interface object with a function call.
12028 (Array_Type_Declaration): If the declaration lacks subtype marks for
12029 indices, create a simple index list to prevent cascaded errors.
12030 (Is_Null_Extension): Ignore internal components created for secondary
12031 tags when checking whether a record extension is a null extension.
12032 (Check_Abstract_Interfaces): Add missing support for interface subtypes
12033 and generic formals.
12034 (Derived_Type_Declaration): Add missing support for interface subtypes
12035 and generic formals.
12036 (Analyze_Object_Declaration): If an initialization expression is
12037 present, traverse its subtree and mark all allocators as static
12038 coextensions.
12039 (Add_Interface_Tag_Component): When looking for components that may be
12040 secondary tags, ignore pragmas that can appear within a record
12041 declaration.
12042 (Check_Abstract_Overriding): an inherited function that dispatches on
12043 result does not need to be overriden if the controlling type is a null
12044 extension.
12045 (Mentions_T): Handle properly a 'class attribute in an anonymous access
12046 component declaration, when the prefix is an expanded name.
12047 (Inherit_Component): If the derivation is for a private extension,
12048 inherited components remain visible and their ekind should not be set
12049 to Void.
12050 (Find_Type_Of_Object): In the case of an access definition, always set
12051 Is_Local_Anonymous_Access. We were previously not marking the anonymous
12052 access type of a return object as a local anonymous type.
12053 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12054 range with character literal bounds.
12055 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12056 (Access_Subprogram_Declaration): Indicate that the type declaration
12057 depends on an incomplete type only if the incomplete type is declared
12058 in an open scope.
12059 (Analyze_Subtype_Declaration): Handle properly subtypes of
12060 synchronized types that are tagged, and that may appear as generic
12061 actuals.
12062 (Access_Subprogram_Declaration): An anonymous access to subprogram can
12063 appear as an access discriminant in a private type declaration.
12064 (Add_Interface_Tag_Components): Complete decoration of the component
12065 containing the tag of a secondary dispatch table and the component
12066 containing the offset to the base of the object (this latter component
12067 is only generated when the parent type has discriminants --as documented
12068 in this routine).
12069 (Inherit_Components): Use the new decoration of the tag components to
12070 improve the condition that avoids inheriting the components associated
12071 with secondary tags of the parent.
12072 (Build_Discriminanted_Subtype): Indicate to the backend that the
12073 size of record types associated with dispatch tables is known at
12074 compile time.
12075 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
12076 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
12077 to include task, protected, and synchronized interfaces as limited
12078 interfaces.
12079 (Process_Discriminants): Remove the setting of
12080 Is_Local_Anonymous_Access on the type of (anonymous) access
12081 discriminants of nonlimited types.
12082 (Analyze_Interface_Type_Declaration): Complete the decoration of the
12083 class-wide entity it is is already present. This situation occurs if
12084 the limited-view has been previously built.
12085 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
12086 field.
12087 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
12088 Related_Interface.
12089
12090 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12091
12092 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
12093 of the type that specify the position of interface tags when the type
12094 inherits discriminated array components from the parent type.
12095 If a component is initialized with a box, check for the presence of a
12096 default expression in its declaration before using its default
12097 initialization procedure.
12098 (Resolve_Record_Aggregate): If a component is box-initialized, and the
12099 component type has a discriminants, create a partial aggregate for it
12100 by copying the discriminants of the component subtype.
12101 Reject attempt to initialize a discriminant with a box.
12102 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
12103 associated with dispatch tables is known at compile time.
12104 (Get_Value): If an association in a record aggregate has a box
12105 association, and the corresponding record component has a default
12106 expression, always copy the default expression, even when the
12107 association has a single choice, in order to create a proper
12108 association for the expanded aggregate.
12109
12110 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12111 Robert Dewar <dewar@adacore.com>
12112
12113 * par-ch12.adb (P_Generic_Associations): The source position of an
12114 Others association is that of the others keyword, not that of the token
12115 that follows the box.
12116 (P_Formal_Type_Definition): Handle formal access types that carry a
12117 not null indicator.
12118
12119 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
12120 multiple identifier are present, save Scan_State before scanning the
12121 colon, to ensure that separate trees are constructed for each
12122 declaration.
12123 (P_Identifier_Declarations): For object declaration, set new flag
12124 Has_Init_Expression if initialization expression present.
12125 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
12126 Improve NOT NULL error messages
12127
12128 2007-06-06 Robert Dewar <dewar@adacore.com>
12129
12130 * par-ch4.adb: (P_Name): Recover from literal used as name
12131
12132 2007-06-06 Vincent Celier <celier@adacore.com>
12133
12134 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
12135 defaulted to False.
12136 In the "not" case, recursive call with Complemented set to True.
12137 Do not allow "or" or "and" operators when Complemented is True.
12138
12139 2007-06-06 Vincent Celier <celier@adacore.com>
12140
12141 * prj.adb (Project_Empty): Gives default value for new component
12142 Libgnarl_Needed
12143
12144 * prj-attr.ads: Minor reformatting
12145
12146 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
12147 directory using the untouched casing.
12148 (For_All_Source_Dirs): Idem.
12149
12150 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
12151 directories specified with switches -aP.
12152 (Add_Search_Project_Directory): New procedure
12153 (Initialize_Project_Path): Put the directories in table
12154 Search_Directories in the project search path.
12155 (Initialize_Project_Path): For VMS, transform into canonical form the
12156 project path.
12157
12158 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12159
12160 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
12161 true if configurable run-time or No_Run_Time is set.
12162 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
12163 processing an unit which is not the one being compiled.
12164
12165 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12166
12167 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
12168 Replace UC by Ada.UC
12169
12170 * s-bitops.adb: Get rid of System.Pure_Exceptions.
12171 Replace UC by Ada.UC
12172
12173 2007-06-06 Robert Dewar <dewar@adacore.com>
12174
12175 * scng.adb: (Check_End_Of_Line): Deal with very long lines
12176
12177 2007-06-06 Robert Dewar <dewar@adacore.com>
12178
12179 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
12180 Remove no longer used nodes.
12181
12182 2007-06-06 Javier Miranda <miranda@adacore.com>
12183 Ed Schonberg <schonberg@adacore.com>
12184 Robert Dewar <dewar@adacore.com>
12185
12186 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
12187 on obsolescent withed unit in case of limited-withed units.
12188 (Analyze_Compilation_Unit): Add guard to code that removed an
12189 instantiation from visibility, to prevent compiler aborts when
12190 instantiation is abandoned early on.
12191 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
12192 current unit being analyzed, and Distinguish local incomplete types
12193 from limited views of types declared elsewhere.
12194 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
12195 to state that the class-wide entity is shared by the limited-view
12196 and the full-view.
12197 (Analyze_With_Clause): Improve placement of flag for case of
12198 unimplemented unit.
12199 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
12200 manner similar to GNAT.Current_Exception. This is a violation of
12201 restriction (No_Exception_Propagation), and also inhibits the
12202 optimization of local raise to goto.
12203 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
12204 and if so set Most_Recent_Exception_Used flag in Opt, and also check
12205 for violation of restriction No_Exception_Propagation.
12206
12207 2007-06-06 Javier Miranda <miranda@adacore.com>
12208 Hristian Kirtchev <kirtchev@adacore.com>
12209 Gary Dismukes <dismukes@adacore.com>
12210
12211 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
12212 use of entity Exception_Occurrence if it is not available in the
12213 target run-time.
12214
12215 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
12216 concurrent types are declared within an Ada 2005 generic, build their
12217 corresponding record types since they are needed for overriding-related
12218 semantic checks.
12219 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
12220 protected type does not implement a task interface or a nonlimited
12221 interface.
12222 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
12223 type does not implement a protected interface or a nonlimited interface.
12224 (Single_Task_Declaration, Single_Protected_Declaration): use original
12225 entity for variable declaration, to ensure that debugging information
12226 is correcty generated.
12227 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
12228 routines if the expander is not active.
12229 (Analyze_Task_Body): Mark all handlers to stop optimization of local
12230 raise, since special things happen for task exception handlers.
12231
12232 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
12233 concurrent types declared within a generic.
12234 (Check_Dispatching_Operation): Do not emit warning about late interface
12235 operations in the context of an instance.
12236 (Check_Dispatching_Call): Remove restriction against calling a
12237 dispatching operation with a limited controlling result.
12238 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
12239 Register_Interface_DT_Entry by calls to Register_Primitive.
12240 (Check_Dispatching_Formals): Handle properly a function with a
12241 controlling access result.
12242
12243 2007-06-06 Robert Dewar <dewar@adacore.com>
12244 Arnaud Charlet <charlet@adacore.com>
12245
12246 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
12247 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
12248 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
12249 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
12250 message when using a VM, since this attribute is not supported.
12251 (Analyze_Record_Representation_Clause): Give unrepped component warnings
12252
12253 * usage.adb: Add new warning for renaming of function return objects
12254 Indicate that -gnatwp and -gnatwP concern front-end inlining
12255 Add line for -gnatyg
12256 Add usage information for -gnatw.c/C
12257
12258 2007-06-06 Robert Dewar <dewar@adacore.com>
12259 Ed Schonberg <schonberg@adacore.com>
12260
12261 * sem_ch5.adb
12262 (Find_Var): Do not consider function call in test for infinite loop
12263 warning if warnings set off for function entity.
12264 (One_Bound): Do not create a temporary for a loop bound if it is a
12265 character literal.
12266 (Analyze_Assignment): Traverse the right hand side of an assignment and
12267 mark all allocators as static coextensions.
12268 (Analyze_Assignment): Exempt assignments involving a dispatching call
12269 to a function with a controlling access result from the check requiring
12270 the target to be class-wide.
12271
12272 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12273 Ed Schonberg <schonberg@adacore.com>
12274 Robert Dewar <dewar@adacore.com>
12275 Javier Miranda <miranda@adacore.com>
12276
12277 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
12278 chain of coextensions when an allocator serves as the root of such a
12279 chain.
12280 (Propagate_Coextensions): Remove the test for the root being an
12281 allocator.
12282 (Resolve_Allocator): Add condition to ensure that all future decoration
12283 occurs on an allocator node. Add processing and cleanup for static
12284 coextensions.
12285 (Valid_Conversion): If the operand type is the limited view of a
12286 class-wide type, use the non-limited view is available to determine
12287 legality of operation.
12288 (Ambiguous_Character): move to spec, for use elsewhere.
12289 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
12290 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
12291 character literals.
12292 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
12293 Do_Division_Check flag explicitly.
12294 (Resolve_Actuals): If the actual is of a synchronized type, and the
12295 formal is of the corresponding record type, this is a call to a
12296 primitive operation of the type, that is declared outside of the type;
12297 the actual must be unchecked-converted to the type of the actual
12298 (Resolve_Call): Kill all current values for any subprogram call if
12299 flag Suppress_Value_Tracking_On_Call is set.
12300 (Resolve_Type_Conversion): Generate error message the the operand
12301 or target of interface conversions come from a limited view.
12302 (Check_Infinite_Recursion): Ignore generated calls
12303 (Check_Allocator_Discrim_Accessibility): New procedure for checking
12304 that an expression that constrains an access discriminant in an
12305 allocator does not denote an object with a deeper level than the
12306 allocator's access type.
12307 (Resolve_Allocator): In the case of an allocator initialized by an
12308 aggregate of a discriminated type, check that associations for any
12309 access discriminants satisfy accessibility requirements by calling
12310 Check_Allocator_Discrim_Accessibility.
12311 (Resolve_Equality_Op): Handle comparisons of anonymous access to
12312 subprogram types in the same fashion as other anonymous access types.
12313 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
12314 message that is not a continuation message.
12315 (Resolve_Type_Conversion): Add missing support for conversion to
12316 interface type.
12317 (Resolve_Actuals): Introduce a transient scope around the call if an
12318 actual is a call to a function returning a limited type, because the
12319 resulting value must be finalized after the call.
12320 (Resolve_Actuals): If the call was given in prefix notations, check
12321 whether an implicit 'Access reference or implicit dereference must be
12322 added to make the actual conform to the controlling formal.
12323
12324 2007-06-06 Robert Dewar <dewar@adacore.com>
12325 Javier Miranda <miranda@adacore.com>
12326
12327 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
12328 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
12329 overriding of an inherited private subprogram now there is no need to
12330 inherit its dispatching slot and reduce the size of the dispatch table.
12331 Set_All_DT_Position now ensures that the same slot is now assigned to
12332 both entities. This is required to statically build the dispatch table.
12333 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
12334 of calling Set_All_DT_Position to re-evaluate the position of the
12335 entries in the dispatch table. Such reevaluation is not desired if
12336 the tagged type is already frozen.
12337
12338 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12339 Gary Dismukes <dismukes@adacore.com>
12340 Robert Dewar <dewar@adacore.com>
12341 Javier Miranda <miranda@adacore.com>
12342
12343 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
12344 reference acts as an lvalue when the attribute name modifies the prefix
12345 (Is_Coextension_Root): New routine.
12346 (Mark_Static_Coextensions): New routine.
12347 (Type_Access_Level): Revise code for checking the level of the
12348 anonymous access type of a return object.
12349 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
12350 (Matches_Prefixed_View_Profile): Remove the no longer necessary
12351 retrieval of the corresponding controlling record type.
12352 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
12353 concurrent types declared within a generic as well as class wide types.
12354 Emit a mode incompatibility error whenever a protected entry or routine
12355 override an interface routine whose first parameter is not of mode
12356 "out", "in out" or access to variable.
12357 (Overrides_Synchronized_Primitive): Rename to
12358 Find_Overridden_Synchronized_Primitive.
12359 (Collect_Interface_Components): New subprogram that collects all the
12360 components of a tagged record containing tags of secondary dispatch
12361 tables.
12362 (Add_Global_Declaration): New procedure
12363 (Abstract_Interface_List): Handle properly the case of a subtype of a
12364 private extension.
12365 (Type_Access_Level): In the case of a type whose parent scope is a
12366 return statement, call Type_Access_Level recursively on the enclosing
12367 function's result type to determine the level of the return object's
12368 type.
12369 (Build_Elaboration_Entity): Build name of elaboration entity from the
12370 scope chain of the entity, rather than the unit name of the file name.
12371 (Check_Nested_Access): New procedure.
12372 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12373 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12374 (Get_Renamed_Entity): Utility routine for performing common operation
12375 of chasing the Renamed_Entity field of an entity.
12376
12377 2007-06-06 Robert Dewar <dewar@adacore.com>
12378
12379 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
12380 elaboration model
12381 (Check_A_Call): Add check for entry call which was causing blowup
12382
12383 2007-06-06 Olivier Hainque <hainque@adacore.com>
12384
12385 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
12386 special code on ia64-vms to handle major incompatibilities between the
12387 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
12388 this routine with a very different set of arguments and expectations on
12389 the return value.
12390
12391 2007-06-06 Thomas Quinot <quinot@adacore.com>
12392
12393 * socket.c (__gnat_close_signalling_fd): New function.
12394 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
12395 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
12396 New supporting functions for task safe Netdb operations.
12397
12398 2007-06-06 Thomas Quinot <quinot@adacore.com>
12399 Olivier Hainque <hainque@adacore.com>
12400
12401 * a-except-2005.ads, a-except-2005.adb
12402 (Raise_From_Controlled_Operation): New procedure in
12403 (private part of) Ada.Exceptions (standard runtime version). Used to
12404 provide informational exception message when Program_Error is raised as
12405 a result of an Adjust or Finalize operation propagating an exception.
12406 (Rmsg_28): Fix description for E.4(18) check.
12407 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12408 propagation starts, to let debuggers know about the event in a reliable
12409 fashion.
12410 Take the address of E and dereference to make sure it is homed on stack
12411 and prevent the stores from being deleted, necessary for proper
12412 debugger behavior on "break exception" hits.
12413 (Local_Raise): Moved to System.Exceptions
12414
12415 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
12416 exception message from the current occurrence and raise Program_Error
12417 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
12418
12419 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12420 Arnaud Charlet <charlet@adacore.com>
12421
12422 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
12423 lock, if needed.
12424
12425 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
12426 priority associated to a lock.
12427
12428 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
12429 assertion to take into account case of no abort restriction.
12430 (Initialize_Protection_Entries): Add initialization for the field
12431 New_Ceiling associated to the protected object.
12432 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
12433 needed.
12434
12435 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12436 since this function needs to be set consistently with Update_Exception.
12437
12438 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12439 since this function needs to be set consistently with Update_Exception.
12440
12441 * s-taskin.ads: Update comments on
12442 Interrupt_Server_Blocked_On_Event_Flag.
12443 (Unbind_Handler): Fix handling of server_task wakeup
12444 (Server_Task): Set self's state so that Unbind_Handler can take
12445 appropriate actions.
12446 (Common_ATCB): Now use a constant from System.Parameters to determine
12447 the max size of the Task_Image field.
12448
12449 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
12450 Initialize_Analyzer function.
12451 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
12452 take into account case of no abort restriction.
12453 ([Vulnerable_]Complete_Master): Modify assertion.
12454
12455 * s-tataat.adb (Finalize): Use the nestable versions of
12456 Defer/Undefer_Abort.
12457
12458 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
12459
12460 * s-tpobop.ads: Update comments.
12461
12462 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
12463 of locking the object manually, to avoid inconsistencies between
12464 Lock/Unlock_Entry assertions.
12465
12466 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
12467 terminating
12468 application and System.Parameters.No_Abort is True.
12469 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
12470 (Unbind_Handler): Fix handling of server_task wakeup
12471 (Server_Task): Set self's state so that Unbind_Handler can take
12472 appropriate actions.
12473
12474 2007-06-06 Thomas Quinot <quinot@adacore.com>
12475
12476 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
12477 declarations instead of an explicit null body, for conciseness.
12478
12479 2007-06-06 Robert Dewar <dewar@adacore.com>
12480
12481 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
12482 illegal aggregate and the type is still Any_Composite.
12483 (Subtypes_Statically_Match): Fix problem of empty discriminant list
12484
12485 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12486
12487 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
12488 to prevent subsequent expansion.
12489
12490 2007-06-06 Robert Dewar <dewar@adacore.com>
12491
12492 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
12493
12494 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12495 Robert Dewar <dewar@adacore.com>
12496
12497 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
12498 exceptions.
12499 (Write_Itype): Handle case of string literal subtype, which
12500 comes up in this context.
12501 (Update_Itype): when debugging expanded code, update sloc of itypes
12502 associated with defining_identifiers and ranges, for gdb use.
12503 (Sprint_Node_Actual): Add static keyword to object or exception
12504 declaration output if Is_Statically_Allocated is True.
12505 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
12506 or task body, so that the tree carries the proper Sloc information for
12507 debugging use.
12508 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
12509
12510 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12511
12512 * s-secsta.adb (Chunk): Ensure this object has a static size known at
12513 compile time, to avoid dynamic memory allocation
12514 (Elaboration code): Only use dynamic memory allocation when needed.
12515
12516 2007-06-06 Quentin Ochem <ochem@adacore.com>
12517
12518 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
12519 "Overflow_Guard".
12520 (Stack_Analyzer): Added field "Overflow_Guard"
12521 (Task_Result): Added field "Overflow_Guard".
12522 (Index_Str): New constant.
12523 (Task_Name_Str): New constant.
12524 (Actual_Size_Str): New constant.
12525 (Pattern_Array_Element_Size): New constant.
12526 (Get_Usage_Range): New subprogram.
12527 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
12528 Now align the output.
12529 Added comments.
12530 (Initialize): Added value for Overflow_Guard.
12531 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
12532 Update the value of the overflow guard according to the actual
12533 beginning of the pattern array.
12534 (Initialize_Analyzer): Added parameter Overflow_Guard.
12535 Take this parameter into accound when computing the max size.
12536 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
12537 (Report_Result): Removed extra useless procedure.
12538 Updated call to Output_Result.
12539 Moved full computation of the Task_Result here.
12540
12541 2007-06-06 Thomas Quinot <quinot@adacore.com>
12542
12543 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
12544 Thread_Blocking_IO, always True by default, set False on a per-runtime
12545 basis.
12546 Add Windows-specific constants
12547 Add new constant Need_Netdb_Buffer.
12548 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12549 not, whether to use getXXXbyYYY_r.
12550
12551 * gsocket.h: Add new constant Need_Netdb_Buffer.
12552 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12553 not, whether to use getXXXbyYYY_r.
12554
12555 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12556
12557 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
12558 than their first call.
12559 Add type Dummy_Communication_Block used in the generation of the pre-
12560 defined dispatching primitive _disp_asynchronous_select.
12561 (Storage_Element): Put Pragma Universal_Aliasing on it.
12562
12563 2007-06-06 Vincent Celier <celier@adacore.com>
12564
12565 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
12566 function.
12567
12568 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
12569 letter if it is not followed by a '/' or a '\'.
12570 (Windows): New Boolean function
12571
12572 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
12573 Ada 2005.
12574 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
12575 drive letter.
12576 (Containing_Directory): Raise Use_Error when the directory is a root
12577 directory.
12578 (Extension): When returning the result, use a conversion to Result_Type,
12579 not a qualification.
12580
12581 2007-06-06 Robert Dewar <dewar@adacore.com>
12582
12583 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
12584 (Set_Style_Check_Options): Recognize new -gnatyg style switch
12585
12586 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
12587 Warn_On_Non_Local_Exception to False, to turn off warnings for
12588 No_Exception_Propagation in ZFP runtime.
12589 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
12590 back-ends.
12591 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
12592
12593 2007-06-06 Vincent Celier <celier@adacore.com>
12594
12595 * switch-b.adb (Scan_Binder_Switches): Add processing for new
12596 switches -R and -Z
12597
12598 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
12599 (Scan_Make_Switches): Recognize new switch -aP
12600
12601 2007-06-06 Matthew Gingell <gingell@adacore.com>
12602 Jose Ruiz <ruiz@adacore.com>
12603
12604 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
12605 VxWorks task descriptor in the Ada run time, call a C subprogram
12606 (__gnat_get_stack_info) that extracts the required information.
12607
12608 * sysdep.c: Back out temporary lynxos workaround.
12609 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
12610 time the stack information associated to the currently executing task.
12611 Only VxWorks systems require this function.
12612
12613 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12614
12615 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
12616 add the stack bias if the offset is computed from a frame address.
12617 (__gnat_backtrace): Adjust for above change.
12618
12619 2007-06-06 Thomas Quinot <quinot@adacore.com>
12620
12621 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
12622 PE_Non_Transportable_Actual.
12623 (By_Descriptor_Last): New constant.
12624 (By_Copy_Return): Likewise.
12625
12626 2007-06-06 Vincent Celier <celier@adacore.com>
12627
12628 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
12629 is.
12630
12631 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
12632 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
12633 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
12634 Add missing comment for /OPTIMIZE=SPACE
12635 Add entry for OPTIMIZE=SPACE
12636 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
12637 Add documentation for new qualifiers corresponding to -gnatw.c/.C
12638
12639 2007-06-06 Vincent Celier <celier@adacore.com>
12640 Robert Dewar <dewar@adacore.com>
12641
12642 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
12643 -gnatw.C)
12644
12645 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
12646 Document gnatbind switch -a
12647 (case Constructions): Document that variables declarations are allowed
12648 for previously declared variables.
12649 Fix external lib project example
12650 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
12651 Indicate that "#if not X or Y then" is not allowed in input files to
12652 gnatprep.
12653 Document gnatw.x and gnatw.X warning flags
12654 Mention -Winline switch to activate warnings when back-end inlining is
12655 ineffective.
12656 Add gnatcheck rule descriptions
12657 Describe how to use the GNAT driver to call a tool on a closure.
12658 Describe how to run project-wide checks or metrics.
12659 Document gnatbind's -R option
12660 Updated to account for Ada 2005 support
12661
12662 * gnat_rm.texi (Case Construction): Allow variable declarations for
12663 previously declared variables.
12664 (Representation Clauses and Pragmas): Lift restriction on alignment
12665 clauses for record types.
12666 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
12667 Document No_Exception_Propagation restriction
12668 Document No_Body pragma
12669 Updated to account for Ada 2005 support; corrected some typos
12670 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
12671
12672 * gnat-style.texi: Make it clear that we never use mode IN for
12673 procedures or functions
12674
12675 * ug_words: Add entries for -gnatw.x and -gnatw.X
12676 Add entries for -gnatw.c/.C
12677
12678 2007-06-06 Pascal Obry <obry@adacore.com>
12679 Vincent Celier <celier@adacore.com>
12680
12681 * makegpr.adb (Add_Archive_Path): Use untouched object and library
12682 dirs and library name.
12683 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
12684 comments.
12685 (Build_Library): Idem.
12686 (Compile_Individual_Sources): Idem.
12687 (Compile_Link_With_Gnatmake): Idem.
12688 (Compile_Sources): Idem.
12689 (Get_Imported_Directories): Idem.
12690 (Link_Executables): Idem. Same change for the executable dir.
12691 (Check_Compilation_Needed): C_Source_Path new variable containing
12692 the canonical form of Source_Path to check against the source names
12693 in the dependency file.
12694 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
12695 verbose mode, display the name of the object directory we're changing
12696 to.
12697 (Saved_Switches): New name of table X_Switches
12698 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
12699 (Usage): New line for switch -aP
12700 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
12701 testing if a directory should be added to the search path.
12702
12703 2007-06-06 Javier Miranda <miranda@adacore.com>
12704
12705 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
12706 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
12707 declaration after freezing point of all its associated tagged types;
12708 otherwise such types are frozen too early.
12709
12710 2007-06-06 Robert Dewar <dewar@adacore.com>
12711
12712 * a-reatim.adb: Documentation addition
12713
12714 * g-cgideb.adb: Minor code reorganization
12715
12716 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
12717 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
12718 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
12719
12720 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
12721 function. Change name New_Scope to Push_Scope
12722 (Get_Debug_Flag_K): Remove unused obsolete function.
12723
12724 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
12725 Push_Scope.
12726
12727 * makeusg.adb: Update Copyright notice
12728 Add line for switch -aP
12729
12730 * makeusg.adb: Fix wording of some usage messages
12731
12732 * s-assert.adb (Raise_Assert_Failure): Add call to
12733 Debug_Raise_Assert_Failure.
12734
12735 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12736 (2, Standard'Alignment) for compatibility with AAMP (where alignment
12737 is restricted to 1).
12738
12739 * s-wchjis.adb: Remove use of System.Pure_Exceptions
12740
12741 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12742 node location to No_Location when we're not debugging the expanded
12743 code.
12744
12745 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
12746
12747 * misc.c (enumerate_modes): Consider log2_b to always be one.
12748
12749 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
12750
12751 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
12752
12753 2007-05-02 Pascal Obry <obry@adacore.com>
12754
12755 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
12756 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
12757 encoding support of Stream_IO.
12758 (Write_Unit): Idem.
12759
12760 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
12761 filename and corresponding encoding to match the OS requirement.
12762 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
12763 routine will fail on specific devices like CON: AUX: ...
12764
12765 PR ada/29856: Add missing braces
12766
12767 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12768
12769 PR ada/31660
12770 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
12771
12772 2007-04-21 Jan Hubicka <jh@suse.cz>
12773
12774 * misc.c (gnat_expand_body): Don't call target for destructors,
12775 avoid redundant check on syntax errors.
12776
12777 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12778
12779 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
12780 instead of checking GIMPLE_STMT_P in chain_next.
12781
12782 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
12783
12784 PR ada/31576
12785 * system-linux-alpha.ads: Disable constant condition warning for the
12786 Default_Bit_Order variable.
12787 * system-linux-s390.ads: Likewise.
12788 * system-linux-s390x.ads: Likewise.
12789 * system-linux-sparc.ads: Likewise.
12790
12791 2007-04-06 Javier Miranda <miranda@adacore.com>
12792 Matt Heaney <heaney@adacore.com>
12793 Robert Dewar <dewar@adacore.com>
12794
12795 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
12796 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
12797 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
12798 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12799 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
12800 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
12801 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
12802 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
12803 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
12804 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
12805 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
12806 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
12807 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
12808 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
12809 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
12810 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
12811 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
12812 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
12813 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
12814 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
12815 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
12816 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
12817 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
12818 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
12819 s-taprop-tru64.adb, s-taprop-irix.adb,
12820 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
12821 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
12822 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
12823 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
12824 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
12825 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
12826 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
12827 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
12828 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
12829 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
12830 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
12831 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
12832 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
12833 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
12834 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
12835 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
12836 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
12837 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
12838 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
12839 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
12840 access types.
12841 Update documentation.
12842 Minor rewording.
12843
12844 2007-04-06 Robert Dewar <dewar@adacore.com>
12845
12846 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12847 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12848 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
12849 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
12850 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
12851 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12852 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12853 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
12854 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12855 system-hpux-ia64.ads, targparm.adb,
12856 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
12857
12858 * system.ads: Move Functions_Return_By_DSP to obsolete section,
12859 kept for bootstrap purposes only.
12860
12861 2007-04-06 Arnaud Charlet <charlet@adacore.com>
12862
12863 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12864 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
12865 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
12866 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
12867
12868 2007-04-06 Robert Dewar <dewar@adacore.com>
12869
12870 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
12871 (Local_Raise): New dummy procedure called when a raise is converted
12872 to a local goto. Used for debugger to detect that the exception
12873 is raised.
12874
12875 * debug.adb: Document new d.g flag (expand local raise statements to
12876 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
12877
12878 * exp_sel.adb: Use Make_Implicit_Exception_Handler
12879
12880 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
12881 suppress warnings for unused handlers.
12882 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
12883 warnings for raise statements not handled locally.
12884 (Get_RT_Exception_Entity): New function
12885 (Get_Local_Call_Entity): New function
12886 (Find_Local_Handler): New function
12887 (Warn_If_No_Propagation): New procedure
12888 (Expand_At_End_Handler): Call Make_Implicit_Handler
12889 (Expand_Exception_Handlers): Major additions to deal with local handlers
12890 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
12891 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
12892 for local raise
12893
12894 * exp_ch11.ads (Get_RT_Exception_Entity): New function
12895 (Get_Local_Call_Entity): New function
12896
12897 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
12898 of restrictions that the binder will never suggest adding.
12899
12900 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
12901 to No_Elist.
12902
12903 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
12904 be with'ed in the presence of pragma Restriction
12905 (No_Exception_Propagation).
12906
12907 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
12908
12909 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
12910 parameter, then the handler is not a suitable target for a local raise,
12911 and this is a violation of restriction No_Exception_Propagation.
12912 (Analyze_Handled_Statements): Analyze choice parameters in exception
12913 handlers before analyzing statement sequence (needed for proper
12914 detection of local raise statements).
12915 (Analyze_Raise_Statement): Reraise statement is a violation of the
12916 No_Exception_Propagation restriction.
12917
12918 * s-rident.ads: Add new restriction No_Exception_Propagation
12919
12920 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
12921 function, like Make_Exception_Handler but sets Local_Raise_Statements
12922 to No_List.
12923 (Add_Unique_Serial_Number): Deal with case where this is called during
12924 processing of configuration pragmas.
12925
12926 2007-04-06 Thomas Quinot <quinot@adacore.com>
12927 Pat Rogers <rogers@adacore.com>
12928 Pascal Obry <obry@adacore.com>
12929
12930 * g-stsifd-sockets.adb: New file.
12931
12932 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
12933 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
12934 g-socthi-vms.adb: Move signalling
12935 fd management to a nested package, so that they can conveniently be
12936 moved to a subunit that is shared across Windows, VMS, and VxWorks
12937 (Ada implementation) or completed with imported bodies from socket.c
12938 (UNIX case).
12939 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
12940 subprograms.
12941 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
12942 the signalling file descriptor.
12943 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
12944 signalling file descriptor.
12945 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
12946 instead of creating a pair of sockets for signalling here.
12947
12948 * g-socthi.adb: Ditto.
12949 Set the runtime process to ignore SIGPIPEs on platforms that support
12950 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12951
12952 * g-socthi-mingw.adb: Ditto.
12953 (WS_Version): Use Windows 2.2.
12954 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12955
12956 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
12957 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
12958
12959 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
12960 added GNAT byte swapping facility
12961 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
12962
12963 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
12964
12965 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
12966 New subprograms.
12967 (__gnat_create_signalling_fds): New subprogram.
12968 Set the runtime process to ignore SIGPIPEs on platforms that support
12969 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
12970
12971 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
12972 Vincent Celier <celier@adacore.com>
12973
12974 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
12975 New version of Ada.Calendar which supports the new upper bound of Ada
12976 time (2399-12-31 86_399.999999999).
12977 The following modifications have been made to the package:
12978 - New representation of time as count of nanoseconds since the start of
12979 Ada time (1901-1-1 0.0).
12980 - Target independent Split and Time_Of routines which service both
12981 Ada 95 and Ada 2005 code.
12982 - Target independent interface to the Ada 2005 children of Calendar.
12983 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
12984 - Handling of non-leap centenial years.
12985 - Updated clock function.
12986 - Updated arithmetic and comparison operators.
12987
12988 * a-caldel.adb (To_Duration): Add call to target independent routine in
12989 Ada.Calendar to handle the conversion of time to duration.
12990
12991 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
12992 (UTC Offset).
12993 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
12994 set off to 0.
12995 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
12996 targets do not have a natural time zone, GMT is used as a default.
12997 (__gnat_get_task_options): New.
12998
12999 * a-direct.adb (Modification_Time): Add with and use clauses for
13000 Ada.Calendar and Ada.
13001 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13002 since it is no longer needed.
13003 (Duration_To_Time): Removed.
13004 (OS_Time_To_Long_Integer): Removed.
13005 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13006 Formatting Time_Of routines which automatically handle time zones,
13007 buffer periods and leap seconds.
13008
13009 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13010 target independent routines in Ada.Calendar.
13011
13012 * a-calfor.ads, a-calfor.adb:
13013 Code cleanup and addition of validity checks in various routines.
13014 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13015 Ada.Calendar.
13016
13017 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13018 independent routine in Ada.Calendar.
13019
13020 2007-04-06 Olivier Hainque <hainque@adacore.com>
13021
13022 * adaint.c:
13023 (convert_addresses): Adjust prototype and dummy definition to expect an
13024 extra file_name argument.
13025
13026 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13027 filling the now expected file_name argument with the appropriate
13028 argv[0] expansion.
13029 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13030 (tracebk): Array of void * instead of char *, corresponding to what
13031 convert_addresses expects.
13032 (exename): New static global, to hold the executable file name to be
13033 used in all convert_addresses invocations.
13034 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13035 change.
13036 (__gnat_gmem_a2l_initialize): Resolve exename.
13037 (__gnat_convert_addresses): Use exename as the convert_addresses
13038 file_name argument.
13039
13040 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13041 "convert_addresses", now expecting a filename argument. Import the
13042 necessary entities to compute the filename to use and pass it to
13043 convert_addresses.
13044
13045 2007-04-06 Matt Gingell <gingell@adacore.com>
13046
13047 * system-aix.ads: Back out previous change.
13048 (Functions_Return_By_DSP): Removed
13049
13050 2007-04-06 Pascal Obry <obry@adacore.com>
13051
13052 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13053 or the monotonic used by Ada.Real_Time) to compute the sleep duration
13054 on Windows.
13055
13056 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13057
13058 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13059 function. Its value changes in different VxWorks versions, and it is
13060 now handled by the function __gnat_get_task_options.
13061
13062 * s-taprop-vxworks.adb (Create_Task): Call the function
13063 __gnat_get_task_options to get the required options for creating a task.
13064
13065 2007-04-06 Pascal Obry <obry@adacore.com>
13066 Thomas Quinot <quinot@adacore.com>
13067
13068 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
13069 dealing with filename.
13070 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
13071 filename from a standard string to a wide-string depending on the
13072 encoding value.
13073 (__gnat_freopen): Idem.
13074 (__gnat_current_time): New function (wrapper for time(3) standard C
13075 function).
13076
13077 * g-os_lib.ads (Current_Time): New function. Returns the current
13078 system time as an OS_Time value.
13079
13080 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
13081 (Monotonic_Clock): Same.
13082
13083 2007-04-06 Quentin Ochem <ochem@adacore.com>
13084
13085 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
13086 not on a natural.
13087 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
13088
13089 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13090
13091 * a-retide.adb: Add elaboration code to ensure that the tasking run
13092 time is initialized when using delay operations even when no task is
13093 created.
13094
13095 2007-04-06 Javier Miranda <miranda@adacore.com>
13096
13097 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
13098 component Num_Prim_Ops.
13099 (Set_Num_Prim_Ops): Removed.
13100 Remove all the assertions because all the routines of this
13101 package are inline always.
13102 (Get_Offset_Index): Add support to primary dispatch tables.
13103 Move the documentation about the dispatch table to a-tags.ads
13104 (Set_External_Tag): Removed
13105 (Inherit_TSD): Removed.
13106 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
13107 moved to a-tags.ads
13108 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
13109 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
13110 of the TSD field "Table" because this field has been renamed to
13111 "Ifaces_Table".
13112 (Inherit_CPP_DT): Removed.
13113 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
13114 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
13115 declarations have been moved to a-tags.ads
13116 (Check_Size): Removed.
13117 (Expanded_Name): Updated to get access to the new field of TSD
13118 containing the address of the expanded name.
13119 (Get_Access_Level/Set_Access_Level): Removed.
13120 (Get_Predefined_Prim_Op_Address): Removed.
13121 (Set_Predefined_Prim_Op_Address): Removed.
13122 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
13123 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
13124 (Set_Expanded_Name): Removed.
13125 (Inherit_DT): Removed.
13126 (Inherit_CPP_DT): Removed.
13127 (Set_RC_Offset): Removed.
13128 (Set_TSD): Removed.
13129 (Base_Address): New function that displaces "this" to point to the base
13130 of the object (that is, to point to the primary tag of the object).
13131
13132 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13133 Javier Miranda <miranda@adacore.com>
13134
13135 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
13136 anonymous access component, do not create a master_id if type already
13137 has one, as may happen if the type is a subcomponent of a packed array
13138 type.
13139 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
13140 Initialize_Tag): Remove code associated with the old CPP pragmas.
13141 CPP_Virtual and CPP_Vtable are no longer supported.
13142 (Build_Offset_To_Top_Internal): Add support for concurrent record types
13143 (Build_Offset_To_Top_Functions): Add support for concurrent record types
13144 (Freeze_Record_Type): Remove call to
13145 Init_Predefined_Interface_Primitives.
13146 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
13147 code required to initialize the tags of the secondary dispatch tables.
13148 This leaves the algoritm more clear.
13149 (Init_Secondary_Tags): Add support for concurrent record types
13150 (Make_Predefined_Primitive_Specs): Code cleanup.
13151 (Predefined_Primitive_Bodies): Code cleanup.
13152 (Build_Master_Renaming): New local subprogram.
13153 (Expand_N_Full_Type_Declaration): Build the master_id associated with
13154 anonymous access to task type components.
13155 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
13156 subtype indication are resolved during analysis, and must not be done
13157 here.
13158 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
13159
13160 2007-04-06 Geert Bosch <bosch@adacore.com>
13161 Ed Schonberg <schonberg@adacore.com>
13162 Javier Miranda <miranda@adacore.com>
13163 Bob Duff <duff@adacore.com>
13164
13165 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
13166 for conversion of a Float_Type'Truncation to integer.
13167
13168 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
13169 check if a node is an attribute that can be handled directly by the
13170 back end.
13171 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
13172 attributes that can be handled directly by the back end.
13173 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
13174 use new predicate Is_Access_Protected_Subprogram_Type.
13175 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
13176 and Unchecked_Union if it is generated as part of the default Output
13177 procedure for a type with default discriminants.
13178 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
13179 if we are compiling under restriction No_Dispatching_Calls.
13180 (Constrained): Use Underlying_Type, in case the type is private without
13181 discriminants, but the full type has discriminants.
13182 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
13183 call to Build_Get_Access_Level.
13184 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
13185 interface objects requires a call to the run-time subprogram that
13186 returns the base address of the object.
13187 (Valid_Conversion): Improve error message on illegal attempt to store
13188 an anonymous access to subprogram value into a record component.
13189
13190 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
13191 null".
13192 (Simplify_Type_Conversion): New procedure that performs simplification
13193 of Int_Type (Float_Type'Truncation (X)).
13194 (Resolve_Type_Conversion): Call above procedure after resolving operand
13195 and before performing checks. This replaces the existing ineffective
13196 code in Exp_Ch4.
13197 (Set_String_Literal_Subtype): When creating the internal static lower
13198 bound subtype for a string literal, use a newly created copy of the
13199 subtree representing the lower bound.
13200 (Resolve_Call): Exclude build-in-place function calls from transient
13201 scope treatment. Update comments to describe this exception.
13202 (Resolve_Equality_Op): In case of dispatching call check violation of
13203 restriction No_Dispatching_Calls.
13204 (Resolve_Call): If the call returns an array, the context imposes the
13205 component type of the array, and the function has one non-defaulted
13206 parameter, rewrite the call as the indexing of a call with a single
13207 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
13208 in prefix form.
13209 (Resolve_Actuals): If an actual is an allocator for an access parameter,
13210 the master of the created object is the innermost enclosing statement.
13211 (Remove_Conversions): For a binary operator, check if type of second
13212 formal is numeric, to check if an abstract interpretation is present
13213 in the case of exponentiation as well.
13214
13215 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13216 Bob Duff <duff@adacore.com>
13217
13218 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
13219 copying a parameter list in a call, set properly the First_Named_Formal
13220 and Next_Named_Formal fields in the new list and in the enclosing call.
13221 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
13222 names, to ease typing in the debugger. Improve comments.
13223 (Watch_Node): New variable, intended to be set in the debugger.
13224 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
13225 called when the watched node is created.
13226 (New_Node_Debugging_Output): Combined version of local procedures
13227 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
13228 with a parameter so that conditional breakpoints like "if Node = 12345"
13229 work.
13230 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
13231 Add Elist1 function
13232
13233 2007-04-06 Thomas Quinot <quinot@adacore.com>
13234 Ed Schonberg <schonberg@adacore.com>
13235 Gary Dismukes <dismukes@adacore.com>
13236
13237 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
13238 required for a conversion between two access-to-unconstrained-array
13239 types.
13240 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
13241 to discriminant constraints on discriminant objects. This rule must
13242 apply as well to discriminants of protected types in private components.
13243 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
13244 object of a null-excluding access type then don't require the
13245 the object declaration to have an expression and don't emit a
13246 run-time check.
13247
13248 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13249 Eric Botcazou <botcazou@adacore.com>
13250
13251 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
13252 and made constant.
13253
13254 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
13255 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
13256 carry any.
13257
13258 * fe.h (Compiler_Abort): Add third parameter.
13259
13260 * misc.c (internal_error_function): Build third argument from current
13261 input location and pass it to Compiler_Abort.
13262
13263 2007-04-06 Gary Dismukes <dismukes@adacore.com>
13264
13265 * cstand.adb (Create_Standard): When the target's storage unit size is
13266 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
13267 Standard_String.
13268
13269 2007-04-06 Nicolas Roche <roche@adacore.com>
13270
13271 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
13272 absolute path can have the following form: device:/a/b. In this case
13273 '/' should be inserted between the path and the filename.
13274
13275 2007-04-06 Olivier Hainque <hainque@adacore.com>
13276 Eric Botcazou <botcazou@adacore.com>
13277
13278 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
13279 VAR_DECL to a CONST_DECL we make for a public constant when we know the
13280 corresponding definition has created the so made visible variable.
13281 Handle anonymous access to protected subprogram.
13282 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
13283 object with an address clause volatile. Re-enable original fix.
13284 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
13285 too.
13286 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
13287 associated with either the Equivalent or Root type, instead of the
13288 naked type node.
13289 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
13290 subtree for every field of a global record type.
13291 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
13292 discriminants, invoke again variable_size on its newly computed sizes.
13293
13294 2007-04-06 Robert Dewar <dewar@adacore.com>
13295 Thomas Quinot <quinot@adacore.com>
13296 Ed Schonberg <schonberg@adacore.com>
13297 Bob Duff <duff@adacore.com>
13298
13299 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
13300 (Next_Component_Or_Discriminant): New function and procedure
13301 (First_Index, First_Literal, Master_Id,
13302 Set_First_Index, Set_First_Literal, Set_Master_Id):
13303 Add missing Ekind assertions.
13304 (Is_Access_Protected_Subprogram_Type): New predicate.
13305 (Has_RACW): New entity flag, set on package entities to indicate that
13306 the package contains the declaration of a remote accecss-to-classwide
13307 type.
13308 (E_Return_Statement): This node type has the Finalization_Chain_Entity
13309 attribute, in case the result type has controlled parts.
13310 (Requires_Overriding): Add this new flag, because "requires
13311 overriding" is subtly different from "is abstract" (see AI-228).
13312 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
13313 Is_Abstract_Type. Make sure these are called only when appropriate.
13314 (Has_Pragma_Unreferenced_Objects): New flag
13315
13316 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
13317 class-wide, the tag of the right-hand side must be an exact match, not
13318 an ancestor of that of the object on left-hand side.
13319 (Move_Activation_Chain): New procedure to create the call to
13320 System.Tasking.Stages.Move_Activation_Chain.
13321 (Expand_N_Extended_Return_Statement): Generate code to call
13322 System.Finalization_Implementation.Move_Final_List at the end of a
13323 return statement if the function's result type has controlled parts.
13324 Move asserts to Build_In_Place_Formal.
13325 (Move_Final_List): New function to create the call statement.
13326 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
13327 tagged type, replace generation of call to the run-time subprogram
13328 CW_Membership by call to Build_CW_Membership.
13329 (Expand_N_Return_Statement): Replace generation of call to the run-time
13330 subprogram Get_Access_Level by call to Build_Get_Access_Level.
13331 (Expand_N_Simple_Function_Return): Replace generation of call to the
13332 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13333
13334 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
13335 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
13336 access to protected operations.
13337 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
13338 master and chain actual parameters to a build-in-place function call
13339 involving tasks.
13340 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
13341 statement.
13342 (Make_Build_In_Place_Call_In_Allocator,
13343 Make_Build_In_Place_Call_In_Anonymous_Context,
13344 Make_Build_In_Place_Call_In_Assignment,
13345 Make_Build_In_Place_Call_In_Object_Declaration): Call
13346 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
13347 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
13348 stubbed procedure with a null body, replace the call with a null
13349 statement without using the full inlining machinery, for efficiency
13350 and to avoid invalid values in source file table entries.
13351
13352 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
13353 renamings of calls to build-in-place functions.
13354
13355 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
13356 provides the functionality of RTE_Available to record components.
13357 (RTU_Entity): The function Entity has been renamed to RTU_Entity
13358 to avoid undesired overloading.
13359 (Entity): New subprogram that returns the entity for the referened
13360 unit. If this unit has not been loaded, it returns Empty.
13361 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
13362 Remove no longer used entities.
13363 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
13364 (RE_Type_Specific_Data): New entity.
13365 (RE_Move_Any_Value): New entity.
13366 (RE_TA_A, RE_Get_Any_Type): New entities.
13367 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
13368 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
13369 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
13370 (Entity): New subprogram that returns the entity for the referened
13371 unit. If this unit has not been loaded, it returns Empty.
13372 (RTE): Addition of a new formal that extends the search to the scopes
13373 of the record types found in the chain of the package.
13374
13375 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
13376 "abstract subprograms must be visible" message, whether or not the type
13377 is an interface; that is, remove the special case for interface types.
13378 (Analyze_Function_Return): Remove error message "return of task objects
13379 is not yet implemented" because this is now implemented.
13380 (Create_Extra_Formals): Add the extra master and activation chain
13381 formals in case the result type has tasks.
13382 Remove error message "return of limited controlled objects is not yet
13383 implemented".
13384 (Create_Extra_Formals): Add the extra caller's finalization list formal
13385 in case the result type has controlled parts.
13386 (Process_Formals): In case of access formal types there is no need
13387 to continue with the analysis of the formals if we already notified
13388 errors.
13389 (Check_Overriding_Indicator): Add code to check overriding of predefined
13390 operators.
13391 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
13392 flags for formals that do not require them,.
13393 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
13394 hidden entity is use visible or directly visible.
13395 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
13396 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
13397 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
13398 New_Overloaded_Entity): Split Is_Abstract flag into
13399 Is_Abstract_Subprogram and Is_Abstract_Type.
13400
13401 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
13402 a return statement's finalization list to the caller's list, used for
13403 build-in-place functions with result type with controlled parts.
13404 Remove no longer used entities.
13405
13406 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
13407 longer needed, because the full type is now limited, and therefore a
13408 pass-by-reference type.
13409 (Foreign_Task_Level): New constant.
13410
13411 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
13412 move tasks from the activation chain belonging to a return statement to
13413 the one passed in by the caller, and update the master to the one
13414 passed in by the caller.
13415 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
13416 of unactivated tasks, so we don't kill the ones that are being returned
13417 by a build-in-place function.
13418 (Create_Task): Ignore AI-280 for foreign threads.
13419
13420 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13421 Robert Dewar <dewar@adacore.com>
13422 Bob Duff <duff@adacore.com>
13423 Gary Dismukes <dismukes@adacore.com>
13424
13425 * errout.adb (Unwind_Internal_Type): Use predicate
13426 Is_Access__Protected_Subprogram_Type.
13427
13428 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
13429 (Freeze_Entity, packed array case): Do not override explicitly set
13430 alignment and size clauses.
13431 (Freeze_Entity): An entity declared in an outer scope can be frozen if
13432 the enclosing subprogram is a child unit body that acts as a spec.
13433 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
13434 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
13435 Remove all code for DSP option
13436
13437 * layout.adb (Layout_Record_Type): Use First/
13438 Next_Component_Or_Discriminant
13439 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
13440 to handle properly the anonymous access case.
13441
13442 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
13443 for all access attributes, because overload resolution should work the
13444 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
13445 causes the error message for the ambiguous "X'Access = Y'Access" and
13446 "X'Unrestricted_Access = Y'Access" and so forth to match.
13447 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
13448 now that anonymous access to protected operations have their own kind.
13449 (Resolve_Attribute): In case of dispatching call check the violation of
13450 restriction No_Dispatching_Calls.
13451 (Check_Array_Type): Check new -gnatyA array index style option
13452
13453 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
13454 attempt to derive from a synchronized tagged type.
13455 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
13456 type, inherit the class-wide type already created, because it may
13457 already have been used in a self-referential anonymous access component.
13458 (Mentions_T): Recognize self-referential anonymous access components
13459 that use (a subtype of) the class-wide type of the enclosing type.
13460 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
13461 Derived_Type for Prev formal on call to
13462 Check_Anonymous_Access_Components rather than Empty.
13463 (Make_Incomplete_Type_Declaration): Add test for case where the type has
13464 a record extension in deciding whether to create a class-wide type,
13465 rather than just checking Tagged_Present.
13466 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
13467 to stand-alone object declarations as well as component declarations.
13468 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
13469 prevent accidental overwriting when enclosing package appears in
13470 a limited_with_clause.
13471 (Array_Type_Declaration): If the component type is an anonymous access,
13472 the associated_node for the itype is the type declaration itself.
13473 (Add_Interface_Tag_Components): Modified to support concurrent
13474 types with abstract interfaces.
13475 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
13476 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
13477 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
13478 to complete the decoration of synchronized interface types. Add also
13479 a call to Check_Abstract_Interfaces to verify the ARM rules.
13480 (Derive_Interface_Subprograms): Modified to support concurrent types
13481 with abstract interfaces.
13482 (Analyze_Subtype_Indication): Resolve the range with the given subtype
13483 mark, rather than delaying the full resolution depending on context.
13484 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
13485 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
13486 Array_Type_Declaration,Build_Derived_Record_Type,
13487 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
13488 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
13489 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
13490 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13491 called only when appropriate.
13492 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
13493 to private type.
13494 (Analyze_Subtype_Declaration): For an access subtype declaration, create
13495 an itype reference for the anonymous designated subtype, to prevent
13496 scope anonmalies in gigi.
13497 (Build_Itype_Reference): New utility, to simplify construction of such
13498 references.
13499
13500 2007-04-06 Vincent Celier <celier@adacore.com>
13501
13502 * errutil.adb (Initialize): Initialize warnings table, if all warnings
13503 are suppressed, supply an initial dummy entry covering all possible
13504 source locations.
13505
13506 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
13507 and start with only one, such as "-RTS=none".
13508 (Collect_Arguments): Do not check for sources outside of projects.
13509 Do not collect arguments if project is externally built.
13510 (Compile_Sources): Do nothing, not even check if the source is up to
13511 date, if its project is externally built.
13512 (Compile): When compiling a predefined source, add -gnatpg
13513 as the second switch, after -c.
13514 (Compile_Sources): Allow compilation of Annex J renames without -a
13515 (Is_In_Object_Directory): Check if the ALI file is in the object
13516 even if there is no project extension.
13517 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
13518 gnatbind if the ALI file effectively exists.
13519 (Initialize): Add the directory where gnatmake is invoked in front of
13520 the path if it is invoked from a bin directory, even without directory
13521 information, so that the correct GNAT tools will be used when spawned
13522 without directory information.
13523
13524 * makeusg.adb: Change switch -S to -eS
13525 Add lines for new switches -we, -wn and -ws
13526 Add line for new switch -p
13527
13528 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
13529 Treat_As_Error and there are warnings.
13530
13531 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
13532 -gnatww Change gnatmake switch -S to -eS
13533 (Scan_Make_Switches): Code reorganisation. Process separately multi
13534 character switches and single character switches.
13535 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
13536 False when switch is not recognized by gnatmake.
13537 (Scan_Make_Switches): Set Setup_Projects True when -p or
13538 --create-missing-dirs is specified.
13539
13540 * fname.adb (Is_Predefined_File_Name): Return True for annex J
13541 renamings Calendar, Machine_Code, Unchecked_Conversion and
13542 Unchecked_Deallocation only when Renamings_Included is True.
13543
13544 * par.adb: Allow library units Calendar, Machine_Code,
13545 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
13546 when -gnatg is not specified.
13547 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13548 there is no need to generate always a record_definition_node in case
13549 of synchronized interface types.
13550 (SIS_Entry_Active): Initialize global variable to False
13551 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
13552 indicate cases where AI-447 says "not null" is legal.
13553
13554 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
13555
13556 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
13557 files with with several lines starting with the object fileb name.
13558 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
13559 is specified.
13560 (Initialize): Add the directory where gprmake is invoked in front of the
13561 path, if it is invoked from a bin directory or with directory
13562 information, so that the correct GNAT tools will be used when invoked
13563 directly.
13564 (Check_Compilation_Needed): Process correctly backslashes on Windows.
13565
13566 * vms_data.ads: Update switches/qualifiers
13567
13568 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13569 Thomas Quinot <quinot@adacore.com>
13570
13571 * exp_aggr.adb:
13572 If the array component is a discriminated record, the array aggregate
13573 is non-static even if the component is given by an aggregate with
13574 static components.
13575 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
13576 (Convert_Aggr_In_Allocator): If the allocator is for an access
13577 discriminant and the type is controlled. do not place on a finalization
13578 list at this point. The proper list will be determined from the
13579 enclosing object.
13580 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
13581 initialize record controller if needed, before the components, to ensure
13582 that they are properly finalized.
13583 (Build_Record_Aggr_Code): For the case of an array component that has a
13584 corresponding array aggregate in the record aggregate, perform sliding
13585 if required.
13586
13587 2007-04-06 Javier Miranda <miranda@adacore.com>
13588 Gary Dismukes <dismukes@adacore.com>
13589 Ed Schonberg <schonberg@adacore.com>
13590
13591 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
13592 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
13593
13594 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
13595 accessibility on class-wide allocators if the allocator occurs at the
13596 same scope level as the allocator's type. The check is guaranteed to
13597 succeed in that case, even when the expression originates from a
13598 parameter of the containing subprogram.
13599 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
13600 under No_Dispatching_Calls restriction. During the semantic analysis
13601 we already notified such violation.
13602 (Tagged_Membership): Constant folding. There is no need to check
13603 the tag at run-time if the type of the right operand is non
13604 class-wide abstract.
13605 Replace call to Is_Ancestor by call to Is_Parent
13606 to support concurrent types with interface types.
13607 (Expand_N_Allocator): Add an assertion associated with the generation
13608 of the master_id.
13609 (Expand_N_Slice): Do not enable range check to nodes associated
13610 with the frontend expansion of the dispatch table.
13611 (Is_Local_Access_Discriminant): Subsidiary function to
13612 Expand_N_Allocator.
13613 (Tagged_Membership): Replace generation of call to the run-time
13614 subprogram CW_Membership by call to Build_CW_Membership.
13615 (Expand_Allocator_Expression): Replace generation of call to the
13616 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13617
13618 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
13619 initialize most the TSD components by means of an aggregate.
13620 Modify the declaration of the object containing the TSD
13621 because we now expand code that has a higher level of abstraction.
13622 The TSD has a discriminant containing the Inheritance Depth Level,
13623 value that is used in the membership test but also to fix the size
13624 of the table of ancestors.
13625 (Expand_Interface_Conversion): Insert function body at the closest place
13626 to the conversion expression, to prevent access-before-elaboration
13627 errors in the backend.
13628 Code improved to reduce the size of the dispatch table if
13629 compiling under restriction No_Dispatching_Calls plus code cleanup.
13630 Code reorganization plus removal of calls to Set_Num_Prim_Ops
13631 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
13632 (Expand_Dispatching_Call): Minor code reorganization plus addition of
13633 code to return immediately if compiling under No_Dispatching_Calls
13634 restriction.
13635 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
13636 CPP_Virtual and CPP_Vtable are no longer supported.
13637 (Expand_Interface_Conversion): Add missing support for interface type
13638 derivations.
13639 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
13640 Is_Parent to support concurrent types with interfaces.
13641 (Init_Predefined_Interface_Primitives): Removed.
13642 (Make_Secondary_DT): Modified to support concurrent record types.
13643 (Set_All_DT_Position): Modified to support concurrent record types.
13644 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13645 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
13646 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
13647 with CW_Membership.
13648 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13649 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
13650 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
13651 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
13652 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
13653 (Expand_Dispatching_Call): Replace generation of call to the run-time
13654 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
13655 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
13656 Address.
13657 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
13658 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
13659 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
13660 Build_Set_Prim_Op_Address.
13661 (Get_Remotely_Callable): Subprogram removed.
13662 (Init_Predefined_Interface_Primitives): Replace generation of call to
13663 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
13664 Prims.
13665
13666 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
13667 First (Parameter_Associations ()) with the call to First_Actual that
13668 returns an actual parameter expression for both named and positional
13669 associations.
13670
13671 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
13672 check violation of restriction No_Dispatching_Calls.
13673 (Check_Controlling_Type): A formal of a tagged incomplete type is a
13674 controlling argument.
13675
13676 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
13677 First/Next_Component_Or_Discriminant
13678 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
13679 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13680 specify Any_Limited_Interface, and this functionality is already
13681 provided by the function Has_Abstract_Interfaces.
13682 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
13683 support concurrent types implementing interfaces.
13684 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13685 specify kind Any_Limited_Interface, and this functionality is already
13686 provided by the function Has_Abstract_Interfaces.
13687 (Remove_Side_Effects): replace Controlled_Type by
13688 CW_Or_Controlled_Type whenever the issue is related to
13689 using or not the secondary stack.
13690
13691 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
13692 P_Interface_Type_Definition to fulfill the new interface (the formal
13693 Is_Synchronized is no longer required).
13694
13695 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
13696 Update dependencies.
13697
13698 * exp_atag.ads, exp_atag.adb: New file
13699
13700 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13701 Bob Duff <duff@adacore.com>
13702 Cyrille Comar <comar@adacore.com>
13703
13704 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
13705 anonymous, use finalization list of enclosing dynamic scope.
13706 (Expand_N_Package_Declaration): For a library package declaration
13707 without a corresponding body, generate RACW subprogram bodies in the
13708 spec (just as we do for the task activation call).
13709 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
13710 Is_Abstract_Type. Make sure these are called only when appropriate.
13711 Remove all code for DSP option
13712 (CW_Or_Controlled_Type): new subprogram.
13713
13714 2007-04-06 Eric Botcazou <botcazou@adacore.com>
13715 Ed Schonberg <schonberg@adacore.com>
13716 Gary Dismukes <dismukes@adacore.com>
13717
13718 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
13719 parameter. If it is set to true, return a result capped according to
13720 the global upper bound for the index of an entry family.
13721 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
13722 (Build_Find_Body_Index): Adjust for above change.
13723 (Entry_Index_Expression): Likewise.
13724 (Is_Potentially_Large_Family): New function extracted from...
13725 (Collect_Entry_Families): ...here. Call it to detect whether the family
13726 is potentially large.
13727 (Build_Entry_Count_Expression): If the family is potentially large, call
13728 Family_Size with 'Cap' set to true.
13729 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
13730 a protected version of an operation declared in the private part of
13731 a protected object, because they may be invoked through a callback.
13732 (Set_Privals): If the type of a private component is an anonymous access
13733 type, do not create a new itype for each protected body.
13734 If the body of a protected operation creates
13735 controlled types (including allocators for class-widetypes), the
13736 body of the corresponding protected subprogram must include a
13737 finalization list.
13738 (Build_Activation_Chain_Entity): Build the chain entity for extended
13739 return statements.
13740 (Type_Conformant_Parameters): Use common predicate Conforming_Types
13741 to determine whether operation overrides an inherited primitive.
13742 (Build_Wrapper_Spec): Add code to examine the parents while looking
13743 for a possible overriding candidate.
13744 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13745 hold an actual parameter value since its initialization is separated
13746 from the the declaration. Prevents errors on null-excluding access
13747 formals.
13748
13749 2007-04-06 Thomas Quinot <quinot@adacore.com>
13750 Pablo Oliveira <oliveira@adacore.com>
13751
13752 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
13753 Do an Unchecked_Conversion to handle the passage from the Underlying
13754 Type to the Base Type when calling Build_To_Any_Call and
13755 Build_From_Any_Call.
13756 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
13757 E_Constant, depending upon Variable formal.
13758 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13759 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
13760 parameter that requires an extra constrained parameter, declare
13761 temporary for actual as a variable, not a constant.
13762 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
13763 the unit being compiled is the one that contains the stub type.
13764 Change primitive operation name for the RACW associated with a RAS
13765 from Call to _Call so it cannot clash with any legal identifier.
13766 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
13767 Is_RAS.
13768 (Append_RACW_Bodies): New subprogram.
13769 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
13770 Add_Receiving_Stubs_To_Declarations functions.
13771 When expanding a package body, this list correspond to the
13772 statements in the HSS at the end of the pacakge.
13773 When expanding a package spec, this list correspond to the
13774 spec declarations.
13775 (Add_Receiving_Stubs_To_Declarations): Append the function
13776 registering the receiving stubs at the end of the 'Stmts' list.
13777 (RCI_Package_Locator): Pass the new Version generic formal when
13778 instantiating a RCI_Locator package.
13779 (Build_From_Any_Function): To compute the High bound for an
13780 unconstrained array actual, we add the Low bound with the length.
13781 Thus we must convert the low bound and the length to an appropriate
13782 type before doing the sum.
13783 (Build_Subprogram_Receiving_Stubs, PolyORB):
13784 * Retrieve the extra formals parameters at the
13785 end of the parameter stream.
13786 * Use Move_Any_Value to write back out parameters
13787 after executing the request as it is more efficient
13788 than Copy_Any_Value.
13789 * Build the any containing Extra Formals with the
13790 appropriate typecode.
13791 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
13792 empty Component_List.
13793 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
13794 the tree the declaration for an object that serves as actual parameter
13795 in server-side stubs.
13796 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13797 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13798 Use Build_Actual_Object_Declaration to prepare the actuals.
13799 (Add_Parameter_To_NVList): Set the parameter mode to In for
13800 Extra Constrained Parameters.
13801 (Build_General_Calling_Stubs): Set the parameter type to boolean for
13802 Extra Constrained parameters.
13803 (Build_To_Any_Function, Build_From_Any_Function,
13804 Built_TypeCode_Function): When Typ is implicit, call the correct
13805 function with the first not implicit parent type.
13806 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
13807 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
13808 typecode from the Etype. Therefore we retrieve the correct typecode
13809 with a call to Get_Any_Type.
13810 (Copy_Specification): Do controlling formal type substitution based on
13811 Is_Controlling_Formal flag, instead of caller-provided object type.
13812 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
13813 a RACW primitive operation, we might get a subprogram declaration for an
13814 ancestor of the RACW designated type (not for the designated type
13815 itself), in the case where this operation is inherited. In this case we
13816 have no easy means of determining the original tagged type for which
13817 the primitive was declared, so instead we now rely on
13818 Copy_Specification to use the Is_Controlling_Formal flag to determine
13819 which formals require type substitution.
13820
13821 2007-04-06 Robert Dewar <dewar@adacore.com>
13822 Ed Schonberg <schonberg@adacore.com>
13823
13824 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
13825 GNAT.Current_Exception are not allowed if pragma Restrictions
13826 (No_Exception_Propagation) is set and in any case make the associated
13827 handler unsuitable as a target for a local raise statement.
13828 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
13829 run-time subprogram CW_Membership by call to Build_CW_Membership.
13830 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
13831 by a function call, a temporary must be created before expanding the
13832 Constructor_Call itself, to prevent out-of-order elaboration in the
13833 back-end when stack checking is enabled..
13834
13835 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13836
13837 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
13838 result are the bounds of the left operand, not the right.
13839
13840 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13841
13842 * exp_strm.adb
13843 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
13844 discriminant defaults.
13845 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
13846 (Make_Component_List_Attributes): Ditto.
13847
13848 2007-04-06 Ed Schonberg <schonberg@adacore.com>
13849 Bob Duff <duff@adacore.com>
13850
13851 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
13852 an association with a box as providing a value even though the
13853 initialization procedure for the type is not available.
13854 (Resolve_Record_Aggregate): Check that a choice of an association with a
13855 box corresponds to a component of the type.
13856 (Resolve_Record_Aggregate): Split Is_Abstract flag into
13857 Is_Abstract_Subprogram and Is_Abstract_Type.
13858
13859 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
13860 assert.
13861
13862 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
13863 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13864 called only when appropriate.
13865
13866 2007-04-06 Olivier Hainque <hainque@adacore.com>
13867
13868 * g-alleve.ads (Low Level Vector type definitions): Map each to the
13869 associated vector view instead of all to the unsigned char view.
13870
13871 * g-altcon.adb (Generic_Conversions): New internal generic package,
13872 offering facilities for all the Vector/View conversion routines
13873 implemented by this unit.
13874 (To_View/To_Vector - all versions): Reimplemented in a systematic
13875 manner, using the internal Generic_Conversions facilities.
13876
13877 2007-04-06 Pascal Obry <obry@adacore.com>
13878
13879 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
13880 string.
13881 (Create): Free the source string before storing the new one.
13882
13883 2007-04-06 Vincent Celier <celier@adacore.com>
13884
13885 * g-debpoo.adb (Validity): New package with a complete new
13886 implementation of subprograms Is_Valid and Set_Valid.
13887 (Is_Valid): Move to local package Validity
13888 (Set_Valid): Move to local package Validity
13889
13890 2007-04-06 Arnaud Charlet <charlet@adacore.com>
13891 Pablo Oliveira <oliveira@adacore.com>
13892
13893 * g-expect.adb (Get_Command_Output): When expanding the output buffer
13894 we must ensure that there is enough place for the new data we are going
13895 to copy in.
13896
13897 2007-04-06 Thomas Quinot <quinot@adacore.com>
13898
13899 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
13900 computation.
13901
13902 2007-04-06 Jose Ruiz <ruiz@adacore.com>
13903 Vincent Celier <celier@adacore.com>
13904
13905 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
13906 (Stack_String): Add this String that contains the name of the Stack
13907 package in the project file.
13908 (Packages_To_Check_By_Stack): Add this list that contains the packages
13909 to be checked by gnatstack, which are the naming and the stack packages.
13910 (Check_Files): If no .ci files were specified for gnatstack we add all
13911 the .ci files belonging to the projects, including binder generated
13912 files.
13913 (Non_VMS_Usage): Document that gnatstack accept project file switches.
13914 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
13915 Add gnatstack to the list of commands that use project file related
13916 switches, and get the single attribute Switches from the stack package
13917 in a project file when calling gnatstack. Parse the -U flag for
13918 processing files belonging to all projects in the project tree.
13919 Remove all processing for command Setup
13920
13921 * prj-attr.adb: Add new package Stack with single attribute Switches
13922
13923 * vms_conv.ads (Command_Type): Add command Stack.
13924 Move to body declarations that are only used in the body: types Item_Id,
13925 Translation_Type, Item_Ptr, Item and its subtypes.
13926
13927 * vms_conv.adb: (Initialize): Add data for new command Stack.
13928 Add declarations moved from the spec: types Item_Id, Translation_Type,
13929 Item_Ptr, Item and its subtypes.
13930 (Cargs_Buffer): New table
13931 (Cargs): New Boolean global variable
13932 (Process_Buffer): New procedure to create arguments
13933 (Place): Put character in table Buffer or Cargs_Buffer depending on the
13934 value of Cargs.
13935 (Process_Argument): Set Cargs when processing qualifiers for GNAT
13936 COMPILE
13937 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
13938 empty, for table Cargs_Buffer.
13939 (Initialize): Remove component Setup in Command_List
13940
13941 2007-04-06 Vincent Celier <celier@adacore.com>
13942
13943 * gprep.adb (Process_Files.Process_One_File): Use full file name when
13944 issuing pragma Source_Reference.
13945
13946 2007-04-06 Emmanuel Briot <briot@adacore.com>
13947
13948 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
13949 [[:xdigit:]] character class.
13950 Also raise an exception when an invalid character class is used.
13951
13952 2007-04-06 Pascal Obry <obry@adacore.com>
13953
13954 * i-cstrea.ads: (fopen): Add encoding parameter.
13955 (freopen): Idem.
13956 Change reference from a-sysdep.c to sysdep.c in comment.
13957 Update copyright notice.
13958 This set of patch add support for the encoding form parameter.
13959
13960 * mingw32.h (S2WSU): New macro to convert from a string to a
13961 wide-string using the UTF-8 encoding. The S2WS macro supports now only
13962 standard 8bits encoding.
13963 (WS2SU): As above but converting from wide-sring to string.
13964 This is needed as it is necessary to have access to both versions in the
13965 runtime for the form parameter encoding support.
13966 This set of patch add support for the encoding form parameter.
13967 (S2WS): Improve implementation to handle cases where the filename is not
13968 UTF-8 encoded. In this case we default to using the current code page
13969 for the conversion.
13970
13971 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
13972 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
13973 the constants defined in adaint.h.
13974 (fopen): Add encoding parameter.
13975 (freopen): Idem.
13976
13977 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
13978 encoding. This is needed for the Reset routine (freopen low level-call).
13979
13980 * s-fileio.adb (Open): Decode encoding form parameter and set the
13981 corresponding encoding value into AFCB structure.
13982 (Reset): Pass the encoding value to freopen.
13983 (Close): Move the call to Lock_Task to the beginning of the procedure.
13984
13985 2007-04-06 Geert Bosch <bosch@adacore.com>
13986 Robert Dewar <dewar@adacore.com>
13987
13988 * i-fortra.ads: Add Double_Complex type.
13989
13990 * impunit.adb: (Is_Known_Unit): New function
13991 Add Gnat.Byte_Swapping
13992 Add GNAT.SHA1
13993 Add new Ada 2005 units
13994 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
13995 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
13996 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
13997 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
13998
13999 * impunit.ads (Is_Known_Unit): New function
14000
14001 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14002 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14003 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14004 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14005 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14006 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14007 New files.
14008
14009 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14010
14011 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14012
14013 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14014 Arnaud Charlet <charlet@adacore.com>
14015
14016 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14017 __gnat_adjust_context_for_raise.
14018 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14019 implementation of floating point operations as native x86 targets.
14020 So the FPU should be initialized in the same way using finit. Fix
14021 floating point operations accuracy issues.
14022 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14023 member in struct sigaction, so as to avoid warning for incompatible
14024 pointer types.
14025
14026 2007-04-06 Serguei Rybin <rybin@adacore.com>
14027
14028 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14029 switches from previously loaded tree
14030
14031 2007-04-06 Thomas Quinot <quinot@adacore.com>
14032
14033 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14034 cases where a given dependency has a body or not.
14035 (Write_With_File_Names): New subprogram, common code for the two cases
14036 above.
14037
14038 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14039 Javier Miranda <miranda@adacore.com>
14040
14041 * lib-xref.ads, lib-xref.adb:
14042 Modify the loop that collects type references, to include interface
14043 types that the type implements. List each of these interfaces when
14044 building the entry for the type.
14045 (Generate_Definition): Initialize component Def and Typ of new entry
14046 in table Xrefs, to avoid to have these components unitialized.
14047 (Output_References): Split Is_Abstract flag into
14048 Is_Abstract_Subprogram and Is_Abstract_Type.
14049 (Generate_Reference): Add barrier to do not generate the warning
14050 associated with Ada 2005 entities with entities generated by the
14051 expander.
14052
14053 2007-04-06 Robert Dewar <dewar@adacore.com>
14054 Arnaud Charlet <charlet@adacore.com>
14055 Vincent Celier <celier@adacore.com>
14056
14057 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14058 Update 'Exception Handling Control' chapter which was outdated.
14059 Minor fix to documentation of -gnatwq
14060 Remove section "Adapting the Run Time to a New C++ Compiler" because
14061 it is now obsolete.
14062 Add passage on need of -nostart-files in some non-ada-main cases.
14063 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14064 Update documentation about Interfacing with C++
14065 Add documentation for new gnatmake switch -p
14066 Add missing protocol part in URLs.
14067 Document -gnatyA
14068 Document pragma Compile_Time_Error
14069 Add documentation for Object_Size indicating that stand alone
14070 objects can have a larger size in some cases.
14071 Add node for GNAT.Byte_Swapping, GNAT.SHA1
14072 Update reference to the Ravenscar profile.
14073 Document pragma Unreferenced_Objects
14074
14075 * gnat-style.texi: Fix typo
14076
14077 2007-04-06 Vincent Celier <celier@adacore.com>
14078
14079 * mlib.adb (Building_Library): Only output "building a library..." in
14080 verbose mode
14081
14082 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
14083 files in verbose mode.
14084
14085 * mlib-utl.adb (Ar): Only output the first object files when not in
14086 verbose mode.
14087 (Gcc): Do not display all the object files if not in verbose mode, only
14088 the first one.
14089
14090 2007-04-06 Robert Dewar <dewar@adacore.com>
14091
14092 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
14093 it no longer destroys the contents of Name_Buffer or Name_Len and
14094 non-standard and invalid names are handled better.
14095 (Get_Decoded_Name_String): Improve performance by using
14096 Name_Has_No_Encodings flag in the name table.
14097 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
14098 Used for debugging printouts.
14099
14100 2007-04-06 Robert Dewar <dewar@adacore.com>
14101 Javier Miranda <miranda@adacore.com>
14102 Bob Duff <duff@adacore.com>
14103
14104 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
14105 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14106 there is no need to generate always a record_definition_node in case
14107 of synchronized interface types.
14108 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
14109 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
14110 illegal in Ada 95, in cases where it is legal. Change the warnings to
14111 errors in other cases. Don't give the error unless the "not null"
14112 parses properly. Correct the source position at which the error occurs.
14113 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
14114 P_Null_Exclusion, to suppress "not null" warnings.
14115 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
14116 associated goto statements.
14117
14118 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
14119 of END RECORD
14120
14121 * scans.ads (Type_Token_Location): New flag
14122
14123 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
14124 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
14125 P_Null_Exclusion, to suppress "not null" warnings.
14126
14127 2007-04-06 Robert Dewar <dewar@adacore.com>
14128 Javier Miranda <miranda@adacore.com>
14129 Bob Duff <duff@adacore.com>
14130 Vincent Celier <celier@adacore.com>
14131
14132 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
14133 (Extensions_Allowed): No longer sets Ada_Version
14134 Entry for pragma Unreferenced_Objects
14135
14136 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
14137 system.tasking if pragma priority used in a procedure
14138 (Analyze_Pragma, case Warning): Handle dot warning switches
14139 (Process_Compile_Time_Warning_Or_Error): New procedure
14140 (Analyze_Pragma): Add processing for Compile_Time_Error
14141 Add support for extra arguments External_Name and Link_Name.
14142 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
14143 (Process_Import_Or_Interface): Add support for the use of pragma Import
14144 with tagged types.
14145 (Extensions_Allowed): No longer affects Ada_Version
14146 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
14147 Is_Abstract_Type. Make sure these are called only when appropriate.
14148 Add processing for pragma Unreferenced_Objects
14149
14150 * snames.h, snames.ads, snames.adb: Add entry for pragma
14151 Compile_Time_Error
14152 Add new standard name Minimum_Binder_Options for new gprmake
14153 Add new standard names for gprmake: Archive_Suffix,
14154 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
14155 Library_Support, Library_Version_Options,
14156 Shared_Library_Minimum_Options,
14157 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
14158 Change Name_Call to Name_uCall so that it cannot clash with a legal
14159 subprogram name.
14160 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
14161 Append C_Plus_Plus to convention identifiers as synonym for CPP
14162 Add new standard names Stack and Builder_Switches
14163 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
14164 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
14165 Run_Path_Option, Toolchain_Version.
14166 Entry for pragma Unreferenced_Objects
14167
14168 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
14169 switches, without repetition of "eD". Make sure that last character of
14170 -gnatep= switch is not taken as -gnat switch character.
14171 Complete rewrite of circuit for handling saving compilation options
14172 Occasioned by need to support dot switchs for -gnatw, but cleans up
14173 things in general.
14174 -gnatX does not affect Ada_Version
14175 Include -gnatyA in -gnatg style switches
14176
14177 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
14178 warnings on return objects.
14179 (Warn_On_Useless_Assignment): Exclude warnings on return objects
14180 (Set_Dot_Warning_Switch): New procedure
14181 (Check_References): Add missing case of test for
14182 Has_Pragma_Unreferenced_Objects
14183 (Output_Unreferenced_Messages): Implement effect of new pragma
14184 Unreferenced_Objects, remove special casing of limited controlled
14185 variables.
14186
14187 2007-04-06 Vincent Celier <celier@adacore.com>
14188
14189 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
14190 the default project path, initially done during elaboration of the
14191 package.
14192 If the prefix returned by Sdefault is null, get the prefix from a call
14193 to Executable_Prefix_Path.
14194 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
14195 null.
14196
14197 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
14198 canonical directory name to open the directory from which files are
14199 retrieved.
14200 (Record_Other_Sources): Idem.
14201 (Locate_Directory): Add the possibility to create automatically missing
14202 directories when Setup_Projects is True.
14203 Call Locate_Directory so that the directory will be created when
14204 Setup_Projects is True, for object dir, library dir, library ALI dir,
14205 library source copy dir and exec dir.
14206
14207 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
14208 versions of GNAT.
14209
14210 2007-04-06 Robert Dewar <dewar@adacore.com>
14211
14212 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
14213 Use First/Next_Component_Or_Discriminant
14214 (Analyze_Record_Representation_Clause):
14215 Use First/Next_Component_Or_Discriminant
14216 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
14217 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
14218 definition if type is unconstrained.
14219 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14220 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
14221 Is_Abstract_Subprogram and Is_Abstract_Type.
14222 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14223
14224 * repinfo.adb (List_Record_Info): Use First/
14225 Next_Component_Or_Discriminant.
14226
14227 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
14228 New procedure.
14229
14230 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
14231 Include -gnatyA in default switches
14232
14233 * opt.ads: (Warn_On_Non_Local_Exception): New flag
14234 (Warn_On_Reverse_Bit_Order): New flag
14235 (Extensions_Allowed): Update the documentation.
14236 (Warn_On_Questionable_Missing_Parens): Now on by default
14237
14238 * usage.adb: Add documentation of -gnatw.x/X switches
14239 Document new -gnatyA style switch
14240 -gnatq warnings are on by default
14241
14242 2007-04-06 Ed Falis <falis@adacore.com>
14243
14244 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
14245 full word is no longer compared twice.
14246
14247 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14248
14249 * sem_ch10.adb (Install_Limited_Context_Clauses.
14250 Expand_Limited_With_Clause): Use a new copy of selector name in the
14251 call to Make_With_Clause. This fixes the tree structure for ASIS
14252 purposes. Nothing is changed in the compiler behaviour.
14253 (Process_Body_Clauses): Handle properly use clauses whose prefix is
14254 a package renaming.
14255 (Install_Limited_With_Clauses): Do not install non-limited view when it
14256 is still incomplete.
14257
14258 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14259 Gary Dismukes <dismukes@adacore.com>
14260
14261 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
14262 when capturing size information, instead of base type, which for a
14263 formal array type will be the unconstrained type.
14264 (Analyze_Formal_Object_Declaration): Add check for illegal default
14265 expressions for a formal in object of a limited type.
14266 (Instantiate_Object): Ditto.
14267 (Check_Formal_Package_Instance): Skip entities that are formal objects,
14268 because they were defaulted in the formal package and no check applies
14269 to them.
14270 (Check_Formal_Package_Instance): Extend conformance check to other
14271 discrete types beyond Integer.
14272 (Process_Default): Copy directly the unmatched formal. A generic copy
14273 has already been performed in Analyze_Formal_Package.
14274 (Analyze_Associations): If a formal subprogram has no match, check for
14275 partial parametrization before looking for a default, to prevent
14276 spurious errors.
14277 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
14278 not set the instantiation environment before analyzing the actuals.
14279 Fixes regression on 8515-003 with implementation of AI-133.
14280 Set_Instance_Env checks whether the generic unit is a predefined
14281 unit, in which case the instance must be analyzed with the latest Ada
14282 mode. This setting must take place after analysis of the actuals,
14283 because the actuals must be analyzed and frozen in the Ada mode extant
14284 outside of the current instantiation.
14285 (Save_Env, Restore_Env): Preserve and restore the configuration
14286 parameters so that predefined units can be compiled in the proper Ada
14287 mode.
14288 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
14289 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
14290 and Is_Abstract_Type.
14291 (Analyze_Formal_Package): For better error recovery, Add exception
14292 handler to catch Instantion_Error, which can be raised in
14293 Analyze_Associations
14294
14295 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14296 Bob Duff <duff@adacore.com>
14297 Gary Dismukes <dismukes@adacore.com>
14298
14299 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
14300 prefix type is a discriminated subtype of the type of the formal.
14301 (Analyze_Allocator): Collect all coextensions regardless of the context.
14302 Whether they can be allocated statically is determined in exp_ch4.
14303 (Analyze_Selected_Component): If the prefix is a limited view and the
14304 non-limited view is available, use the non-limited one.
14305 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
14306 therefore illegal), suggest a qualified expression rather than a type
14307 conversion, because a type conversion would be illegal in this context.
14308 (Anayze_Allocator): Trace recursively all nested allocators so that all
14309 coextensions are on the corresponding list for the root. Do no mark
14310 coextensions if the root allocator is within a declaration for a stack-
14311 allocated object, because the access discriminants will be allocated on
14312 the stack as well.
14313 (Analyze_Call): Remove restriction on calls to limited functions for the
14314 cases of generic actuals for formal objects, defaults for formal objects
14315 and defaults for record components.
14316 (Analyze_Allocator): Before analysis, chain coextensions on the proper
14317 element list. Their expansion is delayed until the enclosing allocator
14318 is processed and its finalization list constructed.
14319 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
14320 for an operation with the given name among the primitive operations of
14321 the corresponding record type.
14322 (Analyze_Selected_Component): If the prefix is a task type that
14323 implements an interface, and there is no entry with the given name,
14324 check whether there is another primitive operation (e.g. a function)
14325 with that name.
14326 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
14327 properly the indexing of a function call written in prefix form, where
14328 the function returns an array type, and all parameters of the function
14329 except the first have defaults.
14330 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
14331 the original operands, rather than relocating them, for efficiency and
14332 to work properly when an operand is overloaded.
14333 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
14334 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
14335 (Analyze_Selected_Component): If the prefix is a private extension, only
14336 scan the visible components, not those of the full view.
14337 (Try_Primitive_Operation): If the operation is a procedure, collect all
14338 possible interpretations, as for a function, because in the presence of
14339 classwide parameters several primitive operations of the type can match
14340 the given arguments.
14341
14342 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14343 Robert Dewar <dewar@adacore.com>
14344
14345 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
14346 tag-indeterminate call to an abstract function, when the left-hand side
14347 is not classwide.
14348 (Analyze_Loop_Statement): Improve detection of infinite loops
14349
14350 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14351 Thomas Quinot <quinot@adacore.com>
14352
14353 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
14354 out of Analyze_Package_Declaration, because processing must be applied
14355 to package bodies as well, for deferred constants completed by pragmas.
14356 (Analyze_Package_Declaration): When the package declaration being
14357 analyzed does not require an explicit body, call Check_Completion.
14358 (May_Need_Implicit_Body): An implicit body is required when a package
14359 spec contains the declaration of a remote access-to-classwide type.
14360 (Analyze_Package_Body): If the package contains RACWs, append the
14361 pending subprogram bodies generated by exp_dist at the end of the body.
14362 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
14363 Is_Abstract_Subprogram and Is_Abstract_Type.
14364 (Preserve_Full_Attributes): The full entity list is not an attribute
14365 that must be preserved from full to partial view.
14366
14367 * sem_dist.adb (Add_RAS_Dereference_TSS):
14368 Change primitive name to _Call so it cannot clash with any legal
14369 identifier, and be special-cased in Check_Completion.
14370 Mark the full view of the designated type for the RACW associated with
14371 a RAS as Comes_From_Source to get proper view switching when installing
14372 private declarations.
14373 Provite a placeholder nested package body along with the nested spec
14374 to have a place for Append_RACW_Bodies to generate the calling stubs
14375 and stream attributes.
14376
14377 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14378 Robert Dewar <dewar@adacore.com>
14379
14380 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
14381 that is a limited view, check the non-limited view if available.
14382 (Undefined): Refine error message for missing with of Text_IO
14383 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
14384 to distinguish real missing with cases.
14385 Fix format of all missing with messages
14386 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
14387 renaming as body when renamed entity is abstract.
14388
14389 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14390 Javier Miranda <miranda@adacore.com>
14391
14392 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
14393 predicate recursive, to handle complex expressions on literals whose
14394 spurious ambiguity comes from the abstract interpretation of some
14395 subexpression.
14396 (Interface_Present_In_Ancestor): Add support to concurrent record
14397 types.
14398 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
14399 Is_Abstract_Subprogram and Is_Abstract_Type.
14400
14401 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14402 Javier Miranda <miranda@adacore.com>
14403
14404 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
14405 dereference of a local object R created as a reference to another
14406 object O, use the access level of O.
14407 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
14408 rather than local Same_Formal_Type, to check whether protected operation
14409 overrides an inherited one.
14410 (Same_Formal_Type): New predicate, used when matching signatures of
14411 overriding synchronized operations, to handle the case when a formal
14412 has a type that is a generic actual.
14413 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
14414 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
14415 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
14416 syntactic ambiguities involving indexing of function calls that return
14417 arrays.
14418 (Abstract_Interface_List): New subprogram that returns the list of
14419 abstract interfaces associated with a concurrent type or a
14420 concurrent record type.
14421 (Interface_Present_In_Parent): New subprogram used to check if a
14422 given type or some of its parents implement a given interface.
14423 (Collect_Abstract_Interfaces): Add support for concurrent types
14424 with interface types.
14425 (Has_Abstract_Interfaces): Add support for concurrent types with
14426 interface types.
14427 (Is_Parent): New subprogram that determines whether E1 is a parent
14428 of E2. For a concurrent type its parent is the first element of its
14429 list of interface types; for other types this function provides the
14430 same result than Is_Ancestor.
14431 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
14432 (Collect_Synchronized_Interfaces): Removed because the subprogram
14433 Collect_Abstract_Interfaces provides this functionality.
14434 (Collect_Abstract_Interfaces): Minor update to give support to
14435 concurrent types and thus avoid undesired code duplication.
14436 (Get_Subprogram_Entity): Handle entry calls.
14437 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
14438 entry calls.
14439 (Enter_Name): Do not give -gnatwh hiding warning for record component
14440 entities, they never result in hiding.
14441
14442 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14443 Robert Dewar <dewar@adacore.com>
14444
14445 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
14446 to chain nested components that are allocators for access discriminants
14447 of the enclosing object.
14448 Add N_Push and N_Pop nodes
14449 New field Exception_Label added
14450 (Local_Raise_Statements): New field in N_Exception_Handler_Node
14451 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
14452 (Is_Coextension): New flag for allocators, to mark allocators that
14453 correspond to access discriminants of dynamically allocated objects.
14454 (N_Block_Statement): Document the fact that the corresponding entity
14455 can be an E_Return_Statement.
14456 (Is_Coextension): New flag for allocators.
14457 Remove all code for DSP option
14458
14459 * sprint.ads, sprint.adb: Display basic information for class_wide
14460 subtypes. Add handling of N_Push and N_Pop nodes
14461
14462 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14463
14464 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
14465 before propagating exception.
14466
14467 2007-04-06 Olivier Hainque <hainque@adacore.com>
14468
14469 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
14470 an address always within the call instruction from a return address.
14471
14472 2007-04-06 Olivier Hainque <hainque@adacore.com>
14473 Eric Botcazou <botcazou@adacore.com>
14474
14475 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
14476 expression with a COMPOUND_EXPR including the call instead of emitting
14477 the call directly here.
14478 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
14479 high bound is constant and the slice is empty. Tidy.
14480 (tree_transform, case N_Op_Not): Handle properly the case where the
14481 operation applies to a private type whose full view is a modular type.
14482 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
14483 Address_Clause, use the associated Expression as the GNAT tree
14484 representing the choice value to ensure the corresponding GCC tree is
14485 of the proper kind.
14486 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
14487 instead of just the operands, as the base GCC stabilize_reference does.
14488 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
14489 requested; otherwise fail.
14490 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
14491
14492 2007-04-06 Thomas Quinot <quinot@adacore.com>
14493
14494 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
14495 implementation of UI_Div.
14496 (UI_Div): Reimplement as a call to UI_Div_Rem.
14497 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
14498 remainder, avoiding the cost of a multiplication and a subtraction.
14499 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
14500 provides both quotient and remainder in a single computation.
14501 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
14502 functions for uint.
14503 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
14504 is undefined if the given n is not inversible.
14505
14506 2007-04-06 Olivier Hainque <hainque@adacore.com>
14507
14508 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
14509 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
14510 opcodes.
14511
14512 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14513 Olivier Hainque <hainque@adacore.com>
14514
14515 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
14516 when updating the contents of the old pointer to an unconstrained array.
14517 (end_subprog_body): Set error_gnat_node to Empty.
14518 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
14519 (unchecked_convert): For subtype to base type conversions, require that
14520 the source be a subtype if it is an integer type.
14521 (builtin_decls): New global, vector of available builtin functions.
14522 (gnat_pushdecl): Add global builtin function declaration nodes to the
14523 builtin_decls list.
14524 (gnat_install_builtins): Adjust comments.
14525 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
14526 calling gnat_pushdecl, so that it knows when it handed a builtin
14527 function declaration node.
14528 (builtin_decl_for): Search the builtin_decls list.
14529
14530 2007-04-06 Eric Botcazou <botcazou@adacore.com>
14531
14532 * s-stchop-vxworks.adb:
14533 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
14534
14535 2007-04-06 Robert Dewar <dewar@adacore.com>
14536 Arnaud Charlet <charlet@adacore.com>
14537
14538 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
14539
14540 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
14541 of files
14542 Add mention of -Sev (set initialize_scalars option from environment
14543 variable at run time) in gnatbind usage message.
14544
14545 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
14546
14547 * fname-uf.ads: Minor comment fix
14548
14549 * osint.ads: Change pragma Elaborate to Elaborate_All
14550
14551 * par-load.adb: Add documentation.
14552
14553 * sem_cat.ads, sem_cat.adb: Minor code reorganization
14554
14555 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
14556
14557 * s-secsta.ads: Extra comments
14558
14559 * s-soflin.ads: Minor comment fixes
14560
14561 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
14562
14563 * s-wchcon.ads: Minor comment addition
14564
14565 * treepr.adb: Minor change in message
14566 (Print_Name,Print_Node): Make these debug printouts more robust: print
14567 "no such..." instead of crashing on bad input.
14568
14569 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
14570
14571 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
14572 instead of gnat_signed_or_unsigned_type.
14573 * utils.c (gnat_signed_or_unsigned_type): Remove.
14574 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
14575 * gigi.h (gnat_signed_or_unsigned_type): Remove
14576
14577 2007-03-09 Roger Sayle <roger@eyesopen.com>
14578
14579 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
14580 fold with the result of buildN.
14581 * decl.c (gnat_to_gnu_entity): Likewise.
14582 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
14583 * utils.c (finish_record_type, merge_sizes, max_size, convert):
14584 Likewise.
14585 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
14586 nonbinary_modular_operation, build_binary_op, build_unary_op,
14587 build_cond_expr): Likewise.
14588
14589 * utils.c (convert): Use fold_build1 when casting values to void.
14590 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
14591 fold_convert instead of convert when appropriate.
14592
14593 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14594
14595 * Make-lang.in: Add install-pdf target as copied from
14596 automake v1.10 rules.
14597
14598 2007-02-28 Andreas Schwab <schwab@suse.de>
14599
14600 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
14601 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
14602 (doc/gnat-style.info): Likewise.
14603
14604 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
14605
14606 * gnat-style.texi: Standardize title page.
14607 * gnat_rm.texi: Likewise.
14608 * gnat_ugn.texi: Likewise.
14609
14610 2007-02-25 Mark Mitchell <mark@codesourcery.com>
14611
14612 * decl.c (annotate_value): Adjust for refactoring of tree_map
14613 hierarchy.
14614
14615 2007-02-24 Mark Mitchell <mark@codesourcery.com>
14616
14617 * decl.c (annotate_value): Adjust for refactoring of tree_map
14618 hierarchy.
14619
14620 2007-02-21 Ed Schonberg <schonberg@adacore.com>
14621
14622 PR ada/18819
14623 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
14624 untagged derived type, add hidden components to keep discriminant
14625 layout consistent, when a given discriminant of the derived type
14626 constraints several discriminants of the parent type.
14627
14628 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
14629 Sandra Loosemore <sandra@codesourcery.com>
14630
14631 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
14632 build the call expression.
14633 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
14634 * utils.c (max_size) <tcc_exceptional>: Delete.
14635 <tcc_vl_exp>: New case.
14636 <tcc_expression>: Delete CALL_EXPR subcase.
14637 (build_global_cdtor): Use build_call_nary instead of build3.
14638 * utils2.c (build_call_1_expr): Likewise.
14639 (build_call_2_expr): Likewise.
14640 (build_call_0_expr): Likewise.
14641 (build_call_alloc_dealloc): Likewise.
14642
14643 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14644
14645 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
14646 get_action_description_for): Replace _Unwind_Word with _uleb128_t
14647 and _Unwind_SWord with _sleb128_t.
14648
14649 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
14650
14651 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
14652 * decl.c: Include gt-ada-decl.h.
14653 (annotate_value_cache): New.
14654 (annotate_value): Use it instead of TREE_COMPLEXITY.
14655
14656 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
14657
14658 * misc.c, utils2.c: Fix comment typos.
14659
14660 2007-01-24 Roger Sayle <roger@eyesopen.com>
14661
14662 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
14663 TREE_CONSTANT_OVERFLOW.
14664 (allocatable_size_p, annotate_value): Likewise.
14665 * trans.c (gnat_to_gnu): Likewise.
14666 * utils.c (unchecked_convert): Likewise.
14667 * utils2.c (build_simple_component_ref): Likewise.
14668
14669 2007-01-23 Richard Guenther <rguenther@suse.de>
14670
14671 PR bootstrap/30541
14672 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
14673 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
14674 (gnatboot3): Likewise.
14675 (GNATBIND): Do not define.
14676 * Makefile.in (GNATBIND): Do not define.
14677
14678 2007-01-08 Richard Guenther <rguenther@suse.de>
14679
14680 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
14681 * trans.c (gnat_to_gnu): Likewise.
14682
14683 2006-12-07 Geoffrey Keating <geoffk@apple.com>
14684
14685 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
14686 * adaint.c: Likewise.
14687
14688 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
14689
14690 Merge from gimple-tuples-branch:
14691 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
14692
14693 * ada-tree.h (lang_tree_node): Handle gimple tuples.
14694 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
14695 GIMPLE_MODIFY_STMT.
14696
14697 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
14698
14699 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
14700 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
14701 Fix typos.
14702
14703 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
14704
14705 PR ada/27936
14706 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
14707 if the initializer takes into account the padding.
14708
14709 2006-11-11 Richard Guenther <rguenther@suse.de>
14710
14711 * trans.c (maybe_stabilize_reference): Remove handling of
14712 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
14713
14714 2006-11-05 Arnaud Charlet <charlet@adacore.com>
14715
14716 PR ada/29707
14717 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
14718 (To_Target_Priority): New function.
14719
14720 2006-10-31 Robert Dewar <dewar@adacore.com>
14721
14722 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
14723 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
14724 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
14725 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
14726 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
14727 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
14728 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
14729 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
14730 a-szbzha.adb: Minor reformatting. Fix header.
14731
14732 * a-numaux-x86.adb: Add parentheses for use of unary minus
14733 * a-ngcefu.adb: Supply missing parentheses for unary minus
14734 * a-ngcoty.adb: Add parens for use of unary minus
14735 * a-ngelfu.adb: Add missing parens for unary minus
14736 * a-tifiio.adb: Add parentheses for uses of unary minus
14737
14738 2006-10-31 Robert Dewar <dewar@adacore.com>
14739 Bob Duff <duff@adacore.com>
14740 Ed Schonberg <schonberg@adacore.com>
14741
14742 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
14743 with multiplying operator.
14744 (Expected_Type_Is_Any_Real): New function to determine from the Parent
14745 pointer whether the context expects "any real type".
14746 (Resolve_Arithmetic_Op): Do not give an error on calls to the
14747 universal_fixed "*" and "/" operators when they are used in a context
14748 that expects any real type. Also set the type of the node to
14749 Universal_Real in this case, because downstream processing requires it
14750 (mainly static expression evaluation).
14751 Reword some continuation messages
14752 Add some \\ sequences to continuation messages
14753 (Resolve_Call): Refine infinite recursion case. The test has been
14754 sharpened to eliminate some false positives.
14755 Check for Current_Task usage now includes entry barrier, and is now a
14756 warning, not an error.
14757 (Resolve): If the call is ambiguous, indicate whether an interpretation
14758 is an inherited operation.
14759 (Check_Aggr): When resolving aggregates, skip associations with a box,
14760 which are priori correct, and will be replaced by an actual default
14761 expression in the course of expansion.
14762 (Resolve_Type_Conversion): Add missing support for conversion from
14763 a class-wide interface to a tagged type. Minor code cleanup.
14764 (Valid_Tagged_Converion): Add support for abstact interface type
14765 conversions.
14766 (Resolve_Selected_Component): Call Generate_Reference here rather than
14767 during analysis, and use May_Be_Lvalue to distinguish read/write.
14768 (Valid_Array_Conversion): New procedure, abstracted from
14769 Valid_Conversion, to incorporate accessibility checks for arrays of
14770 anonymous access types.
14771 (Valid_Conversion): For a conversion to a numeric type occurring in an
14772 instance or inlined body, no need to check that the operand type is
14773 numeric, since this has been checked during analysis of the template.
14774 Remove legacy test for scope name Unchecked_Conversion.
14775
14776 * sem_res.ads: Minor reformatting
14777
14778 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
14779 (PE_Current_Task_In_Entry_Body): New exception code
14780 (SE_Restriction_Violation): Removed, not used
14781
14782 * a-except.ads: Update comments.
14783
14784 * types.h, types.ads: Add definition for Validity_Check
14785 (PE_Current_Task_In_Entry_Body): New exception code
14786 (SE_Restriction_Violation): Removed, not used
14787
14788 2006-10-31 Thomas Quinot <quinot@adacore.com>
14789
14790 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
14791 error status.
14792
14793 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
14794 Jose Ruiz <ruiz@adacore.com>
14795
14796 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
14797 part of Ada.Calendar: all subprogram raise Unimplemented.
14798 (Split_W_Offset): Temp function body, raising Unimplemented
14799
14800 * a-calend.ads, a-calend-vms.ads:
14801 Add imported variable Invalid_TZ_Offset used to designate targets unable
14802 to support time zones.
14803 (Unimplemented): Temporary function raised by the body of new
14804 subprograms below.
14805 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
14806 unit provides handling of leap seconds and is used by the new Ada 2005
14807 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
14808 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
14809 version returns an extra value which is the offset to UTC.
14810
14811 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
14812 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
14813 (Split_W_Offset): New function body.
14814 (Time_Of): When a date is close to UNIX epoch, compute the time for
14815 that date plus one day (that amount is later substracted after
14816 executing mktime) so there are no problems with time zone adjustments.
14817
14818 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
14819
14820 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
14821 a-catizo.ads, a-catizo.adb: New files.
14822
14823 * impunit.adb: Add new Ada 2005 entries
14824
14825 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
14826 Rename all occurences of "__gnat_localtime_r" to
14827 "__gnat_localtime_tzoff".
14828 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
14829 zone data and calculate the GMT offset.
14830 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
14831 Use the field "tm_gmtoff" to extract the GMT offset.
14832 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
14833 the external variable "timezone" to calculate the GMT offset.
14834
14835 2006-10-31 Arnaud Charlet <charlet@adacore.com>
14836 Jose Ruiz <ruiz@adacore.com>
14837
14838 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
14839 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
14840 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
14841 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
14842 System.Any_Priority to a POSIX priority on the target.
14843
14844 * system-linux-ia64.ads:
14845 Extend range of Priority types on Linux to use the whole range made
14846 available by the system.
14847
14848 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
14849 function maps from System.Any_Priority to a POSIX priority on the
14850 target.
14851 (PTHREAD_PRIO_PROTECT): Set real value.
14852 (PTHREAD_PRIO_INHERIT): Now a function.
14853 (SIGCPUFAIL): New signal.
14854 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
14855 are documented as reserved by the OS.
14856
14857 * system-aix.ads: Use the full range of priorities provided by the
14858 system on AIX.
14859
14860 * s-taprop-posix.adb: Call new function To_Target_Priority.
14861 (Set_Priority): Take into account Task_Dispatching_Policy and
14862 Priority_Specific_Dispatching pragmas when determining if Round Robin
14863 must be used for scheduling the task.
14864
14865 * system-linux-x86_64.ads, system-linux-x86.ads,
14866 system-linux-ppc.ads: Extend range of Priority types on Linux to use
14867 the whole range made available by the system.
14868
14869 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
14870 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
14871 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
14872 when deallocating the TCB in order to avoid potential references to
14873 deallocated data.
14874 (Set_Priority): Take into account Task_Dispatching_Policy and
14875 Priority_Specific_Dispatching pragmas when determining if Round Robin
14876 or FIFO within priorities must be used for scheduling the task.
14877
14878 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
14879 the Thread field (to be used internally by the run-time system) and the
14880 kernel-level task id in the LWP field (to be used by the debugger).
14881 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
14882 instance, and propagate the current task options to the spawned task.
14883 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
14884 (Initialize): Set Round Robin dispatching when the corresponding pragma
14885 is in effect.
14886
14887 2006-10-31 Robert Dewar <dewar@adacore.com>
14888
14889 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
14890 system-linux-hppa.ads, system-hpux-ia64.ads,
14891 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
14892 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
14893 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
14894 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
14895 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14896 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14897 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
14898 Default_Bit_Order) to kill constant condition warnings for references
14899 to this switch.
14900
14901 2006-10-31 Vincent Celier <celier@adacore.com>
14902 Eric Botcazou <ebotcazou@adacore.com>
14903
14904 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
14905 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
14906 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
14907 Ext_To, when building the library file name
14908
14909 * mlib-tgt-vxworks.adb: ditto.
14910 (Get_Target_Suffix): Add support for x86 targets.
14911
14912 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
14913
14914 * mlib-tgt-darwin.adb:
14915 Use Append_To, instead of Ext_To, when building the library file name
14916 (Flat_Namespace): New global variable.
14917 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
14918 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
14919 (Link_Shared_Libgcc): Delete.
14920 (Build_Dynamic_Library): Adjust for above changes.
14921 Use Opt package.
14922 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
14923
14924 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14925
14926 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
14927 (Initialize): Add type conversions required by above change.
14928
14929 2006-10-31 Jose Ruiz <ruiz@adacore.com>
14930
14931 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
14932 (getpid): New body for this function that uses the underlying taskIdSelf
14933 function for VxWorks 5 and VxWorks 6 in kernel mode.
14934 (unsigned_int): New type, modular to allow logical bit operations.
14935 (taskOptionsGet): New imported function.
14936
14937 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
14938 field to be compliant with the type used by the corresponding operating
14939 system primitive.
14940
14941 2006-10-31 Pascal Obry <obry@adacore.com>
14942 Eric Botcazou <ebotcazou@adacore.com>
14943 Vincent Celier <celier@adacore.com>
14944
14945 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
14946 ASCII version of the registry API. This is needed as the GNAT runtime
14947 is now UNICODE by default.
14948 Include version.h.
14949 (get_gcc_version): Do not hardcode the return value.
14950 (__gnat_file_time_name): On Windows properly set the default returned
14951 value to -1 which corresponds to Invalid_Time.
14952 (__gnat_fopen): New routine. A simple wrapper on all plateforms
14953 except on Windows where it does conversion for unicode support.
14954 (__gnat_freopen): Idem.
14955 (__gnat_locate_exec_on_path): If environment variable PATH does not
14956 exist, return a NULL pointer
14957
14958 * adaint.h: (__gnat_fopen): Declare.
14959 (__gnat_freopen): Likewise.
14960
14961 * mingw32.h (_tfreopen): Define this macro here for older MingW
14962 version.
14963 Activate the unicode support on platforms using a MingW runtime
14964 version 3.9 or newer.
14965
14966 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
14967 This is needed for proper unicode support on Windows.
14968 (freopen): Idem.
14969
14970 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
14971 Nicolas Setton <setton@adacore.com>
14972 Olivier Hainque <hainque@adacore.com>
14973 Gary Dismukes <dismukes@adacore.com>
14974
14975 * gigi.h: (tree_code_for_record_type): Declare.
14976 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
14977 (get_global_renaming_pointers): Rename to
14978 invalidate_global_renaming_pointers.
14979 (static_ctors): Delete.
14980 (static_dtors): Likewise.
14981 (gnat_write_global_declarations): Declare.
14982 (create_var_decl): Adjust descriptive comment to indicate that the
14983 subprogram may return a CONST_DECL node.
14984 (create_true_var_decl): Declare new function, similar to
14985 create_var_decl but forcing the creation of a VAR_DECL node.
14986 (get_global_renaming_pointers): Declare.
14987 (add_global_renaming_pointer): Likewise.
14988
14989 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
14990
14991 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
14992 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
14993 processing.
14994 (gnat_to_gnu_entity): Remove From_With_Type from computation for
14995 imported_p.
14996 <E_Access_Type>: Use the Non_Limited_View as the full view of the
14997 designated type if the pointer comes from a limited_with clause. Make
14998 incomplete designated type if it is in the main unit and has a freeze
14999 node.
15000 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15001 Underlying_Full_View similarly. Return earlier if the full view already
15002 has an associated tree.
15003 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15004 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15005 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15006 reference type built for objects with an address clause.
15007 Use create_true_var_decl with const_flag set for
15008 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15009 TREE_READONLY set.
15010 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15011 for Character and Wide_Character types. This info is read by the
15012 dwarf-2 writer, and is needed to be able to use the command "ptype
15013 character" in the debugger.
15014 (gnat_to_gnu_entity): When generating a type representing
15015 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15016 so that debug writers can distinguish it from ordinary integers.
15017 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15018 addition to TREE_READONLY to assert the constantness of variables for
15019 elaboration purposes.
15020 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15021 parameters to call new Einfo function First_Formal_With_Extras.
15022 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15023 protected type with its corresponding discriminant, to obtain a usable
15024 declaration
15025 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15026 for a multiple elaboration of the "equivalent" type.
15027 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15028 into record_global_renaming_pointer.
15029 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15030 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15031 <E_Array_Subtype>: Likewise.
15032 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15033 incomplete subtypes and incomplete subtypes of incomplete types visible
15034 through a limited with clause.
15035 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15036 the base index type for the maximum size of the array only if they are
15037 constant.
15038 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15039 expression into a SAVE_EXPR if stabilization failed.
15040
15041 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15042 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15043 by lower level compilation passes.
15044 (gnat_genericize): New function, lowering a function body to GENERIC.
15045 Turn the type of RESULT_DECL into a real reference type if the decl
15046 has been marked DECL_BY_REFERENCE, and adjust references to the latter
15047 accordingly.
15048 (gnat_genericize_r): New function. Tree walking callback for
15049 gnat_genericize.
15050 (convert_from_reference, is_byref_result): New functions. Helpers for
15051 gnat_genericize_r.
15052 (create_type_decl): Call gnat_pushdecl before calling
15053 rest_of_decl_compilation, to make sure that field TYPE_NAME of
15054 type_decl is properly set before calling the debug information writers.
15055 (write_record_type_debug_info): The heuristics which compute the
15056 alignment of a field in a variant record might not be accurate. Add a
15057 safety test to make sure no alignment is set to a smaller value than
15058 the alignment of the field type.
15059 (make_dummy_type): Use the Non_Limited_View as the underlying type if
15060 the type comes from a limited_with clause. Do not loop on the full view.
15061 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15062 (dummy_node_table): New global variable, moved from decl.c.
15063 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15064 (save_gnu_tree): Use above macros.
15065 (get_gnu_tree): Likewise.
15066 (present_gnu_tree): Likewise.
15067 (init_dummy_type): New function, moved from decl.c. Use above macros.
15068 (make_dummy_type): Likewise.
15069 (tree_code_for_record_type): New function extracted from make_dummy_type
15070 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
15071 (static_ctors): Change it to a vector, make static.
15072 (static_dtors): Likewise.
15073 (end_subprog_body): Adjust for above change.
15074 (build_global_cdtor): Moved from trans.c.
15075 (gnat_write_global_declarations): Emit global constructor and
15076 destructor, and call cgraph_optimize before emitting debug info for
15077 global declarations.
15078 (global_decls): New global variable.
15079 (gnat_pushdecl): Store the global declarations in global_decls, for
15080 later use.
15081 (gnat_write_global_declarations): Emit debug information for global
15082 declarations.
15083 (create_var_decl_1): Former create_var_decl, with an extra argument to
15084 state whether the creation of a CONST_DECL is allowed.
15085 (create_var_decl): Behavior unchanged. Now a wrapper around
15086 create_var_decl_1 allowing CONST_DECL creation.
15087 (create_true_var_decl): New function, similar to create_var_decl but
15088 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
15089 (create_field_decl): Do not always mark the field as addressable
15090 if its type is an aggregate.
15091 (global_renaming_pointers): New static variable.
15092 (add_global_renaming_pointer): New function.
15093 (get_global_renaming_pointers): Likewise.
15094
15095 * misc.c (gnat_dwarf_name): New function.
15096 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
15097 (gnat_post_options): Add comment about structural alias analysis.
15098 (gnat_parse_file): Do not call cgraph_optimize here.
15099 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
15100
15101 * trans.c (process_freeze_entity): Don't abort if we already have a
15102 non dummy GCC tree for a Concurrent_Record_Type, as it might
15103 legitimately have been elaborated while processing the associated
15104 Concurrent_Type prior to this explicit freeze node.
15105 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
15106 exception handler volatile if it is of variable size.
15107 (process_type): Remove bypass for types coming from a limited_with
15108 clause.
15109 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
15110 actual, convert the corresponding gnu_actual to the real destination
15111 type when necessary.
15112 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
15113 originally TREE_READONLY but whose elaboration cannot be performed
15114 statically.
15115 Part of fix for F504-021.
15116 (tree_transform, subprogram cases): Change loops on formal parameters to
15117 call new Einfo function First_Formal_With_Extras.
15118 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
15119 stemming from type conversion for the lhs.
15120 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
15121 number of bits per unit for components of records.
15122 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
15123 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
15124 with At_End_Proc after the SJLJ EH cleanup.
15125 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
15126 compilation unit.
15127 (elaborate_all_entities): Do not retest type_annotate_only.
15128 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
15129 result type of an abstract subprogram, which may be an itype associated
15130 with an anonymous access result (related to AI-318-02).
15131 (build_global_cdtor): Move to utils.c.
15132 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
15133 this choice is not a null tree nor an integer constant.
15134 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
15135 on the body of elaboration routines instead of mark_unvisited.
15136 (add_stmt): Do not mark the tree.
15137 (add_decl_expr): Tweak comment.
15138 (mark_unvisited): Delete.
15139 (unshare_save_expr): New static function.
15140 (call_to_gnu): Issue an error when making a temporary around a
15141 procedure call because of non-addressable actual parameter if the
15142 type of the formal is by_reference.
15143 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
15144 after building the elaboration routine.
15145
15146 2006-10-31 Bob Duff <duff@adacore.com>
15147
15148 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
15149 as finalization-started, so we can raise Program_Error on 'new'.
15150
15151 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
15152 collection has already started.
15153
15154 * s-finimp.ads (Collection_Finalization_Started): Added new special
15155 flag value for indicating that a collection's finalization has started.
15156
15157 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
15158 create a task whose master has already waited for dependent tasks.
15159
15160 2006-10-31 Robert Dewar <dewar@adacore.com>
15161
15162 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
15163
15164 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
15165 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
15166 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
15167 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
15168 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
15169 a-except-2005.ads: Add pragma Preelaborable_Warning
15170
15171 2006-10-31 Robert Dewar <dewar@adacore.com>
15172 Jose Ruiz <ruiz@adacore.com>
15173
15174 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
15175
15176 * ali.adb (Get_Name): Properly handle scanning of wide character names
15177 encoded with brackets notation.
15178 (Known_ALI_Lines): Add S lines to this list.
15179 (Scan_ALI): Acquire S (priority specific dispatching) lines.
15180 New flag Elaborate_All_Desirable in unit table
15181
15182 * ali.ads (Priority_Specific_Dispatching): Add this range of
15183 identifiers to be used for Priority_Specific_Dispatching table entries.
15184 (ALIs_Record): Add First_Specific_Dispatching and
15185 Last_Specific_Dispatching that point to the first and last entries
15186 respectively in the priority specific dispatching table for this unit.
15187 (Specific_Dispatching): Add this table for storing each S (priority
15188 specific dispatching) line encountered in the input ALI file.
15189 New flag Elaborate_All_Desirable in unit table
15190
15191 * bcheck.adb: (Check_Configuration_Consistency): Add call to
15192 Check_Consistent_Dispatching_Policy.
15193 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
15194 verifying that the use of Priority_Specific_Dispatching,
15195 Task_Dispatching_Policy, and Locking_Policy is consistent across the
15196 partition.
15197
15198 * bindgen.adb: (Public_Version_Warning): function removed.
15199 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
15200 required information from ALI files in order to initialize the table
15201 containing the specific dispatching policy.
15202 (Gen_Adainit_Ada): Generate the variables required for priority specific
15203 dispatching entries (__gl_priority_specific_dispatching and
15204 __gl_num_specific_dispatching).
15205 (Gen_Adainit_C): Generate the variables required for priority specific
15206 dispatching entries (__gl_priority_specific_dispatching and
15207 __gl_num_specific_dispatching).
15208 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
15209 pragma entries.
15210 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
15211 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
15212 (Tab_To): Removed.
15213 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
15214 a call to gnat_set_globals.
15215 Generate a string containing settings from
15216 Priority_Specific_Dispatching pragma entries.
15217 (Gen_Object_Files_Options): Do not include the runtime libraries when
15218 pragma No_Run_Time is specified.
15219
15220 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
15221 consistency with s-intman-posix.adb.
15222 (__gnat_error_handler, case FreeBSD): Account for the fact that the
15223 handler is installed with SA_SIGINFO.
15224 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
15225 FreeBSD ZCX support, copied from Linux version.
15226 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
15227 sigfillset, and sigemptyset so the routines defined by MaRTE.
15228 (__gl_priority_specific_dispatching): Add this variable that stores the
15229 string containing priority specific dispatching policies in the
15230 partition.
15231 (__gl_num_specific_dispatching): Add this variable that indicates the
15232 highest priority for which a priority specific dispatching pragma
15233 applies.
15234 (__gnat_get_specific_dispatching): Add this routine that returns the
15235 priority specific dispatching policy, as set by a
15236 Priority_Specific_Dispatching pragma appearing anywhere in the current
15237 partition. The input argument is the priority number, and the result
15238 is the upper case first character of the policy name.
15239 (__gnat_set_globals): Now a dummy function.
15240 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
15241 mechargs instead of sigargs, as the latter can be retrieved from the
15242 former and sigargs is not what we want on ia64.
15243 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
15244 mechargs argument.
15245 (__gnat_adjust_context_for_raise, ia64-vms): New function.
15246 (tasking_error): Remove unused symbol.
15247 (_abort_signal): Move this symbol to the IRIX specific part since this
15248 is the only target that uses this definition.
15249 (Check_Abort_Status): Move this symbol to the IRIX specific part since
15250 this is the only target that uses this definition.
15251 (Lock_Task): Remove unused symbol.
15252 (Unlock_Task): Remove unused symbol.
15253
15254 * lib-writ.adb (Write_ALI): Output new S lines for
15255 Priority_Specific_Dispatching pragmas.
15256 Implement new flag BD for elaborate body desirable
15257
15258 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
15259 (Specific_Dispatching): Add this table for storing the entries
15260 corresponding to Priority_Specific_Dispatching pragmas.
15261 Document new BD flag for elaborate body desirable
15262
15263 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
15264 of known pragmas.
15265
15266 2006-10-31 Javier Miranda <miranda@adacore.com>
15267
15268 * a-tags.ads, a-tags.adb:
15269 (Predefined_DT): New function that improves readability of the code.
15270 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
15271 Inherit_DT): Use the new function Predefined_DT to improve code
15272 readability.
15273 (Register_Interface_Tag): Update assertion.
15274 (Set_Interface_Table): Update assertion.
15275 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
15276 determining progenitor interfaces in Tags.
15277 (Inherit_CPP_DT): New subprogram.
15278
15279 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
15280 analysis of the thunk code.
15281 (Expand_Interface_Conversion): Handle run-time conversion of
15282 access to class wide types.
15283 (Expand_Dispatching_Call): When generating the profile for the
15284 subprogram itype for a dispatching operation, properly terminate the
15285 formal parameters chaind list (set the Next_Entity of the last formal
15286 to Empty).
15287 (Collect_All_Interfaces): Removed. This routine has been moved to
15288 sem_util and renamed as Collect_All_Abstract_Interfaces.
15289 (Set_All_DT_Position): Hidden entities associated with abstract
15290 interface primitives are not taken into account in the check for
15291 3.9.3(10); this check is done with the aliased entity.
15292 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
15293 interfacing with CPP by default.
15294 (Expand_Interface_Conversion): Add missing support for static conversion
15295 from an interface to a tagged type.
15296 (Collect_All_Interfaces): Add new out formal containing the list of
15297 abstract interface types to cleanup the subprogram Make_DT.
15298 (Make_DT): Update the code to generate the table of interfaces in case
15299 of abstract interface types.
15300 (Is_Predefined_Dispatching_Alias): New function that returns true if
15301 a primitive is not a predefined dispatching primitive but it is an
15302 alias of a predefined dispatching primitive.
15303 (Make_DT): If the ancestor of the type is a CPP_Class and we are
15304 compiling under full ABI compatibility mode we avoid the generation of
15305 calls to run-time services that fill the dispatch tables because under
15306 this mode we currently inherit the dispatch tables in the IP subprogram.
15307 (Write_DT): Emit an "is null" indication for a null procedure primitive.
15308 (Expand_Interface_Conversion): Use an address as the type of the formal
15309 of the internally built function that handles the case in which the
15310 target type is an access type.
15311
15312 2006-10-31 Robert Dewar <dewar@adacore.com>
15313
15314 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
15315
15316 2006-10-31 Robert Dewar <dewar@adacore.com>
15317
15318 * bindusg.ads, bindusg.adb:
15319 Change to package and rename procedure as Display, which
15320 now ensures that it only outputs usage information once.
15321
15322 2006-10-31 Jose Ruiz <ruiz@adacore.com>
15323
15324 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
15325 using RTPs.
15326
15327 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
15328 when using RTPs.
15329
15330 2006-10-31 Robert Dewar <dewar@adacore.com>
15331 Ed Schonberg <schonberg@adacore.com>
15332
15333 * treepr.adb: Use new subtype N_Membership_Test
15334
15335 * checks.ads, checks.adb: Add definition for Validity_Check
15336 (Range_Or_Validity_Checks_Suppressed): New function
15337 (Ensure_Valid): Test Validity_Check suppressed
15338 (Insert_Valid_Check): Test Validity_Check suppressed
15339 (Insert_Valid_Check): Preserve Do_Range_Check flag
15340 (Validity_Check_Range): New procedure
15341 (Expr_Known_Valid): Result of membership test is always valid
15342 (Selected_Range_Checks): Range checks cannot be applied to discriminants
15343 by themselves. Disabling those checks must also be done for task types,
15344 where discriminants may be used for the bounds of entry families.
15345 (Apply_Address_Clause_Check): Remove side-effects if address expression
15346 is non-static and is not the name of a declared constant.
15347 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
15348 Code cleanup and new error messages.
15349 (Enable_Range_Check): Test for some cases of suppressed checks
15350 (Generate_Index_Checks): Suppress index checks if index checks are
15351 suppressed for array object or array type.
15352 (Apply_Selected_Length_Checks): Give warning for compile-time detected
15353 length check failure, even if checks are off.
15354 (Ensure_Valid): Do not generate a check on an indexed component whose
15355 prefix is a packed boolean array.
15356 * checks.adb: (Alignment_Checks_Suppressed): New function
15357 (Apply_Address_Clause_Check): New procedure, this is a completely
15358 rewritten replacement for Apply_Alignment_Check
15359 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
15360 we request a discriminal value only in case of discriminants.
15361 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
15362 assignments where the target subtype is unconstrained and the target
15363 object is a parameter or dereference (other aliased cases are known
15364 to be unconstrained).
15365
15366 2006-10-31 Robert Dewar <dewar@adacore.com>
15367
15368 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
15369 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
15370 vms_conv.adb: Fix bad table increment values (much too small)
15371
15372 * table.adb (Realloc): Make sure we get at least some new elements
15373 Defends against silly small values for table increment
15374
15375 2006-10-31 Robert Dewar <dewar@adacore.com>
15376 Ed Schonberg <schonberg@adacore.com>
15377 Bob Duff <duff@adacore.com>
15378
15379 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
15380 entities. Move other fields around to make this possible
15381 (Is_Derived_Type): Add missing call to Is_Type.
15382 (Extra_Formals): New function for subprograms, entries, subprogram
15383 types.
15384 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
15385 (First_Formal_With_Extras): New function for subprogs, entries, subp
15386 types.
15387 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
15388 Add node information for E_Return_Statement.
15389 (Elaborate_Body_Desirable): New flag
15390 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
15391 to be Is_Inherently_Limited_Type, because return-by-reference has
15392 no meaning in Ada 2005.
15393 (E_Return_Statement): New entity kind.
15394 (Return_Applies_To): Field of E_Return_Statement.
15395 (Is_Return_Object): New flag in object entities.
15396 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
15397 (Must_Have_Preelab_Init): New flag
15398 (Known_To_Have_Preelab_Init): New flag
15399 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
15400 (Is_Visible_Formal): New flag on entities in formal packages.
15401 (Low_Bound_Known): New flag
15402 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
15403 Incomplete_Kind.
15404 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
15405 output when Id is an incomplete subtype.
15406
15407 2006-10-31 Robert Dewar <dewar@adacore.com>
15408
15409 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
15410 Avoid abbreviation Creat
15411 (Finalize): List all sources in extended mail source if -gnatl
15412 switch is active.
15413 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
15414 (Finalize): Implement new -gnatl=xxx switch to output listing to file
15415 (Set_Specific_Warning_On): New procedure
15416 (Set_Specific_Warning_Off): New procedure
15417 Add implementation of new insertion \\
15418 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
15419 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
15420 types.
15421 (Error_Msg_Internal): Make sure that we set Last_Killed to
15422 True when a message from another package is suppressed.
15423 Implement insertion character ~ (insert string)
15424 (First_Node): Minor adjustments to get better placement.
15425
15426 * frontend.adb:
15427 Implement new -gnatl=xxx switch to output listing to file
15428
15429 * gnat1drv.adb:
15430 Implement new -gnatl=xxx switch to output listing to file
15431
15432 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
15433 (Commands_To_Stdout): New flag
15434 Implement new -gnatl=xxx switch to output listing to file
15435 New switch Dump_Source_Text
15436 (Warn_On_Deleted_Code): New warning flag for -gnatwt
15437 Define Error_Msg_Line_Length
15438 (Warn_On_Assumed_Low_Bound): New switch
15439
15440 * osint.ads, osint.adb
15441 (Normalize_Directory_Name): Fix bug.
15442 Implement new -gnatl=xxx switch to output listing to file
15443 (Concat): Removed, replaced by real concatenation
15444 Make use of concatenation now allowed in compiler
15445 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
15446 we find the 'lib' or 'bin' directory even when the tool has been
15447 invoked with a relative path.
15448 (Executable_Name): New function taking string parameters.
15449
15450 * osint-c.ads, osint-c.adb:
15451 Implement new -gnatl=xxx switch to output listing to file
15452
15453 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
15454
15455 * switch-c.adb:
15456 Implement new -gnatl=xxx switch to output listing to file
15457 Recognize new -gnatL switch
15458 (no longer keep in old warning about old style usage)
15459 Use concatenation to simplify code
15460 Recognize -gnatjnn switch
15461 (Scan_Front_End_Switches): Clean up handling of -gnatW
15462 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
15463
15464 2006-10-31 Robert Dewar <dewar@adacore.com>
15465
15466 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
15467 (Set_Specific_Warning_Off): New procedure
15468 (Warning_Specifically_Suppressed): New function
15469 (Validate_Specific_Warnings): New procedure
15470 (Output_Msg_Text): Complete rewrite to support -gnatjnn
15471
15472 * err_vars.ads: Implement insertion character ~ (insert string)
15473
15474 2006-10-31 Bob Duff <duff@adacore.com>
15475 Ed Schonberg <schonberg@adacore.com>
15476
15477 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
15478 the parent part is a build-in-place function call, generate assignments.
15479 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
15480 are build-in-place function calls.
15481 (Replace_Self_Reference): New subsidiary of
15482 Make_OK_Assignment_Statement, to replace an access attribute that is a
15483 self-reference into an access to the appropriate component of the
15484 target object. Generalizes previous mechanism to handle self-references
15485 nested at any level.
15486 (Is_Self_Referential_Init): Remove, not needed.
15487 (Is_Self_Referential_Init): New predicate to simplify handling of self
15488 referential components in record aggregates.
15489 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
15490 check for presence of entity before checking for self-reference.
15491 (Has_Default_Init_Comps): Return True if a component association is a
15492 self-reference to the enclosing type, which can only come from a
15493 default initialization.
15494 (Make_OK_Assignment_Statement): If the expression is of the form
15495 Typ'Acc, where Acc is an access attribute, the expression comes from a
15496 default initialized self-referential component.
15497 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
15498 that has been derived from several abstract interfaces we must also
15499 initialize the tags of the secondary dispatch tables.
15500
15501 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15502 Thomas Quinot <quinot@adacore.com>
15503 Javier Miranda <miranda@adacore.com>
15504 Robert Dewar <dewar@adacore.com>
15505
15506 * exp_attr.adb:
15507 (Expand_Access_To_Protected_Op): If the context indicates that an access
15508 to a local operation may be transfered outside of the object, create an
15509 access to the wrapper operation that must be used in an external call.
15510 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
15511 target, pass the Valid attribute applied to a floating-point prefix on
15512 to the back end without expansion.
15513 (Storage_Size): Use the new run-time function Storage_Size to retrieve
15514 the allocated storage when it is specified by a per-object expression.
15515 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
15516 Nothing to do here, the attribute has been rewritten during semantic
15517 analysis.
15518 (Expand_Attribute_Reference): Handle expansion of the new Priority
15519 attribute
15520 (Find_Fat_Info): Handle case of universal real
15521 (Expand_Access_To_Protected_Op): Fix use of access to protected
15522 subprogram from inside the body of a protected entry.
15523 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
15524 'Access and 'Unrestricted_Access, to transform the attribute reference
15525 into a fat pointer.
15526 (Is_Constrained_Aliased_View): New predicate to help determine whether a
15527 subcomponent's enclosing variable is aliased with a constrained subtype.
15528 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
15529 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
15530 an aliased prefix must be known to be constrained in order to use True
15531 for the attribute value, and now it's possible for some aliased views
15532 to be unconstrained.
15533
15534 2006-10-31 Robert Dewar <dewar@adacore.com>
15535
15536 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
15537 (Expand_Entity_Reference): Correct error of not handling subprogram
15538 formals in current_value processing.
15539
15540 2006-10-31 Javier Miranda <miranda@adacore.com>
15541 Robert Dewar <dewar@adacore.com>
15542 Ed Schonberg <schonberg@adacore.com>
15543 Gary Dismukes <dismukes@adacore.com>
15544
15545 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
15546 register in the final list objects containing class-wide interfaces;
15547 otherwise we incorrectly register the tag of the interface in the final
15548 list.
15549 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
15550 generate the wrapper if the parent primitive is abstract. This is
15551 required to report the correct error message.
15552 (Expand_N_Subtype_Indication): Do validity checks on range
15553 (Clean_Task_Names): If an initialization procedure includes a call to
15554 initialize a task (sub)component, indicate that the procedure will use
15555 the secondary stack.
15556 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
15557 compatibility for interfacing with CPP by default.
15558 (Expand_N_Object_Declaration): Only build an Adjust call when the
15559 object's type is a nonlimited controlled type.
15560 * exp_ch3.adb: Add with and use of Exp_Ch6.
15561 (Expand_N_Object_Declaration): Check for object initialization that is a
15562 call to build-in-place function and apply Make_Build_In_Place_Call_In_
15563 Object_Declaration to the call.
15564 (Freeze_Type): When the designated type of an RACW was not frozen at the
15565 point where the RACW was declared, validate the primitive operations
15566 with respect to E.2.2(14) when it finally is frozen.
15567 (Build_Initialization_Call,Expand_Record_Controller): Rename
15568 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
15569 return-by-reference has no meaning in Ada 2005.
15570 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
15571 to register tag of the immediate ancestor interfaces in the
15572 run-time structure.
15573 (Init_Secondary_Tags): Moved to the specification to allow the
15574 initialization of extension aggregates with abstract interfaces.
15575 (Build_Master_Renaming): Make public, for use by function declarations
15576 whose return type is an anonymous access type.
15577 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
15578 Insert_List_Before_And_Analyze after the generation of the specs
15579 associated with null procedures.
15580 (Expand_Tagged_Root): Update documentation in its specification.
15581 (Init_Secondary_Tags): Update documentation.
15582 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
15583 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
15584 then generate code to inherit the contents of the dispatch table
15585 directly from the ancestor.
15586 (Expand_Record_Controller): Insert controller component after tags of
15587 implemented interfaces.
15588 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
15589 create null procedure overridings when null procedures are inherited
15590 from interfaces.
15591 (Make_Null_Procedure_Specs): New procedure to generate null procedure
15592 declarations for overriding null primitives inherited from interfaces.
15593 (Is_Null_Interface_Procedure): New function in
15594 Make_Null_Procedure_Specs.
15595 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
15596 immediate ancestor of a tagged type is an abstract interface type we
15597 must generate the specification of the predefined primitives associated
15598 with controlled types (because the dispatch table of the ancestor is
15599 null and hence these entries cannot be inherited). This is required to
15600 elaborate well the dispatch table.
15601
15602 2006-10-31 Javier Miranda <miranda@adacore.com>
15603 Ed Schonberg <schonberg@adacore.com>
15604 Bob Duff <duff@adacore.com>
15605 Gary Dismukes <dismukes@adacore.com>
15606 Robert Dewar <dewar@adacore.com>
15607
15608 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
15609 conversion.
15610 (Expand_N_In): Do validity checks on range
15611 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
15612 (Expand_N_Allocator): For "new T", if the object is constrained by
15613 discriminant defaults, allocate the right amount of memory, rather than
15614 the maximum for type T.
15615 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
15616 when the allocator is initialized by a build-in-place call, since the
15617 allocator is already rewritten as a reference to the function result,
15618 and this prevents an unwanted duplication of the function call.
15619 Add with and use of Exp_Ch6.
15620 (Expand_Allocator_Expresssion): Check for an allocator whose expression
15621 is a call to build-in-place function and apply
15622 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
15623 untagged designated types).
15624 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
15625 optimization if source or target is biased.
15626 (Expand_N_Allocator): Add comments for case of an allocator within a
15627 function that returns an anonymous access type designating tasks.
15628 (Expand_N_Allocator): apply discriminant checks for access
15629 discriminants of anonymous access types (AI-402, AI-416)
15630
15631 2006-10-31 Bob Duff <duff@adacore.com>
15632 Robert Dewar <dewar@adacore.com>
15633 Gary Dismukes <dismukes@adacore.com>
15634 Ed Schonberg <schonberg@adacore.com>
15635
15636 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
15637
15638 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
15639 (Expand_N_Assignment_Statement): Call
15640 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
15641 build-in-place function call. Currently, this can happen only for
15642 assignments that come from aggregates.
15643 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15644 in order to alleviate the upward compatibility introduced by AI-318.
15645 (Expand_N_Extended_Return_Statement): Add support for handling the
15646 return object as a build-in-place result.
15647 (Expand_Non_Function_Return): Implement simple return statements nested
15648 within an extended return.
15649 (Enable_New_Return_Processing): Turn on the new processing of return
15650 statements.
15651 (Expand_Non_Function_Return): For a return within an extended return,
15652 don't raise Program_Error, because Sem_Ch6 now gives a warning.
15653 (Expand_N_Extended_Return_Statement): Implement AI-318
15654 (Expand_Simple_Function_Return): Ditto.
15655 (Expand_N_If_Statement): Handle new -gnatwt warning
15656 (Expand_N_Case_Statement): Handle new -gnatwt warning
15657 (Expand_N_Assignment): Handle assignment to the Priority attribute of
15658 a protected object.
15659 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
15660 validity checking of assignments to elementary record components.
15661 (Expand_N_Return_Statement): return Class Wide types on the secondary
15662 stack independantly of their controlled status since with HIE runtimes,
15663 class wide types are not potentially controlled anymore.
15664
15665 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
15666 node kind.
15667
15668 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
15669 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
15670 it expects a block, procedure, or task. The return statement will get
15671 turned into a block, and Expand_Cleanup_Actions will happen then.
15672
15673 2006-10-31 Robert Dewar <dewar@adacore.com>
15674 Ed Schonberg <schonberg@adacore.com>
15675 Bob Duff <duff@adacore.com>
15676 Gary Dismukes <dismukes@adacore.com>
15677
15678 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
15679 capability.
15680 (Expand_Inlined_Call): Tagged types are by-reference types, and
15681 therefore should be replaced by a renaming declaration in the expanded
15682 body, as is done for limited types.
15683 (Expand_Call): If this is a call to a function with dispatching access
15684 result, propagate tag from context.
15685 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
15686 CPP by default.
15687 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
15688 build-in-place when the right-hand side of an assignment is a
15689 build-in-place function call.
15690 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
15691 of the explicit dereference of the allocator to the result subtype of
15692 the build-in-place function. This is needed to satisfy type checking
15693 in cases where the caller's return object is created by an allocator for
15694 a class-wide access type and the type named in the allocator is a
15695 specific type.
15696 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
15697 conversion of the reference to the declared object to the result subtype
15698 of the build-in-place function. This is needed to satisfy type checking
15699 in cases where the declared object has a class-wide type. Also, in the
15700 class-wide case, change the type of the object entity to the specific
15701 result subtype of the function, to avoid passing a class-wide object
15702 without explicit initialization to the back end.
15703 (Register_Interface_DT_Entry): Moved outside the body of
15704 Freeze_Subprogram because this routine is now public; it is called from
15705 Check_Dispatching_Overriding to handle late overriding of abstract
15706 interface primitives.
15707 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
15708 adding an implicit access actual on a call to a build-in-place function.
15709 (Expand_Actuals): Test for an actual parameter that is a call to a
15710 build-in-place function and apply
15711 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
15712 (Is_Build_In_Place_Function): New function to determine whether an
15713 entity is a function whose calls should be handled as build-in-place.
15714 (Is_Build_In_Place_Function_Call): New function to determine whether an
15715 expression is a function call that should handled as build-in-place.
15716 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
15717 calls to build-in-place functions as the initialization of an allocator.
15718 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
15719 handling calls to build-in-place functions in contexts that do not
15720 involve init of a separate object (for example, actuals of subprogram
15721 calls).
15722 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
15723 handling calls to build-in-place functions as the initialization of an
15724 object declaration.
15725 (Detect_Infinite_Recursion): Add explicit parameter Process to
15726 instantiation of Traverse_Body to avoid unreferenced warning.
15727 (Check_Overriding_Inherited_Interfaces): Removed.
15728 (Register_Interface_DT_Entry): Code cleanup.
15729 (Register_Predefined_DT_Entry): Code cleanup.
15730 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
15731 inlined statements if within a transient scope.
15732 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15733 formal parameters with occurrences of actuals in inlined body, establish
15734 visibility on the proper view of the actual's subtype for the body's
15735 context.
15736 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15737 compatibility mode and we have an imported CPP subprogram because
15738 for now we assume that imported CPP primitives correspond with
15739 objects whose constructor is in the CPP side (and therefore we
15740 don't need to generate code to register them in the dispatch table).
15741 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15742 aligned selected component.
15743 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15744 the actual of an in-mode parameter is a type conversion.
15745 (Expand_Actuals): If the call does not come from source and the actual
15746 is potentially misaligned, let gigi handle it rather than rejecting the
15747 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15748 Class Wide types as returning by reference independantly of their
15749 controlled status since with HIE runtimes class wide types are not
15750 potentially controlled anymore.
15751
15752 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15753
15754 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
15755 references that are private components of the protected object.
15756 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
15757 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
15758 instantiation to deal with warnings.
15759 (Initialize_Protection): If expression for priority is non-static, use
15760 System_Priority as its expected type, in case the expression has not
15761 been analyzed yet.
15762
15763 2006-10-31 Robert Dewar <dewar@adacore.com>
15764
15765 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
15766 initialization of Homonym_Len.
15767 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
15768 names from fully qualified name. Fixes problem of duplicate
15769 external names differing only in the presence of such a block name.
15770
15771 2006-10-31 Thomas Quinot <quinot@adacore.com>
15772 Pablo Oliveira <oliveira@adacore.com>
15773
15774 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
15775 subprogram Ids, even if they are not yet assigned.
15776 (Build_Subprogram_Id): It is now this function that will take care of
15777 calling Assign_Subprogram_Ids if necessary.
15778 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
15779 should be done only once they are assigned.
15780 (Build_From_Any_Function, case of tagged types): Add missing call to
15781 Allocate_Buffer.
15782 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
15783 type for an RACW type.
15784 (Add_RACW_Features): When processing an RACW declaration for which the
15785 designated type is already frozen, enforce E.2.2(14) rules immediately.
15786 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
15787 special reordering of controlling formals.
15788
15789 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
15790 associated stub type for an RACW type.
15791
15792 2006-10-31 Ed Schonberg <schonberg@adacore.com>
15793
15794 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
15795 fixed-point operations in an integer context, i.e. as operands of a
15796 conversion to an integer type, indicate that result must be rounded.
15797
15798 2006-10-31 Robert Dewar <dewar@adacore.com>
15799
15800 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
15801 cases, pass the encoding method, since it is now required by the run
15802 time.
15803
15804 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
15805 assumption that Str'First = 1.
15806 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
15807 it on to the Value_Wide_Wide_Character call.
15808 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
15809 properly handles a string of the form quote-encoded_wide_char-quote.
15810
15811 * s-wchcnv.adb: Minor reformatting
15812
15813 2006-10-31 Javier Miranda <miranda@adacore.com>
15814
15815 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
15816 run-time membership test to ensure that the constructed object
15817 implements the target abstract interface.
15818
15819 2006-10-31 Robert Dewar <dewar@adacore.com>
15820
15821 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
15822 Machine_Attribute pragma internally to implement the user pragma.
15823 Add processing for pragma Interface so that it is now completely
15824 equivalent to pragma Import.
15825
15826 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
15827 so that it can be applied to all entities, including record components
15828 and enumeration literals.
15829 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
15830 priority ranges are correct, verify compatibility against task
15831 dispatching and locking policies, and if everything is correct an entry
15832 is added to the table containing priority specific dispatching entries
15833 for this compilation unit.
15834 (Delay_Config_Pragma_Analyze): Delay processing
15835 Priority_Specific_Dispatching pragmas because when processing the
15836 pragma we need to access run-time data, such as the range of
15837 System.Any_Priority.
15838 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
15839 Allow pragma Unreferenced as a context item
15840 Add pragma Preelaborable_Initialization
15841 (Analyze_Pragma, case Interface): Interface is extended so that it is
15842 now syntactically and semantically equivalent to Import.
15843 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
15844 insertion characters.
15845 Add handling for Pragma_Wide_Character_Encoding
15846 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
15847 never supercedes a real restriction, and that a real restriction
15848 always supercedes a warning.
15849 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
15850 appropriate form.
15851
15852 2006-10-31 Bob Duff <duff@adacore.com>
15853 Ed Schonberg <schonberg@adacore.com>
15854 Robert Dewar <dewar@adacore.com>
15855
15856 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
15857 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
15858 Is_Inherently_Limited_Type, because return-by-reference has no meaning
15859 in Ada 2005.
15860 (Find_Node_To_Be_Wrapped): Use new method of determining the result
15861 type of the function containing a return statement, because the
15862 Return_Type field was removed. We now use the Return_Applies_To field.
15863
15864 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
15865 (Build_Task_Image_Decl): If procedure is not called from an
15866 initialization procedure, indicate that function that builds task name
15867 uses the sec. stack. Otherwise the enclosing initialization procedure
15868 will carry the indication.
15869 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
15870 N_Object_Declaration instead.
15871 (Kill_Dead_Code): New interface to implement -gnatwt warning for
15872 conditional dead code killed, and change implementation accordingly.
15873 (Insert_Actions): Add N_Return_Object_Declaration case.
15874 Correct comment to mention N_Extension_Aggregate node.
15875 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
15876 attempts to save information for global variables which cannot be
15877 safely tracked.
15878 (Get_Current_Value_Condition): Handle conditions the other way round
15879 (constant on left). Also handle right operand of AND and AND THEN
15880 (Set_Current_Value_Condition): Corresponding changes
15881 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
15882 (Get_Current_Value_Condition): Handle simple boolean operands
15883 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
15884 (Get_Current_Value_Condition): If the variable reference is within an
15885 if-statement, does not appear in the list of then_statments, and does
15886 not come from source, treat it as being at unknown location.
15887 (Get_Current_Value_Condition): Enhance to allow while statements to be
15888 processed as well as if statements.
15889 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
15890 come from source.
15891 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
15892 of loop. This is safe now that we fixed Kill_Current_Values.
15893 (OK_To_Do_Constant_Replacement): Check whether current scope is
15894 Standard, before examining outer scopes.
15895
15896 2006-10-31 Vincent Celier <celier@adacore.com>
15897
15898 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
15899 When True, apply VMS treatment to children of packages A, G, I and S.
15900 For F320-016
15901
15902 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
15903
15904 2006-10-31 Robert Dewar <dewar@adacore.com>
15905 Ed Schonberg <schonberg@adacore.com>
15906
15907 * freeze.adb: Add handling of Last_Assignment field
15908 (Warn_Overlay): Supply missing continuation marks in error msgs
15909 (Freeze_Entity): Add check for Preelaborable_Initialization
15910
15911 * g-comlin.adb: Add Warnings (Off) to prevent new warning
15912
15913 * g-expect.adb: Add Warnings (Off) to prevent new warning
15914
15915 * lib-xref.adb: Add handling of Last_Assignment field
15916 (Generate_Reference): Centralize handling of pragma Obsolescent here
15917 (Generate_Reference): Accept an implicit reference generated for a
15918 default in an instance.
15919 (Generate_Reference): Accept a reference for a node that is not in the
15920 main unit, if it is the generic body corresponding to an subprogram
15921 instantiation.
15922
15923 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
15924
15925 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
15926 -gnatwq/Q.
15927 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
15928 exception handler.
15929 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
15930 use clauses, to avoid messages on packages used to qualify, and also
15931 to avoid messages from obsolescent units.
15932 (Warn_On_Useless_Assignments): Don't generate messages for imported
15933 and exported variables.
15934 (Warn_On_Useless_Assignments): New procedure
15935 (Output_Obsolescent_Entity_Warnings): New procedure
15936 (Check_Code_Statement): New procedure
15937
15938 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
15939 Change name Is_Ada_2005 to Is_Ada_2005_Only
15940 (Last_Assignment): New field for useless assignment warning
15941
15942 2006-10-31 Olivier Hainque <hainque@adacore.com>
15943
15944 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
15945 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
15946
15947 2006-10-31 Bob Duff <duff@adacore.com>
15948 Robert Dewar <dewar@adacore.com>
15949 Ed Schonberg <schonberg@adacore.com>
15950
15951 * g-awk.adb (Default_Session, Current_Session): Compile this file in
15952 Ada 95 mode, because it violates the new rules for AI-318.
15953
15954 * g-awk.ads: Use overloaded subprograms in every case where we used to
15955 have a default of Current_Session. This makes the code closer to be
15956 correct for both Ada 95 and 2005.
15957
15958 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
15959 code, relying on the fact that the compiler generates a warning
15960 instead of an error in -gnatg mode.
15961
15962 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
15963 E_Return_Statement entity kind.
15964 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
15965
15966 * par.adb (P_Interface_Type_Definition): Addition of one formal to
15967 report an error if the reserved word abstract has been previously found.
15968 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
15969
15970 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
15971 parenthesized range attribute usage
15972 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
15973
15974 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
15975 in the syntax for extended_return_statement. This is not in the latest
15976 RM, but the ARG is expected to issue an AI allowing this.
15977 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
15978 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
15979 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
15980 P_Return_Statement): Parse the new syntax for extended_return_statement.
15981
15982 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
15983 Output_End_Missing): Add error-recovery code for the new
15984 extended_return_statement syntax; that is, the new E_Return entry on
15985 the scope stack.
15986
15987 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
15988 limited to nonlimited, because otherwise we violate the new Ada 2005
15989 rules about returning limited types in function Create_AST_Handler in
15990 s-asthan.adb.
15991
15992 * sem.adb (Analyze): Add cases for new node kinds
15993 N_Extended_Return_Statement and N_Return_Object_Declaration.
15994
15995 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
15996 type is in the same category as type of context before applying check,
15997 to prevent anomalies in instantiations.
15998 (Resolve_Aggregate): Remove test for limited components in aggregates.
15999 It's unnecessary in Ada 95, because if it has limited components, then
16000 it must be limited. It's wrong in Ada 2005, because limited aggregates
16001 are now allowed.
16002 (Resolve_Record_Aggregate): Move check for limited types later, because
16003 OK_For_Limited_Init requires its argument to have been resolved.
16004 (Get_Value): When copying the component default expression for a
16005 defaulted association in an aggregate, use the sloc of the aggregate
16006 and not that of the original expression, to prevent spurious
16007 elaboration errors, when the expression includes function calls.
16008 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16009 were missing. We also didn't handle qualified expressions. Now also
16010 allow function calls. Use new common routine OK_For_Limited_Init.
16011 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16012 with space can upper case letter).
16013
16014 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
16015 Has_Static_Discriminants flag
16016 (Record_Type_Declaration): Diagnose an attempt to declare an interface
16017 type with discriminants.
16018 (Process_Range_Expr_In_Decl): Do validity checks on range
16019 (Build_Discriminant_Constraints): Use updated form of
16020 Denotes_Discriminant.
16021 (Process_Subtype): If the subtype is a private subtype whose full view
16022 is a concurrent subtype, introduce an itype reference to prevent scope
16023 anomalies in gigi.
16024 (Build_Derived_Record_Type, Collect_Interface_Primitives,
16025 Record_Type_Declaration): The functionality of the subprograms
16026 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16027 is now performed by a single routine.
16028 (Build_Derived_Record_Type): If the type definition includes an explicit
16029 indication of limitedness, then the type must be marked as limited here
16030 to ensure that any access discriminants will not be treated as having
16031 a local anonymous access type.
16032 (Check_Abstract_Overriding): Issue a detailed error message when an
16033 abstract subprogram was not overridden due to incorrect mode of its
16034 first parameter.
16035 (Analyze_Private_Extension_Declaration): Add support for the analysis of
16036 synchronized private extension declarations. Verify that the ancestor is
16037 a limited or synchronized interface or in the generic case, the ancestor
16038 is a tagged limited type or synchronized interface and all progenitors
16039 are either limited or synchronized interfaces.
16040 Derived_Type_Declaration): Check for presence of private extension when
16041 dealing with synchronized formal derived types.
16042 Process_Full_View): Enchance the check done on the usage of "limited" by
16043 testing whether the private view is synchronized.
16044 Verify that a synchronized private view is completed by a protected or
16045 task type.
16046 (OK_For_Limited_Init_In_05): New function.
16047 (Analyze_Object_Declaration): Move check for limited types later,
16048 because OK_For_Limited_Init requires its argument to have been resolved.
16049 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16050 in order to alleviate the upward compatibility introduced by AI-318.
16051 (Constrain_Corresponding_Record): If the constraint is for a component
16052 subtype, mark the itype as frozen, to avoid out-of-scope references to
16053 discriminants in the back-end.
16054 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16055 this subprogram against wrong sources.
16056 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16057 discriminant of limited type completed with a protected type, when the
16058 discriminant is used to constrain a private component of the type, and
16059 expansion is disabled.
16060 (Find_Type_Of_Object): Do not treat a return subtype that is an
16061 anonymous subtype as a local_anonymous_type, because its accessibility
16062 level is the return type of the enclosing function.
16063 (Check_Initialization): In -gnatg mode, turn the error "cannot
16064 initialize entities of limited type" into a warning.
16065 (OK_For_Limited_Init): Return true for generated nodes, since it
16066 sometimes violates the legality rules.
16067 (Make_Incomplete_Declaration): If the type for which an incomplete
16068 declaration is created happens to be the currently visible entity,
16069 preserve the homonym chain when removing it from visibility.
16070 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
16071 inherited subprograms.
16072 (Access_Definition): If this is an access to function that is the return
16073 type of an access_to_function definition, context is a type declaration
16074 and the scope of the anonymous type is the current one.
16075 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
16076 incomplete subtype to the set of private dependents of the original
16077 incomplete type.
16078 (Constrain_Discriminated_Type): Emit an error message whenever an
16079 incomplete subtype is being constrained.
16080 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
16081 corresponding subtype of the full view of the original incomplete type.
16082 (Check_Incomplete): Properly detect invalid usage of incomplete types
16083 and subtypes.
16084
16085 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16086
16087 * g-catiio.ads, g-catiio.adb (Value): New function.
16088 Given an input String, try and parse a valid Time value.
16089
16090 2006-10-31 Vincent Celier <celier@adacore.com>
16091
16092 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
16093 Integer_Address arithmetic, as in Set_Valid.
16094
16095 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16096 Robert Dewar <dewar@adacore.com>
16097
16098 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
16099 handling executable extension manually and duplicating code.
16100
16101 * make.adb: Implement new -S switch
16102 (Gnatmake): Use new function Osint.Executable_Name instead
16103 of handling executable extension manually.
16104
16105 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
16106 is specified, the executable name ends with this suffix.
16107 Take advantage of Osint.Executable_Name instead of duplicating code.
16108
16109 * switch-m.adb: Recognize new gnatmake -S switch
16110
16111 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
16112 variable.
16113 (Get_Target_Parameters): Set Executable_Extension_On_Target if
16114 available.
16115
16116 * makeusg.adb: Add line for gnatmake -S switch
16117
16118 2006-10-31 Vincent Celier <celier@adacore.com>
16119
16120 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
16121 call it with -static-libgcc, as there are some platforms, such as
16122 Darwin, where one of these two switches is compulsory to link.
16123
16124 2006-10-31 Vincent Celier <celier@adacore.com>
16125
16126 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
16127 instead of ADA_PROJECT_PATH, for the project path.
16128 (Gnatls): When displaying the project path directories, use host dir
16129 specs.
16130
16131 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
16132 names in the project path, as absolute paths may correspond to
16133 multi-valued VMS logical names.
16134
16135 2006-10-31 Vincent Celier <celier@adacore.com>
16136
16137 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
16138 absolute path name.
16139 (Locate_Regular_File): Ditto
16140 (Change_Dir): Remove, no longer used
16141 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
16142 on Windows. Get it calling Get_Current_Dir.
16143 (OpenVMS): Remove imported boolean, no longer needed.
16144 (Normalize_Pathname)[VMS]: Do not resolve directory names.
16145 (Pid_To_Integer): New function to convert a Process_Id to Integer
16146
16147 2006-10-31 Thomas Quinot <quinot@adacore.com>
16148
16149 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
16150 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
16151 to No_Socket.
16152 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
16153 W_Sig_Socket.
16154
16155 2006-10-31 Robert Dewar <dewar@adacore.com>
16156
16157 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
16158 initial letter o as a zero.
16159
16160 2006-10-31 Robert Dewar <dewar@adacore.com>
16161
16162 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
16163
16164 2006-10-31 Robert Dewar <dewar@adacore.com>
16165
16166 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
16167 variant records
16168 (Layout_Variant_Record): Retrieve the discriminants from the entity
16169 rather than from the type definition, because in the case of a full
16170 type for a private type we need to take the discriminants from the
16171 partial view.
16172 (Layout_Component_List): When applying the Max operator to variants with
16173 a nonstatic size, check whether either operand is static and scale that
16174 operand from bits to storage units before applying Max.
16175 (Layout_Type): In VMS, if a C-convention access type has no explicit
16176 size clause (and does not inherit one in the case of a derived type),
16177 then the size is reset to 32 from 64.
16178
16179 2006-10-31 Vincent Celier <celier@adacore.com>
16180
16181 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
16182 its file has already been loaded, according to the unit being loaded,
16183 not to the current value of Multiple_Unit_Index.
16184
16185 2006-10-31 Thomas Quinot <quinot@adacore.com>
16186 Eric Botcazou <ebotcazou@adacore.com>
16187 Arnaud Charlet <charlet@adacore.com>
16188
16189 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
16190 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
16191 possible.
16192 (a-except.o): Pass it to the compiler.
16193 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
16194 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
16195 a-calend-mingw.adb version.
16196
16197 * Makefile.rtl: Added s-dsaser.
16198 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
16199 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
16200 Ada.Dispatching.Round_Robin.
16201 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
16202
16203 * Make-lang.in: Remove all references to gt-ada-decl.h.
16204 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
16205 sources.
16206 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
16207 Update dependencies.
16208
16209 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
16210
16211 2006-10-31 Vincent Celier <celier@adacore.com>
16212
16213 * mlib-utl.adb (Initialized): Remove, no longer used
16214 (Initialize): Remove, no longer used
16215 (Ar): If Ar_Exec is null, get the location of the archive builder and,
16216 if there is one, the archive indexer. Fail if the archive builder cannot
16217 be found.
16218 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
16219 be found.
16220
16221 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16222
16223 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
16224 Process_Body_Clauses): If the context of a body includes a use clause
16225 for P.Q then a with_clause for P in the same body is not redundant,
16226 even if the spec also has a with_clause on P.
16227 Add missing continuation mark to error msg
16228 (Build_Limited_Views): A limited view of a type is tagged if its
16229 declaration includes a record extension.
16230 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
16231 node, even if the subunit has errors. This avoids malfunction by
16232 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
16233 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
16234 generation of obsolescent messages for with statements (cannot do
16235 this too early, or we cannot implement avoiding the messages in the
16236 case of obsolescent units withing obsolescent units).
16237 (Install_Siblings): If the with_clause is on a remote descendant of
16238 an ancestor of the current compilation unit, find whether there is
16239 a sibling child unit that is immediately visible.
16240 (Remove_Private_With_Clauses): New procedure, invoked after completing
16241 the analysis of the private part of a nested package, to remove from
16242 visibility the private with_clauses of the enclosing package
16243 declaration.
16244 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
16245 now centralized in Generate_Reference.
16246 (Install_Limited_Context_Clauses): Remove superfluous error
16247 message associated with unlimited view visible through use
16248 and renamings. In addition, at the point in which the error
16249 is reported, we add the backslash to the text of the error
16250 to ensure that it is reported as a single error message.
16251 Use new // insertion for some continuation messages
16252 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
16253 to create implicit with_clause for parent unit mentioned in original
16254 limited_with_clause.
16255 (Install_Limited_With_Unit): Set entity of parent identifiers if the
16256 unit is a child unit. For ASIS queries.
16257 (Analyze_Subunit): If the subunit appears within a child unit, make all
16258 ancestor child units directly visible again.
16259
16260 2006-10-31 Robert Dewar <dewar@adacore.com>
16261
16262 * par-ch10.adb (P_Context_Clause): Minor error message fix
16263
16264 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16265 Javier Miranda <miranda@adacore.com>
16266
16267 * par-ch12.adb: Grammar update and cleanup.
16268 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
16269 support for synchronized derived type definitions.
16270 Add the new actual Abstract_Present to every call to
16271 P_Interface_Type_Definition.
16272 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
16273 a formal object declaration with an access definition or a subtype mark
16274 with a null exclusion.
16275 (P_Generic_Association): Handle association with box, and others_choice
16276 with box, to support Ada 2005 partially parametrized formal packages.
16277
16278 2006-10-31 Robert Dewar <dewar@adacore.com>
16279 Javier Miranda <miranda@adacore.com>
16280
16281 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
16282 (P_Type_Declaration): Remove barrier against the reserved word "limited"
16283 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
16284 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
16285 private extensions.
16286 (P_Type_Declaration): Add the new actual Abstract_Present to every call
16287 to P_Interface_Type_Definition.
16288 (P_Interface_Type_Definition): Addition of one formal to report an error
16289 if the reserved word abstract has been previously found.
16290 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
16291 object renaming declaration with an access definition or subtype mark
16292 with a possible null exclusion.
16293
16294 * par-ch9.adb: Minor error msg fix
16295
16296 * par-load.adb: Add missing continuation mark to error msg
16297
16298 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
16299
16300 2006-10-31 Vincent Celier <celier@adacore.com>
16301
16302 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
16303 unknown attribute in unknown package or in package that does not need
16304 to be checked.
16305 (Parse_Package_Declaration): Do not issue warning for unknown package in
16306 quiet output.
16307
16308 2006-10-31 Vincent Celier <celier@adacore.com>
16309
16310 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
16311 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
16312 Packages_To_Check.
16313
16314 2006-10-31 Vincent Celier <celier@adacore.com>
16315
16316 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
16317 on VMS, change "__" to '.' before checking the name.
16318 (Record_Ada_Source): Always add the source file name in the list of
16319 of sources, even if it is not the first time, as it is for another
16320 source index.
16321 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
16322 dot, instead of replacing only the first '_'.
16323
16324 * prj-part.adb (Parse): Convert project file path to canonical form
16325
16326 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
16327 extended, the project id of the project extending it is recorded in its
16328 data, even when it has already been processed as an imported project.
16329
16330 2006-10-31 Robert Dewar <dewar@adacore.com>
16331
16332 * repinfo.adb (List_Entities): Don't list entities from renaming
16333 declarations.
16334
16335 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16336 Robert Dewar <dewar@adacore.com>
16337
16338 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
16339 only a restriction warning is active for the given restriction. This is
16340 desirable because we do not want to modify code in the case where only
16341 a warning is set.
16342 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
16343 causes overriding of real restrictions.
16344 Take advantage of new No_Restrictions constant.
16345
16346 * raise.h: (__gnat_set_globals): Change profile.
16347
16348 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16349
16350 * rtsfind.adb: Remove s-polint from comment as it exists no more.
16351
16352 * rtsfind.ads:
16353 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
16354 Move all the entities in obsolete package System.PolyORB_Interface to
16355 System.Partition_Interface.
16356 (RE_Storage_Size): New function in System.Tasking.
16357 (RE_Get_Ceiling): New entity.
16358 (RE_Set_Ceiling): New entity.
16359 (RO_PE_Get_Ceiling): New entity.
16360 (RO_RE_Set_Ceiling): New entity.
16361 (Inherit_CPP_DT): New entity
16362
16363 2006-10-31 Robert Dewar <dewar@adacore.com>
16364
16365 * scng.adb (Scan, case of numeric literal): Better msg for identifier
16366 starting with a digit.
16367
16368 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16369 Thomas Quinot <quinot@adacore.com>
16370 Javier Miranda <miranda@adacore.com>
16371 Gary Dismukes <dismukes@adacore.com>
16372
16373 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
16374 properly an attempt to apply Unchecked_Access to a protected operation.
16375 (OK_Self_Reference): New subprogram to check the legality of an access
16376 attribute whose prefix is the type of an enclosing aggregate.
16377 Generalizes previous mechanism to handle attribute references nested
16378 arbitrarily deep within the aggregate.
16379 (Analyze_Access_Attribute): An access attribute whose prefix is a type
16380 can appear in an aggregate if this is a default-initialized aggregate
16381 for a self-referential type.
16382 (Resolve_Attribute, case Access): Ditto.
16383 Add support for new implementation defined attribute Stub_Type.
16384 (Eval_Attribute, case Attribute_Stub_Type): New case.
16385 (Analyze_Attribute, case Attribute_Stub_Type): New case.
16386 (Stream_Attribute_Available): Implement using new subprogram from
16387 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
16388 Has_Specified_Stream_Attribute flag.
16389 Disallow Storage_Size and Storage_Pool for access to subprogram
16390 (Resolve_Attribute, case 'Access et al): Take into account anonymous
16391 access types of return subtypes in extended return statements. Remove
16392 accessibility checks on anonymous access types when Unchecked_Access is
16393 used.
16394 (Analyze_Attribute): Add support for the use of 'Class to convert
16395 a class-wide interface to a tagged type.
16396 Add support for the attribute Priority.
16397 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
16398 whether the designated type is discriminated with a constrained partial
16399 view and require static matching in that case.
16400 Add local variable Des_Btyp. The Designated_Type
16401 of an access to incomplete subtype is either its non-limited view if
16402 coming from a limited with or its etype if regular incomplete subtype.
16403
16404 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
16405 Fix predicate to identify and allow cases of (expander-generated)
16406 references to tag of designated object of a RACW.
16407 (Validate_Static_Object_Name): In Ada 2005, a formal object is
16408 non-static, and therefore cannot appear as a primary in a preelaborable
16409 package.
16410 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
16411 Has_Read_Write_Attributes.
16412 (Has_Read_Write_Attributes): Reimplement in termes of
16413 Has_Stream_Attribute_Definition.
16414 (Missing_Read_Write_Attributes): When checking component types in a
16415 record, unconditionally call Missing_Read_Write_Attributes recursively
16416 (remove guard checking for Is_Record_Type / Is_Access_Type).
16417
16418 2006-10-31 Robert Dewar <dewar@adacore.com>
16419
16420 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
16421 useless assignments here and conditionalize it on absence of exception
16422 handlers.
16423 (Analyze_Exception_Handlers): Small code reorganization of error
16424 detection code, for new handling of formal packages.
16425
16426 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16427 Hristian Kirtchev <kirtchev@adacore.com>
16428
16429 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
16430 that has been constant-folded, preserve information of original tree,
16431 for ASIS uses.
16432 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
16433 generated private extension declaration if the formal derived type is
16434 synchronized. Carry synchronized present over to the generated private
16435 extension.
16436 (Validate_Derived_Type_Instance): Ensure that the actual of a
16437 synchronized formal derived type is a synchronized tagged type.
16438 (Instantiate_Formal_Package): When creating the instantiation used to
16439 validate the actual package of a formal declared without a box, check
16440 whether the formal itself depends on a prior actual.
16441 (Instantiate_Formal_Subprogram): Create new entities for the defining
16442 identifiers of the formals in the renaming declaration, for ASIS use.
16443 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
16444 a renaming declaration or a subtype declaration for an actual in an
16445 instance, capture location information of declaration in generic, for
16446 ASIS use.
16447 (Instantiate_Formal_Package): Add comments on needed additional tests.
16448 AI-317 (partial parametrization) is fully implemented.
16449 (Validate_Private_Type_Instance): Add check for actual which
16450 must have preelaborable initialization
16451 Use new // insertion for some continuation messages
16452 (Analyze_Formal_Object_Declaration): Change usage of Expression to
16453 Default_Expression. Add type retrieval when the declaration has an
16454 access definition. Update premature usage of incomplete type check.
16455 (Check_Access_Definition): New subsidiary routine. Check whether the
16456 current compilation version is Ada 05 and the supplied node has an
16457 access definition.
16458 (Instantiate object): Alphabetize local variables. Handle the creation
16459 of new renaming declarations with respect to the kind of definition
16460 used - either an access definition or a subtype mark. Guard against
16461 unnecessary error message in the context of anonymous access types after
16462 they have been resolved. Add check for required null exclusion in a
16463 formal object declaration.
16464 (Switch_View): A private subtype of a non-private type needs to be
16465 switched (the base type can have been switched without its private
16466 dependents because of the last branch of Check_Private_View.
16467 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
16468 value from BT.
16469 (Instantiate_Type): Emit an error message whenever a class-wide type of
16470 a tagged incomplete type is used as a generic actual.
16471 (Find_Actual_Type): Extend routine to handle a component type in a child
16472 unit that is imported from a formal package in a parent.
16473 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
16474 agree on constrainedness, rather than checking against ultimate ancestor
16475 (Instantiate_Subprogram_Body): Create a cross-reference link to the
16476 generic body, for navigation purposes.
16477
16478 2006-10-31 Robert Dewar <dewar@adacore.com>
16479 Thomas Quinot <quinot@adacore.com>
16480
16481 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
16482 type.
16483 (New_Stream_Subprogram): When processing an attribute definition clause
16484 for a stream-oriented subprogram, record an entity node occurring at
16485 the point of clause to use for checking the visibility of the clause,
16486 as defined by 8.3(23) as amended by AI-195.
16487 (New_Stream_Subprogram): New procedure, factoring behaviour from both
16488 New_Stream_Function and New_Stream_Procedure.
16489 (New_Stream_Function, New_Stream_Procedure): Removed.
16490 (Analyze_Attribute_Definition_Clause, case Address): Check new
16491 Alignment_Check check
16492
16493 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16494 Javier Miranda <miranda@adacore.com>
16495 Robert Dewar <dewar@adacore.com>
16496
16497 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
16498 generate the same errors compiling under -gnatc.
16499 (Try_Object_Operation): If no candidate interpretation succeeds, but
16500 there is at least one primitive operation with the right name, report
16501 error in call rather than on a malformed selected component.
16502 (Analyze_Selected_Component): If the prefix is an incomplete type from
16503 a limited view, and the full view is available, use the full view to
16504 determine whether this is a prefixed call to a primitive operation.
16505 (Operator_Check): Verify that a candidate interpretation is a binary
16506 operation before checking the type of its second formal.
16507 (Analyze_Call): Add additional warnings for function call contexts not
16508 yet supported.
16509 (Analyze_Allocator): Move the check for "initialization not allowed for
16510 limited types" after analyzing the expression. This is necessary,
16511 because OK_For_Limited_Init looks at the structure of the expression.
16512 Before analysis, we don't necessarily know what sort of expression it
16513 is. For example, we don't know whether F(X) is a function call or an
16514 indexed component; the former is legal in Ada 2005; the latter is not.
16515 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
16516 were missing. We also didn't handle qualified expressions. Now also
16517 allow function calls. Use new common routine OK_For_Limited_Init.
16518 (Analyze_Type_Conversion): Do not perform some legality checks in an
16519 instance, because the error message will be redundant or spurious.
16520 (Analyze_Overloaded_Selected_Component): Do not do style check when
16521 setting an entity, since we do not know it is the right entity yet.
16522 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
16523 (Analyze_Overloaded_Selected_Component): Same change
16524 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
16525 since regular incomplete subtypes are transformed into corresponding
16526 subtypes of their full views.
16527 (Complete_Object_Operation): Treat name of transformed subprogram call
16528 as coming from source, for browsing purposes.
16529 (Try_Primitive_Operation): If formal is an access parameter, compare
16530 with base type of object to determine whether it is a primitive
16531 operation.
16532 (Operator_Check): If no interpretation of the operator matches, check
16533 whether a use clause on any candidate might make the operation legal.
16534 (Try_Class_Wide_Operation): Check whether the first parameter is an
16535 access type whose designated type is class-wide.
16536
16537 2006-10-31 Robert Dewar <dewar@adacore.com>
16538 Ed Schonberg <schonberg@adacore.com>
16539 Gary Dismukes <dismukes@adacore.com>
16540
16541 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
16542 warn on infinite loops.
16543 Add \\ to some continuation messages
16544 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
16545 (Process_Bounds): If the bounds are integer literals that result from
16546 constant-folding, and they carry a user-defined type, preserve that type
16547 rather than treating this as an integer range.
16548 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
16549 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
16550 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
16551 left hand side of assignment.
16552 (Analyze_Assignment): Add suport to manage assigments to the attribute
16553 priority of a protected object.
16554 (Check_Possible_Current_Value_Condition): Allow fully qualified names
16555 not just identifiers.
16556 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
16557 or AND THEN for possible tracking.
16558 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
16559 case of while loops so we can track values in the loop body.
16560
16561 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16562 Hristian Kirtchev <kirtchev@adacore.com>
16563 Bob Duff <duff@adacore.com>
16564
16565 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
16566 procedure cannot be a protected operation (it is a basic_declaration,
16567 not a subprogram_declaration).
16568 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
16569 Subp. Add logic for entry processing.
16570 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
16571 Determine whether an entry or subprogram of a protected or task type
16572 override an inherited primitive of an implemented interface.
16573 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
16574 Update the actual used in calls to Check_Overriding_Indicator.
16575 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
16576 generate the proper reference to the parent unit, for cross-reference.
16577 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
16578 Is_Formal.
16579 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16580 (Add_Extra_Formal): Revise procedure to allow passing in associated
16581 entity, scope, and name suffix, and handle setting of the new
16582 Extra_Formals field.
16583 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
16584 pass new parameters. Add support for adding the new extra access formal
16585 for functions whose calls are treated as build-in-place.
16586 (Analyze_A_Return_Statement): Correct casing in error message.
16587 Move Pop_Scope to after Analyze_Function_Return, because an extended
16588 return statement really is a full-fledged scope. Otherwise, visibility
16589 doesn't work right. Correct use of "\" for continuation messages.
16590 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
16591 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
16592 the node doesn't get properly marked as analyzed.
16593 (Analyze_Subprogram_Body): If subprogram is a function that returns
16594 an anonymous access type that denotes a task, build a Master Entity
16595 for it.
16596 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
16597 proper usage of null exclusion in a result definition.
16598 (Process_Formals): Code cleanup and new error message.
16599 (Process_Formals): Detect incorrect application of null exclusion to
16600 non-access types.
16601 (Conforming_Types): Handle conformance between [sub]types and itypes
16602 generated for entities that have null exclusions applied to them.
16603 (Maybe_Primitive_Operation): Add an additional type retrieval when the
16604 base type is an access subtype. This case arrises with null exclusions.
16605 (New_Overloaded_Entity): Do not remove the overriden entity from the
16606 homonym chain if it corresponds with an abstract interface primitive.
16607 (Process_Formals): Replace membership test agains Incomplete_Kind with a
16608 call to the synthesized predicate Is_Incomplete_Type.
16609 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
16610 primitives.
16611 (Analyze_Subprogram_Declaration): Check that abstract interface
16612 primitives are abstract or null.
16613 (Analyze_Subprogram_Specification): Remove previous check for abstract
16614 interfaces because it was not complete.
16615 (Has_Interface_Formals): Removed.
16616
16617 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16618 Javier Miranda <miranda@adacore.com>
16619
16620 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
16621 of Analyze_Package_Body, to create Itype references for anonymous
16622 access types created in the package declaration, whose designated types
16623 may have only a limited view.
16624 (Analyze_Package_Specification): For the private part of a nested
16625 package, install private_with_clauses of enclosing compilation unit if
16626 we are in its visible part.
16627 (Declare_Inherited_Private_Subprograms): Complete barrier
16628 to ensure that the primitive operation has an alias to some parent
16629 primitive. This is now required because, after the changes done for the
16630 implementation of abstract interfaces, the contents of the list of
16631 primitives has entities whose alias attribute references entities of
16632 such list of primitives.
16633 (Analyze_Package_Specification): Simplify code that handles parent units
16634 of instances and formal packages.
16635 (Uninstall_Declarations): Check the convention consistency among
16636 primitive overriding operations of a tagged record type.
16637
16638 2006-10-31 Robert Dewar <dewar@adacore.com>
16639 Hristian Kirtchev <kirtchev@adacore.com>
16640 Javier Miranda <miranda@adacore.com>
16641 Ed Schonberg <schonberg@adacore.com>
16642
16643 * sem_ch8.adb: Minor error msg rewording
16644 (Undefined): When checking for misspellings, invert arguments (to get
16645 expected and found set right)
16646 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
16647 (Analyze_Generic_Renaming): Same fix
16648 (Use_One_Package): Do not take into account the internal entities of
16649 abstract interfaces during the analysis of entities that are marked
16650 as potentially use-visible.
16651 (Find_Type): Handle the case of an attribute reference for
16652 implementation defined attribute Stub_Type (simply let the analysis of
16653 the attribute reference rewrite it).
16654 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
16655 type that appears in a Use_Type clause.
16656 (Analyze_Object_Renaming): Add support for renaming of the Priority
16657 attribute.
16658 (Find_Type): In Ada 2005, a task type can be used within its own body,
16659 when it appears in an access definition.
16660 (Analyze_Object_Renaming): Remove warning on null_exclusion.
16661 (Analyze_Object_Renaming): Introduce checks for required null exclusion
16662 in a formal object declaration or in a subtype declaration.
16663 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
16664 (Check_Null_Exclusion): New local routine to
16665 Analyze_Subprogram_Renaming. Check whether the formals and return
16666 profile of a renamed subprogram have required null exclusions when
16667 their counterparts of the renaming already impose them.
16668 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
16669 Determine whether an entity is inside a generic scope.
16670 (In_Open_Scope): First pass of documentation update.
16671 (Find_Expanded_Name): Add support for shadow entities associated with
16672 limited withed packages. This is required to handle nested packages.
16673 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
16674 that makes a renaming of a limited withed package illegal.
16675
16676 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16677 Ed Schonberg <schonberg@adacore.com>
16678
16679 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
16680 Check_Overriding_Indicator.
16681 (Analyze_Task_Definition): Ditto.
16682 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
16683 (Check_Overriding_Indicator): To find overridden interface operation,
16684 examine only homonyms that have an explicit subprogram declaration, not
16685 inherited operations created by an unrelated type derivation.
16686 (Check_Overriding_Indicator): When checking for the presence of "null"
16687 in a procedure, ensure that the queried node is a procedure
16688 specification.
16689 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
16690 type when the formal is an access to variable.
16691 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
16692 (Analyze_Task_Type): Same addition
16693 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
16694 provide navigation capabilities for entries.
16695
16696 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16697 Ed Schonberg <schonberg@adacore.com>
16698 Javier Miranda <miranda@adacore.com>
16699 Gary Dismukes <dismukes@adacore.com>
16700
16701 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
16702 inherited from an interface ancestor by another interface in the
16703 context of an instance as 'late'.
16704 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
16705 of a call to a function that dispatches on access result.
16706 (Check_Dispatching_Operation): In case of late overriding of a primitive
16707 that covers abstract interface subprograms we register it in all the
16708 secondary dispatch tables associated with abstract interfaces.
16709 (Check_Dispatching_Call): Add check that a dispatching call is not made
16710 to a function with a controlling result of a limited type. This is a
16711 current implementation restriction.
16712 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
16713 (Check_Dispatching_Operation): Do no emit a warning if the controlling
16714 argument is an interface type that is a generic formal.
16715 (Is_Interface_Subprogram): Removed.
16716 (Check_Dispatching_Operation): If the subprogram is not a dispatching
16717 operation, check the formals to handle the case in which it is
16718 associated with an abstract interface type.
16719
16720 2006-10-31 Robert Dewar <dewar@adacore.com>
16721 Ed Schonberg <schonberg@adacore.com>
16722
16723 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
16724 Add new calls to this procedure during traversal
16725 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
16726 another unit if expansion is disabled.
16727
16728 2006-10-31 Robert Dewar <dewar@adacore.com>
16729
16730 * sem_eval.adb (Compile_Time_Compare): Make use of information from
16731 Current_Value in the conditional case, to evaluate additional
16732 comparisons at compile time.
16733
16734 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16735 Hristian Kirtchev <kirtchev@adacore.com>
16736 Javier Miranda <miranda@adacore.com>
16737
16738 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16739 subprogram type to provide better diagnostics in case of ambiguity.
16740 (Covers): Handle coverage of formal and actual anonymous access types in
16741 the context of generic instantiation.
16742 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16743 abstract interface types; this is required to handle concurrent types
16744 with discriminants and abstract interface types.
16745 (Covers): Include type coverage of both regular incomplete subtypes and
16746 incomplete subtypes of incomplete type visibles through a limited with
16747 clause.
16748
16749 2006-10-31 Robert Dewar <dewar@adacore.com>
16750 Hristian Kirtchev <kirtchev@adacore.com>
16751 Ed Schonberg <schonberg@adacore.com>
16752
16753 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
16754 messages for entities in packages which are not used.
16755 (Collect_Synchronized_Interfaces): New procedure.
16756 (Overrides_Synchronized_Primitive): New function.
16757 (Denotes_Discriminant): Extend predicate to apply to task types.
16758 Add missing continuation marks in error msgs
16759 (Unqualify): New function for removing zero or more levels of
16760 qualification from an expression. There are numerous places where this
16761 ought to be used, but we currently only deal properly with zero or one
16762 level.
16763 (In_Instance); The analysis of the actuals in the instantiation of a
16764 child unit is not within an instantiation, even though the parent
16765 instance is on the scope stack.
16766 (Safe_To_Capture_Value): Exclude the case of variables that are
16767 renamings.
16768 (Check_Obsolescent): Removed
16769 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
16770 is an aliased view, even when rewritten as a reference to the target
16771 object in an assignment.
16772 (Get_Subprogram_Entity): New function
16773 (Known_To_Be_Assigned): New function
16774 (Type_Access_Level): Compute properly the access level of a return
16775 subtype that is an anonymous access type.
16776 (Explain_Limited_Type): Correct use of "\" for continuation messages.
16777 (Is_Transfer): The new extended_return_statement causes a transfer of
16778 control.
16779 (Has_Preelaborable_Initialization): New function
16780 (Has_Null_Exclusion): New function. Given a node N, determine whether it
16781 has a null exclusion depending on its Nkind.
16782 Change Is_Lvalue to May_Be_Lvalue
16783 (May_Be_Lvalue): Extensive additional code to deal with subprogram
16784 arguments (IN parameters are not Lvalues, IN OUT parameters are).
16785 (Safe_To_Capture_Value): Extend functionality so it can be used for
16786 the current value condition case.
16787 (Has_Compatible_Alignment): New function
16788 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
16789 objects to handle the Ada 2005 case, where aliasedness no longer implies
16790 that the object is constrained. In particular, for dereferenced names,
16791 the designated object must be assumed to be unconstrained.
16792 (Kill_Current_Values): Properly deal with the case where we encounter
16793 a loop in the scope chain.
16794 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
16795 a value.
16796 (Compile_Time_Constraint_Error): Improve error message in error case
16797
16798 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
16799 associated with entities of abstract interface primitives.
16800 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
16801
16802 2006-10-31 Robert Dewar <dewar@adacore.com>
16803
16804 * s-osinte-tru64.adb:
16805 Mark Asm statements Volatile to prevent warnings (seems a
16806 reasonable change anyway)
16807 Fixes new warnings
16808
16809 * s-mastop-irix.adb: Add Volatile to Asm statements
16810 Suppresses warning, and seems appropriate in any case
16811
16812 * s-osinte-vms.adb: Add Volatile to Asm statement
16813
16814 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
16815
16816 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
16817 returned.
16818 Add call to Check_Code_Statement
16819
16820 2006-10-31 Robert Dewar <dewar@adacore.com>
16821 Ed Schonberg <schonberg@adacore.com>
16822 Bob Duff <duff@adacore.com>
16823
16824 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
16825 Synchronized_Present): Add Formal_Derived_Type_Definition and
16826 Private_Extension_Declaration to the list of assertions.
16827 (Is_Entry_Barrier_Function): New flag
16828 (Has_Self_Reference): New flag on aggregates, to indicate that they
16829 contain a reference to the enclosing type, inserted through a default
16830 initialization.
16831 (Next_Rep_Item): Move from Node4 to Node5.
16832 (Entity): Add this field for N_Attribute_Definition_Clause.
16833 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
16834 (N_Return_Object_Declaration): Remove this node kind. We now use
16835 N_Object_Declaration instead.
16836 (Actual_Designated_Subtype): Move to a different place to make room in
16837 N_Extended_Return_Statement.
16838 (Procedure_To_Call): Move to a different place to make room in
16839 N_Extended_Return_Statement.
16840 (Return_Type): Removed this field to make room in return statements
16841 (both kinds).
16842 (Return_Statement_Entity): New field in return statements, in part to
16843 replace Return_Type, and in part to support the fact that return
16844 statements are now pushed on the scope stack during semantic analysis.
16845 (Return_Object_Declarations): New field to support extended return
16846 statements.
16847 (N_Extended_Return_Statement): New node for extended_return_statement
16848 nonterminal.
16849 (N_Return_Object_Declaration): New node for part of
16850 extended_return_statement nonterminal. Needed because all the necessary
16851 fields won't fit in N_Extended_Return_Statement.
16852 Generic_associations now carry the Box_Present flag, to indicate a
16853 default for an actual in a partially parametrized formal package.
16854
16855 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
16856 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
16857 and for the new predefined dispatching policies: EDF_Across_Priorities,
16858 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
16859 Introduce new name Stub_Type for implementation defined attribute.
16860 Add pragma Preelaborable_Initialization
16861 Add entry for Priority attribute.
16862 Add Pragma_Wide_Character_Encoding
16863 (Get_Convention_Name): Given a convention id, this function returns the
16864 corresponding name id from the names table.
16865
16866 2006-10-31 Ed Schonberg <schonberg@adacore.com>
16867 Robert Dewar <dewar@adacore.com>
16868 Bob Duff <duff@adacore.com>
16869
16870 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
16871 print null exclusion twice in the case of an access definition,
16872 Implement new -gnatL switch
16873 Remove N_Return_Object_Declaration. We now use
16874 N_Object_Declaration instead. Implement the case for
16875 N_Extended_Return_Statement. Alphabetize the cases.
16876 Add cases for new nodes N_Extended_Return_Statement and
16877 N_Return_Object_Declaration. The code is not yet written.
16878 Update the output for N_Formal_Object_Declaration
16879 and N_Object_Renaming_Declaration.
16880 (Write_Itype): Account for the case of a modular integer subtype whose
16881 base type is private.
16882
16883 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16884
16885 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
16886 Remove elaboration code, now done in the binder.
16887
16888 * s-rident.ads: Make this unit Preelaborate.
16889 (No_Restrictions): New constant used to clean up code and follow
16890 preelaborate constraints.
16891
16892 * s-stalib.adb:
16893 Add System.Restrictions dependence, referenced directly from the
16894 binder generated file.
16895
16896 2006-10-31 Gary Dismukes <dismukes@adacore.com>
16897
16898 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
16899 True when AAMP extended floating-point is in use (48-bit). Change type
16900 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
16901 the two byte array types on AFloat. Change type of IV_Ilf overlay
16902 variable from Byte8 to ByteLF. Add appropriate initializations of
16903 floating-point overlays for AAMP cases.
16904
16905 2006-10-31 Javier Miranda <miranda@adacore.com>
16906
16907 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
16908 (Get_Ceiling): New subprogram that returns
16909 the ceiling priority of the protected object.
16910 (Set_Ceiling): New subprogram that sets the new ceiling priority of
16911 the protected object.
16912
16913 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
16914
16915 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
16916
16917 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16918
16919 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
16920 requeuing to the same protected object to give higher priority tasks
16921 the opportunity to execute.
16922
16923 2006-10-31 Robert Dewar <dewar@adacore.com>
16924
16925 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
16926 add more precise check for the character sequence that follows '[' to
16927 avoid possible confusion in case if '[' is the last character of a
16928 string literals.
16929 (Scan_Wide): Always allow brackets encoding
16930
16931 2006-10-31 Olivier Hainque <hainque@adacore.com>
16932
16933 * s-stchop.ads: make this unit preelaborate. This is desirable in
16934 general and made mandatory by the use of this unit by s-taprop which
16935 is itself preelaborate.
16936
16937 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
16938 Td_Events component.
16939
16940 2006-10-31 Vincent Celier <celier@adacore.com>
16941
16942 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
16943 in file names.
16944
16945 2006-10-31 Vincent Celier <celier@adacore.com>
16946
16947 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
16948
16949 2006-10-31 Vincent Celier <celier@adacore.com>
16950
16951 * makegpr.adb (Check_Compilation_Needed): Take into account path names
16952 with spaces.
16953 (Check_Compilation_Needed): When checking a C or C++ source, do not
16954 resolve symbolic links.
16955 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
16956 When not in verbose mode and Ellipse is True, display "..." for the
16957 first argument with Display set to False.
16958 (Build_Global_Archive): Always set Display True for the first object
16959 file. Call Display_Command with Ellipse set to True.
16960
16961 2006-10-31 Matt Heaney <heaney@adacore.com>
16962
16963 * a-crbtgo.ads: Commented each subprogram
16964
16965 * a-crbtgo.adb: Added reference to book from which algorithms were
16966 adapted.
16967
16968 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
16969 indicate which child.
16970 (Generic_Conditional_Insert): changed parameter name from "Success" to
16971 "Inserted".
16972 (Generic_Unconditional_Insert_With_Hint): improved algorithm
16973
16974 * a-coorse.adb (Replace_Element): changed parameter name in call to
16975 conditional insert operation.
16976
16977 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
16978
16979 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
16980 Generic_Iteration
16981
16982 * a-ciorse.adb (Replace_Element): changed parameter name in call to
16983 conditional insert operation.
16984
16985 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
16986 Generic_Iteration.
16987
16988 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
16989 instead of mode inout.
16990
16991 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
16992 draft
16993 (Generic_Read): preserve existing buckets array if possible
16994 (Generic_Write): don't send buckets array length anymore
16995
16996 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
16997 instead of mode inout.
16998
16999 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17000 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17001
17002 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17003 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17004 (Replace_Element): local operation is now an instantiation
17005
17006 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17007 check current length.
17008 (Generic_Replace_Element): new operation
17009
17010 2006-10-31 Doug Rupp <rupp@adacore.com>
17011
17012 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17013 Call TBK$SYMBOLIZE without omitting parameters.
17014
17015 2006-10-31 Vincent Celier <celier@adacore.com>
17016
17017 * symbols-processing-vms-ia64.adb,
17018 symbols-processing-vms-alpha.adb (Process): Do not include symbols
17019 that come from generic instantiations in bodies.
17020
17021 2006-10-31 Pat Rogers <rogers@adacore.com>
17022
17023 * a-rttiev.ads, a-rttiev.adb:
17024 This is a significant redesign primarily for the sake of automatic
17025 timer task termination but also to fix a design flaw.
17026 Therefore we are now using an RTS lock, instead of a protected
17027 object, to provide mutual exclusion to the queue of pending events
17028 and the type Timing_Event is no longer a protected type.
17029
17030 2006-10-31 Robert Dewar <dewar@adacore.com>
17031 Cyrille Comar <comar@adacore.com>
17032 Ben Brosgol <brosgol@adacore.com>
17033
17034 * debug.adb: Update flags documentation
17035
17036 * gnat_ugn.texi: Add documentation for new -gnatwq switch
17037 Clean up documentation for several other warning switches
17038 Clarify how task stack size can be specified with various
17039 versions of Windows.
17040 Add note that -gnatVo includes ranges including loops
17041 Add documentation for -gnatL switch
17042 Add note on elaboration warning for initializing variables
17043 Add documentation for new -gnatwt warning switch
17044 Document new form of pragma Warnings (On|Off, string)
17045 Add comment on use of pragma Warnings to control warnings
17046 Add documentation for -gnatjnn switch
17047 Modify section on interfacing with C for VMS 64-bit.
17048 Add doc for -gnatVe/E
17049 Add documentation of new warning flags -gnatww/-gnatwW
17050 Add warnings about address clause overlays to list of warnings
17051 (Exception Handling Control): Document that the option --RTS must be
17052 used consistently for gcc and gnatbind.
17053 Clarify that inlining is not always possible
17054 Update documentation on pragma Unchecked_Union.
17055
17056 * gnat_rm.texi:
17057 Add documentation for new extended version of pragma Obsolescent
17058 Add documentation for implementation defined attribute 'Stub_Type.
17059 Add note on use of Volatile in asm statements
17060 Add documentation on use of pragma Unreferenced in context clause
17061 Document new form of pragma Warnings (On|Off, pattern)
17062 Document pragma Wide_Character_Encoding
17063 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17064 enforced if code generation is active.
17065 Add section on pragma Suppress to document GNAT specific check
17066 Alignment_Check
17067 Clarify difference between No_Dispatching_Calls & No_Dispatch.
17068 Add documentation for pragma Restrictions (No_Elaboration_Code)
17069
17070 * gnat-style.texi:
17071 Add comments on layout of subprogram local variables in the
17072 presence of nested subprograms.
17073
17074 * ug_words: Resync.
17075
17076 * elists.ads: Minor reformatting
17077 Node returns Node_Or_Entity_Id (doc change only)
17078
17079 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
17080
17081 * g-arrspl.ads (Create): Update comments.
17082
17083 * sem.ads: Add details on the handling of the scope stack.
17084
17085 * usage.adb: Update documentation.
17086
17087 * validsw.ads, validsw.adb:
17088 Add definition of Validity_Check_Components and implement -gnatVe/E
17089
17090 * vms_data.ads: Add missing VMS qualifiers.
17091
17092 * s-addope.ads: Add documentation on overflow and divide by zero
17093
17094 2006-10-31 Robert Dewar <dewar@adacore.com>
17095 Thomas Quinot <quinot@adacore.com>
17096 Arnaud Charlet <charlet@adacore.com>
17097
17098 * fmap.adb: Put routines in alpha order
17099
17100 * g-boumai.ads: Remove redundant 'in' keywords
17101
17102 * g-cgi.adb: Minor reformatting
17103
17104 * g-cgi.ads: Remove redundant 'in' keywords
17105
17106 * get_targ.adb: Put routines in alpha order
17107
17108 * prj-attr.ads: Minor reformatting
17109
17110 * s-atacco.ads: Minor reformatting
17111
17112 * scn.adb: Put routines in alpha order
17113
17114 * sinput-l.adb: Minor comment fix
17115
17116 * sinput-p.adb: Minor comment fix
17117
17118 * s-maccod.ads: Minor reformatting
17119
17120 * s-memory.adb: Minor reformatting
17121
17122 * s-htable.adb: Fix typo in comment.
17123
17124 * s-secsta.adb: Minor comment update.
17125
17126 * s-soflin.adb: Minor reformatting
17127
17128 * s-stoele.ads:
17129 Add comment about odd qualification in Storage_Offset declaration
17130
17131 * s-strxdr.adb:
17132 Remove unnecessary 'in' keywords for formal parameters.
17133
17134 * treeprs.adt: Minor reformatting
17135
17136 * urealp.adb: Put routines in alpha order
17137
17138 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
17139 taking string.
17140
17141 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17142
17143 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
17144
17145 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
17146 workaround as on other platforms.
17147
17148 * g-eacodu-vms.adb: Remove redundant 'in' keywords
17149 * g-expect-vms.adb: Remove redundant 'in' keywords
17150
17151 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
17152 clear error message if the list-of-files file cannot be opened.
17153
17154 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
17155 equality operator is always visible.
17156
17157 * lang.opt: Woverlength-strings: New option.
17158
17159 * nmake.adt:
17160 Update copyright, since nmake.ads and nmake.adb have changed.
17161
17162 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
17163 (Binder_Output_Time_Stamps_Set): removed.
17164 (Old_Binder_Output_Time_Stamp): idem.
17165 (New_Binder_Output_Time_Stamp): idem.
17166 (Recording_Time_From_Last_Bind): idem.
17167 (Recording_Time_From_Last_Bind): Make constant.
17168
17169 * output.ads, output.adb (Write_Str): Allow LF characters
17170 (Write_Spaces): New procedure
17171
17172 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
17173
17174 * inline.adb: Minor reformatting
17175
17176 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17177
17178 * s-mastop-vms.adb: Remove redundant 'in' keywords
17179
17180 * s-osprim-vms.adb: Remove redundant 'in' keywords
17181
17182 * s-trafor-default.adb: Remove redundant 'in' keywords
17183
17184 * 9drpc.adb: Remove redundant 'in' keywords
17185
17186 * s-osinte-mingw.ads: Minor reformatting
17187
17188 * s-inmaop-posix.adb: Minor reformatting
17189
17190 * a-direio.ads: Remove quotes from Compile_Time_Warning message
17191
17192 * a-exexda.adb: Minor code reorganization
17193
17194 * a-filico.adb: Minor reformatting
17195
17196 * a-finali.adb: Minor reformatting
17197
17198 * a-nudira.ads: Remove quote from Compile_Time_Warning message
17199
17200 * a-numeri.ads: Minor reformatting
17201
17202 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
17203
17204 * exp_pakd.ads: Fix obsolete comment
17205
17206 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
17207 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
17208 Probably not a bug, but certainly neater and more efficient.
17209
17210 * a-tienio.adb: Minor reformatting
17211
17212 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
17213 Avoid assuming low bound of string is 1.
17214
17215 * gnatbind.adb: Change Bindusg to package and rename procedure as
17216 Display, which now ensures that it only outputs usage information once.
17217 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
17218
17219 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
17220 Table'First.
17221
17222 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
17223 warning.
17224 (Match): Add pragma Assert to ensure that Matches'First is zero
17225
17226 * g-regpat.ads (Match): Document that Matches lower bound must be zero
17227
17228 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
17229 documented preconditions (also kills warnings about bad indexes).
17230
17231 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
17232 is 1.
17233 (Build_Import_Library): Ditto;
17234
17235 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
17236
17237 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
17238
17239 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
17240 lower bound of choice table is 1.
17241
17242 * sem_case.ads (Analyze_Choices): Document that lower bound of
17243 Choice_Table is 1.
17244
17245 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
17246 string is 1.
17247
17248 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
17249 and add appropriate Assert pragma to suppress warnings.
17250
17251 * atree.h, atree.ads, atree.adb
17252 Change Elist24 to Elist25
17253 Add definitions of Field28 and Node28
17254 (Traverse_Field): Use new syntactic parent table in sinfo.
17255
17256 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17257
17258 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17259
17260 * exp_tss.adb: Put routines in alpha order
17261
17262 * fe.h: Remove redundant declarations.
17263
17264 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
17265
17266 * utils.c (builtin_function): Rename to gnat_builtin_function.
17267 Move common code to add_builtin_function.
17268 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
17269 gnat_builtin_function.
17270 * gigi.h (builtin_function): Rename to gnat_builtin_function.
17271 Change the signature.
17272
17273 2006-10-16 Brooks Moses <bmoses@stanford.edu>
17274
17275 * Makefile.in: Add TEXI2PDF definition.
17276 * Make-lang.in: Add "ada.pdf" target.
17277
17278 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
17279
17280 * decl.c, utils.c: Fix comment typos.
17281 * utils.c: Fix a typo.
17282
17283 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
17284
17285 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
17286 on "pure" Ada subprograms if SJLJ exceptions are used.
17287 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
17288 on the declaration node of JMPBUF_SAVE.
17289 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
17290 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
17291 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
17292
17293 2006-08-20 Laurent Guerby <laurent@guerby.net>
17294
17295 PR ada/28716
17296 g-socket.adb (Bind_Socket): Call Set_Address.
17297
17298 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
17299
17300 PR ada/15802
17301 * decl.c (same_discriminant_p): New static function.
17302 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
17303 subtype and we have discriminants, fix up the COMPONENT_REFs
17304 for the discriminants to make them reference the corresponding
17305 fields of the parent subtype after it has been built.
17306
17307 2006-09-15 Roger Sayle <roger@eyesopen.com>
17308
17309 PR ada/18817
17310 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
17311 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
17312
17313 2006-09-13 Olivier Hainque <hainque@adacore.com>
17314
17315 PR ada/29025
17316 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
17317 of a SAVE_EXPR, just make the operand addressable/not-readonly and
17318 let the common gimplifier code make and propagate a temporary copy.
17319 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
17320 out/in-out actuals and defer setting the addressable/readonly bits
17321 to the gimplifier.
17322
17323 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17324
17325 PR ada/28591
17326 * decl.c (components_to_record): Defer emitting debug info for the
17327 record type associated with the variant until after we are sure to
17328 actually use it.
17329
17330 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17331
17332 PR ada/21952
17333 * gigi.h (gnat_internal_attribute_table): Declare.
17334 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
17335 * utils.c (gnat_internal_attribute_table): New global variable.
17336 (builtin_function): Always call decl_attributes on the builtin.
17337 (handle_const_attribute): New static function.
17338 (handle_nothrow_attribute): Likewise.
17339
17340 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17341
17342 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
17343
17344 2006-06-23 Olivier Hainque <hainque@adacore.com>
17345
17346 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
17347 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
17348
17349 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
17350 Eric Botcazou <ebotcazou@adacore.com>
17351
17352 PR ada/18692
17353 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
17354 check-gnat into check-acats.
17355
17356 2006-06-17 Karl Berry <karl@gnu.org>
17357
17358 * gnat-style.texi (@dircategory): Use "Software development"
17359 instead of "Programming", following the Free Software Directory.
17360
17361 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17362
17363 PR ada/27944
17364 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
17365
17366 2006-06-06 Laurent Guerby <laurent@guerby.net>
17367
17368 PR ada/27769
17369 mlib-utl.adb: Use Program_Name.
17370
17371 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
17372
17373 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
17374 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
17375 trans.c, utils.c: Fix comment typos. Follow spelling
17376 conventions.
17377 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
17378 conventions.
17379
17380 2006-05-19 Nicolas Setton <setton@adacore.com>
17381
17382 * misc.c (gnat_dwarf_name): New function.
17383 (LANG_HOOKS_DWARF_NAME): Define to it.
17384
17385 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
17386
17387 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
17388 (ada/misc.o): Likewise.
17389 (ada/utils.o): Likewise.
17390
17391 2006-04-08 Aurelien Jarno <aurel32@debian.org>
17392
17393 * Makefile.in: Add Ada support for GNU/kFreeBSD.
17394 * s-osinte-kfreebsd-gnu.ads: New file.
17395
17396 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
17397
17398 * Make-lang.in: Rename docdir to gcc_docdir.
17399
17400 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
17401
17402 * gigi.h (get_ada_base_type): Delete.
17403 * utils2.c (get_ada_base_type): Likewise.
17404 * trans.c (convert_with_check): Operate in the real base type.
17405
17406 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17407
17408 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
17409
17410 2006-03-02 Richard Sandiford <richard@codesourcery.com>
17411
17412 * utils.c (create_var_decl): Use have_global_bss_p when deciding
17413 whether to make the decl common.
17414
17415 2006-02-20 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
17416
17417 * Make-lang.in (Ada): Remove.
17418 (.PHONY): Remove Ada
17419
17420 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17421
17422 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
17423 aggregate, check the interpretations of the other operand to find one
17424 that may be a boolean array.
17425
17426 (Analyze_Selected_Component): Fix flow-of-control typo in case where
17427 the prefix is a private extension.
17428
17429 2006-02-17 Eric Botcazou <botcazou@adacore.com>
17430
17431 PR ada/26315
17432 * utils2.c (find_common_type): If both input types are BLKmode and
17433 have the same constant size, keep using the first one.
17434
17435 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
17436
17437 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
17438
17439 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
17440
17441 2006-02-17 Jose Ruiz <ruiz@adacore.com>
17442
17443 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
17444 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
17445 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
17446 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
17447 Abort_Defer/Undefer pairs to avoid the possibility of a task being
17448 aborted while owning a lock.
17449
17450 2006-02-17 Javier Miranda <miranda@adacore.com>
17451 Robert Dewar <dewar@adacore.com>
17452
17453 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
17454 through an access to class-wide interface we force the displacement of
17455 the pointer to the allocated object to reference the corresponding
17456 secondary dispatch table.
17457 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
17458 if Long_Shifts are supported on the target, even if 64 bit divides
17459 are not supported (configurable run time mode).
17460 (Expand_N_Type_Conversion): Do validity check if validity checks on
17461 operands are enabled.
17462 (Expand_N_Qualified_Expression): Do validity check if validity checks
17463 on operands are enabled.
17464
17465 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17466
17467 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
17468 must be materialized when the renamed expression is an explicit
17469 dereference.
17470
17471 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17472
17473 * freeze.adb (Statically_Discriminated_Components): Return false if
17474 the bounds of the type of the discriminant are not static expressions.
17475
17476 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
17477 the bounds of the discriminant type are not static.
17478
17479 2006-02-17 Robert Dewar <dewar@adacore.com>
17480
17481 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
17482 then we close To if it is valid.
17483
17484 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17485
17486 * init.c (facility_resignal_table): new array
17487 (__gnat_default_resignal_p): enhance default predicate to resignal if
17488 VMS condition has one of the predefined facility codes.
17489
17490 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17491
17492 * Makefile.in: Use VMS64 specialized versions of several units in
17493 Interfaces.C hierarchy to be compatible with HP C default size choices.
17494 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
17495
17496 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17497
17498 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
17499 instantiation, the corresponding entity is the related_instance of the
17500 wrapper package created for the instance.
17501
17502 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17503
17504 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
17505 the current instance is nested within another instance in a child unit.
17506
17507 2006-02-17 Javier Miranda <miranda@adacore.com>
17508 Ed Schonberg <schonberg@adacore.com>
17509
17510 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
17511 type we cannot inherit the primitive operations; we inherit the
17512 Corresponding_Record_Type (which has the list of primitive operations).
17513 (Check_Anonymous_Access_Types): When creating anonymous access types for
17514 access components, use Rewrite in order to preserve the tree structure,
17515 for ASIS use.
17516 (Analyze_Object_Declaration): For limited types with access
17517 discriminants with defaults initialized by an aggregate, obtain
17518 subtype from aggregate as for other mutable types.
17519 (Derived_Type_Declaration): If the derived type is a limited interface,
17520 set the corresponding flag (Is_Limited_Record is not sufficient).
17521
17522 2006-02-17 Ed Schonberg <schonberg@adacore.com>
17523
17524 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
17525 to inline a function that returns an unconstrained type, the return
17526 expression must be the first variable declared in the body of the
17527 function.
17528
17529 2006-02-17 Javier Miranda <miranda@adacore.com>
17530
17531 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
17532 abstract interface type, the static analysis is not enough to know if
17533 the interface is implemented or not by the source tagged type. Hence
17534 we must pass the work to the expander to generate the required code to
17535 evaluate the conversion at run-time.
17536 (Resolve_Equality_Op): Do not apply previous
17537 transformation if expansion is disasbled, to prevent anomalies when
17538 locating global references in a generic unit.
17539
17540 2006-02-17 Vincent Celier <celier@adacore.com>
17541
17542 * snames.ads, snames.adb: New standard names for new project attributes:
17543 archive_builder, archive_indexer, compiler_pic_option,
17544 config_body_file_name, config_body_file_name_pattern,
17545 config_file_switches, config_file_unique, config_spec_file_name,
17546 config_spec_file_name_pattern, default_builder_switches,
17547 default_global_compiler_switches, default_language,
17548 dependency_file_kind, global_compiler_switches, include_path,
17549 include_path_file, language_kind, linker_executable_option,
17550 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
17551 roots, runtime_project.
17552
17553 2006-02-17 Matthew Heaney <heaney@adacore.com>
17554
17555 * a-convec.ads, a-convec.adb:
17556 (operator "&"): handle potential overflow for large index types
17557 (Insert): removed Contraint_Error when using large index types
17558 (Insert_Space): removed Constraint_Error for large index types
17559 (Length): moved constraint check from Length to Insert
17560
17561 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
17562 as not null access.
17563 Explicit raise statements now include an exception message.
17564 (operator "&"): handle potential overflow for large index types
17565 (Insert): removed Contraint_Error when using large index types
17566 (Insert_Space): removed Constraint_Error for large index types
17567 (Length): moved constraint check from Length to Insert
17568
17569 2006-02-17 Robert Dewar <dewar@adacore.com>
17570
17571 * s-wchcnv.adb: Document handling of [ on output (we do not change
17572 this to ["5B"] and the new comments say why not.
17573
17574 * gnat_ugn.texi:
17575 Add note for -gnatVo that this now includes the cases of type
17576 conversions and qualified expressions.
17577 Add comments on handling of brackets encoding for Text_IO
17578
17579 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
17580 Thomas Quinot <quinot@adacore.com>
17581 Robert Dewar <dewar@adacore.com>
17582 Javier Miranda <miranda@adacore.com>
17583
17584 * expander.adb: Fix typo in comment
17585
17586 * exp_pakd.adb: Fix typo
17587 Minor comment reformatting.
17588
17589 * g-dyntab.adb: Minor reformatting
17590
17591 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
17592 aliased subprograms to look for the abstract interface subprogram.
17593
17594 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
17595
17596 * env.c (__gnat_setenv): Use size_t.
17597 (__gnat_unsetenv): Likewise.
17598 (__gnat_clearenv): Likewise.
17599
17600 2006-02-16 Arnaud Charlet <charlet@adacore.com>
17601
17602 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
17603
17604 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17605
17606 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
17607 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
17608 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
17609 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
17610 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
17611 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
17612 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
17613 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
17614 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
17615 no longer used.
17616
17617 2006-02-13 Jose Ruiz <ruiz@adacore.com>
17618
17619 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
17620 protection against race conditions is not needed.
17621 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
17622 fallback handler.
17623 (Set_Specific_Handler): Add mutual exclusive access to the specific
17624 handler.
17625 (Specific_Handler): Add mutual exclusive access for retrieving the
17626 specific handler.
17627
17628 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
17629 back handler.
17630
17631 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
17632 Fall_Back_Handler and Specific_Handler.
17633
17634 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
17635 termination handlers.
17636 Set two different owerflow depending on the maximal stack size.
17637
17638 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
17639 protection against race conditions is not needed when executing the
17640 task termination handler.
17641
17642 2006-02-13 Robert Dewar <dewar@adacore.com>
17643
17644 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
17645 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
17646 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
17647 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
17648 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
17649 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
17650 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
17651 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
17652 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
17653 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
17654 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
17655 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
17656 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
17657 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
17658 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
17659 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
17660 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
17661 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
17662 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
17663 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
17664 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
17665 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
17666 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
17667 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
17668 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
17669 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
17670 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
17671 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
17672 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
17673 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
17674 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
17675 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
17676 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
17677 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
17678 reformatting.
17679
17680 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17681
17682 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
17683 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
17684 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
17685 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
17686 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
17687 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
17688 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
17689 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
17690 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
17691
17692 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17693
17694 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
17695 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
17696 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
17697 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
17698 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
17699 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
17700 replaced by anonymous access type.
17701 (pthread_sigmask): Now take an access sigset_t
17702
17703 * s-osinte-hpux.ads: Ditto.
17704 (pthread_mutex_t, pthread_cond_t): Update definitions to support
17705 properly 32 and 64 bit ABIs.
17706
17707 2006-02-13 Pascal Obry <obry@adacore.com>
17708
17709 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
17710 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
17711 s-taprop-linux.adb, s-taprop-solaris.adb,
17712 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
17713 adjustement is already done when calling this routine.
17714
17715 2006-02-13 Pascal Obry <obry@adacore.com>
17716
17717 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
17718 table to take advantage of the 16 priority levels available on Windows
17719 2000 and XP. On NT4 there are only 7 priority levels, this is properly
17720 supported by this new mapping.
17721
17722 2006-02-13 Nicolas Setton <setton@adacore.com>
17723
17724 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
17725 (get_encoding): New subprogram. Extracts the encodings from an encoded
17726 Ada name.
17727
17728 2006-02-13 Pascal Obry <obry@adacore.com>
17729 Nicolas Roche <roche@adacore.com>
17730 Arnaud Charlet <charlet@adacore.com>
17731
17732 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17733 support.
17734 (__gnat_try_lock): Add unicode support by using a specific section on
17735 Windows.
17736 (__gnat_get_current_dir): Idem.
17737 (__gnat_open_read): Idem.
17738 (__gnat_open_rw): Idem.
17739 (__gnat_open_create): Idem.
17740 (__gnat_create_output_file): Idem.
17741 (__gnat_open_append): Idem.
17742 (__gnat_open_new): Idem.
17743 (__gnat_file_time_name): Idem.
17744 (__gnat_set_file_time_name): Idem.
17745 (__gnat_stat): Idem.
17746 (win32_no_block_spawn): Idem.
17747 (__gnat_locate_exec_on_path): Idem.
17748 (__gnat_opendir): New routine.
17749 (__gnat_closedir): Idem.
17750 (__gnat_readdir): Add new parameter length (pointer to int). Update
17751 implementation to use it and add specific Win32 code for Unicode
17752 support.
17753 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
17754 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
17755 (convert_addresses): Do not define this dummy routine on VMS.
17756
17757 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
17758 runtime Unicode support will be activated.
17759 (S2WS): String to Wide-String conversion. This version just copy a
17760 string in non Unicode version.
17761 (WS2S): Wide-String to String conversion. This version just copy a
17762 string in non Unicode version.
17763
17764 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
17765 (Open): Now import __gnat_opendir from adaint.c.
17766 (Read): Change the implementation to support unicode characters. It is
17767 not possible to use strlen() on Windows as this version supports only
17768 standard ASCII characters. So the length of the directory entry is now
17769 returned from the imported __gnat_readdir routine.
17770 Update copyright notice.
17771
17772 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
17773 (opendir): Moved to adaint.c.
17774
17775 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
17776 (Get_Directory): Fix wrong indexing.
17777 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
17778 __gnat_getenv from env.c
17779 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
17780 from env.c
17781
17782 * env.h, env.c: New file.
17783
17784 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
17785 adaint.c by __gnat_getenv from env.c
17786
17787 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
17788 adaint.c by __gnat_getenv from env.c
17789
17790 * Make-lang.in: Add env.o in the list of C object needed by gnat1
17791 and gnatbind.
17792 Update dependencies.
17793
17794 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17795 Olivier Hainque <hainque@adacore.com>
17796 Eric Botcazou <ebotcazou@adacore.com>
17797
17798 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
17799
17800 * gigi.h (value_factor_p): Add prototype and description, now public.
17801
17802 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
17803 promotion for field with rep clause if the associated size was proven
17804 to be in error.
17805 Expand comments describing attempts to use a packable type.
17806 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
17807 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
17808 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
17809 necessary since these are not different types and pointers may
17810 actually designate any subtype in this hierarchy.
17811 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
17812 discriminants but put them into record only if not Unchecked_Union;
17813 pass flag to components_to_record showing Unchecked_Union.
17814 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
17815 components before variants; don't set TYPE_UNCHECKED_UNION_P.
17816 (components_to_record): New argument UNCHECKED_UNION.
17817 Remove special case code for Unchecked_Union and instead use main code
17818 with small changes.
17819
17820 PR ada/26096
17821 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
17822 variable with the expression being built, only its inner field.
17823
17824 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
17825 emit_sequence_entry_statements.
17826 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
17827 (establish_gnat_vms_condition_handler): Move before
17828 Subprogram_Body_to_gnu.
17829 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
17830 for a subprogram if it has a foreign convention or is exported.
17831 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
17832 substituted for a CONST_DECL.
17833 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
17834 Etype to assoc_to_constructor.
17835 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
17836 discriminants of Unchecked_Union.
17837 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
17838 don't need cluttering preprocessor directives.
17839 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
17840 condition handler as current in the compiled function.
17841 (body_with_handlers_p): New function. Tell whether a given sequence of
17842 statements node is attached to a package or subprogram body and involves
17843 exception handlers possibly nested within inner block statements.
17844 (emit_sequence_entry_statements): New function, to emit special
17845 statements on entry of sequences when necessary. Establish GNAT
17846 condition handler in the proper cases for VMS.
17847 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
17848 emit_sequence_entry_statements.
17849
17850 * utils2.c (find_common_type): If both input types are BLKmode and
17851 have a constant size, use the smaller one.
17852 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
17853 the same.
17854
17855 * utils.c (value_factor_p): Make public, to allow uses from other gigi
17856 units.
17857 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
17858 (convert, case UNION_TYPE): Remove special treatment for unchecked
17859 unions.
17860
17861 PR ada/18659
17862 (update_pointer_to): Update variants of pointer types to unconstrained
17863 arrays by attaching the list of fields of the main variant.
17864
17865 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17866 Robert Dewar <dewar@adacore.com>
17867
17868 * a-exexpr.adb, a-exexpr-gcc.adb
17869 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
17870 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
17871 Remove code unused for exception propagation for the compiler itself
17872 from a-except.adb and update to still share separate packages.
17873
17874 * a-except.ads, a-except.adb: Ditto.
17875 Add comments that this version is now used only by the compiler and
17876 other basic tools. The full version that includes the Ada 2005 stuff
17877 is in separate files a-except-2005.ads/adb. The reason is that we do
17878 not want to cause bootstrap problems with compilers not recognizing
17879 Wide_Wide_String.
17880 Add exception reason code PE_Implicit_Return
17881 Add new exception reason code (Null Exception_Id)
17882
17883 * a-except-2005.adb, a-except-2005.ads: New files.
17884
17885 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
17886
17887 * s-wchcon.adb: New file.
17888
17889 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
17890 (traceback.o deps): Likewise.
17891 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
17892 Activate build of GMEM instrumentation library on VMS targets.
17893 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
17894 Use a-except-2005.ads/adb for all run-time library builds unless
17895 specified otherwise.
17896 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
17897 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
17898 Use s-parame.adb on all native platforms.
17899 Use s-parame-vxworks.adb on all vxworks platforms.
17900 Add env.c env.h in LIBGNAT_SRCS
17901 Add env.o in LIBGNAT_OBJS
17902 (GNATMAKE_OBJS): Remove ctrl_c.o object.
17903 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
17904 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17905 supports VxWorks 6 RTPs.
17906 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
17907 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17908
17909 * types.h, types.ads (Terminate_Program): New exception
17910 Add comment on modifying multiple versions of a-except.adb when the
17911 table of exception reasons is modified.
17912 Add exception reason code PE_Implicit_Return
17913 Add new exception reason code (Null Exception_Id)
17914
17915 * clean.adb (Initialize): Get the target parameters before checking
17916 if target is OpenVMS. Move the OpenVMS specific code here from package
17917 body elaboration code.
17918
17919 2006-02-13 Thomas Quinot <quinot@adacore.com>
17920 Vincent Celier <celier@adacore.com>
17921 Robert Dewar <dewar@adacore.com>
17922
17923 * ali-util.adb (Get_File_Checksum): Update to account for change in
17924 profile of Initialize_Scanner.
17925
17926 * gprep.adb (Gnatprep): Update to account for change in profile of
17927 Initialize_Scanner.
17928 (Process_One_File): Same.
17929
17930 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
17931 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
17932 that behaviour using the new Unit information recorded in the source
17933 files table, rather than going through all units every time.
17934 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
17935 (Get_Source_Unit): Same.
17936
17937 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
17938 change in profile of Initialize_Scanner.
17939 (Prepare_To_Preprocess): Same.
17940
17941 * lib.ads: Fix typo in comment (templace -> template).
17942
17943 * prj-part.adb (Parse_Single_Project): Update to account for change in
17944 profile of Initialize_Scanner.
17945
17946 * scn.adb (Initialize_Scanner): Account for change in profile of
17947 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
17948 Also record the association of the given Source_File_Index to the
17949 corresponding Unit_Number_Type.
17950
17951 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
17952 procedure.
17953 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
17954 Remove Unit formal for generic scanner: this formal
17955 is only relevant to Scn (the scanner instance used to parse Ada source
17956 files), not to other instances. Update comment accordingly.
17957 (Scan): Use new function Snames.Is_Keyword_Name.
17958
17959 * sinfo-cn.adb: Fix typo in comment.
17960
17961 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
17962 Unit.
17963
17964 * sinput.ads (Source_File_Record): New component Unit, used to capture
17965 the unit identifier (if any) associated to a source file.
17966
17967 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
17968 Unit in Source_File_Record.
17969
17970 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
17971 in profile of Initialize_Scanner.
17972
17973 * scans.adb (Initialize_Ada_Keywords): New procedure
17974
17975 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
17976 Ada keywords in the Namet table, without the need to call
17977 Initialize_Scanner.
17978
17979 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
17980 (Is_Keyword_Name): New function
17981
17982 * snames.ads: Add subtype Configuration_Pragma_Names
17983 Add pragma Ada_2005 (synonym for Ada_05)
17984 (Is_Keyword_Name): New function
17985
17986 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
17987
17988 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17989
17990 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
17991 index.
17992
17993 * a-stwima.adb (To_Set): Add extra check when N = 0.
17994
17995 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
17996
17997 2006-02-13 Arnaud Charlet <charlet@adacore.com>
17998
17999 * s-parame-mingw.adb, s-parame-linux.adb,
18000 s-parame-solaris.adb: Removed, replaced by s-parame.adb
18001
18002 * s-parame-vxworks.ads: Fix typo.
18003
18004 * s-parame-vxworks.adb: New file.
18005
18006 * s-parame.adb: Version now used by all native platforms.
18007 (Default_Stack_Size): Use 2 megs for default stack size and use
18008 __gl_default_stack_size when available.
18009 (Minimum_Stack_Size): Use 12K.
18010
18011 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18012 (Create_Task): Refine implementation taking advantage of the XP stack
18013 size support. On XP, we now create the thread using the flag
18014 STACK_SIZE_PARAM_IS_A_RESERVATION.
18015
18016 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18017
18018 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18019 XP and 0 on older Windows versions.
18020
18021 * interfac-vms.ads: Removed, no longer used.
18022
18023 2006-02-13 Matthew Heaney <heaney@adacore.com>
18024
18025 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
18026 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
18027 a-cohase.adb: All explicit raise statements now include an exception
18028 message.
18029
18030 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18031 (Update_Element_Preserving_Key): renamed op to just Update_Element.
18032 Explicit raise statements now include an exception message
18033
18034 * a-cihase.ads, a-cohase.ads: Removed comment.
18035
18036 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18037 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18038 a-szbzha.adb, a-szfzha.ads: New files.
18039
18040 2006-02-13 Matthew Heaney <heaney@adacore.com>
18041
18042 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18043 quicksort.
18044
18045 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18046
18047 * lang.opt: Wvariadic-macros: New option.
18048 Wold-style-definition: Likewise.
18049 Wmissing-format-attribute: Likewise.
18050
18051 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18052 -Wold-style-definition and -Wmissing-format-attribute.
18053
18054 2006-02-13 Robert Dewar <dewar@adacore.com>
18055
18056 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18057
18058 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18059
18060 2006-02-13 Nicolas Roche <roche@adacore.com>
18061
18062 * a-envvar.adb, a-envvar.ads: New files.
18063
18064 2006-02-13 Douglas Rupp <rupp@adacore.com>
18065
18066 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
18067
18068 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
18069
18070 2006-02-13 Pat Rogers <rogers@adacore.com>
18071
18072 * a-rttiev.adb, a-rttiev.ads: New files.
18073
18074 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18075
18076 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
18077 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
18078
18079 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
18080
18081 2006-02-13 Robert Dewar <dewar@adacore.com>
18082
18083 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
18084 sem_case.adb: Minor code reorganization (not Present should be No)
18085
18086 2006-02-13 Geert Bosch <bosch@adacore.com>
18087 Gary Dismukes <dismukes@adacore.com>
18088
18089 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
18090 0, since the lower bound of the actual string may be greater than one.
18091
18092 PR ada/20753
18093 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
18094 layout is requested.
18095
18096 2006-02-13 Vincent Celier <celier@adacore.com>
18097
18098 * back_end.adb (Scan_Compiler_Arguments): Check if
18099 Search_Directory_Present is True and, if it is, add the argument in
18100 the source search directory path.
18101
18102 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
18103 Search_Directory_Present to True.
18104
18105 2006-02-13 Joel Brobecker <brobecke@adacore.com>
18106
18107 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
18108 volatile, to tell the compiler to preserve this variable at any level
18109 of optimization.
18110 (Gen_Versions_Ada): Temporarily work around codegen bug.
18111
18112 2006-02-13 Vincent Celier <celier@adacore.com>
18113
18114 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
18115 gcc to link with option -shared-libgcc.
18116 (Gnatlink): Remove duplicate switches -shared-libgcc
18117
18118 2006-02-13 Robert Dewar <dewar@adacore.com>
18119
18120 * gnatvsn.ads (Current_Year): New constant, used to easily update
18121 copyright on all GNAT tools.
18122
18123 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
18124 copyright notice.
18125
18126 2006-02-13 Robert Dewar <dewar@adacore.com>
18127
18128 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
18129 after hyphen (small aesthetic change useful for a range of numbers
18130 using ^-^.
18131 Suppress range checks for a couple of assignments which otherwise
18132 cause validity checks with validity checking turned on.
18133
18134 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
18135 Improvement in error message for object.
18136 (Rep_Item_Too_Late): Remove '!' in warning message.
18137
18138 2006-02-13 Robert Dewar <dewar@adacore.com>
18139 Eric Botcazou <ebotcazou@adacore.com>
18140
18141 * err_vars.ads: Suppress range checks for a couple of assignments
18142 which otherwise cause validity checks with validity checking turned on.
18143 Update comments.
18144
18145 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
18146 Make message unconditional if it is a warning.
18147 (Error_Msg_NEL): Always output warning messages.
18148 Suppress range checks for a couple of assignments which otherwise
18149 cause validity checks with validity checking turned on.
18150
18151 * errout.ads (Message Insertion Characters): Document that '!' is
18152 implied by '?' in error messages.
18153
18154 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
18155 (Gnat1drv): Use a goto to end of main subprogram instead of
18156 Exit_Program (E_Success) so that finalization can occur normally.
18157
18158 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18159
18160 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
18161 wrapped around.
18162
18163 2006-02-13 Vincent Celier <celier@adacore.com>
18164
18165 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
18166 Unchecked_Conversion functions.
18167 (Modification_Time): Use direct conversion of OS_Time to Calendar time
18168 when OpenVMS returns False.
18169
18170 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
18171 a-dirval.adb (OpenVMS): New Boolean function
18172
18173 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18174 Thomas Quinot <quinot@adacore.com>
18175
18176 * checks.adb (Build_Discriminant_Checks): If the expression being
18177 checks is an aggregate retrieve the values of its discriminants to
18178 generate the check, rather than creating a temporary and a reference
18179 to it.
18180 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
18181 (Install_Null_Excluding_Check): Ditto
18182 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
18183 not for the renamed object, so that the actual itype is attached in the
18184 proper context.
18185
18186 2006-02-13 Robert Dewar <dewar@adacore.com>
18187 Vincent Celier <celier@adacore.com>
18188
18189 * debug.adb: Eliminate numeric switches for binder/gnatmake
18190
18191 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
18192 switches for the compiler.
18193 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
18194 (Scan_Make_Switches): When failing with an illegal switch, output an
18195 error message with the full switch.
18196 Eliminate numeric switches for binder/gnatmake
18197
18198 * switch.ads, switch.adb (Bad_Switch): New procedure
18199
18200 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
18201 Remove 0-9 as debug flag character possibilities
18202 -d is now controlling the primary stack size when its value is a
18203 positive. Also add checks against invalid values, and support for kb,
18204 mb. Ditto for -D switch.
18205
18206 2006-02-13 Robert Dewar <dewar@adacore.com>
18207 Serguei Rybin <rybin@adacore.com>
18208
18209 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
18210 save/restore routines.
18211 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18212 were not always properly handled previously.
18213 Since we are changing the tree format anyway, also get rid of the
18214 junk obsolete Immediate_Errors flag.
18215 (Tree_Read): Change the way of reading Tree_Version_String - now we
18216 read the version string from the tree even if its length is not the
18217 same as the length of the version string computed from Gnatvsn.
18218 (Search_Directory_Present): New Boolean flag for the compiler.
18219 Define Tree_Version_String as a dynamic string.
18220 (Default_Stack_Size): new variable, used to handle switch -d.
18221
18222 * par-prag.adb:
18223 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
18224 only for main unit.
18225 Add pragma Ada_2005 (synonym for Ada_05)
18226 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18227 were not always properly handled previously.
18228
18229 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
18230 explicit Ada_95 to Ada_2005.
18231
18232 2006-02-13 Javier Miranda <miranda@adacore.com>
18233 Robert Dewar <dewar@adacore.com>
18234 Ed Schonberg <schonberg@adacore.com>
18235
18236 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
18237 against errors in the source program: a private types for which the
18238 corresponding full type declaration is missing and pragma CPP_Virtual
18239 is used.
18240 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
18241 (Is_Known_Null): New flag
18242 (Has_Pragma_Pure): New flag
18243 (No_Return): Present in all entities, set only for procedures
18244 (Is_Limited_Type): A type whose ancestor is an interface is limited if
18245 explicitly declared limited.
18246 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
18247 entities. Only used for component marked Is_Tag. If present it stores
18248 the Offset_To_Top function used to provide this value in tagged types
18249 whose ancestor has discriminants.
18250
18251 * exp_ch2.adb: Update status of new Is_Known_Null flag
18252
18253 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
18254
18255 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
18256 the categorization sense if Is_Pure was set by pragma Pure_Function.
18257
18258 2006-02-13 Quentin Ochem <ochem@adacore.com>
18259 Olivier Hainque <hainque@adacore.com>
18260
18261 * bindusg.adb: Updated documentation for -d and -D switches.
18262
18263 * raise.h (__gnat_set_globals): added new parameter for
18264 Default_Stack_Size.
18265
18266 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
18267 (__gnat_handle_vms_condition): Adjust context before raise.
18268 (__gnat_install_handler): Restore the global vector setup for GCC
18269 versions before 3.4, as the frame based circtuitry is not available
18270 in this case.
18271 (__gnat_set_globals): added a parameter default_stack_size
18272 (__gl_default_stack_size): new variable.
18273
18274 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18275
18276 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
18277 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
18278 does not exist in the Ada RM.
18279 (Compatible_Int_Bounds): Determine whether two integer range bounds
18280 are of equal length and have the same start and end values.
18281 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
18282 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
18283 aggregate when it is part of an object declaration.
18284 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
18285 constrains discriminants of its parent, add explicitly the discriminant
18286 constraints of the ancestor by retrieving them from the
18287 stored_constraint of the parent.
18288
18289 2006-02-13 Robert Dewar <dewar@adacore.com>
18290
18291 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
18292 attribute Mechanism_Code is applied to renamed subprogram, modify
18293 prefix to point to base subprogram.
18294 Max/Min attributes now violate Restriction No_Implicit_Conditionals
18295
18296 * sinfo.ads: Document that Mechanism_Code cannot be applied to
18297 renamed subprograms so that the front-end must replace the prefix
18298 appropriately.
18299
18300 2006-02-13 Javier Miranda <miranda@adacore.com>
18301 Gary Dismukes <dismukes@adacore.com>
18302
18303 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
18304 availability of RE_Interface_Tag.
18305 (Build_Initialization_Call): Fix wrong access to the discriminant value.
18306 (Freeze_Record_Type): Do not generate the tables associated with
18307 timed and conditional dispatching calls through synchronized
18308 interfaces if compiling under No_Dispatching_Calls restriction.
18309 When compiling for Ada 2005, for a nonabstract
18310 type with a null extension, call Make_Controlling_Function_Wrappers
18311 and insert the wrapper function declarations and bodies (the latter
18312 being appended as freeze actions).
18313 (Predefined_Primitive_Bodies): Do not generate the bodies of the
18314 predefined primitives associated with timed and conditional
18315 dispatching calls through synchronized interfaces if we are
18316 compiling under No_Dispatching_Calls.
18317 (Build_Init_Procedure): Use RTE_Available to check if a run-time
18318 service is available before generating a call.
18319 (Make_Controlling_Function_Wrappers): New procedure.
18320 (Expand_N_Full_Type_Declaration): Create a class-wide master for
18321 access-to-limited-interfaces because they can be used to reference
18322 tasks that implement such limited interface.
18323 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
18324 procedure spec and body of the Offset_To_Top function that is generated
18325 when the parent of a type with discriminants has secondary dispatch
18326 tables.
18327 (Init_Secondary_Tags): Handle the case in which the parent of the type
18328 containing secondary dispatch tables has discriminants to generate the
18329 correct arguments to call Set_Offset_To_Top.
18330 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
18331
18332 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
18333 Add Wide_[Wide_]Expanded_Name.
18334 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
18335 the same functionality of Get_Prim_Op_Address but applied to predefined
18336 primitive operations because the pointers to the predefined primitives
18337 are now saved in a separate table.
18338 (Parent_Size): Modified to get access to the separate table of primitive
18339 operations or the parent type.
18340 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
18341 functionality of Set_Prim_Op_Address but applied to predefined primitive
18342 operations.
18343 (Set_Signature): New subprogram used to store the signature of a DT.
18344 (Displace): If the Offset_To_Top value is not static then call the
18345 function generated by the expander to get such value; otherwise use
18346 the value stored in the table of interfaces.
18347 (Offset_To_Top): The type of the actual has been changed to Address to
18348 give the correct support to tagged types with discriminants. In this
18349 case this value is stored just immediately after the tag field.
18350 (Set_Offset_To_Top): Two new formals have been added to indicate if the
18351 offset_to_top value is static and hence pass this value to the run-time
18352 to store it in the table of interfaces, or else if this value is dynamic
18353 and then pass to the run-time the address of a function that is
18354 generated by the expander to provide this value for each object of the
18355 type.
18356
18357 * rtsfind.ads (Default_Prin_Op_Count): Removed.
18358 (Default_Prim_Op_Count): New entity
18359 (Get_Predefined_Prim_Op_Address): New entity
18360 (Set_Predefined_Prim_Op_Address): New entity
18361 (RE_Set_Signature): New entity
18362
18363 2006-02-13 Thomas Quinot <quinot@adacore.com>
18364 Ed Schonberg <schonberg@adacore.com>
18365
18366 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
18367 Make_Adjust_Call done for a newly-allocated object.
18368
18369 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
18370 in a subprogram are wrapped in a cleanup block, indicate that the
18371 subprogram contains an inner block with an exception handler.
18372 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
18373 Adjust call is for a newly-allocated object. In that case we must not
18374 assume that the finalization list chain pointers are correct (since they
18375 come from a bit-for-bit copy of the original object's pointers) so if
18376 the attach level would otherwise be zero (no change), we set it to 4
18377 instead to cause the pointers to be reset to null.
18378
18379 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
18380 reset chain pointers to null.
18381
18382 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18383
18384 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
18385 string, and the context requires a loop for the assignment (e.g.
18386 because the left-hand side is packed), generate a unique name for the
18387 temporary that holds the string, to prevent spurious name clashes.
18388
18389 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18390 Javier Miranda <miranda@adacore.com>
18391 Robert Dewar <dewar@adacore.com>
18392 Gary Dismukes <dismukes@adacore.com>
18393
18394 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
18395 return unconstrained arrays.
18396 Update comments.
18397 (Expand_Call): An indirect call through an access parameter of a
18398 protected operation is not a protected call.
18399 Add circuit to raise CE in Ada 2005 mode following call
18400 to Raise_Exception.
18401 (Register_DT_Entry): Do nothing if
18402 the run-time does not give support to abstract interfaces.
18403 (Freeze_Subprogram): In case of dispatching operations, do not generate
18404 code to register the operation in the dispatch table if the source
18405 is compiled with No_Dispatching_Calls.
18406 (Register_Predefined_DT_Entry): Generate code that calls the new
18407 run-time subprogram Set_Predefined_Prim_Op_Address instead of
18408 Set_Prim_Op_Address.
18409
18410 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
18411 on array assignments if the right-hand side is a function call that has
18412 been inlined. Check is performed on the assignment in the block.
18413 (Process_Bounds): If bounds and range are overloaded, apply preference
18414 rule for root operations to disambiguate, and diagnose true ambiguity.
18415 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
18416 a tag-indeterminate right-hand side even when Expander_Active is True.
18417 Needed to ensure that dispatching calls to T'Input are allowed and
18418 get the tag of the target class-wide object.
18419
18420 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
18421 an inherited primitive operation that already overrides several
18422 abstract interface primitives. For transitivity, the new entity must
18423 also override all the abstract interface primitives covered by the
18424 inherited overriden primitive.
18425 Emit warning if new entity differs from homograph in same scope only in
18426 that one has an access parameter and the other one has a parameter of
18427 a general access type with the same designated type, at the same
18428 position in the signature.
18429 (Make_Inequality_Operator): Use source locations of parameters and
18430 subtype marks from corresponding equality operator when creating the
18431 tree structure for the implicit declaration of "/=". This does not
18432 change anything in behaviour except that the decoration of the
18433 components of the subtree created for "/=" allows ASIS to get the
18434 string images of the corresponding identifiers.
18435 (Analyze_Return_Statement): Remove '!' in warning message.
18436 (Check_Statement_Sequence): Likewise.
18437 (Analyze_Subprogram_Body): For an access parameter whose designated type
18438 is an incomplete type imported through a limited_with clause, use the
18439 type of the corresponding formal in the body.
18440 (Check_Returns): Implicit return in No_Return procedure now raises
18441 Program_Error with a compile time warning, instead of beging illegal.
18442 (Has_Single_Return): Function returning unconstrained type cannot be
18443 inlined if expression in unique return statement is not an identifier.
18444 (Build_Body_To_Inline): It is possible to inline a function call that
18445 returns an unconstrained type if all return statements in the function
18446 return the same local variable. Subsidiary procedure Has_Single_Return
18447 verifies that the body conforms to this restriction.
18448
18449 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
18450 same type, and one of them is of an anonymous access type, convert
18451 the other operand to it, so that this is a valid binary operation for
18452 gigi.
18453 (Resolve_Type_Conversion): Handle subtypes of protected types and
18454 task types when accessing to the corresponding record type.
18455 (Resolve_Allocator): Add '\' in 2-line warning message.
18456 Remove '!' in warning message.
18457 (Resolve_Call): Add '\' in 2-line warning message.
18458 (Valid_Conversion): Likewise.
18459 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
18460 resulting type may be an access type with an implicit dereference.
18461 Obtain the proper component from the designated type.
18462 (Make_Call_Into_Operator): Handle properly a call to predefined equality
18463 given by an expanded name with prefix Standard, when the operands are
18464 of an anonymous access type.
18465 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
18466 Explicit_Dereference and Resolve_Selected_Component, to verify that the
18467 prefix of the expression is not of an incomplete type. Allows full
18468 diagnoses of all semantic errors.
18469 (Resolve_Actuals): If the actual is an allocator whose directly
18470 designated type is a class-wide interface we build an anonymous
18471 access type to use it as the type of the allocator. Later, when
18472 the subprogram call is expanded, if the interface has a secondary
18473 dispatch table the expander will add a type conversion to force
18474 the displacement of the pointer.
18475 (Resolve_Call): If a function that returns an unconstrained type is
18476 marked Inlined_Always and inlined, the call will be inlined and does
18477 not require the creation of a transient scope.
18478 (Check_Direct_Boolean_Op): Removed
18479 (Resolve_Comparison_Op): Remove call to above
18480 (Resolve_Equality_Op): Remove call to above
18481 (Resolve_Logical_Op): Inline above, since this is only call.
18482 (Valid_Conversion): Handle properly conversions between arrays of
18483 convertible anonymous access types.
18484
18485 PR ada/25885
18486 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
18487 the literal in an unchecked conversion, because GCC 4.x needs a static
18488 value for a string bound.
18489
18490 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18491 Hristian Kirtchev <kirtchev@adacore.com>
18492
18493 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
18494 components of the corresponding record, take into account component
18495 definitions that are access definitions.
18496 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
18497 procedure is not considered a dispatching call and will be expanded
18498 properly.
18499
18500 2006-02-13 Javier Miranda <miranda@adacore.com>
18501
18502 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
18503 controlling argument of the dispatching call is an abstract interface
18504 class-wide type then we use it directly.
18505 Check No_Dispatching_Calls restriction.
18506 (Default_Prim_Op_Position): Remove the code that looks for the last
18507 entity in the list of aliased subprograms. This code was wrong in
18508 case of renamings.
18509 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
18510 when the source is compiled with the No_Dispatching_Calls restriction.
18511 (Init_Predefined_Interface_Primitives): No need to inherit primitives
18512 if we are compiling with restriction No_Dispatching_Calls.
18513 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
18514 subprograms if we are compiling under No_Dispatching_Calls restriction.
18515 (Make_DT): Generate a dispatch table with a single dummy entry if
18516 we are compiling with the No_Dispatching_Calls restriction. In
18517 addition, in this case we don't generate code that calls to the
18518 following run-time subprograms: Set_Type_Kind, Inherit_DT.
18519 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
18520 of this subprogram if compiling with the No_Dispatching_Calls
18521 restriction.
18522 (Expand_Type_Conversion): Instead of using the actual parameter,
18523 the argument passed as parameter to the conversion function was
18524 erroneously referenced by the expander.
18525 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
18526 Set_Predefined_Primitive_Op_Address and Set_Signature.
18527 (Expand_Dispatching_Call): Generate call to
18528 Get_Predefined_Prim_Op_Address for predefined primitives.
18529 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
18530 predefined primitives.
18531 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
18532 primitives we reserve one dummy entry to ensure that the tag does not
18533 point to some memory that is associated with some other object. In
18534 addition, remove all the old code that generated the assignments
18535 associated with the signature of the dispatch table and replace them
18536 by a call to the new subprogram Set_Signature.
18537 (Set_All_DT_Position): Change the algorithm because now we have a
18538 separate dispatch table associated with predefined primitive operations.
18539 (Expand_Interface_Conversion): In case of non-static offset_to_top
18540 add explicit dereference to get access to the object after the call
18541 to displace the pointer to the object.
18542 (Expand_Interface_Thunk): Modify the generation of the actual used
18543 in the calls to the run-time function Offset_To_Top to fulfil its
18544 new interface.
18545 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
18546
18547 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18548
18549 * exp_dist.adb (Copy_Specification): For access parameters, copy
18550 Null_Exclusion flag, which will have been set for stream subprograms
18551 in Ada2005 mode.
18552
18553 2006-02-13 Pascal Obry <obry@adacore.com>
18554
18555 * expect.c (__gnat_expect_portable_execvp): New implementation. The
18556 previous implementation was using the C runtime spawnve routine but
18557 the corresponding wait was using directly the Win32 API. This was
18558 causing some times a lock when waiting for an event using
18559 WaitForSingleObject in __gnat_waitpid. This new implementation uses
18560 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
18561 API fixes this problem.
18562
18563 2006-02-13 Robert Dewar <dewar@adacore.com>
18564
18565 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
18566 call.
18567
18568 2006-02-13 Thomas Quinot <quinot@adacore.com>
18569
18570 * exp_pakd.ads: Fix typos in comments.
18571
18572 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
18573 array reference that is an explicit dereference, mark the converted
18574 (packed) array reference as analyzed to prevent a forthcoming
18575 reanalysis from resetting its type to the original (non-packed) array
18576 type.
18577
18578 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18579 Javier Miranda <miranda@adacore.com>
18580 Eric Botcazou <ebotcazou@adacore.com>
18581
18582 * exp_util.ads, exp_util.adb (Find_Prim_Op,
18583 Is_Predefined_Primitive_Operation): When
18584 searching for the predefined equality operator, verify that operands
18585 have the same type.
18586 (Is_Predefined_Dispatching_Operation): Remove the code that looks
18587 for the last entity in the list of aliased subprograms. This code
18588 was wrong in case of renamings.
18589 (Set_Renamed_Subprogram): New procedure
18590 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
18591 Exp_Type constant computed when entering this subprogram.
18592 (Known_Null): New function
18593 (OK_To_Do_Constant_Replacement): New function
18594 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
18595 (Side_Effect_Free): An attribute reference 'Input is not free of
18596 side effect, unlike other attributes that are functions. (from code
18597 reading).
18598 (Remove_Side_Effects): Expressions that involve packed arrays or records
18599 are copied at the point of reference, and therefore must be marked as
18600 renamings of objects.
18601 (Is_Predefined_Dispatching_Operation): Return false if the operation is
18602 not a dispatching operation.
18603
18604 PR ada/18819
18605 (Remove_Side_Effects): Lift enclosing type conversion nodes for
18606 elementary types in all cases.
18607
18608 2006-02-13 Javier Miranda <miranda@adacore.com>
18609
18610 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
18611 task types when accessing to the corresponding record type.
18612 Remove '!' in warning message.
18613
18614 2006-02-13 Olivier Hainque <hainque@adacore.com>
18615
18616 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
18617 to avoid useless and space inefficient overalignments on targets where
18618 Max_Alignment is larger than 16.
18619
18620 2006-02-13 Pascal Obry <obry@adacore.com>
18621
18622 * g-catiio.adb (Sec_Number): New type used to compute the number of
18623 seconds since 1-1-1970.
18624 (Image) [Natural]: The parameter was an Integer, as we can't deal with
18625 negative numbers (years, months...) it is better to have a Natural here.
18626 Code clean-up.
18627 (Image) [Number]: Change parameter from Long_Integer to Number.
18628 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
18629 overflow for dates past year 2038.
18630
18631 2006-02-13 Matthew Heaney <heaney@adacore.com>
18632
18633 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
18634 Constraint_Error.
18635
18636 2006-02-13 Arnaud Charlet <charlet@adacore.com>
18637
18638 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
18639 native platforms.
18640 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
18641 finalization can occur normally.
18642
18643 2006-02-13 Vincent Celier <celier@adacore.com>
18644
18645 * gnatcmd.adb (Rules_Switches): New table
18646 (Add_To_Rules_Switches): New procedure
18647 (GNATCmd): For command CHECK, put all options following "-rules" in the
18648 Rules_Switches table. Append these -rules switches after the -cargs
18649 switches.
18650
18651 2006-02-13 Robert Dewar <dewar@adacore.com>
18652
18653 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
18654 These two cases were generating incorrect output, and if this unit
18655 was built with checks on, generated a discriminant mismatch constraint
18656 error.
18657
18658 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18659 Robert Dewar <dewar@adacore.com>
18660
18661 * lib-xref.adb (Get_Type_Reference): For a private type whose full
18662 view is an array type, indicate the component type as well, for
18663 navigation purposes.
18664 (Generate_Reference): Don't consider array ref on LHS to be a case
18665 of violating pragma Unreferenced.
18666 Do not give Ada 2005 warning except on real reference.
18667
18668 2006-02-13 Vincent Celier <celier@adacore.com>
18669
18670 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
18671 main source, add switch -mdebug-main=_ada_ so that the executable can
18672 be debugged by the standard VMS debugger.
18673 (Gnatmake): Set No_Main_Subprogram to True when there is no main
18674 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
18675 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
18676 of the last source, as the binding and linking phases are never
18677 performed.
18678 Set all executable obsolete when rebuilding a library.
18679
18680 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
18681 options.
18682
18683 2006-02-13 Javier Miranda <miranda@adacore.com>
18684
18685 PR ada/23973
18686 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
18687 code to improve the error message reported when the program has
18688 declarations of abstract interface types and it is not compiled with
18689 the -gnat05 switch.
18690 (P_Access_Definition): Reorganize the code to improve the error
18691 message reported when the new Ada 2005 syntax for anonymous
18692 access types is used and the program is not compiled with the
18693 -gnat05 switch.
18694
18695 2006-02-13 Robert Dewar <dewar@adacore.com>
18696
18697 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
18698 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
18699 (MODE_IN)
18700
18701 2006-02-13 Javier Miranda <miranda@adacore.com>
18702
18703 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
18704 against source containing syntax errors.
18705
18706 2006-02-13 Vincent Celier <celier@adacore.com>
18707
18708 * prj.adb (Reset): Initialize the first element of table Namings with
18709 the standard naming data.
18710
18711 2006-02-13 Vincent Celier <celier@adacore.com>
18712
18713 * prj.ads (Error_Warning): New enumeration type
18714
18715 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
18716 unknown, use the location of the project to report the error.
18717 (When_No_Sources): New global variable
18718 (Report_No_Ada_Sources): New procedure
18719 (Check): New parameter When_No_Sources. Set value of global variable
18720 When_No_Sources,
18721 (Find_Sources): Call Report_No_Ada_Sources when appropriate
18722 (Get_Sources_From_File): Ditto
18723 (Warn_If_Not_Sources): Better warning messages indicating the unit name
18724 and the file name.
18725
18726 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
18727 Call Prj.Proc.Process with parameter When_No_Sources.
18728
18729 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
18730 Call Recursive_Check with parameter When_No_Sources.
18731 (Recursive_Check): New parameter When_No_Sources. Call itself and
18732 Prj.Nmsc.Check with parameter When_No_Sources.
18733 (Process): New parameter When_No_Sources. Call Check with parameter
18734 When_No_Sources.
18735 (Copy_Package_Declarations): New procedure to copy renamed parameters
18736 and setting the location of the declared attributes to the location
18737 of the renamed package.
18738 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18739 packages.
18740
18741 2006-02-13 Vincent Celier <celier@adacore.com>
18742
18743 * prj-makr.adb (Make): Preserve the comments from the original project
18744 file.
18745 When removing nodes (attributes Source_Dirs, Source_Files,
18746 Source_List_File and package Naming), save the comments and attach the
18747 saved comments to the newly created nodes.
18748 Do not add a with clause for the naming package if one already exists.
18749
18750 2006-02-13 Javier Miranda <miranda@adacore.com>
18751 Gary Dismukes <dismukes@adacore.com>
18752 Robert Dewar <dewar@adacore.com>
18753
18754 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
18755
18756 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
18757 aliased entities to look for the overriden abstract interface
18758 subprogram.
18759 (Is_Interface_Subprogram): Complete documentation.
18760 (Check_Dispatching_Operation): Do not generate code to register the
18761 operation in the dispatch table if the source is compiled with
18762 restriction No_Dispatching_Calls.
18763 (Override_Dispatching_Operation): Check for illegal attempt to override
18764 No_Return procedure with procedure that is not No_Return
18765 (Check_Dispatching_Call): Suppress the check for an abstract operation
18766 when the original node of an actual is a tag-indeterminate attribute
18767 call, since the attribute, which must be 'Input, can never be abstract.
18768 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
18769 call to the Input attribute (even when rewritten).
18770 (Propagate_Tag): Augment comment to indicate the possibility of a call
18771 to an Input attribute.
18772
18773 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
18774 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
18775
18776 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
18777 No_Wide_Characters is no longer partition-wide
18778 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
18779 rather than GNAT
18780
18781 2006-02-13 Douglas Rupp <rupp@adacore.com>
18782
18783 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
18784
18785 2006-02-13 Javier Miranda <miranda@adacore.com>
18786
18787 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
18788 handles default-initialized components to keep separate the management
18789 of this feature but also avoid the unrequired resolution and
18790 expansion of components that do not have partially initialized
18791 values.
18792 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
18793 (Check_Bounds): Likewise.
18794 (Check_Length): Likewise.
18795
18796 2006-02-13 Javier Miranda <miranda@adacore.com>
18797 Ed Schonberg <schonberg@adacore.com>
18798
18799 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
18800 abstract interface type call analyze_and_resolve to expand the type
18801 conversion into the corresponding displacement of the
18802 reference to the base of the object.
18803 (Eval_Attribute, case Width): For systems where IEEE extended precision
18804 is supported, the maximum exponent occupies 4 decimal digits.
18805 (Accessibility_Message): Add '\' in 2-line warning message.
18806 (Resolve_Attribute): Likewise.
18807 (case Attribute_Access): Significantly revise checks
18808 for illegal access-to-subprogram Access attributes to properly enforce
18809 the rules of 3.10.2(32/2).
18810 Diagnose use of current instance with an illegal attribute.
18811
18812 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
18813 to a Node_Id.
18814 (Enclosing_Generic_Unit): New function to return a node's innermost
18815 enclosing generic declaration node.
18816 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
18817 (Type_Access_Level): The accessibility level of anonymous acccess types
18818 associated with discriminants is that of the current instance of the
18819 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
18820 (Compile_Time_Constraint_Error): Handle case of conditional expression.
18821 (Kill_Current_Values_For_Entity): New function
18822 (Enter_Name): Change formal type to Entity_Id
18823
18824 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18825 Ed Schonberg <schonberg@adacore.com>
18826 Gary Dismukes <dismukes@adacore.com>
18827
18828 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
18829 Analyze_Compilation_Unit.
18830 Detect and warn on redundant with clauses detected in a package spec
18831 and/or body when -gnatwr is used.
18832 (Analyze_Context): Analyze config pragmas before other items
18833 (Install_Context_Items): Don't analyze config pragmas here
18834 (Install_Limited_Withed_Unit): Set limited entity of package in
18835 with_clause so that cross-reference information or warning messages on
18836 unused packages can be properly generated
18837 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
18838 has Error_Posted set. Prevent infinite loops in illegal programs.
18839 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
18840 to the point of the error test requiring the current unit to be private.
18841 This ensures that private with clauses are not exempted from the basic
18842 checking for being a descendant of the same library unit parent as a
18843 withed private descendant unit.
18844 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
18845 handle private with clauses properly, as well as to account for cases
18846 where the withed unit is a public descendant of a private ancestor
18847 (in which case the current unit must be a descendant of the private
18848 ancestor's parent). The spec comments were updated accordingly. Also,
18849 the old error message in this subprogram was replaced with error
18850 messages that mirror the errors tested and reported by
18851 Check_Private_Child_Unit.
18852 Parameter and variable names improved for readability.
18853 (Install_Limited_Context_Clauses): Remove test for a withed unit being
18854 private as the precondition for calling
18855 Check_Private_Limited_Withed_Unit since that subprogram has been
18856 revised to test public units as well as private units.
18857
18858 2006-02-13 Thomas Quinot <quinot@adacore.com>
18859 Robert Dewar <dewar@adacore.com>
18860 Ed Schonberg <schonberg@adacore.com>
18861 Javier Miranda <miranda@adacore.com>
18862
18863 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
18864 that Scope_Stack.First = 1.
18865 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18866 were not always properly handled previously.
18867 (Formal_Entity): Complete rewrite, to handle properly some complex case
18868 with multiple levels of parametrization by formal packages.
18869 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
18870 to the corresponding derived type declaration for proper semantics.
18871
18872 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
18873 (Check_Component): Enforce restriction on components of
18874 unchecked_unions: a component in a variant cannot contain tasks or
18875 controlled types.
18876 (Unchecked_Union): Allow nested variants and multiple discriminants, to
18877 conform to AI-216.
18878 Add pragma Ada_2005 (synonym for Ada_05)
18879 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18880 were not always properly handled previously.
18881 Document that pragma Propagate_Exceptions has no effect
18882 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
18883 (Set_Convention_From_Pragma): Check that if a convention is
18884 specified for a dispatching operation, then it must be
18885 consistent with the existing convention for the operation.
18886 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
18887 longer required to specify an vtable-ptr component in the record. For
18888 compatibility reasons we leave the support for the previous definition.
18889 (Analyze_Pragma, case No_Return): Allow multiple arguments
18890
18891 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
18892 non-overrideen inherited operation with a controlling result as
18893 illegal only its implicit declaration comes from the derived type
18894 declaration of its result's type.
18895 (Check_Possible_Deferred_Completion): Relocate the object definition
18896 node of the subtype indication of a deferred constant completion rather
18897 than directly analyzing it. The analysis of the generated subtype will
18898 correctly decorate the GNAT tree.
18899 (Record_Type_Declaration): Check whether this is a declaration for a
18900 limited derived record before analyzing components.
18901 (Analyze_Component_Declaration): Diagnose record types not explicitly
18902 declared limited when a component has a limited type.
18903 (Build_Derived_Record_Type): Code reorganization to check if some of
18904 the inherited subprograms of a tagged type cover interface primitives.
18905 This check was missing in case of a full-type associated with a private
18906 type declaration.
18907 (Constant_Redeclaration): Check that the subtypes of the partial and the
18908 full view of a constrained deferred constant statically match.
18909 (Mentions_T): A reference to the current type in an anonymous access
18910 component declaration must be an entity name.
18911 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
18912 class_wide type to refer to full type, not to the incomplete one.
18913 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
18914 available. Required to give support to the certified run-time.
18915 (Analyze_Component_Declaration): In case of anonymous access components
18916 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
18917 (Process_Discriminants): For an access discriminant, use the
18918 discriminant specification as the associated_node_for_itype, to
18919 simplify accessibility checks.
18920
18921 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18922 Javier Miranda <miranda@adacore.com>
18923
18924 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
18925 abstract interpretations on an operator, remove interpretations that
18926 yield Address or a type derived from it, if one of the operands is an
18927 integer literal.
18928 (Try_Object_Operation.Try_Primitive_Operation,
18929 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
18930 location when creating the new reference to a primitive or class-wide
18931 operation as a part of rewriting a subprogram call.
18932 (Try_Primitive_Operations): If context requires a function, collect all
18933 interpretations after the first match, because there may be primitive
18934 operations of the same type with the same profile and different return
18935 types. From code reading.
18936 (Try_Primitive_Operation): Use the node kind to choose the proper
18937 operation when a function and a procedure have the same parameter
18938 profile.
18939 (Complete_Object_Operation): If formal is an access parameter and prefix
18940 is an object, rewrite as an Access reference, to match signature of
18941 primitive operation.
18942 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
18943 by an expanded name with prefix Standard, when the operands are of an
18944 anonymous access type.
18945 (Remove_Abstract_Operations): If the operation is abstract because it is
18946 inherited by a user-defined type derived from Address, remove it as
18947 well from the set of candidate interpretations of an overloaded node.
18948 (Analyze_Membership_Op): Membership test not applicable to cpp-class
18949 types.
18950
18951 2006-02-13 Bob Duff <duff@adacore.com>
18952
18953 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
18954 redundant use clauses.
18955 In particular, if the scope of two use clauses overlaps, but one is not
18956 entirely included in the other, we should not warn. This can happen
18957 with nested packages.
18958 (Analyze_Subprogram_Renaming): Protect the compiler against previously
18959 reported errors. The bug was reported when the compiler was built
18960 with assertions enabled.
18961 (Find_Type): If the node is a 'Class reference and the prefix is a
18962 synchronized type without a corresponding record, return the type
18963 itself.
18964
18965 2006-02-13 Javier Miranda <miranda@adacore.com>
18966
18967 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
18968 if this is the full-declaration associated with a private declaration
18969 that implement interfaces, then the private type declaration must be
18970 limited.
18971 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
18972 as aliased. The use of the 'access attribute is not available for such
18973 object (for this purpose the object should be explicitly marked as
18974 aliased, but being an anonymous type this is not possible).
18975
18976 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18977 Robert Dewar <dewar@adacore.com>
18978
18979 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
18980 compilation unit is an elaboration scope.
18981 (Add_Task_Proc): Add '\' in 2-line warning message.
18982 (Activate_All_Desirable): Deal with case of unit with'ed by parent
18983
18984 2006-02-13 Ed Schonberg <schonberg@adacore.com>
18985 Javier Miranda <miranda@adacore.com>
18986
18987 * sem_type.adb (Write_Overloads): Improve display of candidate
18988 interpretations.
18989 (Add_One_Interp): Do not add to the list of interpretations aliased
18990 entities corresponding with an abstract interface type that is an
18991 immediate ancestor of a tagged type; otherwise we have a dummy
18992 conflict between this entity and the aliased entity.
18993 (Disambiguate): The predefined equality on universal_access is not
18994 usable if there is a user-defined equality with the proper signature,
18995 declared in the same declarative part as the designated type.
18996 (Find_Unique_Type): The universal_access equality operator defined under
18997 AI-230 does not cover pool specific access types.
18998 (Covers): If one of the types is a generic actual subtype, check whether
18999 it matches the partial view of the other type.
19000
19001 2006-02-13 Thomas Quinot <quinot@adacore.com>
19002
19003 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19004 line. This is necessary to allow In_Extended_Main_Unit to provide
19005 correct results for itypes while writing out expanded source.
19006 (Close_File): No need to update the source_index_table here since it's
19007 now done for each line.
19008
19009 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19010 Robert Dewar <dewar@adacore.com>
19011
19012 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19013 preserve the source unit where the itype is declared, and prevent a
19014 backend abort.
19015 (Note_Implicit_Run_Time_Call): New procedure
19016 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19017 E_Subprogram_Type)
19018
19019 * sprint.ads: Document use of $ for implicit run time routine call
19020
19021 2006-02-13 Quentin Ochem <ochem@adacore.com>
19022
19023 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19024 task name.
19025
19026 2006-02-13 Bob Duff <duff@adacore.com>
19027
19028 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19029 Scan_Unsigned, so we do not scan leading blanks and sign twice.
19030 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19031 raise Constraint_Error.
19032
19033 * s-vallli.adb (Scan_Long_Long_Integer): Call
19034 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19035 do not scan leading blanks and sign twice.
19036 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19037 raise Constraint_Error.
19038
19039 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19040 Scan_Long_Long_Unsigned): Split out most of the processing from
19041 Scan_Long_Long_Unsigned out into
19042 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19043 This prevents scanning leading blanks and sign twice.
19044 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19045 See RM-3.5(44).
19046
19047 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19048 out most of the processing from Scan_Unsigned out into
19049 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19050 This prevents scanning leading blanks and sign twice.
19051
19052 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19053 use with Modular'Value attribute.
19054 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19055 attribute.
19056
19057 2006-02-13 Robert Dewar <dewar@adacore.com>
19058
19059 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19060
19061 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19062
19063 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19064 (PPC VxWorks): Likewise.
19065 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19066 (forced_callee): Make non-inlinable and non-pure.
19067 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
19068
19069 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19070 Ben Brosgol <brosgol@adacore.com>
19071 Robert Dewar <dewar@adacore.com>
19072
19073 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
19074 support.
19075 Document that gnatbind -M option is for cross environments only.
19076 Added description of using gnatmem to trace gnat rtl allocs and deallocs
19077 Add note on use of $ to label implicit run time calls
19078 Add documentation for -gnatyI (check mode IN)
19079 Updated chapter on compatibility with HP Ada
19080 VMS-oriented edits.
19081 Ran spell and corrected errors
19082 Add documentation for gnatbind -d and rework documentation of -D
19083 at the same time.
19084 Add subprogram/data elimination section.
19085 Minor editing of annex A.
19086 Add section for gnatcheck.
19087 Add documentation for restriction No_Dispatching_Calls
19088 Add documentation for pragma Ada_2005
19089 Remove mention of obsolete pragma Propagate_Exceptions
19090 Document that pragma Unreferenced can appear after DO in ACCEPT
19091 Clarify Pure_Function for library level units
19092 Mention Max/Min in connection with No_Implicit_Conditionals
19093 No_Wide_Characters restriction is no longer partition-wide
19094 Add a nice example for Universal_Literal_String attribute
19095 Document that pragma No_Return can take multiple arguments
19096
19097 * ug_words: Added entry for gnatcheck
19098
19099 * g-ctrl_c.ads (Install_Handler): Enhance comments
19100
19101 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
19102
19103 * g-trasym.ads: Add documentation on how to do off line symbolic
19104 traceback computation.
19105
19106 * s-fatgen.adb: Add comments for Unaligned_Valid
19107
19108 * stand.ads: Fix typo in comment
19109
19110 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19111
19112 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
19113
19114 2006-02-06 Roger Sayle <roger@eyesopen.com>
19115
19116 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
19117
19118 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19119
19120 PR target/25926
19121 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
19122 implementation that calls __main.
19123
19124 2006-01-25 Peter O'Gorman <peter@pogma.com>
19125
19126 PR bootstrap/25859
19127 * Makefile.in (GCC_LINK): Remove quotes.
19128 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
19129 or $(GCC_LINK).
19130
19131 (powerpc-darwin): Pass -shared-libgcc when building shared library.
19132
19133 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19134
19135 PR ada/24533
19136 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
19137
19138 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19139
19140 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
19141
19142 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19143
19144 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
19145 needed.
19146
19147 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19148
19149 * Make-lang.in: Update dependencies
19150
19151 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19152
19153 * Make-lang.in: Add rule for ada/exp_sel.o
19154
19155 2005-12-12 Arnaud Charlet <charlet@adacore.com>
19156
19157 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
19158
19159 2005-12-09 Arnaud Charlet <charlet@adacore.com>
19160
19161 * gnatvsn.ads (Library_Version): Bump to version 4.2
19162 (ASIS_Version_Number): Bumped.
19163
19164 2005-12-09 Doug Rupp <rupp@adacore.com>
19165
19166 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
19167 Ada bind file prefix on VMS from b$ to b__.
19168 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
19169 __init.
19170
19171 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
19172 Targparm.OpenVMS_On_Target.
19173 (Object_Suffix): Initialize with target object suffix.
19174 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
19175
19176 * butil.adb: Change some Hostparm.OpenVMS checks to
19177 Targparm.OpenVMS_On_Target.
19178
19179 * clean.adb: Change some Hostparm.OpenVMS checks to
19180 Targparm.OpenVMS_On_Target.
19181 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
19182 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
19183 Ada bind file prefix on VMS from b$ to b__.
19184
19185 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
19186 --GCC so that Get_Target_Parameters can find system.ads.
19187 (Gnatlink): Call Get_Target_Parameters in mainline.
19188 Initialize standard packages for Targparm.
19189 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19190 (Process_Args): Also Check for object files with target object
19191 extension.
19192 (Make_Binder_File_Names): Create with target object extension.
19193 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
19194 to b__.
19195
19196 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
19197 Targparm.OpenVMS_On_Target.
19198 ({declaration},Build_Library,Check_Library): Change Ada bind file
19199 prefix on VMS from b$ to b__.
19200
19201 * osint-b.adb: Change some Hostparm.OpenVMS checks to
19202 Targparm.OpenVMS_On_Target.
19203 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
19204 b__.
19205
19206 * targext.c: New file.
19207
19208 * Makefile.in: add support for vxworks653 builds
19209 (../../vxaddr2line): gnatlink with targext.o.
19210 (TOOLS_LIBS): Move targext.o to precede libgnat.
19211 (init.o, initialize.o): Minor clean up in dependencies.
19212 (GNATLINK_OBJS): Add targparm.o, snames.o
19213 Add rules fo building targext.o and linking it explicitly with all
19214 tools.
19215 Also add targext.o to gnatlib.
19216
19217 * Make-lang.in: Add rules for building targext.o and linking it in
19218 with gnat1 and gnatbind.
19219 Add entry for exp_sel.o.
19220
19221 * osint.adb Change some Hostparm.OpenVMS checks to
19222 Targparm.OpenVMS_On_Target.
19223 (Object_File_Name): Use target object suffix.
19224
19225 * osint.ads (Object_Suffix): Remove, no longer used.
19226 (Target_Object_Suffix): Initialize with target object suffix.
19227
19228 * rident.ads: Add special exception to license.
19229
19230 * targparm.adb (Get_Target_Parameters): Set the value of
19231 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
19232 value.
19233 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
19234
19235 * targparm.ads: Add special exception to license.
19236
19237 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
19238 function.
19239 (Copy_File): Make sure from file is closed if error on to file
19240 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
19241
19242 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
19243 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
19244
19245 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
19246 target object suffix.
19247
19248 2005-12-09 Jose Ruiz <ruiz@adacore.com>
19249 Quentin Ochem <ochem@adacore.com>
19250 Florian Villoing <villoing@adacore.com>
19251
19252 * a-taster.ads, a-taster.adb: New files.
19253
19254 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
19255 link to the version that does nothing. This way the task termination
19256 routine is not executed twice for the environment task when finishing
19257 because of an unhandled exception.
19258
19259 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
19260 handler because of an unhandled exception.
19261
19262 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
19263 System.Tasking.Utilities instead of that in System.Tasking.Stages.
19264
19265 * s-finimp.adb (initialization code): Modify the soft link for the
19266 finalization of the global list instead of Adafinal.
19267
19268 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
19269 non-tasking version of the soft link for task termination. We do
19270 nothing since if we are using the non-tasking version it
19271 means that the task termination functionality is not used.
19272 (Null_Finalize_Global_List): Add this null version for the procedure
19273 in charge of finalizing the global list for controlled objects.
19274 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
19275 instead for handling run-time termination in a more flexible way.
19276 (Adafinal_NT): This new procedure will take care of finalizing the
19277 global list for controlled objects if needed, but no tasking
19278 finalization.
19279
19280 * s-tarest.adb (Task_Lock): Do not try to lock again the
19281 Global_Task_Lock if we already own it. Otherwise, we get blocked in
19282 some run-time operations.
19283 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
19284 until all nested locks have been released.
19285 (Task_Wrapper): Call the fall-back task termination handler. It
19286 applies to all tasks but the environment task.
19287 (Finalize_Global_Tasks): Add the call for the task termination
19288 procedure for the environment task.
19289 (Task_Wrapper): suppress warnings around declaration of
19290 Secondary_Stack_Address.
19291
19292 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
19293 moved to the Common_ATCB record.
19294 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
19295 Common_ATCB record.
19296 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
19297 Common_ATCB record.
19298
19299 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
19300 Fall_Back_Handler, and Specific_Handler.
19301
19302 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
19303 defined in Ada.Task_Termination, to avoid circular dependencies.
19304 (Termination_Handler): Redefine this type here, alredy defined in
19305 Ada.Task_Termination, for avoiding circular dependencies.
19306 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
19307 for storing task termination handlers. In addition,
19308 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
19309 Common_ATCB because it is used by both the regular and the restricted
19310 run times.
19311 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
19312 Common_ATCB because it is used by both the regular and the restricted
19313 run times.
19314 (Common_ATCB): Added a dynamic task analyzer field.
19315
19316 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
19317 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
19318 (Task_Wrapper): Call the task termination handler. It applies to all
19319 tasks but the environment task.
19320 (Finalize_Global_Tasks): Call the task termination procedure for the
19321 environment task. The call to Finalize_Global_List is now performed
19322 using the soft links mechanism.
19323 (Task_Wrapper): added dynamic stack analysis.
19324
19325 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
19326 potentially blocking operations has been moved from
19327 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
19328 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
19329 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
19330 this run-time check.
19331
19332 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
19333 of task termination procedure.
19334 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
19335 link for the task termination procedure.
19336
19337 * bindusg.adb: (Bindusg): Added documentation for -u option.
19338
19339 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
19340 (Get_Main_C): Add handling of dynamic stack analysis.
19341 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
19342
19343 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
19344 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
19345 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
19346
19347 * opt.ads: Added flags used by dynamic stack measurement.
19348 (Max_Line_Length): Remove (not used anymore)
19349
19350 * s-io.ads, s-io.adb (Standard_Error): new subprogram
19351 (Standart_Output): new subprogram
19352 (Set_Output): new subprogram
19353 (Put): now uses the value of Current_Out to know if the output has to be
19354 send to stderr or stdout.
19355
19356 * s-stausa.ads: Complete implementation.
19357
19358 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
19359
19360 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
19361 list of Ada 05 files.
19362 (GNAT Library Units): Add AltiVec files.
19363
19364 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
19365 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
19366 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
19367
19368 2005-12-09 Nicolas Setton <setton@adacore.com>
19369
19370 * adaint.c (__gnat_locate_regular_file): Return immediately if
19371 file_name is empty.
19372
19373 2005-12-09 Javier Miranda <miranda@adacore.com>
19374 Hristian Kirtchev <kirtchev@adacore.com>
19375
19376 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
19377 to the specification because the frontend generates code that uses this
19378 subprogram.
19379 (Set_Interface_Table): Add missing assertion.
19380 Update documentation describing the run-time structure.
19381 (Displace): New subprogram that displaces the pointer to the object
19382 to reference one of its secondary dispatch tables.
19383 (IW_Membership): Modified to use the new table of interfaces.
19384 (Inherit_TSD): Modified to use the new table of interfaces.
19385 (Register_Interface_Tag): Use the additional formal to fill the
19386 contents of the new table of interfaces.
19387 (Set_Interface_Table): New subprogram that stores in the TSD the
19388 pointer to the table of interfaces.
19389 (Set_Offset_To_Top): Use the additional formal to save copy of
19390 the offset value in the table of interfaces.
19391 Update structure of GNAT Primary and Secondary dispatch table diagram.
19392 Add comment section on GNAT dispatch table prologue.
19393 (Offset_To_Signature): Update the constant value of the Signature field.
19394 (Dispatch_Table): Update comment on hidden fields in the prologue.
19395 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
19396 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
19397 the type of formal parameter T to Tag, introduce additional assertions.
19398 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
19399 conversion.
19400 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
19401
19402 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
19403 in all the calls to Expand_Interface_Thunk. Instead of referencing the
19404 record component containing the tag of the secondary dispatch table we
19405 have to use the Offset_To_Top run-time function to get this information;
19406 otherwise if the pointer to the base of the object has been displace
19407 we get a wrong value if we use the 'position attribute.
19408
19409 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
19410 all the calls to Expand_Interface_Thunk.
19411 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
19412 interfaces; hence the call to Set_Interface_Table was clearly wrong.
19413 (Collect_All_Interfaces): Modify the internal subprogram Collect to
19414 ensure that the interfaces implemented by the ancestors are placed
19415 at the header of the generated list.
19416 (Expand_Interface_Conversion): Handle the case in which the displacement
19417 associated with the interface conversion is not statically known. In
19418 this case we generate a call to the new run-time subprogram Displace.
19419 (Make_DT): Generate and fill the new table of interfaces.
19420 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
19421 Get_Tagged_Kind and Set_Tagged_Kind.
19422 (Tagged_Kind): New function that determines the tagged kind of a type
19423 with respect to limitedness and concurrency and returns a reference to
19424 RE_Tagged_Kind.
19425 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
19426 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
19427 primary dispatch table for a type.
19428 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
19429 secondary dispatch table respectively of a tagged type.
19430
19431 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
19432 (Expand_Interface_Conversion): New subprogram to indicate if the
19433 displacement of the type conversion is statically known.
19434 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
19435
19436 * rtsfind.ads (RE_Offset_To_Top): New entity
19437 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
19438 accessible to users.
19439 (Re_Displace): New entity
19440 (RE_Interface_Data): New entity
19441 (RE_Set_Interface_Data): New_Entity
19442 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
19443 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
19444 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
19445 RE_TK_Tagged, RE_TK_Task.
19446
19447 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
19448 Init_Secondary_Tags_Internal to allow its use with interface types and
19449 also to generate the code for the new additional actual required
19450 by Set_Offset_To_Top.
19451 (Build_Init_Statements): In case of components associated with abstract
19452 interface types there is no need to generate a call to its IP.
19453 (Freeze_Record_Type): Generate Select Specific Data tables only for
19454 concurrent types.
19455 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
19456 the bodies and specifications of the predefined primitive operations
19457 dealing with dispatching selects and abort, 'Callable, 'Terminated only
19458 for concurrent types.
19459
19460 * exp_sel.ads, exp_sel.adb: New files.
19461
19462 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
19463 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
19464 properly protected objects and attach handler in the case of the
19465 restricted profile.
19466 Move embeded package Select_Expansion_Utilities into a separate external
19467 package.
19468 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
19469 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
19470 (Build_K, Build_S_Assignment): New subprograms, part of the select
19471 expansion utilities.
19472 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
19473 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
19474 where the trigger is a dispatching procedure of a limited tagged type.
19475
19476 2005-12-09 Olivier Hainque <hainque@adacore.com>
19477
19478 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
19479 pointer initialization values. Make a SAVE_EXPR instead. Add comments
19480 about the use and expansion of SAVE_EXPRs in the various possible
19481 renaming handling cases.
19482 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
19483 abusing DECL_FCONTEXT.
19484
19485 2005-12-09 Matthew Heaney <heaney@adacore.com>
19486
19487 * a-convec.adb (Merge): Added assertions to check whether vector params
19488 are sorted.
19489
19490 * a-coinve.adb (Merge): Added assertions to check whether vector params
19491 are sorted.
19492
19493 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
19494 draft.
19495 (Cursor'Read): raises PE
19496
19497 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
19498 to its default value.
19499
19500 * a-cihama.adb: Manually check whether cursor's key and elem are
19501 non-null
19502
19503 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
19504 (Merge): Assert that target and source lists are in order
19505 (Swap): Declare non-const temporaries, to pass to Splice
19506
19507 * a-cdlili.ads: (Splice): Changed param name and param mode
19508
19509 * a-cdlili.adb: (Splice): Changed param name and param mode
19510 (Merge): Assert that target and source lists are in order
19511 (Swap): Declare non-const temporaries, to pass to Splice
19512
19513 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
19514 (Write): declare Stream param as not null
19515
19516 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
19517 an exception message.
19518
19519 2005-12-09 Thomas Quinot <quinot@adacore.com>
19520 Robert Dewar <dewar@adacore.com>
19521
19522 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
19523 which is the absolute maximum length we can support.
19524
19525 * frontend.adb: For the processing of configuration pragma files,
19526 remove references to Opt.Max_Line_Length, which is not checked anymore.
19527
19528 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
19529 length.
19530
19531 * scn.adb, scng.adb:
19532 Always check line length against the absolute supported maximum,
19533 Hostparm.Max_Line_Length.
19534
19535 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
19536 value for the maximum line length is Max_Line_Length (not
19537 Column_Number'Last).
19538 Minor error msg update
19539 (Set_Style_Check_Options): New interface returning error msg
19540 Minor code reorganization (processing for 'M' was out of alpha order)
19541
19542 * switch-c.adb: New interface for Set_Style_Check_Options
19543
19544 * stylesw.ads (Set_Style_Check_Options): New interface returning error
19545 msg.
19546
19547 2005-12-09 Javier Miranda <miranda@adacore.com>
19548
19549 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
19550 with IP subprogram were only supported if there were limited types.
19551
19552 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
19553 records with IP subprogram were only supported if there were limited
19554 types.
19555
19556 2005-12-09 Olivier Hainque <hainque@adacore.com>
19557 Eric Botcazou <ebotcazou@adacore.com>
19558
19559 * trans.c (tree_transform, emit_check): Adjust calls to
19560 build_call_raise, passing the now expected GNAT_NODE argument.
19561
19562 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
19563 source line information than what the current global locus indicates
19564 when appropriate.
19565
19566 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
19567 field has overflowed.
19568 (build_call_raise): Add a GNAT_NODE argument to convey better source
19569 line information than what the current global locus indicates when
19570 appropriate.
19571 (build_component_ref): Adjust call to build_call_raise.
19572
19573 2005-12-09 Pascal Obry <obry@adacore.com>
19574
19575 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
19576 the iterator is quitting iteration on parent directory.
19577
19578 2005-12-09 Javier Miranda <miranda@adacore.com>
19579
19580 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
19581 and the assignment to a class-wide object, before the assignment we
19582 generate a run-time check to ensure that the tag of the Target is
19583 covered by the tag of the source.
19584
19585 2005-12-09 Robert Dewar <dewar@adacore.com>
19586
19587 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
19588 parameter in call to Image_Wide_Character.
19589
19590 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
19591 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
19592 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
19593 annoying FFFE/FFFF inconsistency.
19594
19595 2005-12-09 Robert Dewar <dewar@adacore.com>
19596 Javier Miranda <miranda@adacore.com>
19597 Ed Schonberg <schonberg@adacore.com>
19598
19599 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
19600 of type conversion.
19601 (Find_Interface): New subprogram that given a tagged type and one of its
19602 component associated with the secondary table of an abstract interface
19603 type, return the entity associated with such abstract interface type.
19604 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
19605 base type to create anonymous subtype, because entity may be a locally
19606 declared subtype or generic actual.
19607 (Find_Interface): New subprogram that given a tagged type and one of its
19608 component associated with the secondary table of an abstract interface
19609 type, return the entity associated with such abstract interface type.
19610
19611 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
19612 conversion cannot be handled at compile time. In this case we pass this
19613 information to the expander to generate the appropriate code.
19614
19615 2005-12-09 Robert Dewar <dewar@adacore.com>
19616 Ed Schonberg <schonberg@adacore.com>
19617 Gary Dismukes <dismukes@adacore.com>
19618 Javier Miranda <miranda@adacore.com>
19619 Hristian Kirtchev <kirtchev@adacore.com>
19620
19621 * einfo.adb (Itype_Printed): New flag
19622 (Is_Limited_Type): Derived types do not inherit limitedness from
19623 interface progenitors.
19624 (Is_Return_By_Reference_Type): Predicate does not apply to limited
19625 interfaces.
19626
19627 * einfo.ads (Itype_Printed): New flag
19628 Move Is_Wrapper_Package to proper section
19629 Add missing Inline for Is_Volatile
19630
19631 * output.ads, output.adb (Write_Erase_Char): New procedure
19632 (Save/Restore_Output_Buffer): New procedures
19633 (Save/Restore_Output_Buffer): New procedures
19634
19635 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
19636 Add missing support for anonymous access type
19637 (Write_Id): Insert calls to Write_Itype
19638 (Write_Itype): New procedure to output itypes
19639
19640 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
19641 use of "limited" in declaration.
19642
19643 * sinfo.ads, sinfo.adb:
19644 Formal derived types can carry an explicit "limited" indication.
19645
19646 * sem_ch3.adb: Add with and use of Targparm.
19647 (Create_Component): If Frontend_Layout_On_Target is True and the
19648 copied component does not have a known static Esize, then reset
19649 the size and positional fields of the new component.
19650 (Analyze_Component_Declaration): A limited component is
19651 legal within a protected type that implements an interface.
19652 (Collect_Interfaces): Do not add to the list the interfaces that
19653 are implemented by the ancestors.
19654 (Derived_Type_Declaration): If the parent of the full-view is an
19655 interface perform a transformation of the tree to ensure that it has
19656 the same parent than the partial-view. This simplifies the job of the
19657 expander in order to generate the correct object layout, and it is
19658 needed because the list of interfaces of the full-view can be given in
19659 any order.
19660 (Process_Full_View): The parent of the full-view does not need to be
19661 a descendant of the parent of the partial view if both parents are
19662 interfaces.
19663 (Analyze_Private_Extension_Declaration): If declaration has an explicit
19664 "limited" the parent must be a limited type.
19665 (Build_Derived_Record_Type): A derived type that is explicitly limited
19666 must have limited ancestor and progenitors.
19667 (Build_Derived_Type): Ditto.
19668 (Process_Full_View): Verify that explicit uses of "limited" in partial
19669 and full declarations are consistent.
19670 (Find_Ancestor_Interface): Remove function.
19671 (Collect_Implemented_Interfaces): New procedure used to gather all
19672 implemented interfaces by a type.
19673 (Contain_Interface): New function used to check whether an interface is
19674 present in a list.
19675 (Find_Hidden_Interface): New function used to determine whether two
19676 lists of interfaces constitute a set equality. If not, the first
19677 differing interface is returned.
19678 (Process_Full_View): Improve the check for the "no hidden interface"
19679 rule as defined by AI-396.
19680
19681 2005-12-09 Robert Dewar <dewar@adacore.com>
19682
19683 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
19684 types, not on record subtypes.
19685 (Freeze_Entity): Code cleanup. Add barrier to the loop
19686 that generates the references for primitive operations. This allows to
19687 remove an unnecessary exception handler.
19688 Code reformatting and comment clean ups.
19689
19690 2005-12-09 Vincent Celier <celier@adacore.com>
19691
19692 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
19693 If GNAT CHECK is called with a project file, but with no
19694 source on the command line, call gnatcheck with all the compilable
19695 sources of the project.
19696 Take into account the new command Check, for gnatcheck. Treat as for
19697 other ASIS tools: take into account project, specific package Check and
19698 Compiler switches.
19699 For ASIS tools, add the switches in package Compiler for
19700 the invocation of the compiler.
19701
19702 * prj-attr.adb: Add package Check and its attributes
19703
19704 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
19705
19706 * vms_conv.adb (Initialize): Change Params of command Check to
19707 unlimited files.
19708 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19709 Add data for new command Check
19710
19711 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
19712 ELIM.
19713 Add qualifiers for Check command options
19714 (Command_Type): New command Check
19715
19716 2005-12-09 Thomas Quinot <quinot@adacore.com>
19717
19718 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
19719 command line switch overruns the output buffer.
19720
19721 2005-12-09 Robert Dewar <dewar@adacore.com>
19722
19723 * sem_prag.adb: Processing for new pragma Complete_Representation
19724 (Analyze_Pragma, case Debug): Implement two argument form.
19725
19726 * par-prag.adb: Entry for new pragma Complete_Representation
19727 (Prag, case Debug): Recognize two argument form of pragma Debug
19728 New interface for Set_Style_Check_Options.
19729
19730 * sem_ch13.adb: Implement new pragma Complete_Representation.
19731
19732 * snames.adb, snames.ads, snames.h: Entry for new pragma
19733 Complete_Representation.
19734
19735 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19736
19737 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19738 available user-specified stream attributes on limited parameters to
19739 also test the type directly rather than only its underlying type (for
19740 Ada 95) and, in the case of Ada 2005, to check that the user-specified
19741 attributes are visible at the point of the subprogram declaration.
19742 For Ada 2005, the error message is modified to indicate that the
19743 type's stream attributes must be visible (again, only for -gnat05).
19744
19745 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19746
19747 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19748 anonymous access types.
19749
19750 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
19751 matching of anonymous access types and anonymous access to subprogram
19752 types. 'R'M 4.9.1 (2/2).
19753
19754 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19755
19756 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
19757 rule prematurely when operands are universal, remaining ambiguities
19758 will be removed during resolution.
19759 Code cleanup.
19760
19761 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
19762 that are Ada 2005 functions.
19763 (Has_Abstract_Interpretation): Subsidiary to
19764 Remove_Conversions, to remove ambiguities caused by abstract operations
19765 on numeric types when operands are universal.
19766
19767 2005-12-09 Robert Dewar <dewar@adacore.com>
19768
19769 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
19770 for case where spec is categorized.
19771
19772 2005-12-09 Javier Miranda <miranda@adacore.com>
19773
19774 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
19775 types use the corresponding record type. This was not needed before
19776 the implementation of Ada 2005 synchronized types because
19777 concurrent types were never tagged types in Ada 95.
19778
19779 2005-12-09 Ed Schonberg <schonberg@adacore.com>
19780
19781 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
19782 first subtype of the type of the expression to verify that it is a
19783 legal Time type.
19784
19785 2005-12-09 Robert Dewar <dewar@adacore.com>
19786
19787 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
19788 decoded names.
19789
19790 2005-12-09 Quentin Ochem <ochem@adacore.com>
19791 Robert Dewar <dewar@adacore.com>
19792 Ed Falis <falis@adacore.com>
19793 Florian Villoing <villoing@adacore.com>
19794 Thomas Quinot <quinot@adacore.com>
19795 Arnaud Charlet <charlet@adacore.com>
19796
19797 * gnat_ugn.texi: Created section "Stack Related Tools"
19798 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
19799 "Stack Related Tools"
19800 Added subsection "Static Stack Usage Analysis"
19801 Added subsection "Dynamic Stack Usage Analysis"
19802 Include documentation of itypes in sprint listing (-gnatG)
19803 Documented gnatbind -D switch (default sec stack size for fixed sec
19804 stacks).
19805 Added Interrupt_State and Persistent_BSS to list of configuration
19806 pragmas.
19807 Add missing doc for maximum value of nnn in -gnatyMnnn
19808
19809 * gnat_rm.texi: Document the AltiVec binding.
19810 Add documentation for pragma Complete_Representation
19811 Shortened an overly long line (> 79 chars)
19812 Clarify documentation of unchecked conversion in implementation
19813 defined cases.
19814 Document two argument form of pragma Debug
19815
19816 * types.ads (Column_Number): Update documentation.
19817
19818 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
19819 library level Finalize_Storage_Only objects (these are not attached to
19820 any finalization list).
19821
19822 * system-mingw.ads: (Underlying_Priorities): Update comment.
19823
19824 2005-12-09 Robert Dewar <dewar@adacore.com>
19825
19826 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
19827 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
19828 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
19829 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
19830 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
19831 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
19832 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
19833 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
19834 reformatting.
19835
19836 2005-12-09 Robert Dewar <dewar@adacore.com>
19837
19838 * s-vaflop-vms-alpha.adb: (Ne_F): New function
19839 (Ne_G): New function
19840
19841 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
19842 for tag assignment.
19843 (Rewrite_Comparison): Handle case where operation is not a comparison
19844 and ignore, and also handle type conversion case.
19845
19846 2005-12-09 Thomas Quinot <quinot@adacore.com>
19847
19848 * exp_aggr.ads: Fix typo in comment.
19849 ???-mark Convert_Aggr_In_Assignment as needing documentation.
19850
19851 2005-12-09 Gary Dismukes <dismukes@adacore.com>
19852
19853 * layout.adb: Replace various uses of byte by storage unit throughout.
19854 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
19855 static size, convert to storage units before returning, to conform to
19856 spec.
19857
19858 2005-12-09 Matthew Gingell <gingell@adacore.com>
19859
19860 * g-exctra.ads: Fix typo in comment.
19861
19862 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19863
19864 * utils.c: Minor reformatting.
19865
19866 2005-12-09 Robert Dewar <dewar@adacore.com>
19867
19868 * g-soccon.ads:
19869 Further comment fixes to make the status of the default file clear
19870
19871 * s-bitops.adb: Clarify comment for Bits_Array
19872
19873 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
19874
19875 * Make-lang.in (ada.install-normal): Remove.
19876
19877 2005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
19878
19879 * Make-lang.in: Remove all dependencies on s-gtype.
19880
19881 2005-12-05 Richard Guenther <rguenther@suse.de>
19882
19883 * utils.c (convert): Use fold_convert where appropriate.
19884
19885 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
19886
19887 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
19888 a period is meant.
19889
19890 2005-12-02 Richard Guenther <rguenther@suse.de>
19891
19892 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
19893
19894 2005-12-01 Roger Sayle <roger@eyesopen.com>
19895
19896 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
19897 nodes.
19898
19899 2005-11-23 Laurent Guerby <laurent@guerby.net>
19900
19901 * mlib-prj.adb (Build_Library): Initialize Delete.
19902
19903 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
19904
19905 * socket.c: Add extern int h_errno for rtems since networking header
19906 files are not available at this point in a tool bootstrap. Newlib
19907 only has basic C library header files.
19908
19909 2005-11-19 Richard Guenther <rguenther@suse.de>
19910 Roger Sayle <roger@eyesopen.com>
19911
19912 PR ada/23717
19913 * misc.c (internal_error_function): Don't use vsprintf to format
19914 the error message text, instead use pp_format_text and the new
19915 pretty printer APIs. This allows handling of %qs, %w, etc.
19916
19917 2005-11-18 Laurent Guerby <laurent@guerby.net>
19918
19919 PR ada/24857
19920 * Makefile.in: Use s-auxdec-empty for RTEMS.
19921
19922 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19923
19924 PR ada/22333
19925 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
19926 a temporary if taking the address of something that is neither
19927 reference, declaration, or constant, since the gimplifier
19928 can't handle that case.
19929
19930 2005-11-17 Laurent Guerby <laurent@guerby.net>
19931
19932 PR ada/24857
19933 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
19934
19935 2005-11-16 Richard Guenther <rguenther@suse.de>
19936
19937 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
19938
19939 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
19940
19941 PR ada/24855
19942 * raise-gcc.c: Add missing stdarg.h include.
19943
19944 2005-11-16 Richard Guenther <rguenther@suse.de>
19945
19946 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
19947 (ada/misc.o): Likewise.
19948
19949 2005-11-14 Thomas Quinot <quinot@adacore.com>
19950
19951 * g-soccon.ads: Minor reformatting. Update comments.
19952
19953 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
19954 gain visibility on the declaration of struct timeval.
19955
19956 * g-soccon-freebsd.ads,
19957 g-soccon-darwin.ads,
19958 g-soccon-tru64.ads,
19959 g-soccon-aix.ads,
19960 g-soccon-irix.ads,
19961 g-soccon-hpux.ads,
19962 g-soccon-solaris.ads,
19963 g-soccon-vms.ads,
19964 g-soccon-mingw.ads,
19965 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
19966
19967 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
19968 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
19969 g-soccon-linux-x86.ads: New files.
19970
19971 * g-socthi-mingw.adb:
19972 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
19973
19974 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
19975 (time_t, suseconds_t): New types constructed to match the tv_sec
19976 and tv_usec fields of C struct timeval.
19977 (Timeval): Construct structure in terms of the new types.
19978 (Host_Errno): New function (imported from socket.c), returns last hosts
19979 database error.
19980
19981 * g-socthi-vxworks.adb: Add error handling circuitry.
19982
19983 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
19984 components of struct timeval.
19985 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
19986 (Check_Selector): In error conditions, clear internal socket sets to
19987 avoid a memory leak.
19988 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
19989 Send_Timeout, Receive_Timeout.
19990
19991 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
19992 the tv_sec and tv_usec fields of C struct timeval.
19993 (Timeval): Construct structure in terms of the new types.
19994 (Host_Errno): New function (imported from socket.c), returns last hosts
19995 database error.
19996
19997 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
19998 hosts database last error code.
19999
20000 * gen-soccon.c: Complete value expansion should not be performed on
20001 TARGET, as it has the form of a math expression, and some components
20002 may be platform-defined macros.
20003 For VxWorks, generate the OK and ERROR values.
20004 New constants giving the sizes of the components of C struct timeval.
20005
20006 2005-11-14 Robert Dewar <dewar@adacore.com>
20007 Ed Schonberg <schonberg@adacore.com>
20008
20009 PR ada/18434
20010 * types.ads: Include All_Checks in Suppress_Array
20011
20012 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20013 not(a=b), since we no longer do this rewriting, and hence it is not
20014 needed.
20015 (Elaboration_Checks_Suppressed): Add special casing to
20016 deal with different cases of static and dynamic elaboration checks (all
20017 checks does not count in the first case, but does in the second).
20018 (Expr_Known_Valid): Do not assume that the result of any arbitrary
20019 function call is valid, since this is not the case.
20020 (Ensure_Valid): Do not apply validity check to a real literal
20021 in a universal or fixed context
20022
20023 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20024 elementary types using the operator in standard. It is cleaner not to
20025 modify the programmers intent, especially in the case of floating-point.
20026 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20027 it did not matter because we always rewrote a/=b to not(a=b).
20028 (Expand_Allocator_Expression): For an allocator expression whose nominal
20029 subtype is an unconstrained packed type, convert the expression to its
20030 actual constrained subtype.
20031 Implement warning for <= or >= where < or > not possible
20032 Fix to Vax_Float tests (too early in many routines, causing premature
20033 Vax_Float expansions.
20034
20035 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20036 to be used with packages and generic packages as well as with
20037 subprograms.
20038 (Suppress): Set All_Checks, but not Elaboration_Check, for case
20039 of pragma Suppress (All_Checks)
20040 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20041 a string literal for precise control over warnings.
20042 Avoid raise of pragma in case of unrecognized pragma and just return
20043 instead.
20044
20045 * sem_prag.ads: Minor reformatting
20046
20047 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20048 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20049 Switch. Do not handle any exception.
20050 Include -gnatwx as part of -gnatg (warn on redundant parens)
20051 Allow optional = after -gnatm
20052 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20053 longer sets Elaboration_Checks.
20054 Code to set warning mode moved to Sem_Warn
20055 so that it can be shared by pragma processing.
20056
20057 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20058 statement.
20059
20060 * s-taprop-solaris.adb:
20061 Change some <= to =, to avoid new warning
20062
20063 * a-exexda.adb, prj-proc.adb:
20064 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20065 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20066
20067 2005-11-14 Robert Dewar <dewar@adacore.com>
20068
20069 * exp_vfpt.adb: Handle /= case
20070 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
20071 so that we do not get duplicate scaling for fixed point conversions.
20072
20073 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
20074
20075 2005-11-14 Matthew Gingell <gingell@adacore.com>
20076
20077 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
20078 Increase default priority on Lynx from 15 to 17, and meet the Ada
20079 requirement that Default_Priority be ((Priority'First +
20080 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
20081
20082 2005-11-14 Vincent Celier <celier@adacore.com>
20083
20084 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20085 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20086 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
20087 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
20088 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
20089 mlib-tgt-lynxos.adb (DLL_Prefix): New function
20090
20091 2005-11-14 Doug Rupp <rupp@adacore.com>
20092
20093 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
20094 private part.
20095
20096 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20097
20098 * s-traces-default.adb, s-trafor-default.ads,
20099 s-tratas-default.adb: Fix compilation errors.
20100
20101 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20102
20103 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
20104 raising the exception so the memory used is freed.
20105
20106 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20107
20108 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
20109 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
20110 (convert_address): Update comments and list of platforms using this.
20111
20112 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
20113 no longer used.
20114
20115 2005-11-14 Pascal Obry <obry@adacore.com>
20116 Vincent Celier <celier@adacore.com>
20117
20118 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
20119 GNAT.Command_Line.
20120
20121 * memroot.adb: Remove redundant with/use clause on
20122 System.Storage_Elements.
20123
20124 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20125
20126 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
20127 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
20128 related code to a-exexpr.adb
20129 (Save_Occurrence_And_Private): Move GCC EH related code to
20130 a-exexpr-gcc.adb
20131 (Raise_Current_Excep): Add new variable Id with pragma
20132 volatile, to ensure that the variable lives on stack.
20133
20134 * a-exexpr-gcc.adb, raise-gcc.c: New file.
20135
20136 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
20137 from a-except.adb.
20138 Move GCC EH related code to a-exexpr-gcc.adb
20139
20140 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
20141 64-bit Solaris
20142 Split the Linux version of g-soccon into separate variants for 32 and 64
20143 bit platforms.
20144 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
20145 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
20146 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
20147 of host variable $(RANLIB_FLAGS).
20148 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
20149 Code clean up: remove unused/obsolete targets.
20150 (EH_MECHANISM): New variable introduced to differenciate between the
20151 two EH mechanisms statically.
20152 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
20153 (LIBGNAT_OBJS): Add raise-gcc.o
20154 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
20155 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20156 supports VxWorks 6 RTPs.
20157 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
20158 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20159
20160 * raise.c: Move all GCC EH-related routines to raise-gcc.c
20161
20162 2005-11-14 Jose Ruiz <ruiz@adacore.com>
20163
20164 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
20165 deferral level, when abort is not allowed, to a later stage (the
20166 Task_Wrapper).
20167 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
20168 it will not get changed by the generated code. It was previously done
20169 in Create_Task.
20170
20171 2005-11-14 Thomas Quinot <quinot@adacore.com>
20172 Olivier Hainque <hainque@adacore.com>
20173 Eric Botcazou <ebotcazou@adacore.com>
20174
20175 * decl.c:
20176 Factor common code to build a storage type for an unconstrained object
20177 from a fat or thin pointer type and a constrained object type.
20178 (annotate_value): Handle BIT_AND_EXPR.
20179 (annotate_rep): Don't restrict the back annotation of inherited
20180 components to the type_annotate_only case.
20181 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
20182 we are not defining the type.
20183 <E_Record_Type>: Likewise.
20184 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
20185 to get advantage of the new maybe_stabilize_reference interface, to
20186 ensure that what we reference is indeed stabilized instead of relying
20187 on assumptions on what the stabilizer does.
20188 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
20189 type imported through a limited_with clause, use its non-limited view.
20190 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
20191 differentiation.
20192 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
20193 of #if sections + explicit comparisons of convention identifiers.
20194 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
20195 before early-returning for certain types when code generation is
20196 disabled.
20197 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
20198 nullification of gnu_expr we do for objects with address clause and
20199 that we are not defining.
20200 (elaborate_expression_1): Do not create constants when creating
20201 variables needed by the debug info: the dwarf2 writer considers that
20202 CONST_DECLs is used only to represent enumeration constants, and emits
20203 nothing for them.
20204 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
20205 object with an address clause into an indirect reference, drop the
20206 initializing expression.
20207 Include "expr.h".
20208 (STACK_CHECK_BUILTIN): Delete.
20209 (STACK_CHECK_PROBE_INTERVAL): Likewise.
20210 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
20211 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
20212 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
20213 corresponding to the renamed object as ignored for debugging purposes.
20214
20215 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
20216 related): For a prefix that is a dereference of a fat or thin pointer,
20217 if there is an actual subtype provided by the front-end, use that
20218 subtype to build an actual type with bounds template.
20219 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
20220 is provided by the front-end, use that subtype to compute the size of
20221 the deallocated object.
20222 (gnat_to_gnu): When adding a statement into an elaboration procedure,
20223 check for a potential violation of a No_Elaboration_Code restriction.
20224 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20225 with extra arguments to control whether to recurse through non-values
20226 and to let the caller know if the stabilization has succeeded.
20227 (gnat_stabilize_reference): Now a simple wrapper around
20228 maybe_stabilize, for common uses without restriction on lvalues and
20229 without need to check for the success indication.
20230 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
20231 pass false instead of 0 as the FORCE argument which is a bool.
20232 (Identifier_to_gnu): Remove checks ensuring that an renamed object
20233 attached to a renaming pointer has been properly stabilized, as no such
20234 object is attached otherwise.
20235 (call_to_gnu): Invoke create_var_decl to create the temporary when the
20236 function uses the "target pointer" return mechanism.
20237 Reinstate conversion of the actual to the type of the formal
20238 parameter before any other specific treatment based on the passing
20239 mechanism. This turns out to be necessary in order for PLACEHOLDER
20240 substitution to work properly when the latter type is unconstrained.
20241
20242 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
20243 common pattern.
20244 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20245 with extra arguments to control whether to recurse through non-values
20246 and to let the caller know if the stabilization has succeeded.
20247
20248 * utils2.c (gnat_build_constructor): Only sort the fields for possible
20249 static output of record constructor if all the components are constant.
20250 (gnat_build_constructor): For a record type, sort the list of field
20251 initializers in increasing bit position order.
20252 Factor common code to build a storage type for an unconstrained object
20253 from a fat or thin pointer type and a constrained object type.
20254 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
20255 types variants, and process special cases of VIEW_CONVERT expressions
20256 as their NOP_EXPR counterpart to ensure we get to the
20257 CORRESPONDING_VARs associated with CONST_DECls.
20258 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
20259 on the right-hand side.
20260
20261 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
20262 a common pattern.
20263 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
20264 are converting back to its original type.
20265 (convert) <JM input>: Fallthrough regular conversion code instead of
20266 extracting the object if converting to a type variant.
20267 (create_var_decl): When a variable has an initializer requiring code
20268 generation and we are at the top level, check for a potential violation
20269 of a No_Elaboration_Code restriction.
20270 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
20271 SIZE and SIZE_UNIT which we need for later back-annotations.
20272 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
20273 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
20274 is an unchecked union.
20275 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
20276 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
20277 main variant, just replace the VIEW_CONVERT_EXPR.
20278 <UNION_TYPE>: Revert 2005-03-02 change.
20279
20280 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
20281
20282 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
20283
20284 2005-11-14 Matthew Heaney <heaney@adacore.com>
20285
20286 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
20287 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
20288 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
20289 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
20290 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
20291 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
20292 Compiles against the spec for ordered maps described in sections
20293 A.18.6 of the most recent (August 2005) AI-302 draft.
20294
20295 2005-11-14 Olivier Hainque <hainque@adacore.com>
20296
20297 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
20298 to ensure bias adjustments take place when need be and to prevent
20299 occurrences of intermediate overflows.
20300
20301 2005-11-14 Matthew Gingell <gingell@adacore.com>
20302 Olivier Hainque <hainque@adacore.com>
20303
20304 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
20305 ia64 HP-UX.
20306
20307 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
20308 tracebacks on ia64 HP-UX and provide explanatory comment.
20309 Enable backtraces on ia64 GNU/Linux.
20310 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
20311 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
20312
20313 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20314 Javier Miranda <miranda@adacore.com>
20315
20316 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
20317 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
20318 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
20319 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
20320
20321 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
20322 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
20323 assertions).
20324
20325 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
20326 subprogram that generates the external name associated with a
20327 secondary dispatch table.
20328 (Get_Secondary_DT_External_Name): New subprogram that generates the
20329 external name associated with a secondary dispatch table.
20330
20331 2005-11-14 Emmanuel Briot <briot@adacore.com>
20332
20333 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
20334 line in the ALI file to include both an instantiation reference, and a
20335 returned value.
20336
20337 2005-11-14 Vincent Celier <celier@adacore.com>
20338
20339 * clean.adb (Check_Project): Look for Ada code in extending project,
20340 even if Ada is not specified as a language.
20341 Use new function DLL_Prefix for DLL_Name
20342 (Clean_Interface_Copy_Directory): New procedure
20343 (Clean_Library_Directory): New procedure
20344 (Clean_Directory): Remove procedure, no longer used
20345 (Clean_Project): Do not delete any file in an externally built project
20346
20347 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
20348 directory of an extending project, even when there are no Ada source
20349 present.
20350 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
20351 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20352
20353 * mlib-prj.adb (Check_Library): For all library projects, get the
20354 library file timestamp.
20355 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
20356 (Build_Library): Use new function DLL_Prefix for the DLL_Name
20357 (Clean): Remove procedure, no longer used
20358 (Ultimate_Extension_Of): New function
20359 (Build_Library): When cleaning the library directory, only remove an
20360 existing library file and any ALI file of a source of the project.
20361 When cleaning the interface copy directory, remove any source that
20362 could be a source of the project.
20363
20364 * prj.ads, prj.adb (Project_Empty): Add values of new components
20365 Library_TS and All_Imported_Projects.
20366 (Project_Empty): Add values for new components of Project_Data:
20367 Library_ALI_Dir and Display_Library_ALI_Dir
20368
20369 * prj-attr.adb: New project level attribute name Library_ALI_Dir
20370
20371 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
20372 attribute Library_ALI_Dir.
20373 (Check_Library_Attributes): The library directory cannot be the same as
20374 any source directory of the project tree.
20375 (Check_Stand_Alone_Library): The interface copy directory cannot be
20376 the same as any source directory of the project tree.
20377
20378 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
20379 all temporary files.
20380
20381 2005-11-14 Robert Dewar <dewar@adacore.com>
20382 Ed Schonberg <schonberg@adacore.com>
20383
20384 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20385 (Check_Elab_Call): A call within a protected body is never an
20386 elaboration call, and does not require checking.
20387 (Same_Elaboration_Scope): Take into account protected types for both
20388 entities.
20389 (Activate_Elaborate_All_Desirable): New procedure
20390
20391 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
20392 desirable
20393
20394 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
20395 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
20396
20397 * lib-writ.ads, lib-writ.adb:
20398 Implement new AD/ED for Elaborate_All/Elaborate desirable
20399 Use new Elaborate_All_Desirable flag in N_With_Clause node
20400
20401 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
20402 N_Free_Statement nodes.
20403 Define new class N_Subprogram_Instantiation
20404 Add Elaborate_Desirable flag to N_With_Clause node
20405 Add N_Delay_Statement (covering two kinds of delay)
20406
20407 * debug.adb: Introduce d.f flag for compiler
20408 Add -da switch for binder
20409
20410 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20411 Cyrille Comar <comar@adacore.com>
20412
20413 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
20414 for task component, in the case of a limited aggregate. The enclosed
20415 object declaration will create it earlier. Otherwise, in the case of a
20416 nested aggregate, the object may appear in the wrong scope.
20417 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
20418 (Gen_Assign): If the component being assigned is an array type and the
20419 expression is itself an aggregate, wrap the assignment in a block to
20420 force finalization actions on the temporary created for each row of the
20421 enclosing object.
20422 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
20423 structures are initialized after all discriminants are set so that
20424 they can be accessed even when their offset is dynamic.
20425
20426 2005-11-14 Robert Dewar <dewar@adacore.com>
20427 Hristian Kirtchev <kirtchev@adacore.com>
20428
20429 * sem_attr.adb: Implement Machine_Rounding attribute
20430 (Analyze_Access_Attribute): The access attribute may appear within an
20431 aggregate that has been expanded into a loop.
20432 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
20433 'Terminated whenever the prefix is of a task interface class-wide type.
20434 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
20435 the prefix is of a task interface class-wide type.
20436
20437 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
20438 to avoid warnings.
20439
20440 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
20441 Remove pragma Inline for [Unaligned_]Valid.
20442 Add comments that Valid routines do not work for Vax_Float
20443
20444 * exp_attr.adb: Implement Machine_Rounding attribute
20445
20446 * snames.h: Add entry for Machine_Rounding attribute
20447
20448 2005-11-14 Javier Miranda <miranda@adacore.com>
20449 Robert Dewar <dewar@adacore.com>
20450 Hristian Kirtchev <kirtchev@adacore.com>
20451
20452 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
20453 and related): For a prefix that is an explicit dereference of an
20454 access to unconstrained packed array type, annotate the dereference
20455 with an actual subtype so GIGI can make a correct size computation.
20456 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
20457 'Unrestricted_Access, if the designated type is an interface we
20458 add a type conversion to force the displacement of the pointer
20459 to the secondary dispatch table.
20460 Use Universal_Real instead of Long_Long_Float when we need a high
20461 precision float type for the generated code (prevents gratuitous
20462 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20463 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
20464 'Terminated for task interface class-wide objects. Generate a call to
20465 the predefined dispatching routine used to retrieve the _task_id from
20466 a task corresponding record.
20467 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
20468
20469 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20470 (Check_Dispatching_Operation): Protect the frontend againts
20471 previously detected errors.
20472
20473 * Makefile.rtl: Add new instantiations of system.fat_gen
20474
20475 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
20476 Change name of instantiated package for better consistency
20477 with newly added system.fat_gen instantiations.
20478
20479 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
20480 s-fvagfl.ads: New files.
20481
20482 2005-11-14 Cyrille Comar <comar@adacore.com>
20483 Thomas Quinot <quinot@adacore.com>
20484
20485 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
20486 assignment of a value of a tagged type that has been rewritten to a
20487 block statement, it is known by construction that no checks are
20488 necessary for the statements within the block: analyze it with checks
20489 suppressed.
20490 (Expand_N_If_Statement): When killing a dead then-branch in an
20491 if-statement that has elsif_parts, recompute the Current_Value node
20492 for any entity whose value is known from the condition of the first
20493 elsif_part.
20494 (Expand_N_Return_Statement): When returning a mutable record, convert
20495 the return value into its actual subtype in order to help the backend
20496 to return the actual size instead of the maximum. This is another
20497 aftermath of not returning mutable records on the sec-stack anymore.
20498
20499 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
20500 handling of error msg for suspicious reverse range iteration.
20501 (Check_Possible_Current_Value_Condition): Move declaration from body to
20502 spec, to allow this subprogram to be called from exp_ch5.
20503
20504 2005-11-14 Thomas Quinot <quinot@adacore.com>
20505
20506 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
20507 generate a set of nested array aggregates instead of a single flat
20508 aggregate for multi-dimensional arrays.
20509
20510 2005-11-14 Pascal Obry <obry@adacore.com>
20511
20512 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
20513 by spawnve is a process handle, no need to convert. Add a parameter
20514 close to control wether the process handle must be closed.
20515 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
20516 a process handle, not need to convert.
20517 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
20518
20519 * g-expect.adb: (Kill): Document the new close parameter.
20520 (Close): Do not release the process handle in the kill there as
20521 waitpid() is using it.
20522 (Send_Signal): Release the process handle.
20523
20524 2005-11-14 Robert Dewar <dewar@adacore.com>
20525
20526 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
20527 need a high precision float type for the generated code (prevents
20528 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20529 used).
20530
20531 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
20532 need a high precision float type for the generated code (prevents
20533 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20534 used).
20535 (Expand_Width_Attribute): In configurable run-time, the attribute is not
20536 allowed on non-static enumeration subtypes. Force a load error to emit
20537 the correct diagnostic.
20538
20539 2005-11-14 Thomas Quinot <quinot@adacore.com>
20540 Robert Dewar <dewar@adacore.com>
20541 Ed Schonberg <schonberg@adacore.com>
20542
20543 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
20544 subtype to compute the size of the designated object at run-time,
20545 create such a subtype and store it in the Actual_Designated_Subtype
20546 attribute of the N_Free_Statement.
20547 Generate itype for classwide designated object in both cases of
20548 user-specified storage pool: specific and class-wide, not only in the
20549 specific case.
20550 Raise CE when trying to set a not null access type object to null.
20551 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
20552 an explicit loop, because freeze nodes make its position variable.
20553
20554 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
20555 null object.
20556
20557 2005-11-14 Javier Miranda <miranda@adacore.com>
20558
20559 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
20560 Build_Stream_Procedure): Add the null-excluding attribute to the first
20561 formal.
20562 This has no semantic meaning under Ada95 mode but it is a
20563 requirement under Ada05 mode.
20564
20565 * par-ch3.adb (P_Access_Definition): Addition of warning message if
20566 the null exclusion is used under Ada95 mode
20567 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
20568 (P_Access_Definition): Remove assertion that forbids the use of
20569 the null-exclusion feature in Ada95.
20570
20571 2005-11-14 Robert Dewar <dewar@adacore.com>
20572
20573 * impunit.adb: Exclude container helper units not intended for use by
20574 users.
20575
20576 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20577
20578 * freeze.adb (Freeze_Entity): For an access formal that is an access
20579 to subprogram, freeze the anonymous subprogram type at the same time,
20580 to prevent later freezing in the wrong scope, such as the enclosing
20581 subprogram body.
20582 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
20583 subprogram whenever available.
20584
20585 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20586
20587 PR ada/23732
20588 * gnatvsn.ads (Library_Version): Bump to 4.1
20589
20590 2005-11-14 Robert Dewar <dewar@adacore.com>
20591
20592 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
20593 Storage_Offset to avoid wrap around causing invalid results.
20594
20595 2005-11-14 Pascal Obry <obry@adacore.com>
20596
20597 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
20598 cross-compiler.
20599 (Scan_Bind_Arg): Fail with an error message if -M option is used
20600 on a native compiler.
20601
20602 2005-11-14 Robert Dewar <dewar@adacore.com>
20603 Vincent Celier <celier@adacore.com>
20604
20605 * gprep.adb: Implement -C switch to scan comments
20606
20607 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
20608
20609 * scans.ads: Comment updates (including new use of Tok_Comment in
20610 preprocessing)
20611
20612 * opt.ads: Add documentation for flags that are used by gprmake,
20613 currently and in the next version of gprmake.
20614 (Verbosity_Level): New variable
20615 Add Replace_In_Comments switch
20616
20617 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
20618 and -vm.
20619 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
20620
20621 2005-11-14 Arnaud Charlet <charlet@adacore.com>
20622
20623 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
20624 message, friendlier.
20625
20626 2005-11-14 Robert Dewar <dewar@adacore.com>
20627
20628 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
20629
20630 2005-11-14 Doug Rupp <rupp@adacore.com>
20631
20632 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
20633
20634 2005-11-14 Robert Dewar <dewar@adacore.com>
20635
20636 * interfac.ads: Change declarations of IEEE float types so that we no
20637 longer need a separate version of this package for VMS.
20638
20639 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20640
20641 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
20642 internal entity created for the declaration of a child subprogram body
20643 with no spec as coming from source, to generate proper cross-reference
20644 information.
20645
20646 2005-11-14 Vincent Celier <celier@adacore.com>
20647
20648 * make.adb (Compile_Sources): Change verbose message to minimum
20649 verbosity level High for "is in an Ada library", "is a read-only
20650 library" and "is an internal library",
20651 (Create_Binder_Mapping_File): Path name of ALI file for library project
20652 must include the library directory, not the object directory.
20653 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
20654 for new switches -vl, -vm and -vh.
20655 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
20656 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
20657 (Compile_Sources): Do not attempt to compile if an ALI file is missing
20658 in a project that is externally built.
20659 (Compute_All_Imported_Projects): New procedure
20660 (Gnatmake): Check if importing libraries should be regenerated because
20661 at least an imported library is more recent.
20662 (Initialize): For each project compute the list of the projects it
20663 imports directly or indirectly.
20664 (Add_Library_Search_Dir): New procedure, used in place of
20665 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20666 put in the search paths.
20667 (Add_Source_Search_Dir): New procedure, used in place of
20668 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20669 put in the search paths.
20670 (Mark_Directory): Resolve the absolute path the directory before marking
20671 it.
20672
20673 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
20674 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20675 Switch. Do not handle any exception.
20676 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
20677 so that the switch is recognized as valid.
20678 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
20679
20680 2005-11-14 GNAT Script <nobody@adacore.com>
20681
20682 * Make-lang.in: Makefile automatically updated
20683
20684 2005-11-14 Pascal Obry <obry@adacore.com>
20685
20686 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
20687 used.
20688 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
20689 In both cases the last argument was dropped.
20690
20691 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
20692
20693 * namet.h: (Column_Numbe): New type.
20694 (Get_Column_Number): Define to sinput__get_column_number.
20695 (Instantiation): Define to sinput__instantiation.
20696 (Get_Column_Number): Declare.
20697 (Instantiation): Likewise.
20698
20699 2005-11-14 Robert Dewar <dewar@adacore.com>
20700
20701 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
20702 syntax, which could cause compiler hangs.
20703
20704 2005-11-14 Vincent Celier <celier@adacore.com>
20705
20706 * prj-ext.adb: Take into account new environment variable
20707 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
20708 are defined.
20709 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
20710 normalize its path name, making it absolute and resolving symbolic
20711 links, and replace the original if resolved path is different.
20712
20713 2005-11-14 Vincent Celier <celier@adacore.com>
20714
20715 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
20716 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
20717
20718 2005-11-14 Emmanuel Briot <briot@adacore.com>
20719
20720 * prj-pp.adb (Print): Do not output the with statement if the
20721 associated name is empty, which happens for virtual extending projects.
20722 (Print): Preserve the "extends all" attribute when printing the project.
20723
20724 * prj-tree.ads (String_Value_Of): Add comment about returned value for
20725 a virtual extending project.
20726
20727 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20728
20729 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
20730 rhs of an assignment even if the type is unconstrained, when the
20731 context is non-expanding.
20732 In an inlined body, if the context type is private,
20733 resolve with its full view, which must be a composite type.
20734
20735 2005-11-14 Robert Dewar <dewar@adacore.com>
20736 Ed Schonberg <schonberg@adacore.com>
20737
20738 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20739 Do not give obsolescent warning on with of subprogram (since we
20740 diagnose calls)
20741 (Analyze_With_Clause): Add test for obsolescent package
20742 (Install_Context_Clauses): If the unit is the body of a child unit, do
20743 not install twice the private declarations of the parents, to prevent
20744 circular lists of Use_Clauses in a parent.
20745 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20746 compiling body of child unit.
20747 Use new class N_Subprogram_Instantiation
20748 (Expand_With_Clause): If this is a private with_clause for a child unit,
20749 appearing in the context of a package declaration, then the implicit
20750 with_clauses generated for parent units are private as well.
20751 (License_Check): Do not generate message if with'ed unit is internal
20752
20753 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20754 Ed Schonberg <schonberg@adacore.com>
20755 Thomas Quinot <quinot@adacore.com>
20756
20757 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
20758 names are internal, because they will not have a corresponding partner
20759 in the actual package.
20760 (Analyze_Formal_Package): Move the setting of the formal package spec's
20761 Generic_Parent field so that it occurs prior to analyzing the package,
20762 to allow proper operation of Install_Parent_Private_Declarations.
20763 (Analyze_Package_Instantiation): Set the instantiated package entity's
20764 Package_Instantiation field.
20765 (Get_Package_Instantiation_Node): Move declaration to package spec.
20766 Retrieve the N_Package_Instantiation node when the Package_Instantiation
20767 field is present.
20768 (Check_Generic_Child_Unit): Within an inlined call, the only possible
20769 instantiation is Unchecked_Conversion, for which no parents are needed.
20770 (Inline_Instance_Body): Deinstall and record the use_clauses for all
20771 parent scopes of a scope being removed prior to inlining an instance
20772 body.
20773 (Analyze_Package_Instantiation): Do not perform front-end inlining when
20774 the current context is itself an instance within a non-instance child
20775 unit, to prevent scope stack errors.
20776 (Save_References): If the node is an aggregate that is an actual in a
20777 call, rewrite as a qualified expression to preserve some type
20778 information, to resolve possible ambiguities in the instance.
20779 (Instance_Parent_Unit): New global variable to record the ultimate
20780 parent unit associated with a generic child unit instance (associated
20781 with the existing Parent_Unit_Visible flag).
20782 (type Instance_Env): New component Instance_Parent_Unit for stacking
20783 parents recorded in the global Instance_Parent_Unit.
20784 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
20785 stack.
20786 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
20787 it's not a top-level unit, and only do this if Instance_Parent_Unit is
20788 not already set. Replace test of Is_Child_Unit with test of parent's
20789 scope against package Standard. Add comments and a ??? comment.
20790 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
20791 on a child instance parent to test that the parent equals
20792 Instance_Parent rather than simply checking that the unit is not a
20793 child unit.
20794 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
20795 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
20796 a formal interface are ancestors of the corresponding actual.
20797 (Validate_Formal_Interface_Type): Additional legality checks.
20798 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
20799 interface types with ancestors.
20800 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
20801 to diagnose attempts to use generic within its own declaration.
20802
20803 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20804 Javier Miranda <miranda@adacore.com>
20805
20806 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
20807 discriminant.
20808 (Build_Private_Derived_Type): The entity of the created full view of the
20809 derived type does not come from source. If after installing the private
20810 declarations of the parent scope the parent is still private, use its
20811 full view to construct the full declaration of the derived type.
20812 (Build_Derived_Record_Type): Relax the condition that controls the
20813 execution of the check that verifies that the partial view and
20814 the full view agree in the set of implemented interfaces. In
20815 addition, this test now only takes into account the progenitors.
20816 (Derive_Interface_Subprograms): No need to derive subprograms
20817 of ancestors that are interfaces.
20818 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
20819 associated code.
20820 Change name Is_Package to Is_Package_Or_Generic_Package
20821 (Complete_Subprograms_Derivation): Handle the case in which the full
20822 view is a transitive derivation of the ancestor of the partial view.
20823 (Process_Full_View): Rename local subprogram Find_Interface_In_
20824 Descendant to Find_Ancestor_Interface to leave the code more clear.
20825 Remove wrong code that avoids the generation of an error message
20826 when the immediate ancestor of the partial view is an interface.
20827 In addition some minor reorganization of the code has been done to
20828 leave it more clear.
20829 (Analyze_Type_Declaration): If type has previous incomplete tagged
20830 partial view, inherit properly its primitive operations.
20831 (Collect_Interfaces): Make public, for analysis of formal
20832 interfaces.
20833 (Analyze_Interface_Declaration): New procedure for use for regular and
20834 formal interface declarations.
20835 (Build_Derived_Record_Type): Add support for private types to the code
20836 that checks if a tagged type implements abstract interfaces.
20837 (Check_Aliased_Component_Type): The test applies in the spec of an
20838 instance as well.
20839 (Access_Type_Declaration): Clean up declaration of malformed type
20840 declared as an access to its own classwide type, to prevent cascaded
20841 crash.
20842 (Collect_Interfaces): For private extensions and for derived task types
20843 and derived protected types, the parent may be an interface that must
20844 be included in the interface list.
20845 (Access_Definition): If the designated type is an interface that may
20846 contain tasks, create Master_Id for it before analyzing the expression
20847 of the declaration, which may be an allocator.
20848 (Record_Type_Declaration): Set properly the interface kind, for use
20849 in allocators, the creation of master id's for task interfaces, etc.
20850
20851 2005-11-14 Javier Miranda <miranda@adacore.com>
20852 Ed Schonberg <schonberg@adacore.com>
20853
20854 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
20855 omitted in case of stream attribute subprograms.
20856 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
20857 appear immediately after a subprogram body, when there is no previous
20858 subprogram declaration.
20859 Change name Is_Package to Is_Package_Or_Generic_Package
20860 (Process_Formals): A non null qualifier on a non null named access
20861 type is not an error, and is a warning only if Redundant_Constructs
20862 are flagged.
20863
20864 2005-11-14 Gary Dismukes <dismukes@adacore.com>
20865 Ed Schonberg <schonberg@adacore.com>
20866
20867 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
20868 nested within Analyze_Package_Specification to install the private
20869 declarations and use clauses within each of the parent units of a
20870 package instance of a generic child package.
20871 (Analyze_Package_Specification): When entering a private part of a
20872 package associated with a generic instance or formal package, the
20873 private declarations of the parent must be installed (by calling new
20874 procedure Install_Parent_Private_Declarations).
20875 Change name Is_Package to Is_Package_Or_Generic_Package
20876 (Preserve_Full_Attributes): For a synchronized type, the corresponding
20877 record is absent in a generic context, which does not indicate a
20878 compiler error.
20879
20880 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20881
20882 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
20883 not try to rewrite a renamed stream attribute, because the operations
20884 on the type may not have been generated.
20885 Handle properly a renaming_as_body generated for a stream operation
20886 whose default is abstract because the object type itself is abstract.
20887 (Find_Type): If the type is incomplete and appears as the prefix of a
20888 'Class reference, it is tagged, and its list of primitive operations
20889 must be initialized properly.
20890 (Chain_Use_Clauses): When chaining the use clauses that appear in the
20891 private declaration of a parent unit, prior to compiling the private
20892 part of a child unit, find on the scope stack the proper parent entity
20893 on which to link the use clause.
20894 (Note_Redundant_Use): Emit a warning when a redundant use clause is
20895 detected.
20896 (Analyze_Object_Renaming): An attribute reference is not a legal object
20897 if it is not a function call.
20898
20899 2005-11-14 Robert Dewar <dewar@adacore.com>
20900 Ed Schonberg <schonberg@adacore.com>
20901
20902 * sem_eval.adb: Implement d.f flag
20903 (Subtype_Statically_Match): A generic actual type has unknown
20904 discriminants when the corresponding actual has a similar partial view.
20905 If the routine is called to validate the signature of an inherited
20906 operation in a child instance, the generic actual matches the full view,
20907
20908 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20909 Ed Schonberg <schonberg@adacore.com>
20910 Robert Dewar <dewar@adacore.com>
20911 Thomas Quinot <quinot@adacore.com>
20912
20913 * sem_res.adb (Resolve_Call): Provide a better error message whenever
20914 a procedure call is used as a select statement trigger and is not an
20915 entry renaming or a primitive of a limited interface.
20916 (Valid_Conversion): If the operand has a single interpretation do not
20917 remove address operations.
20918 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
20919 statement to inhibit warning.
20920 (Resolve_Unary_Op): Do not produce a warning when
20921 processing an expression of the form -(A mod B)
20922 Use Universal_Real instead of Long_Long_Float when we need a high
20923 precision float type for the generated code (prevents gratuitous
20924 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20925 (Resolve_Concatenation_Arg): Improve error message when argument is an
20926 ambiguous call to a function that returns an array.
20927 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
20928 there is an implicit operator in the given scope if we are within an
20929 instance: legality check has been performed on the generic.
20930 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
20931 after resolving operand, to avoid false warnings on overloaded calls.
20932
20933 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20934 Javier Miranda <miranda@adacore.com>
20935
20936 PR ada/15604
20937 * sem_type.adb (Covers): In an inlined body, a composite type matches
20938 a private type whose full view is a composite type.
20939 (Interface_Present_In_Ancestor): Protect the frontend against
20940 previously detected errors to ensure that its compilation
20941 with assertions enabled gives the same output that its
20942 compilation without assertions.
20943 (Interface_Present_In_Ancestor): Add support for private types.
20944 Change name In_Actual to In_Generic_Actual (clean up)
20945 (Disambiguate): New predicate In_Actual, to recognize expressions that
20946 appear in the renaming declaration generated for generic actuals, and
20947 which must be resolved in the outer context.
20948
20949 2005-11-14 Robert Dewar <dewar@adacore.com>
20950 Thomas Quinot <quinot@adacore.com>
20951 Hristian Kirtchev <kirtchev@adacore.com>
20952 Ed Schonberg <schonberg@adacore.com>
20953
20954 * sem_util.ads, sem_util.adb: Change name Is_Package to
20955 Is_Package_Or_Generic_Package.
20956 (Check_Obsolescent): New procedure.
20957 (Set_Is_Public): Remove obsolete junk test.
20958 (Set_Public_Status): Do not set Is_Public on an object whose declaration
20959 occurs within a handled_sequence_of_statemets.
20960 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
20961 for a parameterless procedure.
20962 (Enter_Name): Recognize renaming declarations created for private
20963 component of a protected type within protected operations, so that
20964 the source name of the component can be used in the debugger.
20965
20966 2005-11-14 Ed Schonberg <schonberg@adacore.com>
20967 Robert Dewar <dewar@adacore.com>
20968
20969 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
20970 of a generic subprogram are not visible outside the body.
20971 (Set_Warning_Switch): New procedure (code to set warning mode moved
20972 here from Switch.C so that it can be shared by pragma processing.
20973 (Check_References): Special case warning for non-modified non-imported
20974 volatile objects.
20975 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
20976 form with a string literal argument
20977
20978 2005-11-14 Javier Miranda <miranda@adacore.com>
20979
20980 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
20981 anonymous access.
20982 (Write): Addition of "not null" to the anonymous access.
20983 (Read): Addition of "not null" to the anonymous access.
20984 (Write): Addition of "not null" to the anonymous access.
20985
20986 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
20987 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
20988 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
20989 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
20990 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
20991 "not null" to the anonymous access.
20992
20993 2005-11-14 Robert Dewar <dewar@adacore.com>
20994
20995 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
20996 offset values
20997
20998 2005-11-14 Vincent Celier <celier@adacore.com>
20999
21000 * switch.adb (Bad_Switch): New procedure
21001 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21002 message when in error.
21003
21004 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21005 Too_Many_Output_Files): Remove declarations, no longer used.
21006 (Scan_Nat): New parameter Switch
21007 (Scan_Pos): Ditto
21008 (Bad_Switch): New procedure
21009
21010 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21011 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21012 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21013 to Osint.Fail. Do not handle any exception.
21014
21015 2005-11-14 Vincent Celier <celier@adacore.com>
21016
21017 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21018 designates a non existent directory.
21019
21020 2005-11-14 Robert Dewar <dewar@adacore.com>
21021
21022 * xgnatugn.adb: Replace invalid membership test by 'Valid
21023
21024 2005-11-14 Vincent Celier <celier@adacore.com>
21025
21026 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21027 there is no object directory.
21028
21029 2005-11-14 Robert Dewar <dewar@adacore.com>
21030
21031 * usage.adb: Minor adjustment to output format, use nn instead of nnn
21032 (so that -gnateInnn does not run into next column)
21033
21034 2005-11-14 Ed Falis <falis@adacore.com>
21035
21036 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21037 "constrained"
21038
21039 2005-11-14 Cyrille Comar <comar@adacore.com>
21040
21041 * s-chepoo.ads: Add comments on Dereference.
21042 Remove unnecessary inherited abstract primitives.
21043 Cosmetic cleanup.
21044
21045 2005-11-14 Robert Dewar <dewar@adacore.com>
21046
21047 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21048 node parameter, not needed, since it is available as Declaration_Node.
21049
21050 2005-11-14 Geert Bosch <bosch@adacore.com>
21051
21052 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21053 grammatically correct.
21054
21055 2005-11-14 Vincent Celier <celier@adacore.com>
21056
21057 * s-fileio.ads: Correct spelling error in comment
21058
21059 2005-11-14 Cyrille Comar <comar@adacore.com>
21060 Robert Dewar <dewar@adacore.com>
21061 Vincent Celier <celier@adacore.com>
21062 Ben Brosgol <brosgol@adacore.com>
21063 Jose Ruiz <ruiz@adacore.com>
21064 Pascal Obry <obry@adacore.com>
21065
21066 * gnat_ugn.texi:
21067 Document that -fstack-check is needed for strict compliance with the
21068 Ada 95 Reference Manual.
21069 Correct reference to VAX systems to meet HP guidelines
21070 Add documentation for new gnatmake switches -vl, -vm and -vh
21071 Replace DEC Ada by HP Ada
21072 Replace DIGITAL by HP
21073 Remove empty section on tools in compatibility section
21074 Clarify the Windows convention semantics.
21075 Document the Win32 calling convention.
21076 The Stdcall, Win32 and DLL convention are synonyms.
21077 Add a note in -gnatR description about zero size record components
21078 Note on new >= and <= warnings for -gnatwc
21079 Document that equal sign after -gnatm is optional.
21080 Note that strip is working fine on DLL built with a Library
21081 Project. The restriction apply only to DLL built with gnatdll.
21082 Update section about the way to debug a DLL.
21083 Update information about the DLL convention.
21084 Document -C switch for gnatprep
21085 Document new attribute Library_ALI_Dir
21086 Update elaboration doc to include implicit Elaborate pragmas now
21087 generated for subprogram instantiations.
21088 Document limitation on executable names that include spaces for --GCC,
21089 --GNATBIND, and --GNATLINK switches.
21090 Document that -w causes -gnatws to be added at start of gcc switches
21091
21092 * gnat_rm.texi: Document that -mieee is needed for generating infinite
21093 and NaN values in case of overflow on machines that are not fully
21094 compliant with the IEEE floating-point standard.
21095 Create a section describing the set of compiler options needed for
21096 strict compliance with the Ada 95 Reference Manual.
21097 Add documentation for pragma Obsolescent applied to a package
21098 Clarify potential issues of mixed language programs related to the
21099 I/O buffering enabling in the elaboration of the GNAT runtime.
21100 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
21101 This documentation only patch adds extra documentsion for pragma
21102 Restrictions (No_Elaboration_Code), explaining why it is not possible
21103 to document this restriction in terms of allowed source constructs.
21104 Document string literal form of pragma Warnings
21105 Document new attribute Library_ALI_Dir
21106 Add documentation on stable attributes in project files that was missing
21107
21108 * gnat-style.texi: Indicate that paragraphs within a single comment
21109 should be separated by empty comment lines
21110
21111 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
21112 /05 respectively)
21113
21114 * bindusg.adb: Minor cleanup, put -m before -M for consistency
21115
21116 2005-11-14 Robert Dewar <dewar@adacore.com>
21117
21118 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
21119 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
21120 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
21121 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
21122 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
21123 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
21124 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21125 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
21126 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
21127 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21128 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
21129 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
21130 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
21131 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
21132 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
21133 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
21134 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
21135 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
21136 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
21137 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
21138 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
21139 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
21140 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
21141 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
21142 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
21143 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
21144 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
21145 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
21146 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
21147 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
21148 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
21149 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
21150 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
21151 system-interix.ads, system-solaris-sparc.ads,
21152 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
21153 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
21154 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
21155 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
21156 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
21157 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
21158 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
21159 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21160 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
21161 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
21162 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
21163 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
21164 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
21165 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
21166 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
21167 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
21168 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
21169 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
21170 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
21171 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
21172 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
21173 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
21174 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
21175 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
21176 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
21177 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
21178 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
21179 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
21180 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
21181 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
21182 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
21183 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
21184 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
21185 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
21186 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
21187 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
21188 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
21189 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
21190 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
21191 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
21192 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
21193 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
21194 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
21195 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
21196 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
21197 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
21198 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
21199 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
21200 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
21201 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
21202 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
21203 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
21204 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
21205 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
21206 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
21207 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
21208 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
21209 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
21210 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
21211 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
21212 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
21213 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
21214 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
21215 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
21216 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
21217 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
21218 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
21219 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
21220 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
21221 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
21222 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21223 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
21224 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
21225 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
21226 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
21227 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21228 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
21229 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
21230 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
21231 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21232 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
21233 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
21234 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
21235 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21236 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
21237 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
21238 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
21239 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21240 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
21241 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
21242 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
21243 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21244 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
21245 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
21246 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
21247 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
21248 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
21249 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
21250 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
21251 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
21252 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
21253 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
21254 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
21255 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
21256 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
21257 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
21258 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
21259 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
21260 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
21261 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21262 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
21263 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
21264 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
21265 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
21266 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
21267 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
21268 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
21269 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
21270 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
21271 a-numaux-darwin.ads, a-numaux-darwin.adb,
21272 a-swuwha.ads, a-stunha.ads: Minor reformatting
21273
21274 2005-11-14 Robert Dewar <dewar@adacore.com>
21275
21276 PR ada/18434
21277 * osint-m.adb: Add pragma Elaborate_All for Osint
21278
21279 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
21280
21281 PR ada/23995
21282 * trans.c (call_to_gnu): Restore statement lost in translation.
21283
21284 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
21285
21286 * init.c: Use the Linux-specific section for the IA-64/Linux target.
21287 (__gnat_adjust_context_for_raise): Add conditional code so that the
21288 IA-64 is also supported.
21289
21290 2005-11-03 James E Wilson <wilson@specifix.com>
21291
21292 PR ada/23427
21293 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
21294 TREE_OVERFLOW check.
21295
21296 2005-09-21 Olivier Hainque <hainque@adacore.com>
21297
21298 PR ada/22418
21299 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
21300 as we create them to store a size in bits.
21301
21302 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
21303
21304 PR ada/21937
21305 PR ada/22328
21306 PR ada/22381
21307 PR ada/22383
21308 PR ada/22419
21309 PR ada/22420
21310 * utils2.c (build_return_expr): New helper function.
21311 * gigi.h (build_return_expr): Declare it.
21312 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
21313 of manually building the RETURN_EXPR tree.
21314 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
21315 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
21316 build_binary_op for the "target pointer" case. Use build_return_expr
21317 instead of manually building the RETURN_EXPR tree.
21318
21319 2005-09-16 Laurent Guerby <laurent@guerby.net>
21320
21321 PR ada/23788
21322 * s-tpinop.ads: Make this unit Preelaborate.
21323
21324 2005-09-16 Andreas Jaeger <aj@suse.de>
21325
21326 * socket.c: Add string.h for memcpy.
21327
21328 2005-09-05 Arnaud Charlet <charlet@adacore.com>
21329
21330 * dec-io.ads, dec-io.adb: Removed, no longer used.
21331
21332 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21333
21334 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
21335
21336 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
21337 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
21338 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
21339 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
21340 dependent units are Preelaborate.
21341 (Initialize): Call Interrupt_Managemeent.Initialize and
21342 OS_Primitives.Initialize to ensure proper initialization of this unit.
21343 Remove use of System.Soft_Links
21344 Make this unit Preelaborate.
21345
21346 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
21347 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
21348 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
21349 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
21350 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21351 s-tratas.ads, s-tasinf.ads: Minor reformatting.
21352 Add pragma Preelaborate, since these packages are suitable for this
21353 categorization.
21354 Update comments.
21355
21356 * s-traent-vms.ads, s-intman-dummy.adb,
21357 s-taprop-dummy.adb: Make this unit Preelaborate.
21358
21359 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
21360 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
21361 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
21362 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
21363 s-intman-solaris.adb, s-intman-irix-athread.adb,
21364 s-intman-irix.adb: Mark this unit Preelaborate.
21365 (Initialize): New procedure.
21366 Update comments.
21367
21368 * s-taspri-linux.ads: Removed.
21369
21370 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
21371 as done by other implementations (e.g. posix).
21372
21373 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
21374 responsible for deferring abort.
21375 Mark this unit Preelaborate.
21376
21377 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
21378 proper initialization of the tasking run-time.
21379
21380 * s-tasdeb.ads: Mark this unit Preelaborate.
21381 (Known_Tasks): Add explicit default value to avoid elaboration code.
21382
21383 * s-inmaop-vms.adb (Elaboration code): Add call to
21384 Interrupt_Management.Initialize since the elaboration code depends on
21385 proper initialization of this package.
21386
21387 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
21388 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
21389 s-osprim-posix.adb: Make this unit Preelaborate.
21390
21391 * a-calend.adb: Add call to OS_Primitives.Initialize
21392
21393 * a-elchha.adb: Update use of Except.Id.Full_Name.
21394 Minor reformatting.
21395 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
21396
21397 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
21398 Move with clauses outside Warnings Off now that dependent units are
21399 Preelaborate.
21400 Use raise xxx with "..."; Ada 2005 form.
21401
21402 * a-taside.ads, a-taside.adb:
21403 Remove some dependencies, to make it easier to make this unit truly
21404 Preelaborate.
21405 Rewrite some code to be conformant with Preelaborate rules.
21406
21407 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
21408 marked Preelaborate in the future.
21409
21410 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
21411 these units Preelaborate.
21412
21413 * s-exctab.adb: Update use of Except.Id.Full_Name.
21414
21415 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
21416 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
21417 Set_Exc_Stack_Addr): Removed, no longer used.
21418 Remove reference to *Machine_State_Addr*, no longer needed.
21419
21420 * s-stalib.ads: Mark this unit as Preelaborate[_05].
21421 (Exception_Data): Full_Name is now a System.Address so that this unit
21422 can be made Preelaborate.
21423 Clean up/simplify code thanks to Full_Name being a System.Address.
21424 Remove obsolete pragma Suppress (All_Checks), no longer needed.
21425
21426 * s-taskin.ads, s-taskin.adb:
21427 Move with clauses outside Warnings Off now that dependent units are
21428 Preelaborate.
21429 Make this unit Preelaborate.
21430 (Initialize): New proceduure, replace elaboration code and makes the
21431 set up of the tasking run-time cleaner.
21432 (Detect_Blocking): Now a function instead of a deferred boolean, to
21433 obey Preelaborate rules.
21434
21435 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
21436 soft links, no longer used.
21437
21438 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
21439 packages are suitable for this categorization.
21440
21441 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
21442 since we compile run-time sources in Ada 2005 mode.
21443 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
21444 avoid having s-taprop*.adb depend on s-soflin and to avoid code
21445 duplication.
21446 Remove reference to *Machine_State_Addr*, no longer needed.
21447
21448 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21449
21450 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
21451 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21452 Remove reference to System.Exceptions.
21453
21454 * s-mastop-x86.adb: Removed, no longer used.
21455
21456 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
21457
21458 * a-excach.adb: Minor reformatting.
21459
21460 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
21461 instead fix new warnings that were hidden by this change.
21462 (AAA, ZZZ): Removed, replaced by...
21463 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
21464 are used instead of constants, to help make Ada.Exception truly
21465 preelaborate.
21466 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
21467 Raise_Storage_Error): File is now a System.Address, to simplify code.
21468 (Elab code): Removed, no longer used.
21469 (Null_Occurrence): Remove Warnings Off and make this construct
21470 preelaborate.
21471 Remove code related to front-end zero cost exception handling, since
21472 it is no longer used.
21473 Remove -gnatL/-gnatZ switches.
21474
21475 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
21476 Update use of Except.Msg.
21477
21478 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
21479 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
21480 to front-end zero cost exception handling, since it is no longer used.
21481 Remove -gnatL/-gnatZ switches.
21482
21483 * lib-writ.ads: Minor reformatting
21484 Remove doc of UX
21485
21486 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
21487
21488 * Make-lang.in: Remove references to s-except.ads
21489
21490 * s-except.ads: Removed, no longer used.
21491
21492 * s-mastop.ads, s-mastop.adb:
21493 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21494 Remove reference to System.Exceptions.
21495
21496 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
21497 switch-b.adb: Remove code related to front-end zero cost exception
21498 handling, since it is no longer used.
21499 Remove -gnatL/-gnatZ switches.
21500
21501 2005-09-01 Robert Dewar <dewar@adacore.com>
21502 Gary Dismukes <dismukes@adacore.com>
21503 Javier Miranda <miranda@adacore.com>
21504
21505 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
21506 type by valid test and generate warning.
21507 (Tagged_Membership): Generate call to the run-time
21508 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
21509 Change formal name Subtype_Mark to Result_Definition in several calls to
21510 Make_Function_Specification.
21511 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
21512 check for proper accessibility of the operand of a class-wide allocator.
21513 The check can be left out if checks are suppressed or if the expression
21514 has a specific tagged type whose level is known to be safe.
21515
21516 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
21517 generates the run-time check associated with null-excluding entities.
21518 (Expand_N_Return_Statement): Add tests to determine if the accessibility
21519 check on the level of the return expression of a class-wide function
21520 can be elided. The check usually isn't needed if the expression has a
21521 specific type (unless it's a conversion or a formal parameter). Also
21522 add a test for whether accessibility checks are suppressed. Augment
21523 the comments to describe the conditions for performing the check.
21524
21525 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
21526 Javier Miranda <miranda@adacore.com>
21527 Gary Dismukes <dismukes@adacore.com>
21528 Ed Schonberg <schonberg@adacore.com>
21529
21530 * a-tags.adb (IW_Membership): Give support to
21531 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
21532 subprogram has been extended to look for the tag in the ancestors tag
21533 table.
21534 Update the structure of the GNAT Dispatch Table to reflect the
21535 additional two tables used in dispatching selects.
21536 Introduce appropriate array types and record components in
21537 Type_Specific_Data to reflect the two tables.
21538 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
21539 the TSD of a tag, indexed by position.
21540 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
21541 operation kind in the TSD of a tag, indexed by position.
21542
21543 * a-tags.ads: Introduce an enumeration type to capture different
21544 primitive operation kinds. Define a constant reflecting the number of
21545 predefined primitive operations.
21546 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
21547 of an entry wrapper.
21548 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
21549 callable entity of a primitive operation.
21550
21551 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
21552 primitive operations used in dispatching selects for limited
21553 interfaces, limited tagged, task and protected types what implement a
21554 limited interface.
21555 (Freeze_Type): Generate the bodies of the primitive operations used in
21556 dispatching selects for limited tagged, task and protected types that
21557 implement a limited interface. Generate statements to populate the two
21558 auxiliary tables used for dispatching in select statements.
21559 (Freeze_Record_Type): Add call to initialize the dispatch table entries
21560 associated with predefined interface primitive operations.
21561 (Build_Dcheck_Function): Change Set_Subtype_Mark to
21562 Set_Result_Definition.
21563 (Build_Variant_Record_Equality): Change Subtype_Mark to
21564 Result_Definition.
21565 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
21566 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
21567 (Build_Assignment): Simplify the code that adds the run-time-check.
21568 (Expand_N_Object_Declaration): Code cleanup.
21569
21570 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
21571 entries when there is a protected type that implements a limited
21572 interface.
21573
21574 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
21575 common routines used in expansion of dispatching selects.
21576 (Add_Private_Declarations): Select the appropriate protection type when
21577 there is a protected type that implements a limited interface.
21578 (Build_Parameter_Block): Generate a wrapped parameter block.
21579 (Build_Protected_Subprogram_Body): Select the appropriate type for
21580 locking entries when there is a protected type that implements a
21581 limited interface.
21582 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
21583 classified as entry wrappers.
21584 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
21585 asynchronous selects.
21586 (Expand_N_Conditional_Entry_Call): Add support for expansion of
21587 dispatching conditional selects.
21588 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
21589 protection when there is a protected type that implements limited
21590 interfaces.
21591 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
21592 timed selects.
21593 (Extract_Dispatching_Call): Extract the entity of the name of a
21594 dispatching call, the object parameter, actual parameters and
21595 corresponding formals.
21596 (Make_Initialize_Protection): Correct logic of protection initialization
21597 when there is a protected type that implements a limited interface.
21598 (Parameter_Block_Pack): Populate a wrapped parameter block with the
21599 values of actual parameters.
21600 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
21601 block and assign them to the original actual parameters.
21602
21603 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
21604 (Build_Protected_Sub_Specification): Change the type and name of the
21605 last formal to account for the increased variety of protection modes.
21606
21607 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
21608 entities. Used to save the value of the Is_Hidden attribute when the
21609 limited-view is installed.
21610 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
21611 the attribute of procedures classified as entry wrappers.
21612 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
21613 entity of a primitive wrapper.
21614 (Write_Entity_Flags): Output the name and value of the
21615 Is_Primitive_Wrapper attribute.
21616 (Write_Field27_Name): Output the name and entity of the field Wrapped_
21617 Entity.
21618 (Underlying_Type): If we have an incomplete entity that comes from
21619 the limited view then we return the Underlying_Type of its non-limited
21620 view if it is already available.
21621 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
21622 including operators.
21623 (Write_Field26_Name): Add entry for Overridden_Operation
21624 (Overridden_Operation): New attribute of functions and procedures.
21625
21626 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
21627 predefined position in the dispatch table for the primitive operations
21628 used in dispatching selects.
21629 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
21630 predefined primitive operations and replace it with
21631 Default_Prim_Op_Count.
21632 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
21633 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
21634 the names of the generated primitive operations used in dispatching
21635 selects.
21636 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
21637 case of abstract interface types. They will be inherit by the objects
21638 implementing the interface.
21639 (Make_DT): There is no need to inherit the dispatch table of the
21640 ancestor interface for the elaboration of abstract interface types.
21641 The dispatch table will be inherited by the object implementing the
21642 interface.
21643 (Copy_Secondary_DTs): Add documentation.
21644 (Validate_Position): Improve this static check in case of
21645 aliased subprograms because aliased subprograms must have
21646 the same position.
21647 (Init_Predefined_Interface_Primitives): New subprogram that initializes
21648 the entries associated with predefined primitives of all the secondary
21649 dispatch tables.
21650 (Build_Anonymous_Access_Type): Removed.
21651 (Expand_Interface_Actuals): With the previous cleanup there is no need
21652 to build an anonymous access type. This allows further cleanup in the
21653 code generated by the expander.
21654 (Expand_Interface_Conversion): If the actual is an access type then
21655 build an internal function to handle the displacement. If the actual
21656 is null this function returns null because no displacement is
21657 required; otherwise performs a type conversion that will be
21658 expanded in the code that returns the value of the displaced actual.
21659 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
21660 conversions that have no effect in the generated code because no
21661 displacement is required. Code cleanup; use local variables to
21662 avoid repeated calls to the subprogram directly_designated_type().
21663
21664 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
21665 Classify the primitive operations used in dispatching selects as
21666 predefined.
21667 (Implements_Limited_Interface): Determine whether some type either
21668 directly implements a limited interface or extends a type that
21669 implements a limited interface.
21670 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
21671 (Expand_Subtype_From_Expr): Do not build actual subtype if the
21672 expression is limited.
21673 (Find_Interface_Tag): Add code to handle class-wide types and
21674 entities from the limited-view.
21675
21676 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
21677 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
21678 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
21679 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
21680 Set_Prim_Op_Kind.
21681
21682 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
21683 of procedure name or prefix that appears as a trigger in a triggering
21684 alternative.
21685
21686 * uintp.ads: Introduce constants Uint_11 and Uint_13.
21687
21688 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21689
21690 * s-tataat.adb, a-tasatt.adb:
21691 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
21692
21693 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
21694 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
21695 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
21696 longer used.
21697
21698 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21699 Jose Ruiz <ruiz@adacore.com>
21700
21701 * s-taprop-vxworks.adb:
21702 Move with clauses outside Warnings Off now that dependent units are
21703 Preelaborate.
21704 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
21705 initialization of this unit.
21706 (Specific): Add new procedures Initialize and Delete so that this
21707 package can be used for VxWorks 5.x and 6.x
21708 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
21709 differences between VxWorks 5.x and 6.x
21710 Minor reformatting.
21711 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
21712 caller.
21713 Use only Preelaborate-compatible constructs.
21714
21715 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
21716 Primitives.Operations.
21717 (Delete, Initialize): New procedures.
21718
21719 * s-osinte-vxworks.adb: Body used to handle differences between
21720 VxWorks 5.x and 6.x
21721 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
21722
21723 * s-osinte-vxworks.ads: Minor reformatting.
21724 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
21725 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
21726 and 6.
21727 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
21728 between Vxworks 5 and 6.
21729 (taskLock, taskUnlock): Removeed, no longer used.
21730
21731 * adaint.c: The wait.h header is not located in the sys directory on
21732 VxWorks when using RTPs.
21733 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21734 using RTPs.
21735 (__gnat_dup): dup is available on Vxworks when using RTPs.
21736 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21737
21738 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21739
21740 * expect.c: The wait.h header is not located in the sys directory on
21741 VxWorks when using RTPs.
21742
21743 2005-09-01 Thomas Quinot <quinot@adacore.com>
21744
21745 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21746
21747 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21748
21749 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
21750 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
21751 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
21752 g-soccon-freebsd.ads: Add new constants:
21753 IP_MULTICAST_IF
21754 SO_RCVTIMEO/SO_SNDTIMEO
21755 IOV_MAX
21756
21757 * gen-soccon.c:
21758 Move all target-specific file inclusions and macro definitions to
21759 gsocket.h, in order to ensure that any C code in socket.c will see a
21760 set of constants that is consistent with the contents of g-soccon.ads.
21761
21762 * gsocket.h: Code imported from gen-soccon.c:
21763 Move all target-specific file inclusions and macro definitions to
21764 gsocket.h, in order to ensure that any C code in socket.c will see a set
21765 of constants that is consistent with the contents of g-soccon.ads.
21766 This change also makes gen-soccon self-contained (removing dependencies
21767 upon GCC internal headers).
21768
21769 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
21770 iovecs at a time.
21771 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
21772
21773 * socket.c: Minor reformatting.
21774
21775 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21776 Thomas Quinot <quinot@adacore.com>
21777
21778 * fname-sf.adb, mlib-tgt.ads,
21779 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
21780 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
21781 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
21782 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
21783 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
21784 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
21785 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
21786 makegpr.adb: Remove redundant use_clauses.
21787
21788 2005-09-01 Arnaud Charlet <charlet@adacore.com>
21789
21790 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
21791 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
21792 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
21793 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
21794 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
21795 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
21796 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
21797 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
21798 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
21799 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
21800 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
21801 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
21802 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
21803 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
21804 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
21805 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
21806 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
21807 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
21808 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
21809 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
21810 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
21811 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
21812 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
21813 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
21814 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
21815 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
21816 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
21817 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
21818 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
21819 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
21820 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
21821 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
21822 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
21823 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
21824 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
21825 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
21826 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
21827 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
21828 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
21829 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
21830 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
21831 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
21832 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
21833 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
21834 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
21835 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
21836 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
21837 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
21838 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
21839 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
21840 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
21841 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
21842 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
21843 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
21844 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
21845 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
21846 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
21847 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
21848 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
21849 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
21850 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
21851 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
21852 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
21853 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
21854 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
21855 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
21856 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
21857 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
21858 and always use the no parameter form for consistency.
21859
21860 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
21861
21862 2005-09-01 Robert Dewar <dewar@adacore.com>
21863
21864 * binde.adb: Minor reformatting
21865 (Find_Elab_Order): Output warning if -p used with static elab order
21866
21867 2005-09-01 Robert Dewar <dewar@adacore.com>
21868
21869 * checks.adb (Check_Needed): New procedure, deals with removing checks
21870 based on analysis of short-circuited forms. Also generates warnings for
21871 improper use of non-short-circuited forms.
21872 Code clean ups.
21873
21874 2005-09-01 Robert Dewar <dewar@adacore.com>
21875
21876 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
21877 with 'Valid tests.
21878
21879 2005-09-01 Robert Dewar <dewar@adacore.com>
21880
21881 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
21882 spec.
21883 Implement new insertion char < (conditional warning)
21884 * errutil.adb, erroutc.adb: Implement new insertion char <
21885 (conditional warning).
21886 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
21887 (Error_Msg_Warn): New variable for < insertion char.
21888 * prj-nmsc.adb: Implement new errout insertion char < (conditional
21889 warning).
21890 (Check_For_Source): Change value of Source_Id only after the current
21891 source has been dealt with.
21892
21893 2005-09-01 Robert Dewar <dewar@adacore.com>
21894 Doug Rupp <rupp@adacore.com>
21895
21896 * exp_attr.adb: Handle vax fpt for 'Valid attribute
21897 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
21898 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
21899 (Valid_D, Valid_F, Valid_G): New functions
21900
21901 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21902 Hristian Kirtchev <kirtchev@adacore.com>
21903 Javier Miranda <miranda@adacore.com>
21904
21905 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
21906 from object notation, the original node is unanalyzed and carries no
21907 semantic information, so that accessiblity checks must be performed on
21908 the type of the actual itself.
21909 (Expand_N_Subprogram_Declaration): Change last actual parameter for
21910 compatibility with Build_Protected_Sub_Specification.
21911 (Check_Overriding_Inherited_Interfaces): Add suport to handle
21912 overloaded primitives.
21913 (Register_Interface_DT_Entry): Use the new name of the formal
21914 the the calls to Expand_Interface_Thunk
21915
21916 * exp_dbug.ads: Augment comments on encoding of protected types to
21917 include the generation of dispatching subprograms when the type
21918 implements at least one interface.
21919
21920 * lib.ads: Extend information in Load_Stack to include whether a given
21921 load comes from a Limited_With_Clause.
21922
21923 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
21924 whether a potential circularity is harmless, because it includes units
21925 loaded through a limited_with clause. Extends previous treatment which
21926 did not handle properly arbitrary combinations of limited and
21927 non-limited clauses.
21928
21929 2005-09-01 Nicolas Setton <setton@adacore.com>
21930
21931 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
21932 to be encoded as typ___XBLU_lowerbound__upperbound instead of
21933 typ___XB_lowerbound__upperbound.
21934
21935 2005-09-01 Thomas Quinot <quinot@adacore.com>
21936
21937 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
21938 dummy access formal for RACW/RAS TypeCode TSS.
21939 (Build_TypeCode_Call): Do not generate dummy null access actual for
21940 calls to the TypeCode TSS.
21941
21942 2005-09-01 Ed Schonberg <schonberg@adacore.com>
21943
21944 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
21945 fully qualified name, to distinguish instances with the same local name.
21946
21947 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
21948 fully qualified.
21949
21950 2005-09-01 Robert Dewar <dewar@adacore.com>
21951
21952 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
21953 packed arrays.
21954
21955 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
21956
21957 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
21958 (Free): New deallocation procedure for filter elements
21959 (Close): Deallocate any existing filter for the concerned connection
21960
21961 2005-09-01 Laurent Pautet <pautet@adacore.com>
21962
21963 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
21964 position set is provided, we compute one in order to reduce the maximum
21965 length of the keys. This computation first selects a character
21966 position between 1 and the minimum length of the keys in order to
21967 avoid reducing one of the keys to an empty string.
21968 (Initialize, Compute): When the ratio V to K is too low, the algorithm
21969 does not converge. The initialization procedure now comes with a
21970 maximum number of iterations such that when exceeded, an exception is
21971 raised in Compute. The user can initialize this ratio to another value
21972 and try again
21973 Reformating and updated headers.
21974
21975 2005-09-01 Javier Miranda <miranda@adacore.com>
21976
21977 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
21978 that given an entity T creates and returns an Itype that duplicates the
21979 contents of T. The returned Itype has the null-exclusion
21980 attribute set to True, and its Etype attribute references T
21981 to keep the association between the two entities.
21982 Update copyright notice
21983
21984 * sem_aggr.adb (Check_Can_Never_Be_Null,
21985 Aggregate_Constraint_Checks, Resolve_Aggregate,
21986 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
21987
21988 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
21989
21990 2005-09-01 Gary Dismukes <dismukes@adacore.com>
21991 Robert Dewar <dewar@adacore.com>
21992 Hristian Kirtchev <kirtchev@adacore.com>
21993
21994 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
21995 Result_Definition.
21996
21997 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
21998 function specs.
21999 Call Set_Result_Definition instead of Set_Subtype_Mark.
22000 (P_Subprogram_Specification): Add parsing of anonymous access result
22001 plus null exclusions. Call Set_Result_Definition instead of
22002 Set_Subtype_Mark.
22003
22004 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22005 (P_Access_Type_Definition): Add parsing for an anonymous access result
22006 subtype, plus parsing for null exclusions. Call Set_Result_Definition
22007 instead of Set_Subtype_Mark.
22008
22009 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22010 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22011 (Result_Definition): New function for N_Function_Specifications.
22012 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22013 N_Function_Specification.
22014 (Set_Null_Exclusion_Present): Allow this flag for
22015 N_Function_Specification.
22016 (Set_Result_Definition): New procedure for N_Function_Specifications.
22017 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22018 and N_Function_Specification.
22019
22020 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22021 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22022 Add support for LIMITED NEW for Ada 2005 AI-419
22023 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22024 syntax for anonymous access results.
22025 Replace Subtype_Mark field by Result_Definition in
22026 N_Function_Specification and N_Access_Definition specs.
22027 Add Null_Exclusion_Present to spec of N_Function_Specification.
22028 (Result_Definition): New function for N_Function_Specification and
22029 N_Access_Function_Definition.
22030 (Set_Result_Definition): New procedure for N_Function_Specification and
22031 N_Access_Function_Definition.
22032
22033 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22034 Result_Definition for cases of N_Access_Function_Definition and
22035 N_Function_Specification.
22036 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22037
22038 2005-09-01 Vincent Celier <celier@adacore.com>
22039
22040 * lib-writ.adb: Update Copyright notice
22041 (Write_With_Lines): On platforms where file names are case-insensitive,
22042 record the file names in lower case.
22043 (Write_ALI): For D lines, on platforms where file names are
22044 case-insensitive, record the file names in lower case.
22045
22046 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22047 Emmanuel Briot <briot@adacore.com>
22048
22049 * lib-xref.adb (Output_Overridden_Op): Display information on
22050 overridden operation.
22051
22052 * lib-xref.ads: Add documentation on overridden operations.
22053
22054 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22055 information.
22056
22057 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22058 overriding entity information.
22059
22060 2005-09-01 Vincent Celier <celier@adacore.com>
22061
22062 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22063 including those that are inherited.
22064
22065 2005-09-01 Robert Dewar <dewar@adacore.com>
22066
22067 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
22068
22069 * par-prag.adb: Implement new pragma Debug_Policy
22070
22071 * sem_prag.adb Implement new pragma Debug_Policy
22072 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
22073 Component_Size attribute specification. Give warning for ignored pragma
22074 Pack.
22075
22076 * snames.h, snames.ads, snames.adb: Introduce entries in
22077 Preset_Names for Name_Disp_Asynchronous_Select,
22078 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
22079 Name_Disp_Timed_Select.
22080 New pragma Debug_Policy
22081
22082 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
22083 explicitly.
22084 Switch -gnata also sets Debug_Pragmas_Enabled
22085
22086 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
22087 handle an explicit -gnata when compiling predefined files.
22088
22089 2005-09-01 Vincent Celier <celier@adacore.com>
22090
22091 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
22092 directories of projects that have no Ada sources.
22093
22094 2005-09-01 Robert Dewar <dewar@adacore.com>
22095
22096 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
22097 (makes a difference for wide characters)
22098
22099 * widechar.adb, widechar.ads:
22100 Add Wide_Char_Byte_Count feature to count chars vs bytes
22101
22102 2005-09-01 Thomas Quinot <quinot@adacore.com>
22103 Ed Schonberg <schonberg@adacore.com>
22104 Robert Dewar <dewar@adacore.com>
22105
22106 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
22107 'Address attribute reference with an overloaded prefix, use the
22108 location of the prefix (not the location of the attribute reference) as
22109 the error location.
22110 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
22111 a function renaming thereof, is a valid prefix for 'Size (where it is
22112 intepreted as a function call).
22113 (Statically_Denotes_Entity): New predicate to determine whether the
22114 prefix of an array attribute can be considered static.
22115
22116 PR ada/9087
22117 (Eval_Attr): Fix failure to evaluate Component_Size for
22118 unconstrained arrays (resulted in wrong value in packed case, since
22119 back end cannot handle this case)
22120
22121 2005-09-01 Robert Dewar <dewar@adacore.com>
22122
22123 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
22124 error msgs for most common cases.
22125 Use new errout insertion char < (conditional warning)
22126
22127 2005-09-01 Javier Miranda <miranda@adacore.com>
22128 Ed Schonberg <schonberg@adacore.com>
22129
22130 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
22131 become local to the whole package.
22132 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
22133 the package was already analyzed the new algorithm "replaces" the
22134 real entities by the shadow ones. This is required to ensure that
22135 the order of these entities in the homonym chains does not change;
22136 otherwise we can have undefined references at linking time because
22137 in case of conflicts the external name of the entities will have
22138 a suffix that depends on the order of the entities in the chain.
22139 (Remove_Limited_With_Clause): Complementary code that completes the
22140 new algorithm and replaces the shadow entities by the real ones.
22141 (Install_Limited_Withed_Unit): When unchaining entities before the
22142 installation of the shadow entities, only regular entities of the
22143 public part must be taken into account. This is required to
22144 keep this routine in synch with the work done by Remove_Limited_
22145 With_Clause
22146 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
22147 even if unit is analyzed, because the analysis of the unit is
22148 idempotent in any case, and the limited view of the unit may have to
22149 be installed for proper visibility.
22150 (Expand_Limited_With_Clause): Even if the unit in the implicit
22151 with_clause has been analyzed already, a limited view of the package
22152 must be built for the current context, if it does not exist yet.
22153
22154 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22155 Javier Miranda <miranda@adacore.com>
22156 Gary Dismukes <dismukes@adacore.com>
22157
22158 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
22159 defining entity for the instance body, make a new defining identifier
22160 rather than copying the entity of the spec, to prevent accidental
22161 sharing of the entity list.
22162 (Check_Private_View): When exchanging views of private types, build the
22163 list of exchanged views as a stack, to ensure that on exit the exchanges
22164 are undone in the proper order.
22165 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
22166 Restore the compilation environment in case of instantiation_error.
22167 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
22168 for an anonymous access result.
22169 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
22170 (Formal_Entity): Handle properly the case of a formal package that
22171 denotes a generic package renaming.
22172
22173 2005-09-01 Thomas Quinot <quinot@adacore.com>
22174
22175 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
22176 clause if the array aggregate is surrounded by parentheses.
22177
22178 2005-09-01 Cyrille Comar <comar@adacore.com>
22179 Gary Dismukes <dismukes@adacore.com>
22180 Ed Schonberg <schonberg@adacore.com>
22181 Javier Miranda <miranda@adacore.com>
22182
22183 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
22184 underlying type
22185 to check if a type is Constrained in cases related to code generation
22186 (rather than semantic checking) since otherwise we do not generate
22187 similar code for mutable private types depending if their
22188 discriminants are visible or not.
22189 (Check_Abstract_Overriding): Do not complain about failure to override
22190 the primitive operations used in dispatching selects since they will
22191 always be overriden at the freeze point of the type.
22192 (Access_Definition): Separate out handling for resetting the scope
22193 of an anonymous access function result type. Retrieve the scope
22194 of the associated function rather than using Current_Scope, which
22195 does not have a consistent value (depends on whether we're in the
22196 middle of analyzing formal parameters). Add ??? comment about
22197 finding a cleaner way to handle the special cases of scope setting.
22198 (Process_Incomplete_Dependents): A protected operation is never a
22199 dispatching operation (only its wrapper may be).
22200 (Build_Derived_Record_Type): In case of tagged private types that
22201 implement interfaces add derivation of predefined primitive
22202 operations.
22203 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
22204 by two parameters that are used in case of derivation from abstract
22205 interface types: No_Predefined_Prims is used to avoid the derivation
22206 of predefined primitives from the interface, and Predefined
22207 Prims_Only is used to complete the derivation predefined primitives
22208 in case of private tagged types implementing interfaces.
22209 Fix typo in comments
22210 (Find_Interface_In_Descendant): Protect the frontend against
22211 wrong code with large circularity chains.
22212 (Is_Private_Overriding): Add support for entities overriding interface
22213 subprograms. The test failed because Entities associated with overriden
22214 interface subprograms are always marked as hidden (and used to build
22215 the secondary dispatch table); in this case the overriden entity is
22216 available through the field abstract_interface_alias (cf. override_
22217 dispatching_operation)
22218 (Access_Definition): Set the scope of the type to Current_Scope for the
22219 case of a function with an anonymous access result type.
22220 (Access_Subprogram_Declaration): Handle creation of the type entity for
22221 an access-to-function type with an anonymous access result.
22222 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
22223 in handling for N_Access_Function_Definition.
22224 (Analyze_Subtype_Declaration): Modify the text of error message.
22225 (Derived_Type_Declaration): Modify the text of error message.
22226 (Process_Subtype): Modify the text of error message plus cleanup
22227 of one redundant error message.
22228 (Analyze_Component_Declaration): Code cleanup.
22229 (Analyze_Object_Declaration): Code cleanup.
22230 (Analyze_Subtype_Declaration): Propagate the null-exclusion
22231 attribute in case of access types. Code cleanup.
22232 (Array_Type_Declaration): Code cleanup.
22233 (Process_Discriminants): Create the new null-excluding itype
22234 if required. Code cleanup.
22235 (Process_Subtype): Create the new null-excluding itype if
22236 required. Code cleanup.
22237 (Build_Derived_Record_Type): Code cleanup to avoid calling
22238 twice the subprogram derive_subprograms in case of private
22239 types that implement interfaces. In this particular case the
22240 subprogram Complete_Subprograms_Derivation already does the
22241 job associated with the second call.
22242
22243 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
22244 conversion to the full view when generating an operation for a
22245 discriminant whose type may currently be private.
22246
22247 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22248 Javier Miranda <miranda@adacore.com>
22249
22250 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
22251 V (Obj.F), the rewriting does not involve the indexed component, but
22252 only the selected component itself.
22253 Do not apply the transformation if the analyzed node is an actual of a
22254 call to another subprogram.
22255 (Complete_Object_Operation): Retain the entity of the
22256 dispatching operation in the selector of the rewritten node. The
22257 entity will be used in the expansion of dispatching selects.
22258 (Analyze_One_Call): Improve location of the error message associated
22259 with interface.
22260 (Analyze_Selected_Component): No need to resolve prefix when it is a
22261 function call, resolution is done when parent node is resolved, as
22262 usual.
22263 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
22264 when attempting to resolve a call transformed from its object notation.
22265 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
22266 of the argument list for each interpretation of the operation.
22267 (Try_Object_Operation): The designated type of an access parameter may
22268 be an incomplete type obtained through a limited_with clause, in which
22269 case the primitive operations of the type are retrieved from its full
22270 view.
22271 (Analyze_Call): If this is an indirect call, and the return type of the
22272 access_to_subprogram is incomplete, use its full view if available.
22273
22274 2005-09-01 Javier Miranda <miranda@adacore.com>
22275 Gary Dismukes <dismukes@adacore.com>
22276
22277 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
22278 access types the null-exclusion and access-to-constant attributes must
22279 also match.
22280 (Analyze_Return_Statement): When the result type is an anonymous access
22281 type, apply a conversion of the return expression to the access type
22282 to ensure that appropriate accessibility checks are performed.
22283 (Analyze_Return_Type): For the case of an anonymous access result type,
22284 generate the Itype and set Is_Local_Anonymous_Access on the type.
22285 Add ??? placeholder for check to disallow returning a limited object
22286 in Ada 2005 unless it's an aggregate or a result of a function call.
22287 Change calls from Subtype_Mark to Result_Definition.
22288 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
22289 Result_Definition in call to Make_Function_Specification.
22290 (Build_Body_To_Inline): Change Set_Subtype_Mark to
22291 Set_Result_Definition.
22292 (Make_Inequality_Operator): Change formal Subtype_Mark to
22293 Result_Definition in call to Make_Function_Specification.
22294 (Process_Formals): Create the new null-excluding itype if required.
22295 (New_Overloaded_Entity): For an entity overriding an interface primitive
22296 check if the entity also covers other abstract subprograms in the same
22297 scope. This is required to handle the general case, that is, overriding
22298 other interface primitives and overriding abstract subprograms inherited
22299 from some abstract ancestor type.
22300 (New_Overloaded_Entity): For an overriding entity that comes from
22301 source, note the operation that it overrides.
22302 (Check_Conformance, Type_Conformant): Addition of one new formal
22303 to skip controlling formals in the analysis. This is used to
22304 handle overloading of abstract interfaces.
22305 (Base_Types_Match): Add missing case for types imported from
22306 limited-with clauses
22307 (New_Overloaded_Entity): Add barrier to protect the use of
22308 the "alias" attribute.
22309
22310 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22311
22312 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
22313 verify that the procedure and the entry are mode conformant.
22314 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
22315 as a different operator, which is often a cut-and-paste error.
22316
22317 2005-09-01 Javier Miranda <miranda@adacore.com>
22318 Ed Schonberg <schonberg@adacore.com>
22319
22320 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
22321 used in controlling parameters exclude null because it is necessary to
22322 read the tag to dispatch, and null has no tag.
22323 (Override_Dispatching_Operation): If the previous operation is inherited
22324 from an interface, it becomes hidden and does not participate in later
22325 name resolution.
22326
22327 2005-09-01 Javier Miranda <miranda@adacore.com>
22328 Ed Schonberg <schonberg@adacore.com>
22329 Gary Dismukes <dismukes@adacore.com>
22330
22331 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
22332 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
22333 the expander will generate the corresponding run-time check to evaluate
22334 the expression.
22335 (Resolve_Call): Check for legal type of procedure name or prefix that
22336 appears as a trigger in a triggering alternative.
22337 (Valid_Conversion): If expression is ambiguous and the context involves
22338 an extension of System, remove System.Address interpretations.
22339 (Resolve_Qualified_Expression): Reject the case of a specific-type
22340 qualification applied to a class-wide argument. Enhance comment
22341 to explain checking of Original_Node.
22342 (Resolve_Type_Conversion): The location of the error message was not
22343 general enough to handle the general case and hence it has been removed.
22344 In addition, this patch improves the text of the message.
22345 (Resolve_Type_Conversion): Add missing support for access to interface
22346 types.
22347 (Resolve_Type_Conversion): If the target is a class-wide interface type,
22348 do not expand if the expression is the actual in a call, because proper
22349 expansion will take place when the call itself is expanded.
22350 (Resolve_Allocator): If the context is an unchecked conversion, the
22351 allocator inherits its storage pool, if any, from the target type of
22352 the conversion.
22353
22354 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22355 Javier Miranda <miranda@adacore.com>
22356
22357 * sem_type.adb (Add_One_Interp): If a candidate operation is an
22358 inherited interface operation that has an implementation, use the
22359 implementation to avoid spurious ambiguities.
22360 (Interface_Present_In_Ancestor): In case of concurrent types we can't
22361 use the Corresponding_Record_Typ attribute to look for the interface
22362 because it is set by the expander (and hence it is not always
22363 available). For this reason we traverse the list of interfaces
22364 (available in the parent of the concurrent type).
22365 (Interface_Present_In_Ancestor): Handle entities from the limited view
22366
22367 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22368
22369 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
22370 from the list of required components.
22371 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
22372 primitive procedure of a limited interface with a controlling first
22373 parameter.
22374 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
22375 of an entry.
22376 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
22377 capture if it is generated in the second operand of a short-circuit
22378 operation.
22379 Do not capture values for variables with address clauses.
22380 (Is_Object_Reference): Treat a function call as an object reference only
22381 if its type is not Standard_Void_Type.
22382
22383 2005-09-01 Ed Schonberg <schonberg@adacore.com>
22384
22385 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
22386 to a variable that is statically known to be constant.
22387
22388 2005-09-01 Geert Bosch <bosch@adacore.com>
22389 Robert Dewar <dewar@adacore.com>
22390
22391 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
22392 (VAXGF_Safe_First): Idem.
22393
22394 2005-09-01 Robert Dewar <dewar@adacore.com>
22395 Arnaud Charlet <charlet@adacore.com>
22396
22397 * g-dirope.ads: Minor reformatting
22398 Document that bounds of result of Base_Name match the input index
22399 positions.
22400 Add documentation on environment variable syntax for Expand_Path
22401
22402 * gnat_ugn.texi: Update documentation to include mention of -m switches
22403 Document new treatment of wide characters in max line length
22404 style check.
22405 Remove -gnatL/-gnatZ switches, no longer used.
22406 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
22407 of -gnata switch.
22408
22409 * gnat_rm.texi: Add doc for two argument form of pragma
22410 Float_Representation.
22411 Add documentation for pragma No_Strict_Aliasing
22412 Add note that explicit component clause overrides pragma Pack.
22413 Add documentation of pragma Debug_Policy
22414
22415 2005-09-01 Matthew Heaney <heaney@adacore.com>
22416
22417 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
22418 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
22419 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
22420 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
22421 draft (Draft 13, August 2005) of Ada Amendment 1.
22422
22423 2005-09-01 Arnaud Charlet <charlet@adacore.com>
22424
22425 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
22426 Note that the platform-specific version of g-soccon.ads for VMS is now
22427 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
22428 really is a package spec).
22429 Replace s-taspri-linux.ads by s-taspri-posix.ads
22430 Remove references to s-mastop-x86.adb
22431
22432 * system-vxworks-xscale.ads: Removed, no longer used.
22433 * s-vxwork-xscale.ads: Removed, no longer used.
22434
22435 2005-09-01 Robert Dewar <dewar@adacore.com>
22436
22437 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
22438 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
22439 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
22440 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
22441 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
22442 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
22443 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
22444 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
22445 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
22446 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
22447 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
22448 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
22449 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
22450 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
22451 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
22452 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
22453 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
22454 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
22455 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
22456 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
22457 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
22458
22459 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22460
22461 PR ada/23187
22462 * adaint.c
22463 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
22464
22465 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22466 Doug Rupp <rupp@adacore.com>
22467
22468 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
22469 when needed.
22470 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
22471 this code in the GNAT run-time.
22472
22473 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
22474
22475 PR ada/21053
22476 * init.c (__gnat_error_handler [many]): Mark "msg" as const
22477 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
22478
22479 (__gnat_inside_elab_final_code): Moved here from
22480 Standard_Library and only defined for the compiler.
22481 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
22482 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
22483 using RTPs because directly vectored Interrupt routines are not
22484 supported on this configuration.
22485 (getpid): Do not redefine this function on VxWorks when using RTPs
22486 because this primitive is well supported by the RTP libraries.
22487 (copy_msg): Correct the code that checks for buffer overflow.
22488 Discovered during code reading.
22489
22490 2005-08-29 Olivier Hainque <hainque@adacore.com>
22491
22492 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
22493 a library level mutable variable with an initializer, tell
22494 build_allocator to ignore the initializer's size. It may not be large
22495 enough for all the values that might be assigned to the variable later
22496 on.
22497
22498 2005-08-29 Arnaud Charlet <charlet@adacore.com>
22499 Eric Botcazou <ebotcazou@adacore.com>
22500
22501 * trans.c: Protect < in error msg with quote
22502 Replace GCC_ZCX by Back_End_Exceptions.
22503 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
22504 has been sufficiently aligned in the record.
22505
22506 2005-08-15 James E. Wilson <wilson@specifix.com>
22507
22508 * system-linux-alpha.ads: Change ia64 to alpha.
22509
22510 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
22511
22512 * decl.c, utils.c: Fix comment typos.
22513
22514 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
22515
22516 * decl.c, init.c, initialize.c: Fix comment typos.
22517
22518 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
22519
22520 Make CONSTRUCTOR use VEC to store initializers.
22521 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
22522 CONSTRUCTOR_ELTS.
22523 * trans.c (extract_values): Likewise.
22524 * utils.c (convert, remove_conversions): Likewise.
22525 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
22526 gnat_build_constructor): Likewise.
22527
22528 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22529
22530 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
22531 DECL_SECTION_NAME.
22532 (compare_field_bitpos): Likewise.
22533
22534 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22535
22536 * utils.c (create_var_decl): Only set DECL_COMMON on
22537 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
22538 VAR_OR_FUNCTION_DECL_P.
22539
22540 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
22541
22542 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
22543 removed.
22544
22545 2005-07-07 Pascal Obry <obry@adacore.com>
22546
22547 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
22548 returned type on Windows.
22549
22550 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
22551 routine.
22552
22553 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
22554 exception in this case.
22555 Simplify the code as "Image (Image'Range)" = "Image".
22556
22557 2005-07-07 Vincent Celier <celier@adacore.com>
22558
22559 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
22560 the destructor/constructor attributes for <lib>final/<lib>init.
22561
22562 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
22563
22564 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
22565
22566 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
22567 type if the parameter is not passed by copy but reference by default.
22568
22569 2005-07-07 Javier Miranda <miranda@adacore.com>
22570
22571 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
22572 Reimplementation of the support for abstract interface types in order
22573 to leave the code more clear and easy to maintain.
22574
22575 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
22576 abstract interface types in order to leave the code clearer and easier
22577 to maintain.
22578
22579 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
22580 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
22581 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
22582 appropriate entry of the secondary dispatch table.
22583 (Make_DT): Add code to inherit the secondary dispatch tables of
22584 the ancestors.
22585
22586 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
22587 implementing both functionalities by means of a common routine, each
22588 routine has its own code.
22589
22590 2005-07-07 Javier Miranda <miranda@adacore.com>
22591
22592 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
22593
22594 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
22595 types:
22596 --
22597 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22598 --
22599
22600 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
22601 use of tag incomplete types.
22602
22603 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
22604 give support to tagged incomplete types.
22605
22606 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
22607 expression is a discriminant reference and its type is private, as can
22608 happen within a stream operation for a mutable record, use the full
22609 view of the type to resolve the case alternatives.
22610 (Analyze_Assignment): Check wrong dereference of incomplete types.
22611
22612 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
22613 types.
22614
22615 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
22616 incomplete types.
22617
22618 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
22619 N_Incomplete_Type_Declaration nodes.
22620
22621 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
22622 Tag_Present to give support to tagged incomplete types:
22623 --
22624 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22625 --
22626
22627 2005-07-07 Olivier Hainque <hainque@adacore.com>
22628
22629 PR ada/22301
22630 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
22631 definitions for the Unwind wrappers in the compiler case.
22632
22633 2005-07-07 Ed Schonberg <schonberg@adacore.com>
22634 Javier Miranda <miranda@adacore.com>
22635
22636 * par-load.adb (Load): If a child unit is loaded through a limited_with
22637 clause, each parent must be loaded as a limited unit as well.
22638
22639 * sem_ch10.adb (Previous_Withed_Unit): Better name for
22640 Check_Withed_Unit. Return true if there is a previous with_clause for
22641 this unit, whether limited or not.
22642 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
22643 the current unit.
22644 (Is_Visible_Through_Renamings): New local subprogram of install_limited
22645 _withed_unit that checks if some package installed through normal with
22646 clauses has a renaming declaration of package whose limited-view is
22647 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
22648 of the current Draft document for Ada 2005.
22649 (Analyze_Context): Complete the list of compilation units that
22650 are allowed to contain limited-with clauses. It also contains
22651 checks that were previously done by Install_Limited_Context_Clauses.
22652 This makes the code more clear and easy to maintain.
22653 (Expand_Limited_With_Clause) It is now a local subprogram of
22654 Install_Limited_Context_Clauses, and contains the code that adds
22655 the implicit limited-with clauses for parents of child units.
22656 This functionality was prevously done by Analyze_Context.
22657
22658 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
22659 incomplete type.
22660
22661 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
22662 been erroneously named in a limited-with clause of its own context.
22663 In this case the error has been previously notified by Analyze_Context.
22664
22665 2005-07-07 Ed Schonberg <schonberg@adacore.com>
22666
22667 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
22668 generic package that contains local declarations with the same name.
22669 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
22670
22671 2005-07-07 Bernard Banner <banner@adacore.com>
22672
22673 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
22674 ia64 platform only on platforms that you the GCC unwind library
22675 rather than the system unwind library.
22676
22677 2005-07-07 Thomas Quinot <quinot@adacore.com>
22678
22679 * expect.c: Minor reformatting
22680
22681 2005-07-07 Sergey Rybin <rybin@adacore.com>
22682
22683 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
22684 --no-separate-is
22685
22686 * gnat_ugn.texi: Add description for new gnatpp option
22687 (--no-separate-is)
22688
22689 2005-07-04 Thomas Quinot <quinot@adacore.com>
22690
22691 * g-expect-vms.adb, g-expect.ads, g-expect.adb
22692 (Get_Command_Output): New subprogram to launch a process and get its
22693 standard output as a string.
22694
22695 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22696 Olivier Hainque <hainque@adacore.com>
22697
22698 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
22699 fetch a code-range descriptor associated with the machine state. On
22700 failure set the machine state's PC to 0; on success, pass the
22701 descriptor to exc_virtual_unwind.
22702
22703 * init.c (Tru64 section): New function __gnat_set_code_loc.
22704
22705 2005-07-04 Vincent Celier <celier@adacore.com>
22706
22707 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22708 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22709 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
22710 Remove all auto-initialization code, as this is now done through the
22711 constructor mechanism.
22712
22713 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
22714 __gnat_sals_init_using_constructors): New functions.
22715
22716 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
22717 Linker_Constructor and Linker_Destructor when switch -a is used.
22718
22719 * bindusg.adb: Add line for new switch -a
22720
22721 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
22722 (Gnatbind): When switch -a is used, check if it is allowed
22723
22724 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
22725
22726 2005-07-04 Joel Brobecker <brobecker@adacore.com>
22727
22728 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
22729 This prevents us from hitting a limitation during the debug info
22730 generation when using stabs.
22731 (Prims_Ptr): Likewise.
22732
22733 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22734 Ed Schonberg <schonberg@adacore.com>
22735 Javier Miranda <miranda@adacore.com>
22736
22737 * checks.adb (Null_Exclusion_Static_Checks): In the case of
22738 N_Object_Declaration, only perform the checks if the Object_Definition
22739 is not an Access_Definition.
22740
22741 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22742 where the parent of an the access definition is an N_Object_Declaration
22743 when determining the Associated_Node_For_Itype and scope of an
22744 anonymous access-to-subprogram type.
22745
22746 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22747 Corresponding_Spec on the body created for a null procedure. Add ???
22748 comment. Remove New_Copy_Tree call on body argument to
22749 Set_Body_To_Inline.
22750
22751 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
22752 discriminants, use the type of the actual as well, because the
22753 discriminants may be read by the called subprogram.
22754
22755 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
22756 access type we do not need to handle non-limited views.
22757 (Build_Derived_Record_Type): Additional check to check that in case of
22758 private types, interfaces are only allowed in private extensions.
22759
22760 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22761
22762 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
22763 <Pragma_Linker_Destructor>: Likewise.
22764
22765 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
22766 Pragma_Linker_Destructor.
22767
22768 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
22769 ATTR_LINK_DESTRUCTOR.
22770 (static_ctors, static_dtors): New variables.
22771
22772 * misc.c (gnat_expand_body): Output current function as constructor
22773 and destructor if requested.
22774
22775 * par-prag.adb: Add processing for pragma Linker_Constructor and
22776 Linker_Destructor.
22777
22778 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
22779 extracted from Check_Interrupt_Or_Attach_Handler.
22780 (Check_Interrupt_Or_Attach_Handler): Invoke it.
22781 Implement pragma Linker_Constructor and Linker_Destructor with the
22782 help of Find_Unique_Parameterless_Procedure.
22783 Replace Name_Alias with Name_Target for pragma Linker_Alias.
22784
22785 * snames.h, snames.ads, snames.adb:
22786 Add Name_Linker_Constructor and Name_Linker_Destructor.
22787 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
22788 * snames.adb: Remove Name_Alias.
22789
22790 * trans.c: Include cgraph.h.
22791 (build_global_cdtor): New function.
22792 (Compilation_Unit_to_gnu): Build global constructor and destructor if
22793 needed.
22794 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
22795 of objects too.
22796 (addressable_p) <COMPONENT_REF>: Unconditionally test
22797 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
22798
22799 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
22800 variable if it is external.
22801
22802 (static_ctors, static_dtors): New global variables.
22803 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
22804 <ATTR_LINK_DESTRUCTOR>: Likewise.
22805 (end_subprog_body): Chain function as constructor and destructor
22806 if requested.
22807
22808 * exp_util.adb (Force_Evaluation): Unconditionally invoke
22809 Remove_Side_Effects with Variable_Ref set to true.
22810 (Remove_Side_Effects): Handle scalar types first. Use a renaming
22811 for non-scalar types even if Variable_Ref is true and for class-wide
22812 expressions.
22813
22814 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22815
22816 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
22817 to prevent spurious warnings.
22818
22819 2005-07-04 Thomas Quinot <quinot@adacore.com>
22820
22821 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
22822 Itypes. Itypes are really unexpected there.
22823 (Build_TypeCode_Function): Generalise special processing for Itypes to
22824 handle the case of numeric implicit base types as well as enumerated
22825 ones.
22826
22827 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22828
22829 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
22830 controlled, indicate the expected type of the dereference that is
22831 created for the call to Deep_Finalize, to prevent spurious errors when
22832 the designated type is private and completed with a derivation from
22833 another private type.
22834
22835 2005-07-04 Vincent Celier <celier@adacore.com>
22836
22837 * make.adb (Change_To_Object_Directory): When unable to change the
22838 current dir to the object directory, output the full path of the
22839 directory.
22840
22841 2005-07-04 Matthew Gingell <gingell@adacore.com>
22842
22843 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
22844
22845 * indepsw-linux.adb: Replace by...
22846
22847 * indepsw-gnu.adb: ...this new file
22848
22849 2005-07-04 Vincent Celier <celier@adacore.com>
22850
22851 * mlib-prj.adb (Auto_Initialize): New constant String
22852 (SALs_Use_Constructors): New Boolean function
22853 (Build_Library): Call gnatbind with Auto_Initialize switch when
22854 SALs_Use_Constructors returns True.
22855
22856 * mlib-tgt.ads: Minor reformatting
22857
22858 * mlib-utl.ads: Minor reformatting
22859
22860 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
22861
22862 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22863
22864 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
22865 single protected declarations can have an interface list.
22866 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
22867 with seriously malformed entry declarations, and lead to compilation
22868 abandoned messages.
22869
22870 2005-07-04 Javier Miranda <miranda@adacore.com>
22871
22872 * par-load.adb: Load the context items in two rounds.
22873
22874 2005-07-04 Robert Dewar <dewar@adacore.com>
22875
22876 * scng.adb: Do not consider Mod used as an attribute to be a keyword
22877
22878 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22879 Javier Miranda <miranda@adacore.com>
22880
22881 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
22882 type extension needs a limited view.
22883 Remove previous restriction on private types available through the
22884 limited-view (only tagged private types were previously allowed).
22885 (Install_Withed_Unit): In the code that implements the
22886 legality rule given in AI-377, exclude a child unit with the name
22887 Standard, because it is a homonym of the Standard environment package.
22888
22889 2005-07-04 Thomas Quinot <quinot@adacore.com>
22890
22891 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
22892 overloaded function call, carry interpretations from the original tree
22893 to the copy.
22894
22895 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22896
22897 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
22898 types check whether some designated type is a limited view, and use
22899 the non-limited view if available.
22900
22901 2005-07-04 Gary Dismukes <dismukes@adacore.com>
22902
22903 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
22904 constraint of full view of a private view T1 if present, when T2 is a
22905 discriminated full view.
22906
22907 2005-07-04 Thomas Quinot <quinot@adacore.com>
22908
22909 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
22910 actual that is a view conversion of a bit packed array reference.
22911
22912 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22913
22914 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
22915 present before checking whether an interface type covers a synchronized
22916 type.
22917
22918 2005-07-04 Ed Schonberg <schonberg@adacore.com>
22919
22920 * sem_util.adb (Is_Object_Reference): An indexed or selected component
22921 whose prefix is an implicit dereference is an object reference. Removes
22922 spurious errors when compiling with -gnatc.
22923
22924 2005-07-04 Robert Dewar <dewar@adacore.com>
22925
22926 PR ada/22039
22927 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
22928
22929 2005-07-04 Matthew Gingell <gingell@adacore.com>
22930
22931 * tracebak.c: Enable tracebacks on ia64 platforms
22932
22933 2005-07-04 Vincent Celier <celier@adacore.com>
22934
22935 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
22936 the GNAT BIND command, as gnatbind accepts multiples ALI files with
22937 the -L or -n switches.
22938
22939 2005-07-04 Vincent Celier <celier@adacore.com>
22940
22941 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
22942 correctly computed and the main project data is not modified while
22943 doing so.
22944 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
22945 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
22946 c++linker as this does not work on some platforms.
22947
22948 2005-07-04 Matthew Heaney <heaney@adacore.com>
22949
22950 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
22951 was changed.
22952 * a-coinve.adb: Perform constraint checks explicitly.
22953
22954 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22955 Thomas Quinot <quinot@adacore.com>
22956
22957 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
22958 new target gen-soccon.
22959
22960 2005-07-04 Robert Dewar <dewar@adacore.com>
22961
22962 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
22963
22964 2005-07-04 Thomas Quinot <quinot@adacore.com>
22965
22966 * g-socket.ads (Check_Selector): Minor rewording of comment.
22967
22968 2005-07-04 Vincent Celier <celier@adacore.com>
22969
22970 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
22971
22972 2005-07-04 Thomas Quinot <quinot@adacore.com>
22973
22974 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
22975
22976 2005-07-04 Sergey Rybin <rybin@adacore.com>
22977
22978 * gnat_ugn.texi: Add description of --eol gnatpp option
22979
22980 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
22981 Thomas Quinot <quinot@adacore.com>
22982
22983 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
22984 if the user wants all calls of a subprogram to be flagged,
22985 independently of whether they are made from within the same unit or
22986 another unit.
22987 Mention restriction for pragma Linker_Alias on some platforms.
22988 Document pragma Linker_Constructor and Linker_Destructor.
22989 Rewrite documentation of Weak_External, Linker_Section and
22990 Linker_Alias pragmas.
22991
22992 2005-07-04 Arnaud Charlet <charlet@adacore.com>
22993
22994 * s-stausa.ads, s-stausa.adb: New files.
22995
22996 2005-06-30 Kelley Cook
22997
22998 * all files: Update FSF address in copyright headers.
22999 * gen-soccon.co (main): Output new FSF address in generated files.
23000
23001 2005-06-28 Paul Brook <paul@codesourcery.com>
23002
23003 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23004
23005 2005-06-14 Olivier Hainque <hainque@adacore.com>
23006 Eric Botcazou <ebotcazou@adacore.com>
23007
23008 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23009 exc_unwind, now that we are generating proper .debug_frame output for
23010 that target.
23011
23012 * tracebak.c: Remove the mips-irix section, as we are now using the
23013 s-mastop based unwinder again.
23014 Under SPARC/Solaris, take into account the stack bias to compute the
23015 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
23016 ABI.
23017
23018 2005-06-14 Doug Rupp <rupp@adacore.com>
23019
23020 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23021
23022 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23023
23024 2005-06-14 Pascal Obry <obry@adacore.com>
23025
23026 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23027 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23028 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23029 package name).
23030
23031 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23032 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23033 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23034 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
23035 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
23036 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23037 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23038 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23039 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23040 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23041 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23042 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23043 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23044 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23045 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23046 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23047 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23048 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23049 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23050 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23051 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23052 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23053 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23054 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23055 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23056 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23057 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23058 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23059 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
23060 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23061 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23062 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23063 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23064 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23065 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23066 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
23067 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23068 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
23069 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
23070 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23071 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
23072 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
23073 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
23074 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
23075 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
23076 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
23077 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23078 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
23079 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
23080 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
23081 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23082 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
23083 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
23084 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23085 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
23086 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23087 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
23088 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
23089 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23090 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
23091 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
23092 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23093 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
23094 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
23095 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
23096 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
23097 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
23098 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
23099 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
23100 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
23101 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
23102 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
23103 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
23104 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23105 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
23106 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
23107 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
23108 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
23109 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
23110 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23111 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
23112 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
23113 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
23114 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23115 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
23116 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
23117 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
23118 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23119 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
23120 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
23121 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
23122 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23123 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
23124 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
23125 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
23126 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23127 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
23128 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
23129 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
23130 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23131 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
23132 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
23133 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
23134 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23135 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
23136 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
23137 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
23138 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
23139 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23140 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
23141 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23142 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
23143 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23144 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
23145 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
23146 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
23147 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
23148 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23149 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
23150 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
23151 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
23152 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
23153 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
23154 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
23155 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
23156 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
23157 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
23158 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
23159 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
23160 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
23161 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
23162 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
23163 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
23164
23165 2005-06-14 Jose Ruiz <ruiz@adacore.com>
23166 Arnaud Charlet <charlet@adacore.com>
23167
23168 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
23169 longer protected objects. They have been replaced by lower-level
23170 suspension objects made up by a mutex and a condition variable (or
23171 their equivalent given a particular OS) plus some internal data to
23172 reflect the state of the suspension object.
23173 (Initialize, Finalize): Add this initialization procedure for
23174 Suspension_Object, which is a controlled type.
23175 (Finalize): Add the finalization procedure for Suspension_Object,
23176 which is a controlled type.
23177
23178 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
23179 Ada.Synchronous_Task_Control because there is no longer a need for a
23180 VxWorks specific version of this package. Target dependencies
23181 has been moved to System.Task_Primitives.Operations.
23182
23183 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
23184 longer needed.
23185 (InitializeCriticalSection, EnterCriticalSection,
23186 LeaveCriticalSection, DeleteCriticalSection): Replace the type
23187 pCriticalSection by an anonymous access type so that we avoid problems
23188 of accessibility to local objects.
23189
23190 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
23191 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23192 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
23193 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
23194 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
23195 set the environment task mask here.
23196 (Current_State): Add this function that returns the state of the
23197 suspension object.
23198 (Set_False): Add this procedure that sets the state of the suspension
23199 object to False.
23200 (Set_True): Add this procedure that sets the state of the suspension
23201 object to True, releasing the task that was suspended, if any.
23202 (Suspend_Until_True): Add this procedure that blocks the calling task
23203 until the state of the object is True. Program_Error is raised if
23204 another task is already waiting on that suspension object.
23205 (Initialize): Add this procedure for initializing the suspension
23206 object. It initializes the mutex and the condition variable which are
23207 used for synchronization and queuing, and it sets the internal state
23208 to False.
23209 (Finalize): Add this procedure for finalizing the suspension object,
23210 destroying the mutex and the condition variable.
23211
23212 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23213 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
23214 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
23215 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
23216 which provides a low-level abstraction (using operating system
23217 primitives) for Ada.Synchronous_Task_Control.
23218 This object is made up by a mutex (for ensuring mutual exclusion), a
23219 condition variable (for queuing threads until the condition is
23220 signaled), a Boolean (State) indicating whether the object is open,
23221 and a Boolean (Waiting) reflecting whether there is a task already
23222 suspended on this object.
23223
23224 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
23225 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
23226 s-intman-vms.ads, s-intman-mingw.adb,
23227 (Initialize_Interrupts): Removed, no longer used.
23228
23229 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
23230 (Setup_Interrupt_Mask): New procedure.
23231
23232 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
23233
23234 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
23235
23236 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
23237 this is no longer done in the body of s-taprop
23238 (Server_Task): Explicitely test for Pending_Action in case
23239 System.Parameters.No_Abort is True.
23240
23241 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
23242 is no longer done in the body of s-taprop
23243
23244 2005-06-14 Robert Dewar <dewar@adacore.com>
23245
23246 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
23247 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
23248 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23249 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
23250 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
23251 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
23252 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
23253 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
23254 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
23255 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
23256 system-linux-hppa.ads, system-vms_64.ads,
23257 system-vxworks-alpha.ads: Minor comment update for
23258 AI-362 (unit is Pure).
23259
23260 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
23261 Add pragma Pure_05 for AI-362
23262 Make remaining conversion functions obsolescent in Ada 95
23263
23264 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23265 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
23266 Add entries for a-wichun and a-zchuni
23267 Add a-widcha a-zchara for AI-395
23268 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
23269
23270 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23271 Add entries for a-wichun.o and a-zchuni.o
23272 Entries for a-widcha.o and a-zchara.o
23273 Add entry for a-chacon.o
23274
23275 * a-ztenau.adb: Add with of Ada.Characters.Conversions
23276
23277 * a-chacon.ads, a-chacon.adb: New files.
23278
23279 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
23280 categorization violations.
23281
23282 * a-strmap.ads: Add pragma Pure_05 for AI-362
23283 * a-strmap.ads: Add note on implicit categorization for AI-362
23284
23285 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
23286
23287 * par-prag.adb: Dummy entry for pragma Persistent_BSS
23288 Set Ada_Version_Explicit, for implementation of AI-362
23289 Add processing for pragma Pure_05 and Preelaborate_05
23290 Add entry for Assertion_Policy pragma
23291
23292 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
23293 when needed for proper processing of categorization stuff
23294
23295 * sem_cat.adb:
23296 For several cases, make errors in preealborate units warnings,
23297 instead of errors, if GNAT_Mode is set. For AI-362.
23298
23299 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
23300 preelaborate unit is now warning if in GNAT mode
23301
23302 * s-stoele.ads: Document AI-362 for pragma preelaborate
23303
23304 2005-06-14 Doug Rupp <rupp@adacore.com>
23305
23306 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
23307 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
23308 Default_Exception_Msg_Max_Length: new parameter.
23309
23310 * a-except.ads: (Exception_Msg_Max_Length): Set to
23311 System.Parameters.Default_Exception_Msg_Max_Length
23312 Add pragma Preelaborate_05 for AI-362
23313 Add warnings off to allow categorization violations for AI-362
23314
23315 2005-06-14 Vincent Celier <celier@adacore.com>
23316
23317 * gnatsym.adb: Adapt to modification of package Symbols: procedure
23318 Process is now in package Processing.
23319
23320 * symbols.ads, symbols.adb:
23321 (Processing): New package, containing procedure Process
23322
23323 * symbols-vms-alpha.adb:
23324 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
23325
23326 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
23327 symbols-processing-vms-ia64.adb: New files.
23328
23329 2005-06-14 Pascal Obry <obry@adacore.com>
23330
23331 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
23332 implementation. This new version generates the proper DllMain routine
23333 to initialize the SAL. The DllMain is generated in Ada and compiled
23334 before being added as option to the library build command.
23335
23336 2005-06-14 Doug Rupp <rupp@adacore.com>
23337 Pascal Obry <obry@adacore.com>
23338
23339 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
23340 call to decc$translate_vms.
23341 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
23342 need to remove those quotes before catenating the filename.
23343 (__gnat_locate_exec_on_path): improvements to the Win32 section:
23344 * avoid allocating the memory twice for better efficiency;
23345 * allocate 32K buffer for environment expansion as suggested by MSDN;
23346 * prepend ".;" to the path so that current directory is searched too.
23347
23348 2005-06-14 Robert Dewar <dewar@adacore.com>
23349
23350 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
23351 instead of raising CE (AI-241)
23352 Add warnings off to allow categorization violations for AI-362
23353
23354 2005-06-14 Robert Dewar <dewar@adacore.com>
23355
23356 * ali-util.adb, gnatbind.adb: Remove references to
23357 Force_RM_Elaboration_Order.
23358
23359 * switch-b.adb: Remove recognition of -f switch
23360
23361 2005-06-14 Pascal Obry <obry@adacore.com>
23362
23363 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
23364 implementation which is slightly more efficient.
23365
23366 2005-06-14 Gary Dismukes <dismukes@adacore.com>
23367 Javier Miranda <miranda@adacore.com>
23368 Ed Schonberg <schonberg@adacore.com>
23369 Hristian Kirtchev <kirtchev@adacore.com>
23370
23371 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
23372 allocator's designated type is a class-wide type, and compiling for
23373 Ada 2005, emit a run-time check that the accessibility level of the
23374 type given in the allocator's expression is not deeper than the level
23375 of the allocator's access type.
23376
23377 (Tagged_Membership): Modified to gives support to abstract interface
23378 types.
23379
23380 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
23381 Access_Level.
23382 (Descendant_Tag): New predefined function
23383 (Is_Descendant_At_Same_Level): New predefined function
23384 (Get_Access_Level): New private function
23385 (Set_Access_Level): New private procedure
23386 (IW_Membership): New function. Given the tag of an object and the tag
23387 associated with an interface, evaluate if the object implements the
23388 interface.
23389 (Register_Interface_Tag): New procedure used to initialize the table of
23390 interfaces used by the IW_Membership function.
23391 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
23392 of the dispatch table.
23393 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
23394 table of interfaces of the parent.
23395 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
23396 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
23397 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
23398 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
23399 Ada 2005 semantics for the new predefined function.
23400
23401 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
23402 call to Descendant_Tag rather than Internal_Tag.
23403 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
23404 the accessibility level of the attribute's Item parameter is not deeper
23405 than the level of the attribute's prefix type. Tag_Error is raised if
23406 the check fails. The check is only emitted for Ada_05.
23407 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
23408 requested stream attribute, use it.
23409 (Expand_N_Attribute_Reference): If the designated type is an interface
23410 then rewrite the referenced object as a conversion to force the
23411 displacement of the pointer to the secondary dispatch table.
23412 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
23413 is a dereference of an object with a constrained partial view.
23414
23415 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
23416 type is a class-wide type, emit a run-time check that the accessibility
23417 level of the returned object is not deeper than the level of the
23418 function's master (only when compiling for Ada 2005).
23419
23420 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
23421 Action_Nb_Arg): Add entries for new Get_Access_Level and
23422 Set_Access_Level routines in these tables.
23423 (Make_DT): Generate a call to set the accessibility level of the
23424 tagged type in its TSD.
23425 (Make_DT): Code cleanup. The functionality of generating all the
23426 secondary dispatch tables has been moved to freeze_record_type.
23427 (Make_Abstract_Interface_DT): Minor code cleanup.
23428 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
23429 this subprogram implements a new algorithm that provides the
23430 same functionality and it is more clear in case of primitives
23431 associated with abstract interfaces.
23432 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
23433 clean up, the functionality of this subprogram is now provided
23434 by Set_All_DT_Position.
23435 (Write_DT): New subprogram: a debugging procedure designed to be called
23436 within gdb to display the dispatch tables associated with a tagged
23437 type.
23438 (Collect_All_Interfaces): New subprogram that collects the whole list
23439 of interfaces that are directly or indirectly implemented by a tagged
23440 type.
23441 (Default_Prim_Op_Position): New subprogram that returns the fixed
23442 position in the dispatch table of the default primitive operations.
23443 (Expand_Interface_Actuals): New subprogram to generate code that
23444 displaces all the actuals corresponding to class-wide interfaces to
23445 reference the interface tag of the actual object.
23446 (Expand_Interface_Conversion): New subprogram. Reference the base of
23447 the object to give access to the interface tag associated with the
23448 secondary dispatch table.
23449 (Expand_Interface_Thunk): New subprogram that generates the code of the
23450 thunk. This is required for compatibility with the C+ ABI.
23451 (Make_Abstract_Interface_DT): New subprogram that generate the
23452 declarations for the secondary dispatch tables associated with an
23453 abstract interface.
23454 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
23455 attribute for each primitive operation covering interface subprograms
23456 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
23457 These subprograms were upgraded to give support to abstract interfaces
23458
23459 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
23460 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
23461 RE_Set_Access_Level.
23462 (RE_Unit_Table): Add entries for new Ada.Tags operations.
23463 Add support to call the followig new run-time subprograms:
23464 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
23465
23466 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
23467 match its full declaration when both have an access definition with
23468 statically matching designated subtypes.
23469 (Analyze_Component_Declaration): Delete commented out code that was
23470 incorrectly setting the scope of an anonymous access component's type.
23471 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
23472 an access discriminant when the containing type is nonlimited.
23473 (Make_Incomplete_Type_Declaration): Create an incomplete type
23474 declaration for a record type that includes self-referential access
23475 components.
23476 (Check_Anonymous_Access_Types): Before full analysis of a record type
23477 declaration, create anonymous access types for each self-referential
23478 access component.
23479 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
23480 an access component in this context is a Local_Anonymous_Access, for
23481 proper accessibility checks.
23482 (Access_Definition): Set properly the scope of the anonymous access type
23483 created for a stand-alone access object.
23484 (Find_Type_Of_Object): An object declaration may be given with an access
23485 definition.
23486 (Complete_Subprograms_Derivation): New subprogram used to complete
23487 type derivation of private tagged types implementing interfaces.
23488 In this case some interface primitives may have been overriden
23489 with the partial-view and, instead of re-calculating them, they
23490 are included in the list of primitive operations of the full-view.
23491 (Build_Derived_Record_Type): Modified to give support to private
23492 types implemening interfaces.
23493 (Access_Definition): Reject ALL on anonymous access types.
23494 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
23495 type derivation to occur at a deeper accessibility level than the
23496 parent type.
23497 For the case of derivation within a generic body however, disallow the
23498 derivation if the derived type has an ancestor that is a formal type
23499 declared in the formal part of an enclosing generic.
23500 (Analyze_Object_Declaration): For protected objects, remove the check
23501 that they cannot contain interrupt handlers if not declared at library
23502 level.
23503 (Add_Interface_Tag_Components): New subprogram to add the tag components
23504 corresponding to all the abstract interface types implemented by a
23505 record type or a derived record type.
23506 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23507 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23508 Process_Full_View, Record_Type_Declaration): Modified to give
23509 support to abstract interface types
23510 (Collect_Interfaces): New subprogram that collects the list of
23511 interfaces that are not already implemented by the ancestors
23512 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
23513 when partial view has no discriminants and full view has defaults.
23514 (Constrain_Access): Reject a constraint on a general access type
23515 if the discriminants of the designated type have defaults.
23516 (Access_Subprogram_Declaration): Associate the Itype node with the inner
23517 full-type declaration or subprogram spec. This is required to handle
23518 nested anonymous declarations.
23519 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23520 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23521 Process_Full_View, Record_Type_Declaration): Modified to give
23522 support to abstract interface types
23523 (Derive_Subprograms): Addition of a new formal to indicate if
23524 we are in the case of an abstact-interface derivation
23525 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
23526 to the specification because it is requied to analyze all the
23527 identifiers found in a list of interfaces
23528
23529 * debug.adb: Complete documentation of flag "-gnatdZ"
23530
23531 * exp_ch3.adb: Implement config version of persistent_bss pragma
23532 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
23533 testing for TSS presence to properly enforce visibility rules.
23534 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
23535 Make_Abstract_Interfaces_DT to generate the secondary tables
23536 associated with abstract interfaces.
23537 (Build_Init_Procedure): Modified to initialize all the tags
23538 corresponding.
23539 (Component_Needs_Simple_Initialization): Similar to other tags,
23540 interface tags do not need initialization.
23541 (Freeze_Record_Type): Modified to give support to abstract interface
23542 types.
23543 (Expand_N_Object_Declaration): Do not generate an initialization for
23544 a scalar temporary marked as internal.
23545
23546 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
23547 in-out parameter that is a component in an initialization procedure,
23548 whose constraint might depend on discriminants, and that may be
23549 misaligned because of packing or representation clauses.
23550 (Is_Legal_Copy): New predicate to determine whether a possibly
23551 misaligned in-out actual can actually be passed by copy/return. This
23552 is an error in case the type is by_reference, and a warning if this is
23553 the consequence of a DEC import pragma on the subprogram.
23554 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
23555 interface types
23556 (Expand_Inlined_Call): Mark temporary generated for the return value as
23557 internal, so that no useless scalar normalization is generated for it.
23558 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
23559 null procedure can always be inlined.
23560 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
23561 procedure, generate an explicit empty body for it.
23562
23563 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
23564 Given a type implementing an interface, returns the corresponding
23565 access_disp_table value.
23566 (Find_Interface_Tag): New subprogram. Given a type implementing an
23567 interface, returns the record component containing the tag of the
23568 interface.
23569 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
23570 previous ones that return the corresponding tag and access_disp_table
23571 entities.
23572 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
23573 is a predefined primitive operation.
23574 (Expand_Subtype_From_Expr): If the expression is a selected component
23575 within an initialization procedure, compute its actual subtype, because
23576 the component may depend on the discriminants of the enclosing record.
23577
23578 * i-cpp.ads, i-cpp.adb:
23579 This package has been left available for compatibility with previous
23580 versions of the frontend. As part of the new layout this is now a
23581 dummy package that uses declarations available at a-tags.ads
23582
23583 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
23584 "constant access" and "aliased [constant] access" when not compiling
23585 with -gnat05.
23586 Suppress Ada 2005 keyword warning if -gnatwY used
23587 (P_Identifier_Declarations): Add support for object declarations with
23588 access definitions.
23589 (Private_Extension_Declaration): Complete the documentation
23590 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
23591 attribute in case of private extension declaration
23592 (P_Type_Declaration): Mark as "abstract" the type declarations
23593 corresponding with protected, synchronized and task interfaces
23594 (P_Declarative_Items): "not" and "overriding" are overriding indicators
23595 for a subprogram or instance declaration.
23596
23597 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
23598 instantiation that is a dispatching operation has controlling access
23599 parameters that are null excluding.
23600 Save and restore Ada_Version_Explicit, for implementation of AI-362
23601 (Validate_Derived_Type_Instance): Add check for abstract interface
23602 types.
23603 (Analyze_Formal_Package): Establish Instantiation source for the copy of
23604 the generic that is created to represent the formal package.
23605 (Analyze_Package_Instantiation): Instantiate body immediately if the
23606 package is a predefined unit that contains inlined subprograms, and
23607 we are compiling for a Configurable_Run_Time.
23608 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
23609 If the program has a null default, generate an empty body for it.
23610
23611 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
23612 error message condition, null procedures are correctly detected now.
23613 (New_Overloaded_Entity): Bypass trivial overriding indicator check
23614 for subprograms in the context of protected types. Instead, the
23615 indicator is examined in Sem_Ch9 while analysing the subprogram
23616 declaration.
23617 (Check_Overriding_Indicator): Check consistency of overriding indicator
23618 on subprogram stubs as well.
23619 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
23620 the library level.
23621 (Analize_Subprogram_Specification): When analyzing a subprogram in which
23622 the type of the first formal is a concurrent type, replace this type
23623 by the corresponding record type.
23624 (Analyze_Subprogram_Body): Undo the previous work.
23625 (Analyze_Procedure_Call): If the call has the form Object.Op, the
23626 analysis of the prefix ends up analyzing the call itself, after which
23627 we are done.
23628 (Has_Interface_Formals): New subprogram subsidiary to analyze
23629 subprogram_specification that returns true if some non
23630 class-wide interface subprogram is found
23631 (New_Overloaded_Entity): Modified to give support to abstract
23632 interface types
23633 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
23634 access to subprograms must be recursive.
23635 (Is_Unchecked_Conversion): Improve the test that recognizes
23636 instantiations of Unchecked_Conversion, and allows them in bodies that
23637 are to be inlined by the front-end. When the body comes from an
23638 instantiation, a reference to Unchecked_Conversion will be an
23639 Expanded_Name, even though the body has not been analyzed yet.
23640 Replace Is_Overriding and Not_Overriding in subprogram_indication with
23641 Must_Override and Must_Not_Override, to better express intent of AI.
23642 (Analyze_Subprogram_Body): If an overriding indicator is given, check
23643 that it is consistent with the overrinding status of the subprogram
23644 at this point.
23645 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
23646 always inlined.
23647 If the subprogram is a null procedure, indicate that it does not need
23648 a completion.
23649
23650 * sem_disp.adb (Check_Controlling_Type): Give support to entities
23651 available through limited-with clauses.
23652 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
23653 allowed as the last primitive of a tagged type if it has no previous
23654 spec.
23655 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
23656 to give support to abstract interface types
23657
23658 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
23659 in the case where the target type is an anonymous access type of an
23660 object or component (that is, when Is_Local_Anonymous_Access is true).
23661 Prevent the special checks for conversions of access discriminants in
23662 the case where the discriminant belongs to a nonlimited type, since
23663 such discriminants have their accessibility level defined in the same
23664 way as a normal component of an anonymous access type.
23665 (Resolve_Allocator): When an allocator's designated type is a class-wide
23666 type, check that the accessibility level of type given in the
23667 allocator's expression or subtype indication is not statically deeper
23668 than the level of the allocator's access type.
23669 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
23670 name in a discriminant constraint of a record component.
23671 (Resolve_Explicit_Dereference): Do not check whether the type is
23672 incomplete when the dereference is a use of an access discriminant in
23673 an initialization procedure.
23674 (Resolve_Type_Conversion): Handle conversions to abstract interface
23675 types.
23676 (Valid_Tagged_Conversion): The conversion of a tagged type to an
23677 abstract interface type is always valid.
23678 (Valid_Conversion): Modified to give support to abstract interface types
23679 (Resolve_Actuals): Enable full error reporting on view conversions
23680 between unrelated by_reference array types.
23681 The rule for view conversions of arrays with aliased components is
23682 weakened in Ada 2005.
23683 Call to obsolescent subprogram is now considered to be a violation of
23684 pragma Restrictions (No_Obsolescent_Features).
23685 (Check_Direct_Boolean_Operator): If the boolean operation has been
23686 constant-folded, there is nothing to check.
23687 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
23688 check on possible violation of restriction No_Direct_Boolean_Operators
23689 until after expansion of operands, to prevent spurious errors when
23690 operation is constant-folded.
23691
23692 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
23693 Has_Compatible_Type): Modified to give support to abstract interface
23694 types.
23695 (Interface_Present_In_Ancestor): New function to theck if some ancestor
23696 of a given type implements a given interface
23697
23698 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
23699 prefix is a parameterless function that returns an access_to_procedure.
23700 (Transform_Object_Operation): Handle properly function calls of the
23701 form Obj.Op (X), which prior to analysis appear as indexed components.
23702 (Analyze_One_Call): Complete the error notification to help new Ada
23703 2005 users.
23704 (Analyze_Allocator): For an allocator without an initial value, where
23705 the designated type has a constrained partial view, a discriminant
23706 constraint is illegal.
23707
23708 2005-06-14 Robert Dewar <dewar@adacore.com>
23709
23710 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
23711 do with treatment of Set_Col when positioned at end of line character.
23712
23713 2005-06-14 Robert Dewar <dewar@adacore.com>
23714
23715 * atree.adb: (Elist*): Protect against uninitialized field
23716
23717 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23718
23719 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
23720 for an attribute reference that returns an access type.
23721 (Apply_Discriminant_Check): No need for check if (designated) type has
23722 constrained partial view.
23723
23724 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
23725 both bound checks, rather than a conjunction.
23726 (Insert_Valid_Check): If the expression is an actual that is an indexed
23727 component of a bit-packed array, force expansion of the packed element
23728 reference, because it is specifically inhibited elsewhere.
23729
23730 2005-06-14 Vincent Celier <celier@adacore.com>
23731
23732 * clean.adb (Clean_Project): Correctly delete executable specified as
23733 absolute path names.
23734
23735 * make.adb (Gnatmake): Allow relative executable path names with
23736 directory information even when project files are used.
23737 (Change_To_Object_Directory): Fail gracefully when unable to change
23738 current working directory to object directory of a project.
23739 (Gnatmake): Remove exception handler that could no longer be exercized
23740 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23741 may be deallocated by Normalize_Arguments.
23742 (Collect_Arguments): Eliminate empty arguments
23743
23744 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23745 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23746 (Check_Project): Return False when Project is No_Project. Return True
23747 when All_Projects is True.
23748 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23749 All_Projects to True.
23750 Minor reformatting
23751
23752 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23753 Javier Miranda <miranda@adacore.com>
23754 Thomas Quinot <quinot@adacore.com>
23755 Robert Dewar <dewar@adacore.com>
23756 Hristian Kirtchev <kirtchev@adacore.com>
23757 Gary Dismukes <dismukes@adacore.com>
23758
23759 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
23760 anonymous access types, to indicate that the accessibility level of
23761 the type is determined by that of the enclosing declaration.
23762 (Has_Persistent_BSS): New flag
23763 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
23764 of this attribute with functions.
23765 (Is_Primitive_Wrapper): Remove the barrier.
23766 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
23767 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
23768 New subprograms.
23769 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
23770 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
23771 New subprograms.
23772 (Is_Pure_Unit_Access_Type): New flag
23773 (Abstract_Interfaces): Complete the assertion to cover all usages.
23774 (Set_Is_Interface): Complete the assertion to cover all usages.
23775 (Is_Primitive_Wrapper): New attribute.
23776 (Is_Obsolescent): Now applies to all entities (though it is only set
23777 for subprograms currently)
23778 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
23779 which solves various problems concerning access subtypes.
23780 (Has_Persistent_BSS): New flag
23781 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
23782 Remove these subprograms because this attribute is currently
23783 not used.
23784 New entity flags:
23785 Has_Specified_Stream_Input (Flag190)
23786 Has_Specified_Stream_Output (Flag191)
23787 Has_Specified_Stream_Read (Flag192)
23788 Has_Specified_Stream_Write (Flag193)
23789 Present in all type and subtype entities. Set for a given view if the
23790 corresponding stream-oriented attribute has been defined by an
23791 attribute definition clause. When such a clause occurs, a TSS is set
23792 on the underlying full view; the flags are used to track visibility of
23793 the attribute definition clause for partial or incomplete views.
23794 (Is_Pure_Unit_Access_Type): New flag
23795 Clarify use of Is_Internal.
23796 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
23797 internally generated to wrap the invocation of tasks and protected
23798 types that implement interfaces.
23799 (Implementation_Base_Type): Documentation correction
23800 (Is_Obsolescent): Now applies to all entities (though it is only set
23801 for subprograms currently)
23802 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
23803 which solves various problems concerning access subtypes.
23804
23805 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
23806 for examined parameters. Identify unequal parameter list lengths as
23807 non-conformant parameters.
23808 (Overriding_Possible): Do not check for "All" qualifier in declaration
23809 of controlling access parameter, following prescription of AI-404.
23810 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
23811 that build the procedure body that wraps an entry invocation
23812 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
23813 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
23814 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
23815 give support to abstract interface types
23816
23817 * freeze.adb (Freeze_Entity): Issue error message if
23818 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
23819 type has no storage pool (Ada 2005) AI-366.
23820 Also modified to give support to abstract interface types
23821 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
23822 Inline_Always pragma.
23823
23824 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
23825 now begin an entry declaration.
23826 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
23827 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
23828 a subprogram declaration preceded by an overriding indicator.
23829 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
23830 declarations or subprogram declarations preceded by reserved words
23831 "not" or "overriding".
23832 (P_Entry_Declaration): Update comment. Parse and check overriding
23833 indicator, set semantic flags of entry declarations.
23834 (P_Task): New error message in case of private applied
23835 to a task type declaration.
23836 (P_Protected): New error message in case of private applied
23837 to a task type declaration.
23838
23839 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
23840 in which the full view of a type implementing an interface is a
23841 concurrent type.
23842 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
23843 Declare_Inherited_Private_Subprograms): If an explicit operation
23844 overrides an operation that is inherited in the private part, mark the
23845 explicit one as overriding, to enable overriding indicator checks.
23846 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
23847 full view to partial view, to simplify handling in back-end.
23848
23849 * sprint.adb: Print interface lists where needed: derived types,
23850 protected types, task types.
23851 output "is null" for null procedures. Part of implementation of
23852
23853 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
23854 relaxation of rules for access types in pure, shared passive partitions.
23855
23856 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
23857 first read discriminants into temporary objects, performing checks on
23858 the read values, then possibly performing discriminant checks on the
23859 actual (if it is constrained), and only finally reading the components
23860 into a constrained temporary object.
23861 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
23862 case of reading discriminants of a mutable record type to recognize
23863 the new form of the code generated by
23864 Build_Mutable_Record_Read_Procedure.
23865
23866 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
23867 of a simple call to Make_TSS_Name.
23868 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
23869 buffer, in order for Is_TSS to work correctly on local TSS names.
23870
23871 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
23872 Is_Local_Anonymous_Access to check legaliy of attributes in the
23873 context of access components and stand-alone access objects.
23874 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
23875 treated as available for a limited private type if there is an
23876 attribute_definition_clause that applies to its full view, but not in
23877 other cases where the attribute is available for the full view
23878 (specifically, the sole fact that the full view is non-limited does not
23879 make the attribute available for the partial view).
23880 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
23881 non-overloaded intrinsic subprogram.
23882 (Check_Stream_Attribute): Reject an attribute reference for an
23883 unavailable stream attribute even if the prefix is not a limited type
23884 (case of a 'Input attribute reference for an abstract, non-classwide
23885 type)
23886 (Stream_Attribute_Available): New function to determine whether a stream
23887 attribute is available at a place.
23888 (Check_Attribute): Use Stream_Attribute_Available instead of just
23889 testing for TSS presence on the implementation base type.
23890 (Analyze_Attribute): Modified to give support to task interfaces.
23891 (Analyze_Access_Attribute): Add error check for use of an Access (or
23892 Unrestricted_Access) attribute with a subprogram marked as
23893 Inline_Always.
23894 (Analyze_Attribute, case Attribute_Address): Add error check for use of
23895 an Address attribute with a subprogram marked as Inline_Always.
23896 Update Eval_Attribute to handle new value of Width from AI-395
23897
23898 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
23899 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
23900 Factor common code across the stream-oriented attribute circcuits into
23901 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
23902 processing is functionally identical to the previous duplicated one,
23903 except that an expression that denotes an abstract subprogram will now
23904 be rejected, as mandated by AI-195 item 5.
23905
23906 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
23907 Is_Local_Anonymous_Access to apply accessibility checks to access
23908 components and stand-alone access objects.
23909 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
23910 elsewhere.
23911 (Is_Potentially_Persistent_Type): New function
23912 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
23913 a heap-object whose type has a constrained partial view, the object is
23914 unconstrained and the component may depend on a discriminant, making its
23915 renaming illegal.
23916
23917 * sinfo.ads, sinfo.adb
23918 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
23919 (Must_Override): Flag applicable to N_Entry_Declaration.
23920 Indicate that interface_list can appear in single task and single
23921 protected declarations.
23922 Replace Is_Overriding and Not_Overriding with Must_Override and
23923 Must_Not_Override, to better express intent of AI.
23924 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
23925 of an overriding indicator in a subprogram or instance.
23926 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
23927 Add the overriding indicator [[not] overriding] construct to the
23928 following grammar productions:
23929 ENTRY_DECLARATION
23930 GENERIC_INSTANTIATION
23931 SUBPROGRAM_SPECIFICATION
23932
23933 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
23934 can start with an overriding indicator.
23935
23936 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
23937 flags accordingly on subrogram specifications or instances.
23938
23939 * sem_ch8.adb:
23940 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
23941 overriding_indicator, if present, is consistent with status of spec.
23942 Improve error message for null-excluding checks on controlling access
23943 parameters.
23944 (Check_In_Previous_With_Clause): Protect the frontend against
23945 previously reported critical errors in the context clauses.
23946 Save and restore Ada_Version_Explicit, for implementation of AI-362
23947 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
23948 operation verify that controlling formals of the renamed entity that
23949 are access parameters are explicitly non-null.
23950 (Find_Expanded_Name): Improve error message when prefix is an illegal
23951 reference to a private child unit.
23952
23953 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
23954 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
23955 Rewrite to correspond to new wide character names in AI-395
23956
23957 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
23958 default procedures.
23959
23960 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23961 Robert Dewar <dewar@adacore.com>
23962
23963 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
23964 code, not on the bodies of predefined operations, to cut down on
23965 spurious noise.
23966
23967 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23968
23969 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
23970 be expanded in place. The size computation does not require a
23971 subtraction, which would raise an exception on a compiler built with
23972 assertions when the upper bound is Integer'first.
23973 (Flatten): For an array of composite components, take into account the
23974 size of the components to determine whether it is safe to expand the
23975 array into a purely positional representation.
23976
23977 2005-06-14 Thomas Quinot <quinot@adacore.com>
23978
23979 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
23980 denoting a formal parameter into account.
23981
23982 2005-06-14 Ed Schonberg <schonberg@adacore.com>
23983
23984 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
23985 the entry_call alternative of a conditional entry call, wrap the
23986 conditional entry call itself.
23987
23988 2005-06-14 Nicolas Setton <setton@adacore.com>
23989 Ed Schonberg <schonberg@adacore.com>
23990
23991 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
23992 the "simple_choice" member in a variant record, in accordance with the
23993 description in the package spec: the information output for a constant
23994 should be "S number", not "SS number".
23995 (Get_Encoded_Name): Return at once if not generating code. Avoids name
23996 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
23997
23998 2005-06-14 Thomas Quinot <quinot@adacore.com>
23999
24000 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24001 RACW without any primitives, do not generate the if statement for
24002 dispatching by name in the PolyORB/DSA case, as it would be malformed
24003 (it would have an Elsif_Parts list that is not No_List, but with a
24004 length of 0).
24005
24006 2005-06-14 Robert Dewar <dewar@adacore.com>
24007
24008 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24009
24010 2005-06-14 Jose Ruiz <ruiz@adacore.com>
24011
24012 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24013 can determine whether pragma Suppress_Exception_Locations is in effect.
24014
24015 * utils2.c (build_call_raise): Do not pass the file name to the
24016 exception handler if pragma Suppress_Exception_Locations is in effect.
24017 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24018
24019 2005-06-14 Emmanuel Briot <briot@adacore.com>
24020
24021 * g-debpoo.adb (Deallocate, Dereference): Improve output.
24022
24023 2005-06-14 Nicolas Roche <roche@adacore.com>
24024
24025 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24026 to ""
24027 (Next_Level): Fix minor bug in handling of ../dir case
24028 (Read): Add dir separator to Directory name so that "" is understood as
24029 "/"
24030
24031 2005-06-14 Pascal Obry <obry@adacore.com>
24032
24033 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24034 releasing the items.
24035
24036 2005-06-14 Vincent Celier <celier@adacore.com>
24037 Cyrille Comar <comar@adacore.com>
24038
24039 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24040 with output file descriptor and with output file name.
24041 (Dup, Dup2): Now global procedures as they are used by two subprograms
24042 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24043
24044 2005-06-14 Thomas Quinot <quinot@adacore.com>
24045
24046 PR ada/6717
24047 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24048 broadcast address.
24049 (Create_Selector): Bind listening socket used to create the signalling
24050 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24051 Set listen backlog to 1 to ensure that we detect socket theft by a
24052 failure of our own connect(2) call.
24053 (Check_Selector): Improve documentation of the selector mechanism.
24054 (Broadcast_Inet_Addr): New constant.
24055
24056 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24057
24058 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24059 type which turns out to be an incomplete and incorrect fix.
24060 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24061 of the type is declared in a record (for determination of insertion
24062 type).
24063 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24064 a private type and ensure that the primary entity is used for the type
24065 of the newly created function's V formal by taking the Etype of the
24066 view.
24067
24068 2005-06-14 Javier Miranda <miranda@adacore.com>
24069 Jose Ruiz <ruiz@adacore.com>
24070 Robert Dewar <dewar@adacore.com>
24071 Ed Schonberg <schonberg@adacore.com>
24072
24073 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
24074 that indicates if we are parsing a compilation unit found in a
24075 limited-with clause.
24076 It is use to avoid the circularity check.
24077
24078 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
24079 we are parsing a compilation unit found in a limited-with clause. This
24080 is use to avoid the circularity check.
24081
24082 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
24083 unit as a consequence of parsing a limited-with clause. This is used
24084 to avoid the circularity check.
24085
24086 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
24087 (Analyze_Context): Limited-with clauses are now allowed
24088 in more compilation units.
24089 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
24090 againts previously reported critical errors in context clauses
24091 (Install_Limited_Withed_Unit): Code cleanup plus static detection
24092 of two further errors: renamed subprograms and renamed packages
24093 are not allowed in limited with clauses.
24094 (Install_Siblings): Do not install private_with_clauses on the package
24095 declaration for a non-private child unit.
24096 (Re_Install_Parents): When a parent of the subunit is reinstalled,
24097 reset visibility of child units properly.
24098 (Install_Withed_Unit): When a child unit appears in a with_clause of its
24099 parent, it is immediately visible.
24100
24101 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24102 Emmanuel Briot <briot@adacore.com>
24103
24104 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
24105 declared within an inlined body as referenced, to prevent spurious
24106 warnings.
24107 (Output_One_Ref): If an entity renames an array component, indicate in
24108 the ALI file that this aliases (renames) the array. Capture as well
24109 function renamings that rename predefined operations.
24110 Add information about generic parent for package and subprogram
24111 instances.
24112 (Get_Type_Reference): For a subtype that is the renaming of an actual in
24113 an instantiation, use the first_subtype to ensure that we don't generate
24114 cross-reference information for internal types.
24115 For objects and parameters of a generic private type, retain the '*'
24116 indicator to distinguish such an entity from its type.
24117
24118 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
24119 to store information about instantiated entities.
24120
24121 * ali.adb (Scan_ALI): Add support for parsing the reference to the
24122 generic parent
24123
24124 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
24125 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
24126 information.
24127
24128 2005-06-10 Doug Rupp <rupp@adacore.com>
24129 Arnaud Charlet <charlet@adacore.com>
24130 Olivier Hainque <hainque@adacore.com>
24131 Jose Ruiz <ruiz@adacore.com>
24132
24133 * Make-lang.in: Add initialize.o when needed.
24134 Remove obsolete references to RT_FLAGS.
24135 Add missing dependencies for sdefault.o
24136
24137 * initialize.c: New file.
24138
24139 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
24140 [VMS] cond_signal_table: Fix problem in declaration.
24141 [VMS] __gnat_error_handler: rewrite.
24142 Move all __gnat_initialize() routines to initialize.c
24143 Specialize the former "hpux" section to "hppa hpux", as this is what the
24144 section really is here for and we now have other hpux ports that need
24145 different contents.
24146 (__gnat_adjust_context_for_raise) i386-linux: First version of this
24147 function for this target. Adjust PC by one in the machine context. This
24148 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
24149 it is more reliable to do that in the signal handler itself.
24150 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
24151 flags, so that the handler is passed the context structure to adjust
24152 prior to the raise.
24153 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
24154 SA_SIGINFO sigaction should look like. Call
24155 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
24156 Machine_State_Operations stuff.
24157 Add conditional code so that the x86_64 is also supported.
24158
24159 2005-06-14 Pascal Obry <obry@adacore.com>
24160
24161 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
24162 the library name.
24163
24164 2005-06-14 Robert Dewar <dewar@adacore.com>
24165
24166 * opt.ads, opt.adb: New flags for persistent_bss mode
24167 Add Ada_Version_Explicit, for implementation of AI-362
24168 Add Assertions_Enabled_Config and associated handling
24169 Needed since setting can be changed with Assertion_Policy pragma
24170 Add new flag Warn_On_Ada_2005_Compatibility
24171
24172 * switch-c.adb: Recognize -gnatwy/Y
24173 Set Ada_Version_Explicit, for implementation of AI-362
24174 The -gnatg switch now includes -gnatyu
24175
24176 * usage.adb: Add -gnatwy/Y
24177 Remove wrong asterisk on -gnatwX line
24178 Add line for -gnatyu switch
24179
24180 2005-06-14 Vincent Celier <celier@adacore.com>
24181
24182 * osint.adb (Add_Default_Search_Dirs): Put source and object
24183 directories of project files before directories coming from
24184 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
24185
24186 2005-06-14 Robert Dewar <dewar@adacore.com>
24187
24188 PR ada/15613
24189 * par-ch2.adb (Scan_Pragma_Argument): New procedure
24190 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
24191
24192 2005-06-14 Vincent Celier <celier@adacore.com>
24193
24194 * prep.adb (Preprocess): Ignore error when scanning the first token of
24195 a line.
24196
24197 2005-06-14 Vincent Celier <celier@adacore.com>
24198
24199 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
24200 (Check_Stand_Alone_Library): If the specified reference symbol file does
24201 not exist, only issue a warning when the symbol policy is not
24202 Controlled. And, when symbol policy is Compliant, set the symbol
24203 policy to Autonomous.
24204
24205 2005-06-14 Vincent Celier <celier@adacore.com>
24206
24207 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
24208 when the project file in a with clause is not the last one, that is the
24209 project file name is followed by a comma.
24210 * prj-pp.adb: (First_With_In_List): New Boolean global variable
24211 (Print): Issue list of project files separated by commas in with clauses
24212 according to the values returned by Is_Not_Last_In_List.
24213 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
24214 (Set_Is_Not_Last_In_List): New procedure
24215
24216 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24217
24218 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
24219
24220 2005-06-14 Robert Dewar <dewar@adacore.com>
24221
24222 * scng.adb: Add call to new Check_EOF routine
24223 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
24224 Add some comments regarding wide character handling
24225
24226 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
24227
24228 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
24229
24230 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
24231 characters are now considered graphic characters and hence yield false
24232 in this call.
24233
24234 * nmake.adt: Modify header so that xnmake does not generate output
24235 files with multiple blank lines.
24236
24237 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24238 not have an extra blank line
24239
24240 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24241
24242 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
24243 expression when the component type is an anonymous access type to
24244 ensure that appropriate accessibility checks are done.
24245
24246 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
24247 expression of an assignment when the target object is of an anonymous
24248 access type. This ensures that required accessibility checks are done.
24249 (One_Bound): Move the check for type Universal_Integer to
24250 Process_Bounds.
24251 (Process_Bounds): Check whether the type of the preanalyzed range is
24252 Universal_Integer, and in that case set Typ to Integer_Type prior
24253 to setting the type of the original range and the calls to One_Bound.
24254
24255 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24256
24257 * sem_case.adb (Expand_Others_Choice): Improve warning.
24258
24259 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24260
24261 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
24262 constraint of full view if present, when other type is discriminated.
24263 (Eval_Relational_Op): Recognize tests of pointer values against Null,
24264 when the pointer is known to be non-null, and emit appropriate warning.
24265
24266 2005-06-14 Robert Dewar <dewar@adacore.com>
24267 Ed Schonberg <schonberg@adacore.com>
24268
24269 PR ada/10671
24270 * sem_prag.adb: Implement pragma Persistent_BSS
24271 Remove obsolete pragma Persistent_Data, Persistent_Object
24272 Set Ada_Version_Explicit, for implementation of AI-362
24273 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
24274 Add processing for pragma Pure_05 and Preelaborate_05
24275 Add processing for Assertion_Policy pragma
24276 Add pragma identifiers for Assert
24277 (Analyze_Pragma, case Assert): Check number of arguments
24278 (Process_Inline): Additional guard against an illegal program, where the
24279 argument of the pragma is undefined, and warnings on redundant
24280 constructs are enabled.
24281 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
24282 Ada_05 to this pragma, specifying that the pragma is only active in
24283 Ada_05 mode.
24284 (Check_Arg_Order): New procedure
24285 Add appropriate calls to this procedure throughout
24286 Also throughout, check entity name before doing any other checks
24287
24288 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
24289 Remove obsolete pragma Persistent_Data, Persistent_Object
24290 Add entries for pragma Pure_05 and Preelaborate_05
24291 Add entries for Assertion_Policy pragma and associated names
24292 Add some names for pragma argument processing
24293
24294 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
24295
24296 2005-06-14 Ed Schonberg <schonberg@adacore.com>
24297
24298 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
24299 appears within a negation (either from source or as a rewriting of
24300 inequality) adjust text of warning accordingly.
24301
24302 2005-06-14 Thomas Quinot <quinot@adacore.com>
24303
24304 * s-strxdr.adb: Follow AI95-00132
24305
24306 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24307
24308 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
24309
24310 2005-06-14 Arnaud Charlet <charlet@adacore.com>
24311 Jose Ruiz <ruiz@adacore.com>
24312
24313 * s-tposen.adb, s-tpobop.adb
24314 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
24315 the exception id.
24316 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
24317 there is no violation of the Max_Entry_Queue_Length restriction (if it
24318 has been set); Program_Error is raised otherwise.
24319 (Requeue_Call): Before requeuing the task on the target entry queue we
24320 check that there is no violation of the Max_Entry_Queue_Length
24321 restriction (if it has been set); Program_Error is raised otherwise.
24322
24323 2005-06-14 Robert Dewar <dewar@adacore.com>
24324
24325 * styleg.adb: Fix several remaining problems in -gnatyu switch
24326 Blank line count not reset at start
24327 Scanning outside source buffer in some cases
24328 Confusing message for blanks at end of file
24329 Non-empty blank lines not recognized
24330
24331 * nmake.adt: Modify header so that xnmake does not generate output
24332 files with multiple blank lines.
24333
24334 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24335 not have an extra blank line
24336
24337 2005-06-14 Sergey Rybin <rybin@adacore.com>
24338
24339 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
24340
24341 2005-06-14 Doug Rupp <rupp@adacore.com>
24342 Vincent Celier <celier@adacore.com>
24343
24344 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
24345 Update copyright.
24346
24347 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24348 Remove "Library" command.
24349 Change keyword for style check -gnatyd from NOCRLF to
24350 DOS_LINE_ENDINGS.
24351 Remove useless second style check keyword NONE
24352 Remove help documentation for inexistent style check keyword
24353 RM_COLUMN_LAYOUT.
24354 Add help documentation for style check keywords DOS_LINE_ENDINGS,
24355 UNNECESSARY_BLANK_LINES and XTRA_PARENS
24356 Add UNNECESSARY_BLANK_LINES for -gnatyu
24357 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
24358
24359 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24360
24361 2005-06-14 Vincent Celier <celier@adacore.com>
24362
24363 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
24364 gprmake was invoked with -d.
24365 (Compile_Sources): If -d was used, output the "completed ..." message
24366 for each compilation.
24367 (Scan_Arg): Recognize new switch -d
24368 When -c and at least one main is specified, set
24369 Unique_Compile to True to guarantee that no other sources will be
24370 compiled.
24371
24372 2005-06-14 Matthew Heaney <heaney@adacore.com>
24373
24374 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
24375 * a-swuwha.ads, a-swuwha.adb: New files
24376
24377 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
24378 * a-szuzha.ads, a-szuzha.adb: New files.
24379
24380 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24381 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
24382 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
24383 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
24384 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
24385 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
24386 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
24387 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
24388 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
24389 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
24390 Ada 2005 RM.
24391
24392 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
24393 Olivier Hainque <hainque@adacore.com>
24394 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24395 Pascal Obry <obry@adacore.com>
24396
24397 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
24398
24399 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
24400 making a temporary around a procedure call because of non-addressable
24401 actual parameter.
24402 (process_freeze_entity): If entity is a private type, capture size
24403 information that may have been computed for the full view.
24404 (tree_transform, case N_Allocator): If have initializing expression,
24405 check type for Has_Constrained_Partial_View and pass that to
24406 build_allocator.
24407 (tree_transform, case N_Return_Statement): Pass extra arg to
24408 build_allocator.
24409
24410 * decl.c (annotate_value): Remove early return if -gnatR is not
24411 specified.
24412 (gnat_to_gnu_field): Don't make a packable type for a component clause
24413 if the position is byte aligned, the field is aliased, and the clause
24414 size isn't a multiple of the packable alignment. It serves no useful
24415 purpose packing-wise and would be rejected later on.
24416 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
24417
24418 PR ada/20515
24419 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
24420 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
24421 instead.
24422 (create_concat_name): Idem.
24423
24424 2005-06-10 Robert Dewar <dewar@adacore.com>
24425 Eric Botcazou <ebotcazou@adacore.com>
24426 Ben Brosgol <brosgol@adacore.com>
24427 Cyrille Comar <comar@adacore.com>
24428 Sergey Rybin <rybin@adacore.com>
24429 Pascal Obry <obry@adacore.com>
24430
24431 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
24432 Document second argument (Ada_05) of pragma Obsolescent
24433 Add note that call to subprogram marked with pragma Obsolescent
24434 is now considered to be a violation of program Restrictions
24435 (No_Obsolescent_Features).
24436 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
24437 that only machine-dependent attributes are supported.
24438
24439 * gnat_ugn.texi:
24440 Commented out menu lines and empty section for gnatclean examples
24441 Document -gnatwy/Y
24442 Fix some over long lines
24443 Clarify and enhance documentation of ADA_PROJECT_PATH.
24444 Rework section 2.11.2(3) about linking with a non-GNU compiler.
24445 Mention new switch -fcallgraph-info.
24446 Mention new switch -fstack-usage.
24447 For gnatpp, replace '-notab' with '-N' and add this option to Index
24448 Corrected VMS example.
24449 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
24450 Minor reformatting
24451 Add documentation for -gnatyu switch (unnecessary blank lines)
24452 Document new switch -U for GNAT PRETTY and GNAT METRIC
24453 Add note about Stdcall being handled as C convention on non Windows OS.
24454 Remove some junk typo in description of gnatbind -S switch
24455 Remove reference to Extensions_Allowed pragma
24456 Document the new order of the directories to be searched (source and
24457 object directories of project files before directories in ADA_*_PATH
24458 environment variables.
24459
24460 * g-trasym.ads: Document that IRIX is supported
24461
24462 2005-06-10 Arnaud Charlet <charlet@adacore.com>
24463
24464 * Makefile.in: Add initialize.o when needed.
24465 Adapt to new VMS package body Symbols and subunits
24466 No specialized version of a-sytaco is needed for VxWorks.
24467
24468 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
24469 * a-zchara.ads, a-widcha.ads: New files.
24470
24471 * system-hpux-ia64.ads: New file.
24472
24473 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
24474 is imported from the VxWorks kernel.
24475
24476 2005-06-14 Robert Dewar <dewar@adacore.com>
24477
24478 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
24479 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
24480 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
24481 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
24482 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
24483 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
24484 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
24485 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
24486 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
24487 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
24488 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
24489 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
24490
24491 2005-06-14 Thomas Quinot <quinot@adacore.com>
24492
24493 * xeinfo.adb: Fix typo in comment
24494
24495 2005-06-14 Javier Miranda <miranda@adacore.com>
24496
24497 * repinfo.ads: Fix typo in comment
24498
24499 2005-06-14 Gary Dismukes <dismukes@adacore.com>
24500
24501 * s-finimp.adb (Parent_Tag): Delete this imported function (function
24502 Parent_Tag is now in the visible part of Ada.Tags).
24503 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
24504 using imported function.
24505
24506 2005-06-14 Bernard Banner <banner@adacore.com>
24507
24508 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
24509 also apply for handling support for VxSim 653.
24510
24511 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24512
24513 * xsnames.adb: Add automatic generation of snames.h.
24514
24515 2005-06-14 Thomas Quinot <quinot@adacore.com>
24516
24517 * gen-soccon.c: Add IP_MULTICAST_IF constant
24518 Minor reformatting and adjustments to prevent warnings.
24519
24520 2005-06-14 Pascal Obry <obry@adacore.com>
24521
24522 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
24523
24524 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
24525
24526 * trans.c (gnat_gimplify_expr): Call
24527 recompute_tree_invarant_for_addr_expr when we change
24528 the operand of the ADDR_EXPR.
24529
24530 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24531
24532 * misc.c: Don't include errors.h.
24533
24534 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24535
24536 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
24537
24538 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
24539
24540 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
24541 comment typos.
24542 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
24543
24544 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
24545
24546 PR ada/20270
24547 * Makefile.in: Make TGT_LIB behave correctly.
24548
24549 2005-04-23 DJ Delorie <dj@redhat.com>
24550
24551 * misc.c: Adjust warning() callers.
24552
24553 2005-04-16 Laurent Guerby <laurent@guerby.net>
24554
24555 PR ada/18847
24556 * a-nudira.adb (Value): Check for valid string.
24557 * a-nuflra.adb (Value): Likewise.
24558
24559 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
24560
24561 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
24562
24563 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
24564
24565 * adaint.c, init.c, tracebak.c: Fix comment typos.
24566 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
24567
24568 2005-04-07 Laurent Guerby <laurent@guerby.net>
24569 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24570
24571 * Makefile.in: Add make ifeq define for hppa linux tasking support.
24572 * system-hpux.ads: Define Signed_Zeros to be True.
24573 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
24574
24575 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
24576
24577 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
24578 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
24579 typos.
24580
24581 2005-03-30 Tom Tromey <tromey@redhat.com>
24582
24583 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
24584
24585 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24586
24587 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
24588
24589 2005-03-29 Robert Dewar <dewar@adacore.com>
24590
24591 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
24592 fixed-point expression has value that is not a multiple of the Small
24593 value.
24594
24595 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
24596
24597 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
24598 nanoseconds.
24599
24600 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
24601
24602 2005-03-29 Vincent Celier <celier@adacore.com>
24603
24604 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
24605 (Build_Dynamic_Library.Version_String): Return the empty string when
24606 Lib_Version is empty or when the symbol policy is not Autonomous.
24607
24608 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
24609 a symbol is not in the reference symbol file, increase the Major ID
24610 and set the Minor ID to 0.
24611 Use gsmatch=lequal instead of gsmatch=equal
24612
24613 2005-03-29 Doug Rupp <rupp@adacore.com>
24614
24615 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
24616 name and translate.
24617
24618 2005-03-29 Javier Miranda <miranda@adacore.com>
24619
24620 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
24621 (Inherit_DT): The first formal has been redefined as a Tag.
24622 This allows us the removal of the subprogram Get_TSD.
24623 (TSD): Replace the call to Get_TSD by the actual code.
24624
24625 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
24626 (Make_DT): Upgrade the call to Inherit_TSD according to the
24627 new interface: the first formal is now a Tag.
24628
24629 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
24630 redefined as a Tag.
24631 This change allows us to remove the subprogram Get_TSD.
24632 (CPP_Get_TSD): Subprogram removed.
24633 (TSD): Replace the call to CPP_Get_TSD by the actual code.
24634
24635 * rtsfind.ads: Remove support to call the run-time
24636 subprogram Get_TSD
24637
24638 2005-03-29 Robert Dewar <dewar@adacore.com>
24639
24640 * errutil.adb, errout.adb:
24641 Minor comment updates on Line_Terminator references
24642
24643 * par-ch10.adb: Add ??? comment about line terminator
24644
24645 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
24646 (check dos line terminator).
24647 (Check_Line_Max_Length): New procedure, split off from the existing
24648 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24649 be properly recognized.
24650
24651 * styleg.adb: Add ??? comment for line terminator reference
24652
24653 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
24654 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
24655
24656 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
24657 (check dos line terminator).
24658 (Check_Line_Max_Length): New procedure, split off from the existing
24659 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24660 be properly recognized.
24661
24662 * stylesw.ads, stylesw.adb:
24663 Add handling for new -gnatyd switch (check dos line terminator)
24664
24665 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
24666 Recognize -gnatwb/-gnatwB switches
24667 Include Warn_On_Bad_Fixed_Value for -gnatg
24668
24669 * usage.adb:
24670 Add line for new -gnatyd switch (check dos line terminator)
24671
24672 * usage.adb: Add lines for -gnatwb/-gnatwB
24673
24674 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
24675
24676 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
24677
24678 * gnat_ugn.texi: Fix overlong lines
24679 Document new -gnatyd switch
24680 Document new -gnatwb/-gnatwB switches
24681
24682 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24683
24684 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
24685 order to retrieve the component list of the type, before examining
24686 individual components.
24687
24688 * sem_type.adb (Covers): Types are compatible if one is the base type
24689 of the other, even though their base types might differ when private
24690 views are involved.
24691
24692 2005-03-29 Thomas Quinot <quinot@adacore.com>
24693
24694 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
24695 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
24696 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
24697 analyzed if expansion is disabled (which could otherwise cause spurious
24698 error messages if expansion has been disabled due to previous
24699 (unrelated) errors).
24700
24701 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
24702 is disabled, the entity denoted by the argument is the access type
24703 itself, not an underlying record type, so there is no need to go back
24704 to the Corresponding_Remote_Type.
24705
24706 2005-03-29 Gary Dismukes <dismukes@adacore.com>
24707 Robert Dewar <dewar@adacore.com>
24708
24709 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
24710 expand a call to an instance of
24711 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
24712 Constructor actual of the instance. A class-wide membership
24713 check is also generated, to ensure that the tag passed to the instance
24714 denotes a type in the class.
24715 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
24716 of Name_Generic_Dispatching_Constructor.
24717
24718 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
24719 05 unit for AI-260-02).
24720
24721 * a-tgdico.ads: New file.
24722
24723 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
24724 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
24725
24726 * snames.ads, snames.adb (Preset_Names): Add entry for
24727 Generic_Dispatching_Constructor.
24728
24729 PR ada/20300
24730 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
24731 character type cases.
24732 (Analyze_Subprogram_Renaming): Add special handling for
24733 the case of renaming of stream attributes when the renaming denotes a
24734 generic formal subprogram association for an abstract formal subprogram.
24735 Check that the attribute is a primitive stream attribute (and not
24736 a class-wide stream attribute) and then rewrite the attribute name
24737 as the name of the appropriate compiler-generated stream primitive.
24738
24739 2005-03-29 Robert Dewar <dewar@adacore.com>
24740
24741 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24742 recursive calls.
24743 (Is_Possibly_Unaligned_Object): Correct typo that
24744 resulted in inaccurate result for unaligned scalars within records.
24745
24746 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24747
24748 * freeze.adb (Freeze_Record_Type): If the type of the component is an
24749 itype whose parent is controlled and not yet frozen, do not create a
24750 freeze node for the itype if expansion is disabled.
24751
24752 2005-03-29 Vincent Celier <celier@adacore.com>
24753
24754 * make.adb (Gnatmake): Don't fail if the main project file is declared
24755 as having no Ada sources. Do not display message "no sources to
24756 compile" in quiet output.
24757
24758 2005-03-29 Doug Rupp <rupp@adacore.com>
24759
24760 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
24761 extra tools.
24762
24763 2005-03-29 Robert Dewar <dewar@adacore.com>
24764
24765 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
24766 child.
24767
24768 2005-03-29 Robert Dewar <dewar@adacore.com>
24769
24770 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
24771 missing TYPE Improve the error message generated when compiling a
24772 limited interface in Ada83 or Ada95 mode.
24773
24774 2005-03-29 Robert Dewar <dewar@adacore.com>
24775
24776 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
24777 rather than proceed ahead using a junk attribute name.
24778
24779 2005-03-29 Vincent Celier <celier@adacore.com>
24780
24781 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
24782
24783 * prj-part.adb (Parse_Single_Project): Set the location of a project
24784 on its defining identifier, rather than on the reserved word "project".
24785
24786 * prj-proc.adb (Expression): Adapt to the fact that default of external
24787 references may be string expressions, not always literal strings.
24788 (Recursive_Process): Set Display_Name equal to Name
24789 when Location is No_Location, that is when there is no actual file.
24790 Get the Display_Name of the project from the source, when it is not a
24791 virtual project.
24792 (Process): Use the Display_Name in error messages
24793
24794 * prj-strt.adb (External_Reference): Allow default to be string
24795 expressions, not only literal strings.
24796
24797 2005-03-29 Vincent Celier <celier@adacore.com>
24798
24799 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
24800 file and the reference symbol file to be the same file.
24801
24802 2005-03-29 Thomas Quinot <quinot@adacore.com>
24803
24804 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
24805 forbid conversion of a local access-to-subprogram type to a remote one.
24806
24807 * sem_util.adb (Wrong_Type): For a record type that is the expanded
24808 equivalent type for a remote access-to-subprogram type, go back to the
24809 original RAS entity when displaying an error message, so the casing is
24810 the original source casing.
24811
24812 2005-03-29 Robert Dewar <dewar@adacore.com>
24813
24814 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
24815 on param update.
24816
24817 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24818
24819 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
24820 subtype if code is being pre-analyzed, to prevent un-expanded
24821 references to protected formals, among others.
24822 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
24823 interpretation that can be a call, include the result of the call as a
24824 possible interpretation of the dereference.
24825
24826 * sem_ch5.adb (Process_Bounds): Determine type of range by
24827 pre-analyzing a copy of the original range, and then analyze the range
24828 with the expected type.
24829
24830 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
24831 with an overloaded prefix where not all interpretations yield an
24832 access to subprogram, do not rewrite node as a call.
24833 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
24834 the node as a call once the context identifies the interpretation of
24835 the prefix whose call yields the context type.
24836 (Valid_Conversion): For the case of a conversion between
24837 local access-to-subprogram types, check subtype conformance using
24838 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
24839 detailed error message.
24840
24841 2005-03-29 Ed Schonberg <schonberg@adacore.com>
24842
24843 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
24844 indicator, indicate that the formal can never be null.
24845 (Process_Formals): If a formal has a non_null indicator, insert the
24846 resulting subtype immediately before the enclosing subprogram decl,
24847 and not at the beginning of the corresponding declarative part, to
24848 prevent access before elaboration (Ada2005).
24849
24850 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24851
24852 PR ada/19956
24853 * utils.c (finish_record_type): Use variable_size when setting sizes.
24854
24855 2005-03-29 Robert Dewar <dewar@adacore.com>
24856
24857 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
24858 guarantee Unix style line terminators for the output files, even when
24859 running on windows.
24860
24861 2005-03-29 Robert Dewar <dewar@adacore.com>
24862
24863 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
24864 buffer if an exception is raised.
24865
24866 2005-03-29 Ed Falis <falis@adacore.com>
24867
24868 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
24869 VxWorks 653 1.4
24870
24871 2005-03-29 Robert Dewar <dewar@adacore.com>
24872
24873 * sem_util.ads: Minor reformatting
24874 * gnat_rm.texi: Minor editing.
24875
24876 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
24877
24878 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
24879 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
24880
24881 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24882
24883 * adaint.c (__gnat_portable_spawn): Adjust cast.
24884
24885 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
24886
24887 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
24888
24889 2005-03-17 Pascal Obry <obry@adacore.com>
24890
24891 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
24892 used.
24893
24894 * expect.c (__gnat_waitpid): Moved here from adaint.c.
24895 Reimplement under Win32 using Win32 API.
24896
24897 (__gnat_kill) [Win32]: Properly close the process handle before leaving
24898 this routine.
24899
24900 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
24901
24902 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
24903 (DECL_RENAMED_OBJECT): New accessor macro.
24904 (SET_DECL_RENAMED_OBJECT): New setter macro.
24905
24906 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
24907 object in all cases. Attach the renamed object to the VAR_DECL.
24908 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
24909 field is not prescribed.
24910
24911 * misc.c (gnat_handle_option): Handle -gnatO separately.
24912 (gnat_print_decl) <VAR_DECL>: New case.
24913 Print the DECL_RENAMED_OBJECT node.
24914
24915 * lang.opt: Declare separate -gnatO option.
24916
24917 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
24918 pointer, replace it with the renamed object.
24919 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
24920 pointer type if the source is not a fat pointer type whose underlying
24921 array has the same non-zero alias set as that of the destination array.
24922
24923 2005-03-17 Javier Miranda <miranda@adacore.com>
24924
24925 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
24926 (Get_Inheritance_Depth): Removed.
24927 (Set_Inheritance_Depth): Removed.
24928
24929 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
24930 subprogram Get_Expanded_Name because it is not referenced by the
24931 frontend.
24932
24933 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
24934 (CPP_Get_Inheritance_Depth): Removed.
24935 (CPP_Set_Inheritance_Depth): Removed.
24936
24937 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
24938
24939 2005-03-17 Robert Dewar <dewar@adacore.com>
24940
24941 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
24942 3, since we now expect GCC 3 to do all the work.
24943
24944 2005-03-17 Javier Miranda <miranda@adacore.com>
24945
24946 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
24947 of one barrier to avoid wrong usage of this attribute.
24948
24949 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
24950 First_Private_Entity.
24951
24952 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
24953 the subprogram against wrong usage.
24954 Adapt the code to traverse the entities in the
24955 scope of a record_type because in addition to its usage regarding
24956 packages, this subprogram is also called by Expand_N_Freeze_Entity
24957 to install the visible declarations of the enclosing scope of a
24958 record_type_with_private to establish the proper visibility before
24959 freezing the entity and related subprograms.
24960
24961 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24962
24963 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
24964 entry formals.
24965
24966 2005-03-17 Thomas Quinot <quinot@adacore.com>
24967
24968 * exp_ch3.adb (Check_Attr): New subprogram.
24969 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
24970 into a new Check_Attr subprogram, in order to provide a more
24971 explanatory error message (including the name of the missing attribute).
24972 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
24973 subprogram determines whether a default implementation exists for a
24974 given stream attribute.
24975 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
24976 Determine whether to generate a default implementation for each stream
24977 attribute separately, as this depends on the specific attribute.
24978
24979 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
24980 limited extension where a stream attribute is missing for a limited
24981 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
24982 generate a bogus reference to the missing attribute to prevent
24983 cascaded errors. Instead, generate a null statement.
24984
24985 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
24986 available for a limited type if it has been specified for an ancestor
24987 of the type.
24988
24989 2005-03-17 Ed Schonberg <schonberg@adacore.com>
24990
24991 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
24992 entity is an operator.
24993
24994 2005-03-17 Thomas Quinot <quinot@adacore.com>
24995
24996 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
24997 spec, to make this predicate available to other units.
24998
24999 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25000 reimplementing it.
25001
25002 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25003 when no distribution runtime library is available.
25004
25005 * sem_res.adb, sem_dist.adb: Disable expansion of remote
25006 access-to-subprogram types when no distribution runtime library is
25007 available.
25008 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25009 predicate available to other units.
25010
25011 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25012 spec, to make this predicate available to other units.
25013
25014 2005-03-17 Vincent Celier <celier@adacore.com>
25015
25016 * make.adb (Insert_Project_Sources): Make sure the Q is always
25017 initialized.
25018
25019 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25020 the default for the tree, not the global default naming.
25021
25022 * prj-proc.adb (Recursive_Process): No need to put the default naming
25023 in the project data, it's already there.
25024
25025 2005-03-17 Doug Rupp <rupp@adacore.com>
25026
25027 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25028
25029 * 5xcrtl.ads: Renamed to...
25030 * s-crtl-vms64.ads: ...this new file
25031
25032 2005-03-17 Robert Dewar <dewar@adacore.com>
25033
25034 PR ada/19519
25035 * namet.adb (Copy_One_Character): Set proper wide character encoding
25036 for upper half character if we have upper half encoding.
25037
25038 2005-03-17 Robert Dewar <dewar@adacore.com>
25039
25040 * par.adb (Par): Improved msg for attempt to recompile predefined unit
25041
25042 2005-03-17 Thomas Quinot <quinot@adacore.com>
25043
25044 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25045 tagged limited type, the TSS is a newly built renaming declaration:
25046 insert it using Set_TSS, not Copy_TSS.
25047
25048 2005-03-17 Javier Miranda <miranda@adacore.com>
25049
25050 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25051 Try_Object_Operation): Analyze the object that is accessible
25052 through the prefix of the subprogram call before we apply
25053 the transformation of the object-operation notation.
25054
25055 2005-03-17 Jose Ruiz <ruiz@adacore.com>
25056
25057 * s-taprob.adb (Initialize_Protection): Initialize the protected
25058 object's owner to Null_Task.
25059 (Lock): If pragma Detect_Blocking is in effect and the caller of this
25060 procedure is already the protected object's owner then Program_Error
25061 is raised. In addition the protected object's owner is updated.
25062 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25063 of this procedure is already the protected object's owner then
25064 Program_Error is raised.
25065 In addition the protected object's owner is updated.
25066 (Unlock): Remove the ownership of the protected object.
25067
25068 * s-taprob.ads (Protection): Add the field Owner, used to store the
25069 protected object's owner.
25070 This component is needed for detecting one type of potentially blocking
25071 operations (external calls on a protected subprogram with the same
25072 target object as that of the protected action). Document the rest of
25073 the components.
25074
25075 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
25076 Initialize the protected object's owner to Null_Task.
25077 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
25078 caller of this procedure is already the protected object's owner then
25079 Program_Error is raised.
25080 Do not raise Program_Error when this procedure is called from a
25081 protected action.
25082 (Unlock_Entries): Remove the ownership of the protected object.
25083 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
25084 of this procedure is already the protected object's owner then
25085 Program_Error is raised.
25086 Do not raise Program_Error when this procedure is called from
25087 a protected action.
25088
25089 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
25090 used to store the protected object's owner.
25091
25092 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
25093 effect and this procedure (a potentially blocking operation) is called
25094 from whithin a protected action, Program_Error is raised.
25095 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
25096 and this procedure (a potentially blocking operation) is called from
25097 whithin a protected action, Program_Error is raised.
25098
25099 2005-03-17 Vincent Celier <celier@adacore.com>
25100 Nicolas Setton <setton@adacore.com>
25101
25102 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
25103 switch, not supported by the linker on Darwin. Add '_' before
25104 <library>init, as this character is added unconditionally by the
25105 compiler.
25106 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
25107 correct one ".dylib". This fixes detection of the archive files when
25108 building library projects.
25109
25110 2005-03-17 Vincent Celier <celier@adacore.com>
25111
25112 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
25113 -gnat83, -gnat95 and -gnat05.
25114
25115 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
25116
25117 * gnat_ugn.texi: Document gnatmem restriction
25118
25119 2005-03-17 Thomas Quinot <quinot@adacore.com>
25120
25121 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
25122 cleanup
25123
25124 2005-03-17 Robert Dewar <dewar@adacore.com>
25125
25126 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
25127 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
25128 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
25129
25130 * casing.adb: Comment improvements
25131
25132 2005-03-17 Pascal Obry <obry@adacore.com>
25133
25134 * g-expect.adb: Minor reformatting.
25135
25136 2005-03-15 Zack Weinberg <zack@codesourcery.com>
25137
25138 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
25139 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
25140 to dependencies.
25141
25142 2005-03-15 Vincent Celier <celier@adacore.com>
25143
25144 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
25145 Add new parameter In_Tree to specify the project tree: needed
25146 by the project manager. Adapt to changes in project manager
25147 using new parameter In_Tree.
25148
25149 2005-03-15 Jakub Jelinek <jakub@redhat.com>
25150
25151 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
25152 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
25153 ada/bldtools to avoid make -jN failures.
25154
25155 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25156
25157 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
25158 to NULL_TREE on entry.
25159
25160 2005-03-15 Robert Dewar <dewar@adacore.com>
25161
25162 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25163 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25164 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25165 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25166 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25167 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
25168 system-interix.ads, system-solaris-sparc.ads,
25169 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25170 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
25171 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
25172 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
25173 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
25174 Compiler_System_Version to be False.
25175
25176 * opt.ads: Add new flag Opt.Address_Is_Private
25177
25178 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
25179 Add new parameter Compiler_System_Version to avoid checking for
25180 completeness of parameters when compiler is compiling itself.
25181 Allows old versions of GNAT to be compiled with new compiler.
25182
25183 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25184
25185 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
25186 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
25187 calling thread.
25188 (Stack_Base_Available): New flag.
25189 (Get_Page_Size): New overloaded functions imported from C.
25190 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
25191 PROT_ON, PROT_OFF): New constants.
25192 (mprotect): New function imported from C.
25193 (pthread_teb_t): New record type.
25194
25195 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
25196 (Create_Task): Account for the Yellow Zone and the guard page.
25197
25198 2005-03-15 Vincent Celier <celier@adacore.com>
25199
25200 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25201 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25202 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25203 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
25204 Library_File_Name_For): Add new parameter In_Tree
25205 to specify the project tree: needed by the project manager.
25206 Adapt to changes in project manager using new parameter In_Tree.
25207 Remove local imports, use functions in System.CRTL.
25208
25209 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
25210 to use the project manager.
25211
25212 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
25213 In_Tree to designate the project tree. Adapt to changes in the project
25214 manager, using In_Tree.
25215
25216 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
25217 Copy_Interface_Sources): Add new parameter In_Tree to specify the
25218 project tree: needed by the project manager.
25219 (Build_Library): Check that Arg'Length >= 6 before checking if it
25220 contains "--RTS=...".
25221
25222 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
25223 Library_File_Name_For): Add new parameter In_Tree to specify the
25224 project tree: needed by the project manager.
25225
25226 * prj.ads, prj.adb: Major modifications to allow several project trees
25227 in memory at the same time.
25228 Change tables to dynamic tables and hash tables to dynamic hash
25229 tables. Move tables and hash tables from Prj.Com (in the visible part)
25230 and Prj.Env (in the private part). Move some constants from the visible
25231 part to the private part. Make other constants deferred.
25232 (Project_Empty): Make it a variable, not a function
25233 (Empty_Project): Add parameter Tree. Returns the data with the default
25234 naming data of the project tree Tree.
25235 (Initialize): After updating Std_Naming_Data, copy its value to the
25236 component Naming of Project Empty.
25237 (Register_Default_Naming_Scheme): Use and update the default naming
25238 component of the project tree, instead of the global variable
25239 Std_Naming_Data.
25240 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
25241 Tree is not defaulted, return the default naming data of the Tree.
25242 (Initial_Buffer_Size): Constant moved from private part
25243 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
25244 variables initialized in procedure Initialize.
25245 (Add_To_Buffer): Add two in out parameters to replace global variables
25246 Buffer and Buffer_Last.
25247 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
25248 functions.
25249 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
25250 hash tables.
25251 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25252 for the project tree.
25253 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
25254 constant at the beginning of the package spec, so that they cane be used
25255 in subprograms before their full declarations.
25256 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
25257 (Empty_Project): Add parameter of type Project_Node_Ref
25258 (Private_Project_Tree_Data): Add component Default_Naming of type
25259 Naming_Data.
25260 (Buffer, Buffer_Last): remove global variables
25261 (Add_To_Buffer): Add two in out parameters to replace global variables
25262 Buffer and Buffer_Last.
25263 (Current_Packages_To_Check): Remove global variable
25264 (Empty_Name): Move to private part
25265 (No-Symbols): Make it a constant
25266 (Private_Project_Tree_Data): New type for the private part of the
25267 project tree data.
25268 (Project_Tree_Data): New type for the data of a project tree
25269 (Project_Tree_Ref): New type to designate a project tree
25270 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25271 for the project tree.
25272
25273 * prj-attr.ads: Add with Table; needed, as package Prj no longer
25274 imports package Table.
25275
25276 * prj-com.adb: Remove empty, no longer needed body
25277
25278 * prj-com.ads: Move most of the content of this package to package Prj.
25279
25280 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
25281 designate the project node tree and Packages_To_Check to replace
25282 global variable Current_Packages_To_Check.
25283 Add new parameters In_Tree and Packages_To_Check to local subprograms,
25284 when needed. Adapt to changes in project manager with project node tree
25285 In_Tree.
25286
25287 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
25288 project tree to most subprograms. Move tables and hash tables to
25289 private part of package Prj.
25290 Adapt to changes in project manager using project tree In_Tree.
25291
25292 * prj-makr.adb (Tree): New constant to designate the project node tree
25293 Adapt to change in project manager using project node tree Tree
25294
25295 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
25296 display the Library_Src_Dir and the Library_Dir.
25297 Add new parameter In_Tree to designate the project node tree to most
25298 subprograms. Adapt to changes in the project manager, using project tree
25299 In_Tree.
25300 (Check_Naming_Scheme): Do not alter the casing on platforms where
25301 the casing of file names is not significant.
25302 (Check): Add new parameter In_Tree to designate the
25303
25304 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
25305 designate the project tree.
25306 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
25307
25308 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
25309 to replace those that were in the private part of package Prj.
25310 Add new parameter In__Tree to designate the project node tree to most
25311 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25312 (Post_Parse_Context_Clause): When specifying the project node of a with
25313 clause, indicate that it is a limited with only if there is "limited"
25314 in the with clause, not necessarily when In_Limited is True.
25315 (Parse): Add new parameter In_Tree to designate the project node tree
25316
25317 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
25318 designate the project node tree. Adapt to change in Prj.Tree with
25319 project node tree In_Tree.
25320
25321 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
25322 tree In_Tree in the call to function Empty_Process to give its initial
25323 value to the project data Processed_Data.
25324 Add new parameters In_Tree to designate the project tree and
25325 From_Project_Node_Tree to designate the project node tree to several
25326 subprograms. Adapt to change in project manager with project tree
25327 In_Tree and project node tree From_Project_Node_Tree.
25328
25329 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
25330 to replace those that were in the private part of package Prj.
25331 Add new parameter In_Tree to designate the project node tree to most
25332 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25333
25334 * prj-tree.ads, prj-tree.adb: Add new parameter of type
25335 Project_Node_Tree_Ref to most subprograms.
25336 Use this new parameter to store project nodes in the designated project
25337 node tree.
25338 (Project_Node_Tree_Ref): New type to designate a project node tree
25339 (Tree_Private_Part): Change table to dynamic table and hash tables to
25340 dynamic hash tables.
25341
25342 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
25343 the project tree to most subprograms. Adapt to changes in project
25344 manager using project tree In_Tree.
25345
25346 * makegpr.adb (Project_Tree): New constant needed to use project
25347 manager.
25348
25349 2005-03-15 Olivier Hainque <hainque@adacore.com>
25350
25351 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
25352 for sigactions with SA_SIGINFO set. Call
25353 __gnat_adjust_context_for_raise before raising, to perform the
25354 potentially required adjustments to the machine context for the GCC
25355 unwinder.
25356
25357 * raise.h (__gnat_adjust_context_for_raise): New prototype.
25358
25359 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
25360 Adjust PC by one in the provided machine context.
25361 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
25362 so that the handler is passed the context structure to adjust prior to
25363 the raise.
25364 (__gnat_error_handler) HPUX: Adjust the signature to match what an
25365 SA_SIGINFO sigaction should look like. Call
25366 __gnat_adjust_context_for_raise before actually raising.
25367 (__gnat_adjust_context_for_raise): Default noop to help PC
25368 adjustments before raise from signal handlers.
25369 (__gnat_error_handler): Indirectly call a predicate function to
25370 determine if a condition should be resignaled or not.
25371 (__gnat_set_resignal_predicate): User interface to modify the predicate.
25372 (__gnat_default_resignal_p): Default GNAT predicate.
25373
25374 2005-03-15 Doug Rupp <rupp@adacore.com>
25375
25376 * adaint.c: Prefix #include of VMS system header files with vms/
25377 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
25378 Do not define a dummy function "convert_addresses" under Darwin,
25379 not needed.
25380
25381 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
25382 with vms/
25383
25384 2005-03-15 Nicolas Setton <setton@adacore.com>
25385
25386 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
25387 PPC/AIX.
25388
25389 2005-03-15 Robert Dewar <dewar@adacore.com>
25390
25391 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
25392 AI-386.
25393
25394 * a-retide.ads: Minor comment changes
25395
25396 2005-03-15 Robert Dewar <dewar@adacore.com>
25397
25398 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
25399 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
25400 Realloc_For_Chunk to private part of package.
25401 New subprograms for AI-301
25402
25403 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
25404 Get_Line procedure.
25405 Avoid unnecessary use of Get/Set_Wide_String
25406
25407 2005-03-15 Robert Dewar <dewar@adacore.com>
25408
25409 PR ada/13470
25410 * a-stunau.ads, a-stunau.adb:
25411 Change interface to allow efficient (and correct) implementation
25412 The previous changes to allow extra space in unbounded strings had
25413 left this interface a bit broken.
25414
25415 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
25416
25417 * g-spipat.ads, g-spipat.adb: New interface for Get_String
25418 Minor reformatting (function specs)
25419
25420 * g-spitbo.adb: New interface for Get_String
25421
25422 * g-spitbo.ads: Minor reformatting
25423
25424 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
25425
25426 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
25427
25428 2005-03-15 Javier Miranda <miranda@adacore.com>
25429 Robert Dewar <dewar@adacore.com>
25430 Thomas Quinot <quinot@adacore.com>
25431 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25432
25433 * atree.ads, atree.adb: Add support for Elist24 field
25434
25435 * atree.h: Fix wrong definition of Field27
25436 Add support for Elist16 field
25437 Add support for Elist24 field
25438
25439 * einfo.ads, einfo.adb (Abstract_Interfaces,
25440 Set_Abstract_Interfaces): New subprograms.
25441 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
25442 subprograms.
25443 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
25444 entities rather than a single node.
25445 (Is_Interface, Set_Is_Interface): New subprogram
25446 (First_Tag_Component): New syntesized attribute
25447 (Next_Tag_Component): New synthesized attribute
25448 (Write_Entity_Flags): Upgraded to write Is_Interface
25449 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
25450 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
25451 (Task_Body_Procedure): New subprogram to read this attribute.
25452 (Set_Task_Body_Procedure): New subprogram to set this attribute.
25453 (Has_Controlled_Component): Now applies to all entities.
25454 This is only a documentation change, since it always worked to apply
25455 this to other than composite types (yielding false), but now this is
25456 official.
25457 Update documentation on Must_Be_Byte_Aligned for new spec
25458
25459 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
25460 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
25461 uses of the Access_Disp_Table attribute to reference the first dispatch
25462 table associated with a tagged type. As
25463 part of the implementation of abstract interface types,
25464 Access_Disp_Table has been redefined to contain a list of dispatch
25465 tables (rather than a single dispatch table).
25466 Similarly, upgrade all the references to Tag_Component by the
25467 new attribute First_Tag_Component.
25468 (Find_Inherited_TSS): Moved to exp_tss.
25469 Clean up test in Expand_N_Object_Declaration for cases
25470 where we need to do a separate assignment of the initial value.
25471 (Expand_N_Object_Declaration): If the expression in the
25472 declaration of a tagged type is an aggregate, no need to generate an
25473 additional tag assignment.
25474 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
25475 is to be deleted.
25476 Bit packed array ops are only called if operands are known to be
25477 aligned.
25478 (Component_Equality): When returning an N_Raise_Program_Error statement,
25479 ensure that its Etype is set to Empty to avoid confusing GIGI (which
25480 expects that only expressions have a bona fide type).
25481 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
25482 determine the amount of data to be copied.
25483
25484 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
25485 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
25486 INTERFACE_TYPE_DEFINITION ::=
25487 [limited | task | protected | synchronized] interface
25488 [AND interface_list]
25489
25490 * par-ch3.adb (P_Type_Declaration): Modified to give support to
25491 interfaces.
25492 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
25493 interfaces.
25494 (P_Interface_Type_Definition): New subprogram that parses the new
25495 syntax rule of Ada 2005 interfaces
25496 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
25497 messages by the correct RENAMES (quotes removed).
25498
25499 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
25500 attribute First_Tag_Component.
25501
25502 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
25503 (Interface_List, Set_Interface_List): New subprograms.
25504 (Interface_Present, Set_Interface_Present): New subprograms.
25505 (Limited_Present, Set_Limited_Present): Available also in derived
25506 type definition nodes.
25507 (Protected_Present, Set_Protected_Present): Available also in
25508 record type definition and
25509 derived type definition nodes.
25510 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
25511 (Task_Present, Set_Task_Present): New subprogram.
25512 (Task_Body_Procedure): Removed.
25513 (Set_Task_Body_Procedure): Removed.
25514 These subprogram have been removed because the attribute
25515 Task_Body_Procedure has been moved to the corresponding task type
25516 or task subtype entity to leave a field free to store the list
25517 of interfaces implemented by a task (for AI-345)
25518 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
25519 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
25520 expression flag Do_Range_Check
25521 (Exception_Junk): Change to Flag7 to accomodate above change
25522 (Box_Present, Default_Name, Specification, Set_Box_Present,
25523 Set_Default_Name, Set_Specification): Expand the expression
25524 "X in N_Formal_Subprogram_Declaration" into the corresponding
25525 two comparisons. Required to use the csinfo tool.
25526
25527 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
25528 "with string" given.
25529
25530 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
25531 expression given.
25532
25533 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
25534 in 2005 mode
25535
25536 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
25537 attribute Task_Body_Procedure rather than the old semantic field that
25538 was available in the task_type_declaration node.
25539
25540 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
25541 interface type definitions.
25542 (P_Formal_Derived_Type_Definition): Modified to handle the list of
25543 interfaces.
25544
25545 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
25546 task type declaration.
25547 (P_Protected): Modified to handle the list of interfaces in a
25548 protected type declaration.
25549
25550 2005-03-15 Doug Rupp <rupp@adacore.com>
25551 Vincent Celier <celier@adacore.com>
25552
25553 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
25554 (Gen_Output_File_C): Likewise.
25555 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
25556
25557 2005-03-15 Thomas Quinot <quinot@adacore.com>
25558
25559 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
25560 is an N_Raise_Constraint_Error node, create a new copy of it without
25561 going through a call to Duplicate_Subexpr.
25562
25563 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25564 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25565 Nicolas Setton <setton@adacore.com>
25566 Ed Schonberg <schonberg@adacore.com>
25567
25568 PR ada/19900
25569 PR ada/19408
25570 PR ada/19140
25571 PR ada/20255
25572 * decl.c (gnat_to_gnu_field): Reject aliased components with a
25573 representation clause that prescribes a size not equal to the rounded
25574 size of their types.
25575 (gnat_to_gnu_entity, case E_Component): Always look at
25576 Original_Record_Component if Present and not the entity.
25577 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
25578 of tagged extension types by not making field for components that are
25579 inside the parent.
25580 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
25581 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
25582 expression to the type of the object when the object is constant.
25583 Reverse defer_debug_incomplete_list before traversing it, so that trees
25584 are processed in the order at which they were added to the list. This
25585 order is important when using the stabs debug format.
25586 If we are deferring the output of debug information, also defer this
25587 output for a function return type.
25588 When adding fields to a record, prevent emitting debug information
25589 for incomplete records, emit the information only when the record is
25590 complete.
25591 (components_to_record): New parameter defer_debug.
25592 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
25593 (gnat_to_gnu_field_decl): New function.
25594 (substitution_list, annotate_rep): Call it.
25595 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
25596 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
25597 No longer update discriminants to not be a COMPONENT_REF.
25598 (copy_alias_set): Strip padding from input type; also handle
25599 unconstrained arrays properly.
25600
25601 * gigi.h (write_record_type_debug_info): New function.
25602 Convert to use ANSI-style prototypes. Remove unused
25603 declarations for emit_stack_check, elab_all_gnat and
25604 set_second_error_entity.
25605 (gnat_to_gnu_field_decl): New decl.
25606
25607 * utils.c (write_record_type_debug_info): New function.
25608 (finish_record_type): Delegate generation of debug information to
25609 write_record_type_debug_info.
25610 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
25611 (update_pointer_to): Fix pasto.
25612 (convert) <UNION_TYPE>: Accept slight type variations when
25613 converting to an unchecked union type.
25614
25615 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
25616 replace the N_Freeze_Entity with a null statement.
25617
25618 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
25619 within a constrained subcomponent of an enclosing record, place the
25620 freeze nodes in the scope stack entry for the enclosing record.
25621 (Undelay_Type): New Subprogram.
25622 (Set_Small_Size): Pass T, the type to modify; all callers changed.
25623 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
25624 within records; allow them to have freeze nodes if their base types
25625 aren't frozen yet.
25626
25627 * exp_util.adb (Remove_Side_Effects): Properly test for
25628 Expansion_Delayed and handle case when it's inside an
25629 N_Qualified_Expression.
25630
25631 * sem_ch3.adb (Derived_Type_Declaration): New predicate
25632 Comes_From_Generic, to recognize accurately that the parent type in a
25633 derived type declaration can be traced back to a formal type, because
25634 it is one or is derived from one, or because its completion is derived
25635 from one.
25636 (Constrain_Component_Type): If component comes from source and has no
25637 explicit constraint, no need to constrain in in a subtype of the
25638 enclosing record.
25639 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
25640 Minor change to propagate Is_Ada_2005 flag
25641
25642 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
25643 Expansion_Delayed is False.
25644 (assoc_to_constructor): Ignore fields that have a
25645 Corresponding_Discriminant.
25646 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
25647 function returns "by target", dereference the target pointer using the
25648 type of the actual return value.
25649 <all>: Be prepared for a null gnu_result.
25650 (processed_inline_subprograms): Check flag_really_no_inline
25651 instead of flag_no_inline.
25652 (set_second_error_entity): Remove unused function.
25653 (gnat_to_gnu, case N_Selected_Component): Call
25654 gnat_to_gnu_field_decl.
25655 (assoc_to_constructor): Likewise.
25656
25657 2005-03-15 Robert Dewar <dewar@adacore.com>
25658 Ed Schonberg <schonberg@adacore.com>
25659 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25660
25661 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
25662 Must_Be_Byte_Aligned for cases where we do not need to use a
25663 System.Pack_nn unit.
25664
25665 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
25666 as procedures.
25667 Needed now that we do some processing for IN parameters as well. This
25668 may well fix some unrelated errors.
25669 (Expand_Call): Handle case of unaligned objects (in particular those
25670 that come from packed arrays).
25671 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
25672 renamed entity is an inherited operation, re-expand the call using the
25673 original operation, which is the one to call.
25674 Detect attempt to inline parameterless recursive subprogram.
25675 (Represented_As_Scalar): Fix to work properly with private types
25676 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
25677 accurate estimate. Yields True in far fewer cases than before,
25678 improving the quality of code that depends on this test.
25679
25680 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
25681 over both visible and private declarations to remove them from tree,
25682 and mark subprograms declared in package as eliminated, to prevent
25683 spurious use in subsequent compilation of generic units in the context.
25684
25685 * exp_util.ads: Minor cleanup in variable names
25686
25687 * sem_eval.ads, sem_eval.adb: Minor reformatting
25688 (Compile_Time_Known_Bounds): New function
25689
25690 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25691
25692 * exp_ch7.adb (Convert_View): Use base types of underlying types when
25693 determining whether an unchecked conversion is needed for the argument
25694 of an initialization call.
25695
25696 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25697
25698 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
25699 that appears in the instantiation rather than the internal subtype
25700 generated in the wrapper package, to avoid anomalies in gigi when the
25701 target is derived from a private type whose full view is an access type.
25702
25703 2005-03-15 Robert Dewar <dewar@adacore.com>
25704
25705 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
25706 not needed.
25707 Add documentation to replace the use of this flag
25708 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
25709 the x86_64.
25710
25711 2005-03-15 Thomas Quinot <quinot@adacore.com>
25712
25713 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
25714 here from exp_attr so it can be shared between exp_attr and exp_dist.
25715 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
25716 all TSS names, not a subset thereof, and the previous name introduced
25717 an unnecessarily confusion that a distinction might exist between
25718 "OK" TSS names and some "not OK" TSS names.
25719
25720 2005-03-15 Doug Rupp <rupp@adacore.com>
25721
25722 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
25723 Command_Name.
25724
25725 2005-03-15 Pascal Obry <obry@adacore.com>
25726 Eric Botcazou <ebotcazou@adacore.com>
25727
25728 PR ada/20226
25729 PR ada/20344
25730 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
25731 when IN_RTS. This is to work around a bootstrap path problem.
25732
25733 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25734 table and pass it to __gnat_install_SEH_handler().
25735 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25736
25737 * lang.opt: Fix specification of -fRTS=.
25738
25739 2005-03-15 Doug Rupp <rupp@adacore.com>
25740 Bernard Banner <banner@adacore.com>
25741 Vincent Celier <celier@adacore.com>
25742 Arnaud Charlet <charlet@adacore.com>
25743
25744 PR ada/6852
25745 This change works fine when gnatlib is built from the gcc directory,
25746 but does not work when using the libada Makefile, since GCC_FOR_TARGET
25747 is not passed to ada/Makefile.in, so more work is needed by a
25748 Makefile/configure expert.
25749
25750 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
25751 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
25752 Setup gnatlink switch -M for x86_64 linux, as it is already setup
25753 for Linux x86.
25754 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
25755 Run ranlib on libgccprefix.a
25756 Define PREFIX_OBJS for Darwin, to build libgccprefix.
25757 (ADA_INCLUDE_SRCS): Split Ada packages.
25758
25759 2005-03-15 Robert Dewar <dewar@adacore.com>
25760
25761 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
25762
25763 * impunit.adb: Add GNAT.UTF_32
25764
25765 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
25766
25767 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
25768 now uses GNAT.UTF_32).
25769
25770 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
25771 capabilities for categorizing characters using Unicode categories
25772
25773 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25774
25775 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
25776 instantiation that has been rewritten as a package body, retrieve spec
25777 to generate proper name for implicit_with_clause.
25778 (Install_Parents): Recognize a parent that is an instantiation but has
25779 been rewritten as a package declaration during analysis.
25780
25781 2005-03-15 Javier Miranda <miranda@adacore.com>
25782 Ed Schonberg <schonberg@adacore.com>
25783
25784 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
25785 parameter reported some error we immediately return. This improves the
25786 behaviour of the frontend in case of errors.
25787 (Install_Parent, Remove_Parent): Introduce new flag
25788 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
25789 ancestor of a generic child unit, when the child is being instantiated.
25790 (Inline_Instance_Body): If we are compiling the private
25791 part or the body of a child unit, restore the proper visibility of the
25792 parents after compiling the instance body.
25793
25794 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25795 Javier Miranda <miranda@adacore.com>
25796
25797 PR ada/15608
25798 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
25799 of a private type, in which case it is underlying_type that denotes
25800 the proper task. Also modified to use the new entity attribute
25801 that is directly available in the task type and task subtype entities
25802 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
25803 arrays when other dimensions than the first are constrained by
25804 discriminants of an enclosing record.
25805 (Insert_Explicit_Dereference): If the prefix is an indexed component or
25806 a combination of indexed and selected components, find ultimate entity
25807 and generate the appropriate reference for it, to suppress spurious
25808 warnings.
25809 (Note_Possible_Modification): If an entity name has no entity, return.
25810 (Is_Variable): A function call never denotes a variable.
25811 (Requires_Transient_Scope): For record types, recurse only on
25812 components, not on internal subtypes that may have been generated for
25813 constrained components.
25814
25815 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25816
25817 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
25818 Eliminated as candidates for resolution. Both efficient, and avoids
25819 anomalies with operators declared in deleted code.
25820 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
25821 expansion is disabled (as when compiling a generic) to prevent spurious
25822 warnings on prefixes of selected components.
25823
25824 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25825
25826 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
25827 attached to a list before checking whether it appears in the private
25828 declarations of the current package.
25829 (Make_Inequality_Operator): Insert declaration in proper declarative
25830 list rather than just setting the Parent field, so that
25831 Is_Private_Declaration can handle it properly.
25832
25833 2005-03-15 Ed Schonberg <schonberg@adacore.com>
25834
25835 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
25836 a renaming a body, check that the renamed subprogram in not intrinsic.
25837 (Find_Direct_Name): If several use_visible entities hide
25838 each other, and the context is a predefined file compiled through
25839 rtsfind, keep only the entity that comes from a predefined file.
25840
25841 2005-03-15 Geert Bosch <bosch@adacore.com>
25842
25843 * s-fatgen.adb (Valid): Extend special exceptions to account for long
25844 long float padding to also cover AMD64 and IA64.
25845
25846 2005-03-15 Gary Dismukes <dismukes@adacore.com>
25847
25848 * s-imgwch.adb: Add with and use of Interfaces.
25849 (Img_Wide_Character): Change type of Val to Unsigned_16.
25850 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
25851
25852 2005-03-15 Matthew Gingell <gingell@adacore.com>
25853
25854 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
25855
25856 2005-03-15 Robert Dewar <dewar@adacore.com>
25857
25858 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
25859
25860 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
25861
25862 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
25863
25864 2005-03-15 Robert Dewar <dewar@adacore.com>
25865
25866 * s-bitops.adb, s-bitops.ads,
25867 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
25868 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
25869 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
25870 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
25871 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
25872 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
25873 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
25874 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
25875 reformatting.
25876
25877 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25878
25879 * utils2.c (build_binary_op): Fix typo.
25880
25881 2005-03-15 Doug Rupp <rupp@adacore.com>
25882
25883 * s-crtl.ads (popen,pclose): New imports.
25884
25885 2005-03-15 Cyrille Comar <comar@adacore.com>
25886
25887 * comperr.adb (Compiler_Abort): remove references to obsolete
25888 procedures in the bug boxes for various GNAT builds.
25889
25890 2005-03-15 Vincent Celier <celier@adacore.com>
25891
25892 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
25893
25894 2005-03-15 Geert Bosch <bosch@adacore.com>
25895 Arnaud Charlet <charlet@adacore.com>
25896 Robert Dewar <dewar@adacore.com>
25897 Cyrille Comar <comar@adacore.com>
25898 Sergey Rybin <rybin@adacore.com>
25899
25900 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
25901 too specific and long-winded to be appropriate for the GNAT User's
25902 Guide.
25903 Warn about use of GCC switches not documented in the GNAT User's Guide,
25904 as these may cause generated code to not conform to Ada semantics.
25905 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
25906 Add documentation for -gnat95 and -gnat05 switches
25907 Remove paragraph documenting obsolete way to refer to third party
25908 libraries.
25909 Add a few references to Ada_05 that were missing.
25910 Update documentation on -gnatZ/-gnatL.
25911 Document limitation when using -m64 under Solaris.
25912 Change the "Name Casing" subsection of the pretty-printer section
25913 according to the changes in the dictionary processing.
25914
25915 * gnat_rm.texi: Document the Ada_05 pragma.
25916 Section on record representation clauses describes the new more
25917 relaxed rules about placement of large packed bit array components.
25918 Add documentation of GNAT.UTF_32
25919
25920 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
25921
25922 * misc.c (gnat_post_options): Turn off structural
25923 aliasing for now.
25924
25925 2005-03-08 Laurent Guerby <laurent@guerby.net>
25926
25927 * system-linux-sparc.ads: Fix typo in previous commit.
25928
25929 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
25930 Laurent Guerby <laurent@guerby.net>
25931
25932 PR ada/20035
25933 * system-linux-sparc.ads: New.
25934 * Makefile.in: Add sparc linux entry.
25935
25936 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
25937
25938 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
25939 parameters as unused.
25940
25941 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
25942 Partial merge from libada-gnattools-branch:
25943
25944 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25945 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
25946 into code in gnattools/Makefile.in. Remove direct dependencies on
25947 stamp-tools by tools clauses.
25948 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
25949 * config-lang.in: Add gnattools to $lang_dirs.
25950
25951 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
25952
25953 PR ada/19942
25954 * utils.c (gnat_type_for_mode): Return null instead of ICE because
25955 we asked for an unknown mode.
25956
25957 2005-02-12 Richard Henderson <rth@redhat.com>
25958
25959 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
25960 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
25961
25962 2005-02-10 Andreas Jaeger <aj@suse.de>
25963
25964 * init.c (__gnat_initialize): Mark parameter as unused.
25965
25966 2005-02-09 Doug Rupp <rupp@adacore.com>
25967
25968 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
25969 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
25970
25971 2005-02-09 Doug Rupp <rupp@adacore.com>
25972
25973 * gnatchop.adb (dup, dup2),
25974 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
25975
25976 * gnatlbr.adb (mkdir),
25977 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
25978
25979 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
25980
25981 2005-02-09 Doug Rupp <rupp@adacore.com>
25982
25983 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
25984
25985 2005-02-09 Robert Dewar <dewar@adacore.com>
25986 Thomas Quinot <quinot@adacore.com>
25987 Javier Miranda <miranda@adacore.com>
25988 Pascal Obry <obry@adacore.com>
25989 Ed Schonberg <schonberg@adacore.com>
25990 Doug Rupp <rupp@adacore.com>
25991 Gary Dismukes <dismukes@adacore.com>
25992 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25993
25994 * g-zstspl.ads: New file.
25995
25996 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
25997
25998 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
25999 Ada 95 mode
26000 Add definition of Wide_Wide_Space for AI-285
26001
26002 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26003 interface (to support Ada 95 and Ada 2005 units).
26004 Add Unbounded_IO files
26005 Add entries for Wide_Wide packages for AI-285
26006 Add list of containers packages to Ada 2005 unit list
26007
26008 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26009 support new Unbounded_IO package cleanly.
26010
26011 * g-utf_32.ads, g-utf_32.adb: New files.
26012
26013 * Makefile.rtl: Add entry for g-utf_32
26014 Add new files for Unbounded_IO
26015 Adjust make file for new AI-285 wide wide packages
26016 Add AI-302 containers to the run time.
26017
26018 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26019 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26020 subprograms for AI-301.
26021
26022 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26023
26024 * a-stunau.ads: Minor comment correction
26025
26026 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26027 etc.
26028 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26029 (Check_RPC): Update to match changes in expanded code.
26030 Clean up unused entity.
26031
26032 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26033 was not taken into account.
26034 This includes proper initialization with Normalize_Scalars.
26035 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26036 normalize scalars cases (particularly the latter) to do a better job
26037 of finding invalid representations.
26038
26039 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26040
26041 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26042 used
26043
26044 * exp_dist.adb: Add support for wide wide character type
26045 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26046 private part, generate stub bodies at the end of the private part,
26047 not the visible part.
26048 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26049 PolyORB support.
26050 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26051 generic wrapper to execute final processing after completing the
26052 expansion of the RPC receiver for an RACW.
26053
26054 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26055 packages and attributes.
26056 (Preset_Names): Addition of the new reserved words of Ada 2005,
26057 that is interface, overriding and synchronized.
26058 (Get_Pragma_Id): Give support to the use of the new reserved word
26059 "interface" as a pragma name.
26060 (Is_Pragma_Name): Give support to the use of the new reserved word
26061 "interface" as a pragma name.
26062 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26063 attribute implementation.
26064
26065 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26066 checks to entities that are output parameters of Asm operations.
26067 Handle the Stream_Size attribute.
26068 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
26069
26070 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
26071
26072 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
26073 for second parameter being 0.0.
26074 Add support for wide wide character type.
26075 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
26076
26077 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
26078 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
26079 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
26080 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
26081 for wide wide character cases.
26082
26083 * cstand.adb: Create entities for Wide_Wide_Character and
26084 Wide_Wide_String.
26085
26086 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
26087 accordance with AI-258.
26088 Add new declarations for 16/32 bit C character types (Part of AI285)
26089
26090 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
26091 (Obsolescent_Warning): New field
26092 (Rep_Clause): New local subprogram used to share code. Returns the rep
26093 clause for which the name is given in parameter.
26094 (Has_Stream_Size_Clause): New routine.
26095 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
26096 (Address_Clause): Implementation is now using Rep_Clause.
26097 (Alignment_Clause): Idem.
26098 (Size_Clause): Idem.
26099
26100 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
26101 entity in non-Ada 2005 mode and generate warning.
26102
26103 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
26104 (Prag): Code cleanup. Remove old gnat pragma "overriding"
26105
26106 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
26107 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
26108 on the named unit if the pragma is not in the current compilation unit,
26109 so that elaboration calls in the current unit can set up an elaboration
26110 dependency on the named unit, as needed.
26111 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
26112 subprogram as well as for subprograms declared within a package.
26113 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
26114 pragma overriding.
26115
26116 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
26117 to z) to avoid some instances of duplication for Wide_Wide packages.
26118
26119 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
26120 characters.
26121
26122 * scn.adb: Char_Literal_Value field is now a Uint
26123
26124 * scng.adb: Significant rewrite to handle new Ada 2005 features
26125 allowing wide and wide wide characters in program text, e.g. for
26126 identifiers, as described in AI-285.
26127 (Set_Reserved): New procedure, makes setting up keywords cleaner.
26128 (Initialize_Scanner): Register the new reserved words of Ada 2005.
26129 (Scan): Give support to the new reserved words.
26130
26131 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
26132 warning notifying that interface, overriding, and synchronized are
26133 new reserved words.
26134 (P_Pragma): Allow the use of the new reserved word "interface" as
26135 a pragma name.
26136
26137 * gnatls.adb, gnatbind.adb,
26138 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
26139 identifiers named "interface" to "SAL_Interface".
26140
26141 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
26142 (Structured Exception handling).
26143 (Gen_Main_C): Idem.
26144
26145 * bindgen.adb:
26146 (Gen_Main_Ada): Set the default exit code if specified.
26147 (Gen_Main_C): Likewise.
26148 Part of *DC20-006.
26149 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
26150 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
26151
26152 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
26153 new -Xnnn switch.
26154
26155 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
26156 has a collision with the new Ada 2005 "interface" reserved word.
26157
26158 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
26159 generate a warning notifying that interface, overriding, and
26160 synchronized are new reserved words.
26161
26162 * scans.ads (Token_Type): Addition of the tokens corresponding to the
26163 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
26164 and Tok_Synchronized.
26165
26166 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
26167 "dispatching" rather than "primitive" operations, since dispatching
26168 calls are now allowed to abstract formal subprograms (which are not
26169 primitive).
26170 Char_Literal_Value field is now a Uint
26171 (Resolve_Slice): If the prefix is an access to an unconstrained array,
26172 compute the actual subtype of the designated object to impose the proper
26173 index constraints.
26174 (Resolve_Selected_Component): Do not insert an access check if the
26175 prefix is an access type: such a node is expanded into an explicit
26176 dereference, on which the access check is performed anyway. Removes
26177 expensive duplicate checks.
26178 (Resolve_Call): Use new flag Is_Obsolescent and field
26179 Obsolescent_Warning so that pragma Obsolescent works on library
26180 subprograms.
26181 Add support for wide wide character type
26182 (Resolve_Allocator): Replace the error message on wrong null-exclusion
26183 value by a warning message.
26184 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
26185 as fixed-point, and one of the operands is non-static and universal, it
26186 can only be an illegal exponentiation operation, in which case there is
26187 no real value to retrieve.
26188
26189 * exp_strm.adb: Add support for wide wide character type
26190 (Build_Elementary_Input_Call): Compute the size of the stream element by
26191 querying the rep chain to find the Stream_Attribute attribute value.
26192 (Build_Elementary_Write_Call): Ditto.
26193
26194 * sem_aggr.adb: Char_Literal_Value field is now a Uint
26195 Add support for wide wide character type
26196 Replace the error messages on wrong null-exclusion value by warnings
26197 as described in Ada 2005.
26198 (Resolve_Extension_Aggregate): Document the fact that the error
26199 message on class-wide expressions in extensions aggregates.
26200
26201 * sem_case.adb: Add support for wide wide character type
26202
26203 * sem_ch13.adb: Add support for wide wide character type
26204 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
26205
26206 * sem_ch3.adb: Add support for wide wide character type
26207 (Process_Subtype): If constraint is illegal for the type, set Ekind of
26208 now-useless Itype, to prevent cascaded errors on a compiler built
26209 without -gnatp.
26210
26211 * sem_ch8.adb: Add with and use of Sem_Disp.
26212 (Analyze_Subprogram_Renaming): Replace unclean uses of
26213 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
26214 of Corresponding_Spec to Empty).
26215 (Attribute_Renaming): Replace use of Corresponding_Spec with
26216 Corresponding_ Formal_Spec and simplify condition.
26217 (Use_One_Package): Check that scope of homonym of identifier is defined,
26218 before checking whether it is a wrapper package.
26219 Add support for wide wide character type
26220
26221 * sem_eval.adb: Add support for wide wide character type.
26222 (Eval_Arithmetic_Op): Check for compile time known signed integer
26223 overflow in the non-static case.
26224 (Subtypes_Statically_Match): A formal scalar type and its base type do
26225 not statically match.
26226
26227 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
26228 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
26229 subtype).
26230 (Unit_Declaration_Node): Ditto.
26231 (Is_Variable_Prefix): For the case of an indexed component whose prefix
26232 has a packed array type, the prefix has been rewritten into a type
26233 conversion. Determine variable-ness from the converted expression.
26234 Handle wide wide character cases.
26235
26236 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
26237
26238 * stringt.ads, stringt.adb: Handle full UTF-32 range.
26239 Remove ["0A"] from comment, since it can look like a line terminator.
26240 Currently we don't permit this, but this is under discussion by the
26241 ARG, and it is easy enough to use a different example.
26242
26243 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
26244 handling UTF-32 encoding for wide wide character.
26245 Implement new brackets coding ["hhhhhhhh"]
26246 Add UTF-8 encodings for full UTF-32 range
26247
26248 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
26249
26250 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
26251 bit range Add full UTF-32 support.
26252 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
26253 notify that constraint error will be raised at run-time
26254 because a null value is assigned to a null-excluding object.
26255 Remove some obsolete declarations and make Char_Code
26256 unsigned.
26257
26258 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
26259 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
26260 Rcheck subprograms.
26261
26262 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
26263 wrong null-exclusion value by a warning message.
26264 (Enable_Range_Check): Do range check if the prefix is an
26265 explicit dereference whose designated object is an unconstrained array.
26266 Current algorithm for removing duplicate checks is over-eager in this
26267 case.
26268
26269 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
26270 null-exclusion value by a warning message
26271
26272 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
26273 completely. Add support for Uint2 field
26274
26275 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
26276 exp_prag.adb: Char_Literal_Value field is now a Uint.
26277
26278 * exp_util.adb (Insert_Actions): Replace
26279 N_Formal_Subprogram_Declaration by
26280 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
26281 Char_Literal_Value field is now a Uint.
26282
26283 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
26284 defined for subprogram renaming declarations. When set, the field
26285 indicates the defining entity of a corresponding formal subprogram
26286 when the renaming corresponds to a formal subprogram association in an
26287 instantiation.
26288 (Set_Corresponding_Formal_Spec): New procedure to return
26289 Corresponding_Formal_Spec field.
26290 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
26291 (which is now a subtype).
26292 Char_Literal_Value field is now a Uint
26293
26294 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
26295 pointer to the base of the dispatch table.
26296 Minor changes to comments.
26297 (Controlling_Type): New function for determining the tagged type
26298 associated with a tagged primitive subprogram.
26299 (Expand_Dispatching_Call): Add support for a controlling actual that is
26300 directly a value of type Ada.Tag rather than a tagged object.
26301
26302 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
26303 describing the new layout.
26304 (Dispatch_Table): The expander computes the actual array size, allocates
26305 the Dispatch_Table record accordingly, and generates code that displaces
26306 the base of the record after the Typeinfo_Ptr component. The access to
26307 these components is done by means of local functions.
26308 (Offset_To_Top): New function.
26309 (Typeinfo_Ptr): New function.
26310 (Get_TSD): Modified to access the new position of the TSD.
26311 (Set_TSD): Modified to save the TSD in its new position.
26312
26313 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
26314 case of formal abstract subprograms. Add check and message for -gnat05.
26315 Update comments.
26316
26317 * sem_ch12.adb: Add with and use for Sem_Disp.
26318 (Analyze_Associations): Minor change from "=" to "in" for use of
26319 N_Formal_Subtype_Declaration (which is now a subtype).
26320 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
26321 N_Formal_Subtype_Declaration (which is now a subtype).
26322 (Analyze_Formal_Subprogram): Add handling for
26323 N_Formal_Abstract_Subprogram, marking the formal as abstract and
26324 dispatching, setting the controlling status of the formal parameters
26325 and result, and issuing an error if there is no controlling type for
26326 the formal subprogram.
26327 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
26328 which is an unclean use of that field, we set the new field
26329 Corresponding_Formal_Spec to make the formal subprogram available to
26330 processing in Analyze_Subprogram_Declaration.
26331 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
26332 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
26333 Constrained, so that it is is does not statically match its anonymous
26334 base type.
26335
26336 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
26337 abstract formal subprograms in error check for functions returning
26338 abstract types. Set scope of new designator for
26339 a parameterless subprogram, so that it is available when checking the
26340 body for nested subprograms, before full analysis of said body.
26341 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
26342 subprogram only if inner one comes from source.
26343 (Analyze_Function_Call): If the call is given in object notation, the
26344 analysis of the name rewrites the node and analyzes it with the proper
26345 argument list. After analyzing the name, if the call has been rewritten
26346 and the result type is set, no further analysis is needed.
26347 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
26348 mark in function specification, in a context where the formals are
26349 visible and hide outer homographs.
26350
26351 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
26352 as the tagged type for the cases of abstract formal subprograms and
26353 renamings of those. Clean up spec comments.
26354 (Check_Dispatching_Context): Add error message to indicate "abstract
26355 procedure", covering the case of a call to a formal abstract procedure
26356 that has statically tagged operands.
26357 (Check_Dispatching_Call): Check for the case of an actual given by
26358 a tag-indeterminate function call whose type is an ancestor of the
26359 containing call's associated tagged type. This situation can occur
26360 for inherited primitives with function defaults. In this case we
26361 use the tagged type's tag directly as the controlling argument for
26362 the calls.
26363 (Expand_Call): Name change on call to Expand_Dispatch_Call.
26364
26365 * sprint.adb (Sprint_Node_Actual): Split
26366 N_Formal_Subprogram_Declaration into two alternatives for the new
26367 cases N_Formal_Abstract_Subprogram_Declaration and
26368 N_Formal_Concrete_Subprogram_Declaration.
26369 Char_Literal_Value field is now a Uint.
26370
26371 * trans.c: Get rid of junk Uint2 reference.
26372 Char_Literal_Value field is now a Uint.
26373 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
26374 (gigi): Correct third arg to gimplify_body.
26375
26376 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
26377 (TYPE_LANG_FLAG_0): Check for record or union.
26378
26379 * treepr.adb: Char_Literal_Value field is now a Uint
26380
26381 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
26382 UI_From_CC.
26383
26384 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
26385 Add full UTF-32 support
26386 Char_Code is now 32 bits
26387
26388 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
26389 wide character UTF_32 line terminators.
26390 Initialize Main_Source_File to avoid error when no main
26391 source is loaded.
26392
26393 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
26394 (Main_Source_File) when no main source has been loaded, to avoid
26395 potential crash.
26396
26397 2005-02-09 Robert Dewar <dewar@adacore.com>
26398
26399 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
26400 Fix name of Set routine
26401
26402 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
26403 fixed packages.
26404
26405 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
26406 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
26407 fixed packages
26408
26409 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
26410 forms of Get_Line subprograms for AI-301.
26411
26412 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26413 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
26414 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
26415 a-stwima.ads: Minor reformatting.
26416
26417 2005-02-09 Doug Rupp <rupp@adacore.com>
26418 Thomas Quinot <quinot@adacore.com>
26419
26420 * adaint.c, adaint.h
26421 [VMS] (to_ptr32): New function.
26422 (MAYBE_TO_PTR32): New macro.
26423 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
26424 for pointer size.
26425 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
26426 [VMS] (#define fork()): Remove since unneccessary.
26427 (__gnat_set_close_on_exec): New routine to support
26428 GNAT.OS_Lib.Set_Close_On_Exec.
26429
26430 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
26431 the parent side as close-on-exec so that they are not inherited by the
26432 child.
26433
26434 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
26435 set or clear the FD_CLOEXEC flag on a file descriptor.
26436
26437 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
26438 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26439
26440 PR ada/19386
26441 * decl.c:
26442 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
26443 on the field if Pragma Component_Alignment (Storage_Unit).
26444 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
26445 side-effects as if it were a constant; also make SAVE_EXPR to protect
26446 side-effects.
26447 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
26448 UNION_TYPE.
26449 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
26450 (components_to_record): Test it.
26451 Fix improper usage of REFERENCE_CLASS_P.
26452
26453 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
26454 RECORD_TYPE.
26455
26456 * utils2.c: Minor reformatting.
26457
26458 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
26459 handle other cases like RECORD_TYPE.
26460
26461 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
26462
26463 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26464
26465 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
26466 component of an array of arrays in an assignment context, and the
26467 aggregate has component associations that require sliding on
26468 assignment, force reanalysis of the aggregate to generate a temporary
26469 before the assignment.
26470 (Must_Slide): Make global to the package, for use in Gen_Assign.
26471
26472 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26473
26474 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
26475 unchecked union with no inferable discriminants, return a
26476 Raise_Program_Error node, rather than inserting it at the point the
26477 type is frozen.
26478 (Expand_Record_Equality, Component_Equality): Handle properly the case
26479 where some subcomponent is an unchecked union whose generated equality
26480 code raises program error.
26481
26482 2005-02-09 Doug Rupp <rupp@adacore.com>
26483
26484 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
26485 [VMS] (#define exit hack): Remove.
26486
26487 2005-02-09 Pascal Obry <obry@adacore.com>
26488 Arnaud Charlet <charlet@adacore.com>
26489
26490 * init.c (__gnat_initialize): Add a new parameter eh which contains the
26491 address of the exception registration. The Win32 version of this
26492 routine calls __gnat_install_SEH_handler() to initialize the SEH
26493 (Structured Exception Handling) handler.
26494 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
26495 SEH (Structured Exception Handling) now.
26496 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
26497 (__gnat_initialize for ppc-vxworks): Adjust comments and the
26498 preprocessor condition protecting the call to the extra eh setup
26499 subprogram, which is only available for the ppc target.
26500 (__gnat_clear_exception_count): replaced reference to
26501 variable taskIdCurrent by call to taskIdSelf(), cleaner.
26502
26503 * seh_init.c: New file.
26504
26505 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
26506 (GNATBIND_OBJS): Idem.
26507
26508 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
26509 routine takes a new parameter (a pointer to the exception registration
26510 for the SEH (Structured Exception Handling) support.
26511
26512 * raise.h: (__gnat_install_SEH_handler): New prototype.
26513 Update copyright notice.
26514
26515 * s-tassta.adb (Task_Wrapper): Declare the exception registration
26516 record and initialize it by calling __gnat_install_SEH_handler.
26517
26518 2005-02-09 Vincent Celier <celier@adacore.com>
26519
26520 * make.adb (Gnatmake): Do not fail when the main project has no object
26521 directory.
26522
26523 2005-02-09 Doug Rupp <rupp@adacore.com>
26524
26525 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
26526 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
26527 [VMS]: Add translations for g-enblsp.adb.
26528
26529 * s-asthan-vms.adb: Removed.
26530 * s-asthan-vms-alpha.adb: Added.
26531
26532 2005-02-09 Pascal Obry <obry@adacore.com>
26533
26534 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
26535 (LIBGNAT_OBJS): Add seh_init.o.
26536
26537 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26538
26539 PR ada/16592
26540 * Makefile.in: Link all gnat tools with -static-libgcc, since
26541 -shared-libgcc is now used by default on some systems (e.g. linux with
26542 recent binutils).
26543 Remove references to Makefile.prolog/generic, no longer used.
26544
26545 2005-02-09 Vincent Celier <celier@adacore.com>
26546
26547 * prj-makr.adb (Process_Directory): Put file name in canonical case
26548 before matching against the patterns.
26549 If gnatname has been invoked as <prefix>-gnatname
26550 then invoke the compiler as <prefix>-gcc, not just "gcc".
26551
26552 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26553
26554 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
26555 with expansion disabled. The actual subtype is needed among other
26556 places when the selected component appears in the context of a loop
26557 bound, and denotes a packed array.
26558 (Operator_Check): Always use the first subtype in the
26559 error message, to avoid the appearance of internal base types.
26560 (Transform_Object_Operation): Copy each actual in full
26561 to the parameter associations of the constructed call, rather than
26562 using the shallow copy mechanism of New_Copy_List. This ensures that
26563 the chaining of named associations is done properly.
26564 (Complete_Object_Operation): Rewrite node, rather than
26565 replacing it, so that we can trace back to the original selected
26566 component.
26567
26568 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
26569 and calls that use object notation, if the called function is not
26570 declared in a withed unit, place the elaboration constraint on the
26571 unit in the context that makes the function accessible.
26572 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
26573 imposes an elaboration constraint between two packages.
26574
26575 2005-02-09 Ed Schonberg <schonberg@adacore.com>
26576
26577 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
26578 views of a private type after handling its private dependents, to
26579 maintain proper stack discipline between entry and exit from the
26580 package.
26581
26582 2005-02-09 Cyrille Comar <comar@adacore.com>
26583
26584 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
26585 Minor reformatting.
26586
26587 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26588
26589 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
26590 fields for foreign threads.
26591
26592 2005-02-09 Doug Rupp <rupp@adacore.com>
26593
26594 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
26595 recursion warnings when compiled with -gnatdm.
26596
26597 2005-02-09 Robert Dewar <dewar@adacore.com>
26598
26599 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
26600 Slight fix to documentation of -gnaty with no parameters
26601
26602 * xr_tabls.ads: Add ??? comment for missing overall comment
26603
26604 * xsinfo.adb: Make default file name be sinfo.h, since this is what
26605 we now use by default.
26606
26607 * xsnames.adb: Adjust end of file test to look for five space followed
26608 by '#' instead of six spaces. The format of xsnames.adb was modified
26609 in the last update.
26610
26611 * a-numeri.ads: Add reference to AI-388 for greek letter pi
26612 identifier.
26613
26614 * clean.adb: Minor reformatting.
26615
26616 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
26617 gnatname.adb: Minor reformatting
26618 Add 2005 to copyright output when utility is run
26619
26620 * csets.adb: Eliminate obsolete comment
26621
26622 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
26623 Update comments.
26624
26625 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
26626
26627 2005-02-09 Sergey Rybin <rybin@adacore.com>
26628
26629 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
26630 the difference between compact and incompact layout and add the record
26631 representation clause to the example illustrating different layouts.
26632 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
26633 component clauses").
26634
26635 2005-02-09 Florian Villoing <villoing@adacore.com>
26636
26637 * gnat_ugn.texi: Fix typos.
26638 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
26639 @file.
26640 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
26641 in the generated documentation.
26642
26643 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26644
26645 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
26646 longer supported.
26647 Update linker wrapper when linking with non GNU C++.
26648
26649 2005-02-09 Pascal Obry <obry@adacore.com>
26650
26651 * gnat_ugn.texi:
26652 Document the procedure to debug the DllMain routine on Windows.
26653 Add note about -funwind-tables and mixed Ada and C/C++ programming in
26654 ZCX mode.
26655 Document new BIND qualifer /RETURN_CODES=VMS.
26656
26657 2005-02-09 Ben Brosgol <brosgol@adacore.com>
26658
26659 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26660 Edited gnatmetric chapter
26661
26662 2005-02-09 Robert Dewar <dewar@adacore.com>
26663
26664 * gnat_rm.texi:
26665 Changes to document new wide wide character support
26666 For AI-285
26667 Update documentation on Normalize_Scalars and Initialize_Scalars
26668
26669 2005-02-09 Pascal Obry <obry@adacore.com>
26670
26671 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
26672
26673 2005-02-09 Jose Ruiz <ruiz@adacore.com>
26674
26675 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
26676 from the VxWorks kernel) that is needed for getting the active
26677 priority of the different tasks.
26678
26679 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
26680 Use a pragma Elaborate_Body in the spec file instead.
26681 Noticed by code reading.
26682
26683 2005-02-09 Thomas Quinot <quinot@adacore.com>
26684
26685 * exp_util.ads: Minor correction in comment.
26686
26687 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26688
26689 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
26690 since this procedure is now too complex to be worth inlining.
26691
26692 2005-02-09 Richard Henderson <rth@redhat.com>
26693
26694 * utils.c (gnat_define_builtin): Remove.
26695 (gnat_install_builtins): Use build_common_builtin_nodes.
26696
26697 2005-02-09 Arnaud Charlet <charlet@adacore.com>
26698
26699 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26700 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
26701 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
26702 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
26703 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
26704 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
26705 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
26706 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
26707 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
26708 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26709 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
26710 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
26711 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
26712 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
26713 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
26714 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
26715 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
26716 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
26717 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
26718 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
26719 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
26720 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
26721 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
26722 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
26723 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
26724 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
26725 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26726 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
26727 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
26728 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
26729 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26730 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
26731 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26732 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26733 library.
26734
26735 2005-01-27 Laurent Guerby <laurent@guerby.net>
26736
26737 * Makefile.in: Fix a-intnam.ads from previous commit,
26738 add 2005 to copyright.
26739 * a-intman-rtems.ads: Renamed to...
26740 * a-intnam-rtems.ads:
26741
26742 2005-01-27 Laurent Guerby <laurent@guerby.net>
26743
26744 * Makefile.in: Rename GNAT RTEMS specific files.
26745 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
26746 5rosinte.ads, 5rparame.adb: Replaced by files below.
26747 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26748 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26749
26750 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
26751 Laurent Guerby <laurent@guerby.net>
26752
26753 PR ada/19488
26754 * 5rosinte.ads: Add No_Key constant.
26755 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
26756 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
26757
26758 2005-01-26 Laurent Guerby <laurent@guerby.net>
26759
26760 PR ada/19414
26761 * i-cobol.adb (Valid_Numeric): Handle zero length case.
26762
26763 2005-01-20 Richard Henderson <rth@redhat.com>
26764
26765 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
26766 a-intnam-linux.ads and system-linux-alpha.ads.
26767 * a-intnam-linux-alpha.ads: Remove file.
26768 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
26769 * system-linux-alpha.ads: New file.
26770
26771 2005-01-18 Jakub Jelinek <jakub@redhat.com>
26772
26773 PR ada/13470
26774 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
26775 set to the new string.
26776
26777 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
26778
26779 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
26780 to True.
26781
26782 2005-01-18 Richard Henderson <rth@redhat.com>
26783
26784 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
26785 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
26786 for alpha-linux.
26787 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
26788
26789 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
26790
26791 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
26792 (GCC_ZCX_Support): Likewise.
26793
26794 2005-01-11 Bastian Blank <waldi@debian.org>
26795
26796 * system-linux-s390.ads: Define Preallocated_Stacks.
26797 * system-linux-s390x.ads: Likewise.
26798
26799 2005-01-04 Arnaud Charlet <charlet@adacore.com>
26800
26801 * gnat_ugn.texi: Fix texi errors with null variables.
26802
26803 2005-01-03 Thomas Quinot <quinot@adacore.com>
26804
26805 * gen-soccon.c: New utility program to generate g-soccon.ads
26806 automatically.
26807
26808 * socket.c, gsocket.h: Split inclusion of system header files into a
26809 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
26810
26811 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
26812 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26813 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26814 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
26815 should not be edited by hand anymore, but should be regenerated using
26816 gen-soccon.
26817
26818 2005-01-03 Robert Dewar <dewar@adacore.com>
26819 Ed Schonberg <schonberg@adacore.com>
26820 Vincent Celier <celier@adacore.com>
26821
26822 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
26823 on/off, since this is an obsolescent feature, for which we now generate
26824 a warning.
26825
26826 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
26827 warning mode is set and obsolescent usage of this attribute occurs.
26828 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
26829 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
26830 predates, and partly motivates, the adoption of the AI.
26831 Implement new Ada 2005 attribute Mod
26832
26833 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
26834 attribute Mod.
26835
26836 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
26837
26838 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
26839 pragma restrictions.
26840 New entry for Ada 2005 attribute Mod.
26841
26842 * par-prag.adb:
26843 Add recognition of new pragma Restrictions No_Dependence
26844 Recognize restriction No_Obsolescent_Features at parse time
26845
26846 * bcheck.adb: Add circuitry for checking for consistency of
26847 No_Dependence restrictions.
26848
26849 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
26850 restrictions.
26851
26852 * restrict.ads, restrict.adb: Add subprograms to deal with
26853 No_Dependence restrictions.
26854
26855 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
26856 restrictions.
26857
26858 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
26859 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
26860
26861 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
26862 dummy parameter to scng instantiation.
26863 Needed for new restriction No_Obsolescent_Features
26864
26865 * scn.adb: (Obsolescent_Check): New procedure
26866 Needed for new restriction No_Obsolescent_Features
26867
26868 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
26869 specified by AI-285, needed for implementation of AI-388 (adding greek
26870 pi to Ada.Numerics).
26871 Add new generic formal to scng, needed for new restriction
26872 No_Obsolescent_Features.
26873
26874 * s-rident.ads: Add new restriction No_Obsolescent_Features.
26875
26876 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
26877 restrictions lines.
26878 (Scan_ALI): When finding an unexpected character on an R line, raise
26879 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
26880 Ignore_Errors is True, default restrictions are set and scanning of the
26881 ALI file continues with the next line. Also, when Bad_R_Line is raised
26882 and Ignore_Errors is True, skip to the end of le line.
26883
26884 * sem_ch10.adb: Check that explicit with's do not violate
26885 No_Dependence restrictions.
26886 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
26887 illegal context clauses containing child units of instance.
26888
26889 * sem_prag.adb: Processing and checking for new No_Dependence
26890 restrictions.
26891 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
26892 analyze and check the External argument.
26893
26894 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
26895
26896 2005-01-03 Robert Dewar <dewar@adacore.com>
26897
26898 * atree.adb: Add a fifth component to entities
26899 This allows us to add 32 flags and four new fields
26900
26901 * atree.ads: Add a fifth component to entities
26902 This allows us to add 32 flags and four new fields
26903
26904 * einfo.ads, einfo.adb: Document new fields and new flags now available
26905 Add routines for printing new fields
26906
26907 * treepr.adb: Call routines to print out additional fields if present
26908
26909 2005-01-03 Arnaud Charlet <charlet@adacore.com>
26910
26911 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
26912 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
26913
26914 * Makefile.in: Add support to build shared Ada libraries on solaris x86
26915 Remove gpr2make, replaced by gprmake.
26916 Remove references to gnatmem and libaddr2line.
26917 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
26918 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
26919 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
26920 a-numaux-darwin.ads and a-numaux-darwin.adb
26921 Enable mlib-tgt-lynxos.adb on lynxos.
26922
26923 * Make-lang.in: Remove rules for gpr2make.
26924 When generating sdefault.adb, do not call Relocate_Path
26925 on S3 for function Target_Name, as it is not a path.
26926 Remove references to gnatmem and libaddr2line.
26927
26928 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
26929 files.
26930
26931 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
26932
26933 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
26934 address is incompatible with its base type alignment constraints when
26935 this can be decided statically.
26936
26937 2005-01-03 Olivier Hainque <hainque@adacore.com>
26938
26939 * decl.c (compatible_signatures_p): New function. The intended purpose
26940 is to check if two function signatures for a call-site and a callee are
26941 compatible enough for the call to be valid. The underlying purpose is
26942 to check if a call to a mapped builtin is using the right interface.
26943 The current code actually does not check antyhing - this a placeholder
26944 for future refinements.
26945 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
26946 builtin calls for convention Intrinsic.
26947
26948 * gigi.h (builtin_decl_for): Declare (new function).
26949
26950 * utils.c (gnat_install_builtins): Install the target specific builtins.
26951 (builtin_decl_for): New function, provide a dummy body for now.
26952
26953 2005-01-03 Geert Bosch <bosch@adacore.com>
26954
26955 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
26956 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
26957 (Pred): Implement in terms of Succ.
26958
26959 * trans.c (convert_with_check): Reimplement conversion of float to
26960 integer.
26961
26962 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26963 Vincent Celier <celier@adacore.com>
26964
26965 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
26966 bounds can be negative, and must be declared Int, not Nat.
26967
26968 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
26969 array is checked after using the index in the array.
26970
26971 * makegpr.adb (Add_Switches): Check if there is a package for the
26972 processor. If there is no package, do not look for switches.
26973
26974 2005-01-03 Ed Schonberg <schonberg@adacore.com>
26975
26976 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
26977 generation of predefined stream operations (specs and bodies) should
26978 proceed. Under various restrictions these subprograms must not be
26979 generated.
26980
26981 2005-01-03 Thomas Quinot <quinot@adacore.com>
26982
26983 * exp_dist.adb:
26984 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
26985 amount of PCS-specific code in RACW stubs generation.
26986 (Copy_Specification): Set Etype on copied formal parameter entities, as
26987 this information is needed for PolyORB stubs generation.
26988 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
26989 variable Dynamic_Async.
26990 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
26991 (Build_RPC_Receiver_Specification): Make generic again, as recent
26992 changes have allowed RPC receivers to have the same profile for both
26993 variants of the PCS.
26994 Reorganise RPC receiver generation to reduce differences between the
26995 structure of GARLIC and PolyORB RPC receivers.
26996 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
26997 PCS-specific.
26998 Simplify elaboration code for RCI packages.
26999
27000 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27001 generation to reduce differences between the structure of GARLIC and
27002 PolyORB RPC receivers.
27003
27004 * s-stratt.adb: Fix typo in comment.
27005
27006 2005-01-03 Thomas Quinot <quinot@adacore.com>
27007
27008 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27009 copied from Make_Init_Call).
27010
27011 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27012 reads and assignments on a temporary variable declared with appropriate
27013 discriminants.
27014
27015 2005-01-03 Robert Dewar <dewar@adacore.com>
27016
27017 * i-c.adb (To_C): Raise CE if string is null and Append_Null
27018
27019 2005-01-03 Robert Dewar <dewar@adacore.com>
27020
27021 * i-cstrin.adb (Update): Do not append a null in form called with a
27022 String. This avoids unintended behavior.
27023
27024 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27025
27026 PR ada/17527
27027 * init.c: Fix warnings on Free BSD section.
27028
27029 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27030
27031 PR ada/16949
27032 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27033 xsinfo.adb).
27034
27035 2005-01-03 Vincent Celier <celier@adacore.com>
27036
27037 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27038 libraries when Unique_Compile is True (-u switch).
27039 (Gnatmake): ditto.
27040
27041 2005-01-03 Robert Dewar <dewar@adacore.com>
27042
27043 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27044 upper case letter or underscore after W, as allowed by spec.
27045
27046 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27047
27048 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27049 darwin port by using proper type definitions from header files.
27050 Use SIGTERM instead of SIGABRT for SIGADAABORT.
27051
27052 2005-01-03 Robert Dewar <dewar@adacore.com>
27053
27054 * par.adb: Enhance error message handling for configuration file
27055 pragmas.
27056
27057 2005-01-03 Robert Dewar <dewar@adacore.com>
27058
27059 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27060 removed during the previous update (test properly for case of dividing
27061 largest negative number by -1, which generates overflow).
27062
27063 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27064 Sergey Rybin <rybin@adacore.com>
27065
27066 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
27067 to use as the defining identifier for a formal package.
27068 (Remove_Parent): If the instance takes place within (an instance of)
27069 a sibling, preserve private declarations of common parent.
27070
27071 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27072
27073 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
27074 to determine whether one of the operands is a fixed-point type for
27075 which a user-defined multiplication or division operation might be
27076 defined.
27077
27078 * sem_res.adb (Valid_Conversion): The legality rules for conversions
27079 of access types are symmetric in Ada 2005: either designated type can
27080 be unconstrained.
27081
27082 2005-01-03 Vincent Celier <celier@adacore.com>
27083
27084 * s-fileio.adb (Temp_File_Record): Change length of string component
27085 Name from L_tmpnam + 1 to max_path_len + 1.
27086
27087 2005-01-03 Arnaud Charlet <charlet@adacore.com>
27088
27089 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
27090 Self_Id.Deferral_Level = 0.
27091 (Do_Pending_Action): Move this function to the spec.
27092
27093 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
27094 Do_Pending_Action explicitely when needed, in case we're using
27095 No_Abort restrictions.
27096
27097 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
27098 deferral level since it will not get changed by the generated code.
27099 Keeping a default value of 1 would prevent some operations (e.g.
27100 select or delay) to proceed successfully.
27101
27102 2005-01-03 Ben Brosgol <brosgol@adacore.com>
27103 Robert Dewar <dewar@adacore.com>
27104 Cyrille Comar <comar@adacore.com>
27105
27106 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
27107 porting guide chapter (vms version).
27108 Revised doc title (removed "for native platforms") and subtitle.
27109 Add discussion on warning flag for obsolescent features. First we
27110 note that it applies to obsolete GNAT features, which was previously
27111 omitted. Second we contrast the behavior with that of the new
27112 Ada 2005 AI-368 restriction No_Obsolescent_Features.
27113 Preliminary rewriting of GNAT & libraries chapter in order to take
27114 into account default project locations & new project manager
27115 capabilities.
27116
27117 2005-01-03 Robert Dewar <dewar@adacore.com>
27118
27119 * cstand.adb (Create_Operators): Clean up format and documentation of
27120 unary and binary operator result tables. No change in code, just
27121 reformatting and addition of comments.
27122
27123 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
27124 sem_ch2.adb: Minor reformatting
27125
27126 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
27127 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
27128 comments for Tree_Read and Tree_Write.
27129
27130 2005-01-03 Pascal Obry <obry@adacore.com>
27131
27132 * exp_attr.ads: Minor reformatting.
27133
27134 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
27135
27136 * comperr.adb (Compiler_Abort): Add specialized message for GAP
27137 versions.
27138
27139 2005-01-03 Ed Schonberg <schonberg@adacore.com>
27140
27141 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
27142 whether the ancestor type is private, as may be the case with nested
27143 instantiations.
27144
27145 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
27146
27147 PR ada/19128
27148 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
27149
27150 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
27151
27152 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
27153 * utils2.c (build_unary_op): Likewise.
27154
27155 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27156
27157 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
27158
27159 2004-12-19 Richard Henderson <rth@redhat.com>
27160
27161 * trans.c (gigi): Update gimplify_body call.
27162
27163 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
27164
27165 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
27166
27167 2004-12-07 Ed Falis <falis@adacore.com>
27168
27169 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
27170 current task being suspended.
27171
27172 * init.c (__gnat_clear_exception): added to reset VxWorks exception
27173 count.
27174 (__gnat_map_signal): removed test for current task being suspended.
27175
27176 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27177
27178 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
27179 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
27180 targets (such as AAMP).
27181
27182 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27183
27184 * atree.adb (Visit_Itype): Create a new name for the generated itype,
27185 because the back-end may otherwise treat it as a redefinition of the
27186 old symbol.
27187
27188 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
27189
27190 * back_end.adb (Scan_Back_End_Switches): Accept --param.
27191
27192 * lang-specs.h: Accept --param.
27193
27194 2004-12-07 Vincent Celier <celier@adacore.com>
27195
27196 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
27197 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
27198 Current_Body_Suffix => Ada_Body_Suffix).
27199 Take into account Externally_Built attribute.
27200
27201 * clean.adb (In_Extension_Chain): Always return False when one of the
27202 parameter is No_Project.
27203 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
27204 Ada_Language_Index).
27205 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
27206 Process_Languages for procedure Parse).
27207
27208 * gnatcmd.adb (Carg_Switches): New table.
27209 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
27210 Adapt to name changes in package Prj (Current_Spec_Suffix =>
27211 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
27212
27213 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
27214 Header_Num and function Hash are now declared in package Prj,
27215 not Prj.Com.
27216
27217 * prj.adb (Suffix_Of): New function.
27218 (Set (Suffix)): New procedure.
27219 (Hash): One function moved from Prj.Com
27220 (Is_Present, Language_Processing_Data_Of): New functions
27221 (Set): Two new procedures
27222 (Add_Language_Name, Display_Language_Name): New procedures
27223
27224 * prj.ads: (Suffix_Of): New function
27225 (Set (Suffix)): New procedure
27226 Add several types and tables for multi-language support.
27227 (Header_Num): Type moved from Prj.Com
27228 (Hash): Two functions moved from Prj.Com
27229 (Is_Present, Language_Processing_Data_Of): New functions
27230 (Set): Two new procedures
27231 (Add_Language_Name, Display_Language_Name): New procedures
27232 (Naming): Component name changes:
27233 Current_Spec_Suffix => Ada_Spec_Suffix,
27234 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
27235 Impl_Suffixes, Supp_Suffixes.
27236 (Project_Data): New components: Externally_Built, Supp_Languages,
27237 First_Language_Processing, Supp_Language_Processing, Default_Linker,
27238 Default_Linker_Path.
27239
27240 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
27241 new package Language_Processing with its attributes (Compiler_Driver,
27242 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
27243 Binder_Driver, Default_Linker).
27244
27245 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
27246 (Header_Num): Type moved to package Prj
27247
27248 * prj-env.adb: Adapt to name changes in package Prj
27249 (Current_Spec_Suffix => Ada_Spec_Suffix,
27250 Current_Body_Suffix => Ada_Body_Suffix).
27251
27252 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
27253 default to the project path, except the "-" is one of the directories
27254 in env var ADA_PROJECT_PATH.
27255 (Current_Project_Path): Global variable, replacing Project_Path
27256 that was in the body of Prj.Part.
27257 (Project_Path): New function
27258 (Set_Project_Path): New procedure
27259 Initialize Current_Project_Path during elaboration of the package
27260 Remove dependency on Prj.Com, no longer needed
27261
27262 * prj-ext.ads (Project_Path): New function
27263 (Set_Project_Path): New procedure
27264
27265 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
27266 suffix is defined for language <lang>.
27267 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
27268 accessing directly the components of Naming.
27269 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
27270 Reorganise of this package.
27271 Break procedure Check in several procedures.
27272
27273 * prj-nmsc.ads: Replace all procedures (Ada_Check,
27274 Other_Languages_Check and Language_Independent_Check) with a single
27275 procedure Check.
27276
27277 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
27278 Process_Languages, no longer needed.
27279
27280 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
27281 Current_Project_Path.
27282 Remove elaboration code, moved to the body of Prj.Ext
27283 Use new function Prj.Ext.Project_Path instead of old variable
27284 Project_Path.
27285 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
27286 When comparing with project paths on the stack, first put the resolved
27287 path in canonical case.
27288 (Parse_Single_Project): Set the path name of the project file in the
27289 tree to the normalized path.
27290
27291 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
27292 parameter Process_Languages, no longer needed.
27293 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
27294 Other_Languages_Check.
27295
27296 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
27297 to store the resolved canonical path of the project file.
27298 Remove dependency to Prj.Com, no longer needed
27299
27300 * prj-util.adb: Adapt to name changes in package Prj
27301 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
27302 Ada_Body_Suffix).
27303
27304 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
27305 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
27306 Externally_Built, Include_Option, Language_Processing.
27307
27308 * makegpr.adb: Numerous changes due to changes in packages
27309 Prj and Prj.Nmsc.
27310
27311 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
27312 default to the project path, except whe "-" is one of the directories
27313 in env var ADA_PROJECT_PATH.
27314 (Gnatls): In verbose mode, add the new section "Project Search Path:"
27315
27316 2004-12-07 Robert Dewar <dewar@adacore.com>
27317
27318 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
27319
27320 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
27321 set -gnatR3m mode.
27322
27323 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
27324 flag. No longer needed now that we handle this in gnat1drv.adb.
27325
27326 * repinfo.ads: Minor reformatting
27327
27328 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27329 Olivier Hainque <hainque@adacore.com>
27330 Eric Botcazou <ebotcazou@adacore.com>
27331
27332 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
27333 TYPE_SIZE_UNIT of result type if SIZE is not specified.
27334 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
27335 of a bitfield, which we know is useless and causes trouble because of
27336 alignment implications.
27337
27338 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
27339 BSS sections.
27340 (process_attributes): Clear DECL_COMMON again when a section attribute
27341 is present.
27342 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
27343 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
27344 (create_field_decl): Special case ADDRESSABLE negative to mean
27345 "no bitfield creation", to be used by make_aligning_type. Don't
27346 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
27347 fields claimed addressable still have to be bitfields. Use
27348 value_factor_p instead of a raw binop construction to check for the
27349 position's alignment.
27350
27351 2004-12-07 Geert Bosch <bosch@adacore.com>
27352
27353 * eval_fat.adb: Revert previous change.
27354
27355 2004-12-07 Thomas Quinot <quinot@adacore.com>
27356 Ed Schonberg <schonberg@adacore.com>
27357
27358 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
27359 with an implicit dereference as its prefix, use
27360 Insert_Explicit_Dereference instead of merely rewriting the prefix into
27361 an explicit dereference. This ensures that a reference to the original
27362 prefix is generated, if appropriate.
27363
27364 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
27365 dereference is rewritten to an explicit one, generate a reference to
27366 the entity denoted by its prefix using the original prefix node, so
27367 the dereference can be properly recorded as a read of the denoted
27368 access value, if appropriate.
27369
27370 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
27371 emitting 'assigned but never read' warning on a variable on the basis
27372 that it has an access type.
27373 (Check_References): Emit unreferenced warning when the scope is a
27374 subprogram body.
27375
27376 2004-12-07 Robert Dewar <dewar@adacore.com>
27377 Ed Schonberg <schonberg@adacore.com>
27378
27379 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
27380 intrinsic
27381
27382 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
27383 leaving call unchanged.
27384 This deals with the case where the pragma Import specified
27385 an external name, to be handled by the back end.
27386
27387 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
27388 subprogram which is Imported with convention Intrinsic if an
27389 External_Name argument is specified.
27390 (Process_Import_Or_Interface): Properly diagnose link name argument.
27391 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
27392 with Sem_Ch6.Cannot_Inline.
27393 (Process_Inline): Provide separate warning for inapplicable inline
27394 pragma.
27395 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
27396 treatment is uniform on different targets.
27397
27398 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27399
27400 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
27401 construct is rewritten, preserve end label to permit source navigation.
27402
27403 2004-12-07 Thomas Quinot <quinot@adacore.com>
27404
27405 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
27406 Specific_Build_Stub_Target): New subprograms.
27407 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
27408 the PCS implementation used, using the above PCS-customized subprograms.
27409 Minor reformatting.
27410 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
27411 for generation of DSA code targeted to the PolyORB PCS.
27412 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
27413 implementation of the partition communication subsystem in ancillary
27414 subprograms.
27415 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
27416 PolyORB_Support.Build_Stub_Type): New subrograms containing the
27417 PCS-specific part of Add_Stub_Type.
27418 (Insert_Partition_Check): Use runtime library function to perform
27419 E.4(19) check.
27420
27421 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
27422 (RE_Same_Partition): New entity, from s-parint.
27423
27424 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
27425
27426 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27427
27428 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
27429 Output the copyright message on a separate line from the version
27430 message.
27431
27432 2004-12-07 Joel Brobecker <brobecker@adacore.com>
27433
27434 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
27435 compile-time warning.
27436
27437 2004-12-07 Robert Dewar <dewar@adacore.com>
27438
27439 * g-regpat.adb: (Match): Change a misuse of or to or else
27440
27441 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27442
27443 * lib-xref.adb:
27444 (Generate_Reference): Handle properly a reference to an entry formal,
27445 when an accept statement has a pragma Unreferenced for it.
27446
27447 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
27448 and the Has_Pragma_Unreferenced flag for each formal before analyzing
27449 the body, to ensure that warnings are properly emitted for each accept
27450 statement of a given task entry.
27451
27452 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
27453
27454 * Makefile.in: Add support for foreign threads on VMS.
27455
27456 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27457
27458 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
27459 Remove.
27460 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
27461
27462 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
27463
27464 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
27465 exception.
27466 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
27467
27468 2004-12-07 Robert Dewar <dewar@adacore.com>
27469
27470 * nlists.adb (Prepend_Debug): Remove parameters and nest within
27471 Prepend.
27472 (Remove_Next_Debug): Same fix
27473
27474 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
27475 maintain back pointers now, though we did not used to, and comments
27476 were out of date).
27477 (Prepend): Remove pragma Inline.
27478 (Remove_Next): Same cleanup
27479
27480 2004-12-07 Thomas Quinot <quinot@adacore.com>
27481
27482 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
27483 used to record an implicit dereference as a read operation on its
27484 prefix when operating under -gnatc. Necessary to avoid spurious
27485 'variable assigned but never read' warnings in that mode.
27486 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
27487 is a non-overloaded implicit dereference, call the above subprogram to
27488 ensure proper recording of references.
27489
27490 2004-12-07 Gary Dismukes <dismukes@adacore.com>
27491
27492 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
27493 to be resolved later as part of Analyze_Iteration_Scheme's call to
27494 Make_Index.
27495
27496 2004-12-07 Ed Schonberg <schonberg@adacore.com>
27497
27498 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
27499 prefix is not a scalar type, place error message on prefix, not on
27500 type entity.
27501
27502 2004-12-07 Bernard Banner <banner@adacore.com>
27503
27504 * vxaddr2line.adb: Add support for x86 vxworks
27505
27506 2004-12-07 Thomas Quinot <quinot@adacore.com>
27507
27508 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
27509 documentation of the behaviour of these functions when passed an IP
27510 address that has no record in the system hosts database and no reverse
27511 record in the DNS.
27512
27513 * cstand.adb, a-tags.ads: Fix typos in comment.
27514
27515 2004-12-07 Robert Dewar <dewar@adacore.com>
27516
27517 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
27518 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
27519 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
27520 s-poosiz.ads: Minor reformatting
27521
27522 * make.adb: Minor reformatting
27523 Add some ??? comments asking for more comments
27524
27525 * s-poosiz.adb: Minor reformatting
27526 Add comments on alignment requirement
27527
27528 * sinfo.ads: Remove obsolete comment and fix typo.
27529
27530 2004-12-07 Vincent Celier <celier@adacore.com>
27531 Sergey Rybin <rybin@adacore.com>
27532
27533 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
27534 Files" with the new tool and package names.
27535 Reformatting to suppress most of the warnings for line too long
27536 Document the new section "Project Search Path:" in the output of
27537 gnatls -v.
27538 Add gnatmetric section
27539
27540 2004-12-07 Vincent Celier <celier@adacore.com>
27541
27542 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
27543 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
27544 and -eit to -ept. Added qualifier
27545 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
27546
27547 2004-11-27 Andreas Schwab <schwab@suse.de>
27548
27549 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
27550
27551 2004-11-25 Arnaud Charlet <charlet@adacore.com>
27552
27553 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
27554 internal implementation unit GNAT.Sockets.Thin,
27555 as their usage for sockets is non-portable (using the read and write
27556 functions from the system runtime library is fine on UNIX but won't
27557 work under Windows).
27558
27559 * mingw32.h: Update copyright notice.
27560
27561 2004-11-25 Arnaud Charlet <charlet@adacore.com>
27562
27563 * ada-tree.h: Minor reformatting of previous change to avoid lines
27564 longer than 79 characters.
27565
27566 2004-11-25 Olivier Hainque <hainque@adacore.com>
27567
27568 * tb-gcc.c: GCC infrastructure based implementation of
27569 __gnat_backtrace.
27570
27571 2004-11-24 Steven Bosscher <stevenb@suse.de>
27572
27573 * misc.c (gnat_post_options): Don't clear
27574 flag_inline_functions.
27575
27576 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
27577
27578 PR ada/17986
27579 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
27580 tree.
27581
27582 2004-11-21 Andreas Jaeger <aj@suse.de>
27583
27584 * stylesw.adb: Change Style_Check_Subprogram_Order to
27585 Style_Check_Order_Subprograms.
27586
27587 2004-11-18 Arnaud Charlet <charlet@adacore.com>
27588
27589 * adaint.h, adaint.c
27590 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
27591 to avoid warnings.
27592 Add also a cast to kill another warning.
27593 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
27594 parameter with the priority class of the parent process instead of
27595 always using the NORMAL_PRIORITY_CLASS.
27596 (__gnat_dup): New function.
27597 (__gnat_dup2): New function.
27598 (__gnat_is_symbolic_link): Enable the effective body of this
27599 function when __APPLE__ is defined.
27600
27601 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
27602 Update comments.
27603
27604 2004-11-18 Olivier Hainque <hainque@adacore.com>
27605
27606 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
27607 address of which may be used to represent "others" and "all others"
27608 choices in exception tables, instead of the current harcoded
27609 (void *)0 and (void *)1.
27610 (Setup_Exception): Do nothing in the GNAT SJLJ case.
27611
27612 * gigi.h (others_decl, all_others_decl): New decls representing the
27613 new Others_Value and All_Others_Value objects.
27614 (struct attrib): Rename "arg" component as "args", since GCC expects a
27615 list of arguments in there.
27616
27617 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
27618 corresponding objects exported by a-exexpr, instead of hardcoded dummy
27619 addresses.
27620
27621 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
27622 others_decl and all_others_decl instead of hardcoded dummy addresses
27623 to represent "others" and "all others" choices, which is cleaner and
27624 more flexible with respect to the possible eh pointer encoding policies.
27625
27626 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
27627 (process_attributes): Account for the naming change of the "args"
27628 attribute list entry component.
27629
27630 * decl.c (build_attr_list): Rename into prepend_attributes to allow
27631 cumulating attributes for different entities into a single list.
27632 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
27633 attributes for the current entity and propagate first subtype
27634 attributes to other subtypes.
27635 <E_Procedure>: Attribute arguments are attr->args and not
27636 attr->arg any more.
27637 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
27638 argument provided, as this is what GCC expects. Use NULL_TREE instead
27639 of 0 for trees.
27640
27641 2004-11-18 Robert Dewar <dewar@adacore.com>
27642
27643 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
27644 Minor reformatting througout (including new function specs)
27645 Add ??? comments asking for clarification.
27646
27647 2004-11-18 Thomas Quinot <quinot@adacore.com>
27648
27649 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
27650 incomplete duplicate implementation of this subprogram from butil.
27651
27652 2004-11-18 Thomas Quinot <quinot@adacore.com>
27653
27654 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
27655 procedures factors the common processing for building an RPC receiver
27656 for an RCI package or an RACW type.
27657 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
27658 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
27659 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
27660 in use.
27661 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
27662 Add_RACW_Features.
27663 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
27664 Add_RAST_Features.
27665 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
27666 distribution subprogram identifiers that are either subprogram numbers
27667 or strings.
27668 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
27669 string distribution identifiers assigned to a given subprogram.
27670 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
27671 (Add_RAS_Dereference_TSS): Add comments.
27672 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
27673 is not referenced yet because it will be used by the PolyORB DSA
27674 implementation.
27675 (Insert_Partition_Check): Remove fossile code.
27676 (First_RCI_Subprogram_Id): Document this constant.
27677 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
27678 RAS_Access TSS.
27679 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
27680 replaced with calls to Get_Library_Unit_Name_String. Previously there
27681 were several instances of the same code in different locations in the
27682 compiler; this checkin completes the replacement of all of these
27683 instances with calls to a common subprogram.
27684 Minor reformatting.
27685
27686 * sem_dist.adb: Remove comment noting that RPC receiver generation
27687 should be disabled for RACWs that implement RASs.
27688 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
27689
27690 * sem_util.ads, sem_util.adb (Has_Stream): New function
27691 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
27692 qualified name of a library unit into the name buffer.
27693 (Note_Possible_Modification): Generate a reference only
27694 if the context comes from source.
27695
27696 * snames.ads (PCS_Names): New subtype corresponding to names of
27697 supported implementations of the Partition Communication Subsystem
27698 (PCS) (i.e. the runtime library support modules for the distributed
27699 systems annex).
27700
27701 2004-11-18 Robert Dewar <dewar@adacore.com>
27702 Ed Schonberg <schonberg@adacore.com>
27703
27704 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
27705 (Has_Rep_Pragma): New function
27706 (Has_Attribute_Definition_Clause): New function
27707 (Record_Rep_Pragma): Moved here from sem_ch13.adb
27708 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
27709
27710 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
27711
27712 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
27713 (Expand_Pragma_Psect_Object): New procedure
27714 These procedures contain the revised and cleaned up processing for
27715 these two pragmas. This processing was formerly in Sem_Prag, but
27716 is more appropriately moved here. The cleanup involves making sure
27717 that the pragmas are properly attached to the tree, and that no
27718 nodes are improperly shared.
27719
27720 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
27721 pragmas to Exp_Prag, which is more appropriate.
27722 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
27723 check for duplicates Remove use of Is_Psected flag, no longer needed.
27724 Use new Make_String_Literal function with string.
27725
27726 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
27727 that are functions return universal values, that have to be converted
27728 to the context type.
27729 Use new Make_String_Literal function with string.
27730 (Get_Stream_Convert_Pragma): New function, replaces the use of
27731 Get_Rep_Pragma, which had to be kludged to work in this case.
27732
27733 * freeze.adb: Use new Has_Rep_Pragma function
27734
27735 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27736 function with string.
27737 Use new Has_Rep_Pragma function.
27738
27739 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27740 string argument.
27741
27742 2004-11-18 Robert Dewar <dewar@adacore.com>
27743
27744 * errout.ads, errout.adb: (First_Sloc): New function
27745
27746 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27747 check (-gnatyx) instead of being included as a redundant construct
27748 warning.
27749
27750 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
27751 Style_Check_Order_Subprograms.
27752
27753 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
27754 stylesw.adb: Add Style_Check_Xtra_Parens
27755
27756 * usage.adb: Add line for -gnatyx (check extra parens)
27757
27758 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
27759
27760 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27761 Robert Dewar <dewar@adacore.com>
27762
27763 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
27764 discriminant of a constrained subtype, analyze the copy of the
27765 corresponding constraint, because in some cases it may be only
27766 partially analyzed.
27767 Removes long-lived ??? comments.
27768
27769 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
27770 handled controlled or secondary-stack expressions within the
27771 iteration_scheme of a loop.
27772
27773 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
27774 bounds that may contain functions calls, to prevent memory leaks when
27775 the bound contains a call to a function that uses the secondary stack.
27776 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
27777 generate temporaries for loop bounds that might contain function calls
27778 that require secondary stack and/or finalization actions.
27779
27780 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
27781 selected component and the selector is overloadable (not just a
27782 function) treat as function call, Analyze_Call will disambiguate if
27783 necessary.
27784 (Analyze_Selected_Component): Do not generate an actual subtype for the
27785 selected component if expansion is disabled. The actual subtype is only
27786 needed for constraint checks.
27787 (Analyze_Allocator): If restriction No_Streams is set, then do
27788 not permit objects to be declared of a stream type, or of a
27789 composite type containing a stream.
27790
27791 * restrict.ads: Remove the a-stream entry from Unit_Array, since
27792 No_Streams no longer prohibits with'ing this package.
27793
27794 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
27795 discriminants, but the parent base has unknown discriminants, there is
27796 no discriminant constraint to inherit. Such a discrepancy can arise
27797 when the actual for a formal type with unknown discriminants is a
27798 similar private type whose full view has discriminants.
27799 (Analyze_Object_Declaration): If restriction No_Streams is set, then
27800 do not permit objects to be declared of a stream type, or of a
27801 composite type containing a stream.
27802
27803 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27804
27805 * exp_dbug.ads: Update documentation to reflect simpler encoding for
27806 protected operations.
27807
27808 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
27809 generated name, it complicates decoding in gdb and hinders debugging
27810 of protected operations.
27811 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
27812 flag for the protected entry barrier function.
27813 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
27814 flag for the protected entry function.
27815
27816 2004-11-18 Nicolas Setton <setton@adacore.com>
27817
27818 * expect.c: Define __unix__ when __APPLE__ is defined.
27819
27820 * Makefile.in: Inform the value of the variable GMEM_LIB in the
27821 Darwin-specific section.
27822
27823 * lang-specs.h: Change the placement of the %1 marker.
27824 Works around the fact that gcc adds -fPIC by default under Darwin.
27825
27826 2004-11-18 Ed Schonberg <schonberg@adacore.com>
27827
27828 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
27829 type of the object with the packed array type, set the Analyzed flag
27830 on the object if it is an entity or simple indexed component, to avoid
27831 spurious type errors.
27832
27833 2004-11-18 Gary Dismukes <dismukes@adacore.com>
27834
27835 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
27836 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
27837 separate line from the version message.
27838
27839 2004-11-18 Ed Falis <falis@adacore.com>
27840
27841 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
27842 vthreads.
27843 (init_float): Eliminate initialization of floating point status for
27844 AE653. The instructions have no effect for vThreads.
27845
27846 2004-11-18 Vincent Celier <celier@adacore.com>
27847
27848 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
27849 gnatbind is invoked with -shared.
27850
27851 2004-11-18 Jose Ruiz <ruiz@adacore.com>
27852
27853 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
27854 for Detect_Blocking which is redundant with the check done within the
27855 procedure Protected_Single_Entry_Call.
27856 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
27857 Detect_Blocking which is redundant with the check done within the
27858 procedure Protected_Single_Entry_Call.
27859
27860 2004-11-18 Vincent Celier <celier@adacore.com>
27861
27862 * makegpr.adb (Compile): Put the compiling switches (in package
27863 Compiler and on the command line) immediately after "-c", instead of
27864 at the end of the command line invocation of the compiler, when
27865 compiling a non-Ada file.
27866 (Build_Global_Archive): When there is no need to rebuild the archive,
27867 set Global_Archive_Exists, so that the archive is passed to the linker
27868 if one is needed.
27869
27870 2004-11-18 Robert Dewar <dewar@adacore.com>
27871 Sergey Rybin <rybin@adacore.com>
27872
27873 * gnat_ugn.texi:
27874 Remove extra paren check from list of checks for redundant constructs
27875 Add documentation of new -gnatyx style check (check extra parens)
27876 Remove paragraph about gnatelim debug options.
27877
27878 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
27879 objects rather than forbidding dependencies on the package Ada.Streams.
27880
27881 * sinfo.ads: Add ??? note that we should document pragmas passed to
27882 back end.
27883
27884 * g-expect.ads: Fix a few typos in the comments.
27885
27886 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
27887
27888 * misc.c (gnat_handle_option): Use %< and %> for quoting in
27889 warning message.
27890
27891 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27892
27893 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
27894
27895 2004-11-07 Andreas Schwab <schwab@suse.de>
27896
27897 * Makefile.in (install-gnatlib): Remove spurious hyphen.
27898
27899 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
27900
27901 PR ada/18228
27902 * Makefile.in (darwin): Set soext to .dylib.
27903
27904 2004-10-26 Vincent Celier <celier@gnat.com>
27905 Thomas Quinot <quinot@act-europe.fr>
27906
27907 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
27908 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
27909 there is no use of GNAT.Sockets.Constants.
27910 Remove remaining pragma Import for C_Write
27911 Remove C_Read and C_Write from internal implementation unit
27912 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
27913 the read and write functions from the system runtime library is fine
27914 on UNIX but won't work under Windows).
27915
27916 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
27917 (Check_Selector): Use C_Recv instead of C_Read.
27918 Selectors are the GNAT.Sockets abstraction to perform a select()
27919 call on a set of descriptors. To allow abortion of an ongoing
27920 select operation, some data is written to a dedicated socket that
27921 is always monitored.
27922 Under Windows, the write and read library functions cannot operate
27923 on sockets, so we need to use send and recv instead, which is portable
27924 across all supported platforms.
27925
27926 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
27927 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
27928 (using the read and write functions from the system runtime library is
27929 fine on UNIX but won't work under Windows).
27930
27931 2004-10-26 Nicolas Setton <setton@act-europe.fr>
27932
27933 * mlib-tgt-darwin.adb: New file.
27934
27935 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27936 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27937 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27938 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
27939 subprogram body.
27940
27941 * Makefile.in: Add support for building shared libraries under Darwin.
27942 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
27943 the low level EH init subprogram to be called from __gnat_initialize.
27944
27945 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
27946 indicates which options to pass to the archive indexer.
27947
27948 * mlib-utl.adb: Add support for calling ranlib with additional
27949 options. This is needed for instance under Mac OS X.
27950 (Ranlib_Options): New global variable, used to store the potential
27951 options to pass to ranlib.
27952 (Ar): Use Ranlib_Options when spawning ranlib.
27953 (Initialize): Set the value of ranlib option.
27954
27955 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27956
27957 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
27958 instead of 8K, to reflect the real potential needs for stack-checking
27959 in the ZCX case.
27960
27961 2004-10-26 Pascal Obry <obry@gnat.com>
27962
27963 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
27964
27965 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
27966 Windows only the initial thread stack size can be set so it is good to
27967 start we a low stack size.
27968 The OS will adjust the size as needed.
27969
27970 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
27971 Nicolas Setton <setton@act-europe.fr>
27972
27973 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
27974 "__unix__" instead of "unix".
27975 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
27976 sections were just mistakenly ignored. The former is
27977 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
27978 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
27979 of hpux. This prevents an unwanted definition of the symbol
27980 convert_addresses in adaint.o.
27981
27982 2004-10-26 Gary Dismukes <dismukes@gnat.com>
27983
27984 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
27985 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
27986
27987 2004-10-26 Cyrille Comar <comar@act-europe.fr>
27988
27989 * a-filico.ads, a-filico.adb: fix incorrect header.
27990
27991 2004-10-26 Javier Miranda <miranda@gnat.com>
27992
27993 * a-ststio.ads: Fix typo in identifier
27994
27995 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
27996
27997 * sem_ch4.adb: Minor reformatting.
27998
27999 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28000
28001 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28002 enabled, check the result of unary and binary operations when the
28003 expression is the right-hand side of an assignment.
28004
28005 2004-10-26 Vincent Celier <celier@gnat.com>
28006
28007 * clean.adb (Delete): Do not output warnings when in quiet output and
28008 not in verbose mode.
28009 (Force_Deletions): New Boolean flag, defaulted to False
28010 (Delete): Only delete a file if it is writable, and when
28011 Force_Deletions is True.
28012 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28013 (Usage): Line for new switch -f
28014 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28015 own.
28016
28017 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28018
28019 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28020 JM type only if its size matches that of the wrapper. When a size is
28021 prescribed and the field is not aliased, remove the wrapper of a JM
28022 type only if the size is not greater than that of the packed array.
28023 (gnat_to_gnu_entity): Change the extension of packed array wrappers
28024 from LJM to JM.
28025
28026 2004-10-26 Geert Bosch <bosch@gnat.com>
28027
28028 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28029 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28030 (Pred): Implement in terms of Succ.
28031
28032 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28033
28034 * exp_aggr.adb (Safe_Component): An aggregate component that is an
28035 unchecked conversion is safe for in-place use if the expression of the
28036 conversion is safe.
28037 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28038 be expandable in place even if the aggregate does not come from source.
28039 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28040 designated object of an allocator in place, rather than building it
28041 first on the stack. The previous scheme forces a full copy of the array,
28042 and may be altogether unsusable if the size of the array is too large
28043 for stack allocation.
28044
28045 2004-10-26 Robert Dewar <dewar@gnat.com>
28046
28047 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28048 compares if the component is atomic.
28049
28050 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28051 array assignment if the component type is atomic.
28052
28053 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28054 Eric Botcazou <ebotcazou@act-europe.fr>
28055
28056 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28057 is aliased and is a by_reference type, do not pass by copy.
28058 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28059 detect whether the call is in the right side of an assignment or
28060 the expression of an object declaration. Recurse on component
28061 association within aggregates.
28062 Call it in the condition that determines whether the temporary is
28063 necessary for correct stack-checking.
28064
28065 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28066
28067 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
28068 RACW_Type, used in the PolyORB version.
28069 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
28070 version and the GARLIC version.
28071
28072 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
28073 Rename RCI_Info to RCI_Locator for better consistency between the
28074 GARLIC and PolyORB versions of the distributed systems annex.
28075 (DSA_Implementation_Name): This enumeration lists the possible
28076 implementations of the Partition Communication Subsystem for the
28077 Distributed Systems Annex (DSA). The three available implementations
28078 are the dummy stub implementation (No_DSA), and two versions based on
28079 two different distribution runtime libraries: GARLIC and PolyORB. Both
28080 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
28081 technology.
28082 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
28083 that organization.
28084
28085 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
28086 between the GARLIC and PolyORB versions of the distributed systems
28087 annex.
28088 Remove RE_Unbounded_Reclaim_Pool since it is unused.
28089
28090 2004-10-26 Gary Dismukes <dismukes@gnat.com>
28091
28092 * gnat1drv.adb: Suppress calling the back end when
28093 Frontend_Layout_On_Target is true.
28094
28095 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28096
28097 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
28098 Set_Read_Only): New subprograms.
28099 These new routines allow the user to set or unset the Owner execute
28100 and Owner write permission flags on a file.
28101
28102 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
28103 GNAT.OS_Lib.Set_Executable instead of rolling our own.
28104
28105 2004-10-26 Matthew Gingell <gingell@gnat.com>
28106
28107 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
28108
28109 2004-10-26 Pascal Obry <obry@gnat.com>
28110
28111 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
28112 memory before the faulting page we properly test the process read
28113 access for this address using appropriate Win32 routine.
28114 (HPUX sections): guard with "__hpux__" instead of "hpux".
28115
28116 2004-10-26 Robert Dewar <dewar@gnat.com>
28117
28118 * lib-xref.adb (Generate_Reference): Don't complain about reference to
28119 entry parameter if pragma Unreferenced set, since we do not properly
28120 handle the case of multiple parameters.
28121
28122 2004-10-26 Vincent Celier <celier@gnat.com>
28123
28124 * prj-env.adb: (Contains_ALI_Files): New Boolean function
28125 (Ada_Objects_Path.Add): For a library project, add to the object path
28126 the library directory only if there is no object directory or if the
28127 library directory contains ALI files.
28128 (Set_Ada_Paths.Add.Recursive_Add): Ditto
28129
28130 2004-10-26 Vincent Celier <celier@gnat.com>
28131
28132 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
28133 extension of library projects.
28134
28135 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
28136 path defaults to ".:<prefix>/lib/gnat".
28137 (Parse): For an extending all project, allow direct import of a project
28138 that is virtually extended.
28139
28140 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
28141 the specified name is directly imported, return its ID. Otherwise, if
28142 an extension of this project is imported, return the ID of the
28143 extension.
28144
28145 2004-10-26 Robert Dewar <dewar@gnat.com>
28146
28147 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
28148 (Sub3): New procedure, used by Scaled_Divide
28149 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
28150 correct more than one instance of failure to propagate carries
28151 correctly.
28152 (Double_Divide): Handle overflow case of largest negative number
28153 divided by minus one.
28154
28155 * s-arit64.ads (Double_Divide): Document that overflow can occur in
28156 the case of a quotient value out of range.
28157 Fix comments.
28158
28159 2004-10-26 Robert Dewar <dewar@gnat.com>
28160
28161 * s-bitops.adb (Bit_Eq): Remove redundant check.
28162
28163 * s-bitops.ads: Minor comment updates
28164 Change some occurrences of Address to System.Address
28165
28166 * s-carsi8.ads: Fix minor cut-and-paste error in comments
28167
28168 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28169
28170 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
28171 accessibility check to prefix that is a protected operation.
28172
28173 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28174
28175 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
28176 empty, post message on stub.
28177
28178 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28179 Javier Miranda <miranda@gnat.com>
28180
28181 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
28182 current instance appears within a unit that is directly in the context
28183 of the main unit.
28184 Used to determine whether the body of the instance should be analyzed
28185 immediately after its spec, to make its subprogram bodies available
28186 for front-end inlining.
28187 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
28188 constraint is not allowed on the component type (AARM 12.5.3(3))
28189
28190 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28191
28192 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
28193 'Storage_Pool): enhance, document & limit detection of non-sharable
28194 internal pools.
28195
28196 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
28197
28198 * s-pooglo.ads: Add more documentation now that this pool is properly
28199 documented.
28200
28201 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28202
28203 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
28204 or protected type with discriminants, do not constrain the
28205 corresponding record type if the subtype declaration has no
28206 discriminant constraints. This can be the case in source code, or in
28207 the subtype declaration created to rename an actual type within an
28208 instantiation.
28209
28210 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28211
28212 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
28213 different kind of stub (possibly wrong name for file), do not check
28214 for conformance.
28215 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
28216 includes call to some function that returns an unconstrained type, do
28217 not inline.
28218
28219 2004-10-26 Ed Schonberg <schonberg@gnat.com>
28220
28221 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
28222 appear in the code for the main unit. Dependencies among units in the
28223 context of the main unit are established when those other units are
28224 compiled. Otherwise spurious elaboration constraints can generate
28225 incorrect elaboration circularities.
28226
28227 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
28228 Ed Schonberg <schonberg@gnat.com>
28229
28230 * sem_util.adb (Is_Aliased_View): Defend against the case where this
28231 subprogram is called with a parameter that is not an object name. This
28232 situation arises for some cases of illegal code, which is diagnosed
28233 later, and in this case it is wrong to call Is_Aliased, as that might
28234 cause a compiler crash.
28235 (Explain_Limited_Type): Refine previous fix to include
28236 inherited components of derived types, to provide complete information.
28237
28238 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
28239 is the prival for a protected object.
28240 It is necessary to mark this entity as a variable, in addition to
28241 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
28242 modified to avoid checking the Aliased flag on entities that are not
28243 objects. (Checking that flag for non-objects is erroneous and could
28244 lead to a compiler crash).
28245
28246 2004-10-26 Robert Dewar <dewar@gnat.com>
28247
28248 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
28249 X_Frac = 0.5, then we know that the number X must be positive.
28250 (Succ): Remove the same redundant test, and also fix the primary test
28251 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
28252 Minor reformatting
28253 (Decompose): Add fuller comments to spec
28254
28255 2004-10-26 Pascal Obry <obry@gnat.com>
28256
28257 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
28258 validity (process must have read access). Set to 0 in all other cases.
28259 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
28260 violation on Win32.
28261 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
28262 segmentation violation.
28263
28264 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28265
28266 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
28267 whose type is a constructed subtype of an aliased object with an
28268 unconstrained nominal subtype, convert the actual to the constructed
28269 subtype before taking its address.
28270
28271 2004-10-26 Vincent Celier <celier@gnat.com>
28272
28273 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
28274 (Is_Path_Name_Case_Sensitive): New function
28275
28276 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
28277 (Base_Name, Simple_Name, Current_Directory, Compose,
28278 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
28279 the result.
28280
28281 2004-10-26 Cyrille Comar <comar@act-europe.fr>
28282 Vasiliy Fofanov <fofanov@act-europe.fr>
28283 Vincent Celier <celier@gnat.com>
28284
28285 * gnat_ugn.texi: Generalize "finding memory problems" section into a
28286 "memory management issues" section and document some of the useful
28287 memory pools provided as part of the GNAT library.
28288 Remove "virtual" from declaration of A::method2 in
28289 the simple example of Ada/C++ mixed system.
28290 Library Projects may be virtually extended: their virtual extensions
28291 are not Library Projects.
28292 Added section on extending project hierarchies.
28293
28294 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
28295
28296 * adaint.c (__gnat_get_libraries_from_registry): Cast value
28297 to LPBYTE.
28298 (__gnat_portable_spawn): Remove const.
28299
28300 * mingw32.h (MAXPATHLEN): Check for previous definition.
28301
28302 2004-10-17 Matthias Klose <doko@debian.org>
28303
28304 * gnatvsn.ads: Set gnat library version to 4.0.
28305
28306 2004-10-05 Vincent Celier <celier@gnat.com>
28307
28308 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
28309
28310 2004-10-04 Laurent Guerby <laurent@guerby.net>
28311
28312 PR ada/15156
28313 * Makefile.in: Define and use RANLIB_FLAGS.
28314
28315 2004-10-04 Pascal Obry <obry@gnat.com>
28316
28317 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
28318 other x86 platforms).
28319
28320 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28321
28322 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
28323 in general and triggers stack alignment adjustment for thread entry
28324 points on targets where this is necessary.
28325
28326 2004-10-04 Bernard Banner <banner@gnat.com>
28327
28328 PR ada/13897
28329 * Makefile.in: Add section for powerpc linux
28330 Add variant i-vxwork-x86.ads
28331
28332 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
28333
28334 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
28335
28336 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
28337 table registration calls when need be. Ensures no reference to the crt
28338 ctors symbol are issued in the SJLJ case, which avoids possible
28339 undefined symbol errors in the case of modules to be statically linked
28340 with the kernel.
28341
28342 2004-10-04 Javier Miranda <miranda@gnat.com>
28343
28344 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
28345 in-line the code corresponding to subprogram Analyze_Actuals. In
28346 addition, analyze the actuals only in case of subprogram call.
28347
28348 2004-10-04 Ed Falis <falis@gnat.com>
28349
28350 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
28351
28352 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
28353
28354 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
28355 in the documentation.
28356
28357 2004-10-04 Robert Dewar <dewar@gnat.com>
28358
28359 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
28360 IF and CASE.
28361 (Analyze_Block_Statement): Add circuitry to detect following dead code
28362 (Check_Unreachable_Code): Handle case of block exit
28363
28364 2004-10-04 Robert Dewar <dewar@gnat.com>
28365
28366 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
28367 (XMatchD): Avoid warning for Logic_Error call
28368
28369 2004-10-04 Robert Dewar <dewar@gnat.com>
28370
28371 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
28372 consider expressions buried within a procedure actual to be an actual.
28373 This caused some blowups with uses of packed slices within a procedure
28374 actual.
28375
28376 2004-10-04 Robert Dewar <dewar@gnat.com>
28377
28378 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
28379 longer need to be initialized to zero.
28380 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
28381 initialized to zero.
28382
28383 * checks.adb (Expr_Known_Valid): Packed arrays are now always
28384 considered valid, even if the representation is modular. That's correct
28385 now that we no longer initialize packed modular arrays to zero.
28386
28387 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
28388 suffixes. These are now documented as the only cases in which the
28389 debugger ignores outer records.
28390 Previously, the spec allowed arbitrary suffixes for this purpose.
28391 Change name of LJM to JM for packed array pad records
28392 Create separate section on packed array handling, and add a whole new
28393 set of comments to this section describing the situation with packed
28394 modular types and justification requirements depending on endianness.
28395
28396 2004-10-04 Robert Dewar <dewar@gnat.com>
28397
28398 * a-except.adb: Add a comment for last change
28399
28400 * einfo.ads: Minor spelling correction in comment
28401
28402 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
28403
28404 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
28405 messages.
28406
28407 * sem_util.ads: Minor comment update
28408
28409 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28410
28411 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
28412 Inline_Always when in Configurable_Run_Time mode.
28413
28414 * sem_prag.adb (Process_Convention): If entity is an inherited
28415 subprogram, apply convention to parent subprogram if in same scope.
28416 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
28417 when in Configurable_Run_Time mode.
28418
28419 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28420
28421 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
28422 class_wide type after component list has been inherited.
28423
28424 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28425
28426 * sem_ch12.adb (Check_Generic_Actuals): New predicate
28427 Denotes_Previous_Actual, to handle properly the case of a private
28428 actual that is also the component type of a subsequent array actual.
28429 The visibility status of the first actual is not affected when the
28430 second is installed.
28431 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
28432 make fully recursive the treatment of formals of packages declared
28433 with a box.
28434 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
28435 the above on exit from an instantiation.
28436 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
28437 current instantiation which is now complete.
28438 (Analyze_Package_Instantiation): No instantiated body is needed if the
28439 main unit is generic. Efficient, and avoid anomalies when a instance
28440 appears in a package accessed through rtsfind.
28441
28442 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28443
28444 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
28445 do not generate a declaration for a temporary if the call is part of a
28446 library-level instantiation.
28447
28448 2004-10-04 Ed Schonberg <schonberg@gnat.com>
28449
28450 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
28451 searching for a limited component to flag.
28452
28453 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
28454 expansion of Input, to account for the fact that the implicit call
28455 generated by the attribute reference must freeze the user-defined
28456 stream subprogram. This is only relevant to 'Input, because it can
28457 appear in an object declaration, prior to the body of the subprogram.
28458
28459 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
28460 expansion can proceed and further errors uncovered.
28461 (Minor clean up): Fix cases of using | instead of \ for continuation
28462 messages.
28463
28464 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28465
28466 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
28467
28468 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
28469 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
28470 Use gcc_assert and gcc_unreachable.
28471
28472 * decl.c (gnat_to_gnu_entity, case object): Check and process a
28473 specified alignment before validating size.
28474 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
28475 stripped-down declaration for the type of the inner field when making
28476 a JM type.
28477
28478 * utils.c (finish_record_type): Do not compute the size in units
28479 incrementally. Instead compute it once for the rep clause case.
28480 Use gcc_assert and gcc_unreachable.
28481
28482 2004-10-04 Vincent Celier <celier@gnat.com>
28483
28484 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
28485 in file name.
28486 (Is_Valid_Path_Name): Take '/' as a directory separator.
28487
28488 2004-10-04 Vincent Celier <celier@gnat.com>
28489
28490 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
28491 (Extended_Project) only if Extended_Project is defined, to avoid
28492 assertion error.
28493 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
28494 resolved path.
28495 (Parse_Single_Project): Ditto.
28496
28497 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
28498 Add_To_Project_Path for virtual projects.
28499
28500 2004-10-04 Vincent Celier <celier@gnat.com>
28501
28502 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28503 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28504 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
28505 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
28506 parameter Options_2.
28507
28508 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
28509 Build_Dynamic_Library with an empty Options_2.
28510
28511 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
28512 default anymore.
28513
28514 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
28515 directory separator, if any.
28516 (Gprmake): Do not allow mains on the command line for library projects.
28517 Do not attempt to link when the project is a library project.
28518 (Library_Opts): New table to store Library_Options.
28519 (Build_Library): If Library_Options is specified, pass these options
28520 when building a shared library.
28521
28522 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28523
28524 * s-tposen.adb (Service_Entry): The object must be always unlocked at
28525 the end of this procedure now that the unlock operation was inserted
28526 by the expander.
28527
28528 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28529
28530 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
28531 corresponding to the Preallocated_Stacks flags in System.
28532 (Get_Target_Parameters): Including the processing for
28533 Preallocated_Stacks.
28534
28535 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
28536 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
28537 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
28538 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
28539 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
28540 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
28541 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
28542 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
28543 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
28544 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
28545 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
28546 used to signal whether the compiler creates the required stacks and
28547 descriptors for the different tasks (when True) or it is done by the
28548 underlying operating system at run time (when False).
28549 It is initially set to False in all targets.
28550
28551 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
28552 if it is supported by the target.
28553 (Make_Task_Create_Call): Pass the stack address if it has been
28554 previously created. Otherwise pass a Null_Address.
28555
28556 * snames.adb: Add _stack.
28557
28558 * snames.ads: Add Name_uStack. Required to allow the expander to
28559 statically allocated task stacks.
28560
28561 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
28562 Stack_Address argument.
28563 Check that its value is equal to Null_Address because this target does
28564 not support the static stack allocation.
28565
28566 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28567
28568 * usage.adb: Change "pragma inline" to "pragma Inline" in information
28569 and error messages
28570
28571 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28572
28573 * exp_dist.adb: Split declaration of asynchronous flag out of
28574 Add_RACW_Read_Attribute.
28575 Minor reformatting for better alignment with PolyORB version.
28576 Store the entity for the asynchronous flag of an RACW, rather than the
28577 expression, in the asynchronous flags table. This will allow this flag
28578 to be used in other subprograms beside Add_RACW_Read_Attribute.
28579
28580 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
28581
28582 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
28583 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28584 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
28585 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
28586 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
28587 sockets constant MSG_NOSIGNAL (Linux-specific).
28588 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
28589 all Send operations.
28590 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
28591 from trigerring SIGPIPE.
28592 Rename components to avoid clash with Ada 2005 possible reserved
28593 word 'interface'.
28594 (Check_Selector): When the select system call returns with an error
28595 condition, propagate Socket_Error to the caller.
28596
28597 2004-10-01 Jan Hubicka <jh@suse.cz>
28598
28599 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
28600
28601 2004-09-23 Robert Dewar <dewar@gnat.com>
28602
28603 PR ada/17540
28604 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
28605 instead do this at freeze time (we won't do it if there is an address
28606 clause).
28607 Change "pragma inline" to "pragma Inline" in information and error
28608 messages.
28609 Minor reformatting.
28610
28611 * freeze.adb (Check_Address_Clause): Remove previous change, not the
28612 right way of doing things after all.
28613 (Freeze_Entity): For object, set Is_Public for imported entities
28614 unless there is an address clause present.
28615
28616 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
28617
28618 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
28619 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
28620 ensures proper handling of types with rep clauses, which might have
28621 their TYPE_SIZE set already.
28622
28623 2004-09-21 Robert Dewar <dewar@gnat.com>
28624
28625 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
28626 packed array types in both little- and big-endian cases. This change
28627 ensures that we no longer count on the unused bits being initialized
28628 for such types (and in particular ensures that equality testing will
28629 only read the relevant bits).
28630 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28631 These changes mean that we no longer need to initialize small packed
28632 arrays.
28633 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
28634 optimization to an LJM field as to its parent field.
28635
28636 * ada-tree.h, trans.c, utils.c, utils2.c:
28637 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28638
28639 2004-09-20 Jan Hubicka <jh@suse.cz>
28640
28641 * utils.c (gnat_finalize): Remove.
28642 (end_subprog_body): Directly call cgraph_finalize_function;
28643 do not lower the nested functions.
28644
28645 2004-09-20 Robert Dewar <dewar@gnat.com>
28646
28647 PR ada/17540
28648 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
28649 if an address clause is present, since that means that the Import
28650 should be ignored.
28651
28652 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
28653
28654 * 5tsystem.ads: Removed, no longer used.
28655
28656 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
28657 Zack Weinberg <zack@codesourcery.com>
28658
28659 * ada-tree.def: Use tree_code_class enumeration constants
28660 instead of code letters.
28661 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
28662 Update for new tree-class enumeration constants.
28663
28664 2004-09-17 Vincent Celier <celier@gnat.com>
28665
28666 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
28667 capabilities of the general project manager.
28668
28669 2004-09-09 Vincent Celier <celier@gnat.com>
28670
28671 * a-direct.ads: Add pragma Ada_05
28672 (Directory_Entry_Type): Give default value to component Kind to avoid
28673 not initialized warnings.
28674
28675 * a-direct.adb (Current_Directory): Remove directory separator at the
28676 end.
28677 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
28678 an existing directory.
28679 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
28680 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
28681 Convert the result to File_Size.
28682
28683 * prj.ads: (Project_Error): New exception
28684
28685 * prj-attr.adb: Except in procedure Initialize, Fail comes from
28686 Prj.Com, not from Osint.
28687 (Attrs, Package_Attributes): Tables moved to private part of spec
28688 (Add_Attribute, Add_Unknown_Package): Moved to new child package
28689 Prj.Attr.PM.
28690 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28691 Prj.Project_Error after call to Fail.
28692 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
28693 Fail. Check that package name is not already in use.
28694
28695 * prj-attr.ads: Comment updates to indicate that all subprograms may be
28696 used by tools, not only by the project manager, and to indicate that
28697 exception Prj.Prj_Error may be raised in case of problem.
28698 (Add_Unknown_Package, Add_Attribute): Moved to new child package
28699 Prj.Attr.PM.
28700 (Attrs, Package_Attributes): Table instantiations moved from the body to
28701 the private part to be accessible from Prj.Attr.PM body.
28702
28703 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
28704 from new package Prj.Attr.PM.
28705 (Parse_Attribute_Declaration): Call Add_Attribute from new package
28706 Prj.Attr.PM.
28707
28708 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
28709
28710 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
28711 instead of Elaboration_Checks).
28712
28713 * a-calend.adb: Minor reformatting
28714
28715 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28716
28717 * gigi.h (maybe_pad_type): New declaration.
28718 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
28719
28720 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
28721
28722 * cuintp.c: Convert to use buildN.
28723
28724 * decl.c (maybe_pad_type): No longer static.
28725 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
28726 target pointer.
28727 Convert to use buildN.
28728
28729 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
28730 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
28731 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28732 RHS.
28733 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28734 (gnat_gimplify_expr, case ADDR_EXPR): New case.
28735 Convert to use buildN.
28736
28737 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28738 TREE_READONLY for const.
28739 Convert to use buildN.
28740
28741 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28742 (create_var_decl): Refine when TREE_STATIC is set.
28743 Convert to use buildN.
28744
28745 2004-09-09 Gary Dismukes <dismukes@gnat.com>
28746
28747 * gnat_ugn.texi: Delete text relating to checking of ali and object
28748 consistency.
28749
28750 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
28751 routines.
28752
28753 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
28754
28755 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
28756 pragmas recognized by GNAT.
28757
28758 * gnat_rm.texi: Document pragma Detect_Blocking.
28759
28760 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
28761 raise Program_Error if called from a protected operation.
28762
28763 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
28764 the protected action nesting level.
28765 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
28766 protected action nesting level.
28767 (Unlock): When pragma Detect_Blocking is active decrease the protected
28768 action nesting level.
28769
28770 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
28771 Protected_Action_Nesting.
28772
28773 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
28774 Common_ATCB record. It contains the dynamic level of protected action
28775 nesting for each task. It is needed for checking whether potentially
28776 blocking operations are called from protected operations.
28777 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
28778 Detect_Blocking is active or not in the partition.
28779
28780 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
28781 raise Program_Error if called from a protected operation.
28782 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
28783 Program_Error if called from a protected operation.
28784 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
28785 Program_Error if called from a protected operation.
28786
28787 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
28788 raise Program_Error if called from a protected operation.
28789
28790 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
28791 raise Program_Error if called from a protected operation, and increase
28792 the protected action nesting level.
28793 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
28794 Program_Error if called from a protected operation, and increase the
28795 protected action nesting level.
28796 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
28797 protected action nesting level.
28798
28799 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
28800 raise Program_Error if called from a protected operation, and increase
28801 the protected action nesting level.
28802 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
28803 Program_Error if called from a protected operation, and increase the
28804 protected action nesting level.
28805 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
28806 raise Program_Error if called from a protected operation.
28807 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
28808 active, raise Program_Error if called from a protected operation.
28809 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
28810 protected action nesting level.
28811
28812 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
28813 insertion of the statement raising Program_Error. The run time
28814 contains the required machinery for handling that.
28815
28816 * sem_util.ads: Change comment associated to procedure
28817 Check_Potentially_Blocking_Operation.
28818 This procedure does not insert a call for raising the exception because
28819 that is currently done by the run time.
28820
28821 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
28822
28823 * init.c: Add the global variable __gl_detect_blocking that indicates
28824 whether pragma Detect_Blocking is active (1) or not (0). Needed for
28825 making the pragma available at run time.
28826 (__gnat_set_globals): Pass and update the detect_blocking parameter.
28827
28828 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
28829 pragma Detect_Blocking is active.
28830
28831 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
28832
28833 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
28834 DB is found in the ali file. Any unit compiled with pragma
28835 Detect_Blocking active forces its effect in the whole partition.
28836
28837 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
28838 Detect_Blocking is active and delay is called from a protected
28839 operation.
28840
28841 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
28842 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
28843 Detect_Blocking is active (0 otherwise).
28844 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
28845 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
28846 otherwise).
28847
28848 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
28849
28850 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
28851 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
28852 package.
28853
28854 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
28855 (Register_Receiving_Stub): Add Subp_Info formal parameter.
28856 Update API in placeholder implemetation of s-parint to reflect changes
28857 in distribution runtime library.
28858
28859 * sem_ch3.adb (Expand_Derived_Record): Rename to
28860 Expand_Record_Extension.
28861
28862 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
28863 primitive operations of potentially distributed object types that have
28864 non-controlling anonymous access formals.
28865
28866 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
28867 subprogram.
28868 New implementation of expansion for remote access-to-subprogram types,
28869 based on the RACW infrastructure.
28870 This version of sem_dist is compatible with PolyORB/DSA as well as
28871 GLADE.
28872
28873 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
28874 Asynchrronous that applies to a remote access-to-subprogram type, mark
28875 the underlying RACW type as asynchronous.
28876
28877 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
28878 __gnat_using_gnu_linker to 1.
28879
28880 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
28881 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
28882 GNAT.Perfect_Hash_Generators, and remove the empty
28883 GNAT.Perfect_Hash package.
28884
28885 * atree.adb: Minor reformatting
28886
28887 * exp_ch3.adb (Expand_Derived_Record): Rename to
28888 Expand_Record_Extension.
28889 (Build_Record_Init_Proc.Build_Assignment): The default expression in
28890 a component declaration must remain attached at that point in the
28891 tree so New_Copy_Tree copies it if the enclosing record type is derived.
28892 It is therefore necessary to take a copy of the expression when building
28893 the corresponding assignment statement in the init proc.
28894 As a side effect, in the case of a derived record type, we now see the
28895 original expression, without any rewriting that could have occurred
28896 during expansion of the ancestor type's init proc, and we do not need
28897 to go back to Original_Node.
28898
28899 * exp_ch3.ads (Expand_Derived_Record): Rename to
28900 Expand_Record_Extension.
28901
28902 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
28903 Returns the RACW type used to implement a remote access-to-subprogram
28904 type.
28905 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
28906 New subprograms. Used to create a proxy tagged object for a remote
28907 subprogram. The proxy object is used as the designated object
28908 for RAS values on the same partition (unless All_Calls_Remote applies).
28909 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
28910 System.Partition_Interface.Get_Unique_Remote_Pointer.
28911 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
28912 Renamed from Add_RAS_*_Attribute.
28913 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
28914 subprograms.
28915 New implementation of expansion for remote access-to-subprogram types,
28916 based on the RACW infrastructure.
28917
28918 * exp_dist.ads (Copy_Specification): Update comment to note that this
28919 function can copy the specification from either a subprogram
28920 specification or an access-to-subprogram type definition.
28921
28922 2004-09-09 Ed Schonberg <schonberg@gnat.com>
28923
28924 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
28925 in an instance, between an explicit subprogram an one inherited from a
28926 type derived from an actual.
28927
28928 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
28929 add a polling call if the subprogram is to be inlined by the back-end,
28930 to avoid repeated calls with multiple inlinings.
28931
28932 * checks.adb (Apply_Alignment_Check): If the expression in the address
28933 clause is a call whose name is not a static entity (e.g. a dispatching
28934 call), treat as dynamic.
28935
28936 2004-09-09 Robert Dewar <dewar@gnat.com>
28937
28938 * g-trasym.ads: Minor reformatting
28939
28940 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
28941 packed arrays, since unused bits are expected to be zero for a
28942 comparison.
28943
28944 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
28945
28946 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
28947 comment.
28948
28949 2004-09-09 Pascal Obry <obry@gnat.com>
28950
28951 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
28952 enable map file generation. Add the right option to generate the map
28953 file if Map_File is set to True.
28954
28955 * gnatdll.adb (Gen_Map_File): New variable.
28956 (Syntax): Add info about new -m (Map_File) option.
28957 (Parse_Command_Line): Add support for -m option.
28958 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
28959 Minor reformatting.
28960
28961 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
28962
28963 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
28964 new gnatdist implementation.
28965 Define a subpackage isolating the output routines specific to this
28966 verbose mode.
28967
28968 2004-09-09 Joel Brobecker <brobecker@gnat.com>
28969
28970 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
28971
28972 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
28973
28974 2004-09-09 Cyrille Comar <comar@act-europe.fr>
28975
28976 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
28977 internal unit.
28978
28979 * opt.ads: Add Ada_Version_Runtime constant used to decide which
28980 version of the language is used to compile the run time.
28981
28982 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
28983
28984 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
28985 of variable length temporaries for function return now that the
28986 back-end and gigi support it.
28987
28988 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28989
28990 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
28991
28992 * trans.c (struct stmt_group): Delete field GLOBAL.
28993 (gnat_init_stmt_group): Do not initialize it.
28994 (call_to_gnu): Use save_expr, not protect_multiple_eval.
28995 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
28996 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
28997 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
28998 (start_stmt_group): Likewise.
28999 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29000
29001 * utils2.c (ggc.h): Include.
29002 (build_call_raise): Call build_int_cst, not build_int_2.
29003
29004 * utils.c (gnat_init_decl_processing): Fix arg to
29005 build_common_tree_nodes.
29006 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29007 (gnat_define_builtin): Set built_in_decls.
29008 (init_gigi_decls): Call build_int_cst, not build_int_2.
29009
29010 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29011 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29012 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29013 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29014 SET_TYPE_MODULE): Use them.
29015 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29016 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29017 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29018 SET_TYPE_ADA_SIZE): Likewise.
29019 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29020 (DECL_CONST_CORRESPONDING_VAR,
29021 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29022 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29023 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29024 (TYPE_RM_SIZE_NUM): New macro.
29025 (TYPE_RM_SIZE): Modified to use above.
29026
29027 * cuintp.c: (build_cst_from_int): New function.
29028 (UI_To_gnu): Use it.
29029
29030 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29031 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29032 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29033 MIN_EXPR for the size, copy it into new.
29034
29035 2004-09-01 Robert Dewar <dewar@gnat.com>
29036
29037 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29038 packed indexed component where array is an IN OUT formal. This
29039 generated garbage code previously.
29040
29041 * gnat_ugn.texi: Document -fverbose-asm
29042
29043 * gnat-style.texi: Minor updates (note that boolean constants and
29044 variables are joined with AND/OR rather than short circuit forms).
29045
29046 2004-09-01 Ed Schonberg <schonberg@gnat.com>
29047
29048 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29049 it is an upward conversion of an untagged type with no representation
29050 change.
29051
29052 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
29053
29054 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29055 System.Partition_Interface.
29056
29057 * checks.adb (Apply_Access_Checks): Do not generate checks when
29058 expander is not active (but check for unset reference to prefix of
29059 dereference).
29060
29061 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29062 pragma Debug as an if statement with a constant condition, for
29063 consistent treatment of entity references contained within the
29064 enclosed procedure call.
29065
29066 2004-09-01 Vincent Celier <celier@gnat.com>
29067
29068 * bindgen.adb: (Set_EA_Last): New procedure
29069 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
29070 Set_EA_Last.
29071 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
29072 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
29073 linked without errors.
29074 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
29075 ST and EA.
29076 (Gen_Exception_Table_C): Correct same bugs
29077
29078 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
29079
29080 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
29081 on Windows, make sure that the drive letter is in upper case.
29082
29083 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
29084 Windows, when the drive letter is added and Case_Sensitive is True, the
29085 drive letter is forced to upper case.
29086
29087 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
29088 to Options_2 for the call to MLib.Utl.Gcc.
29089
29090 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
29091 directory separator when defining BASE_DIR.
29092
29093 2004-09-01 Pascal Obry <obry@gnat.com>
29094
29095 * gprcmd.adb (Extend): Do not output trailing directory separator. This
29096 is not needed and it confuses Windows GNU/make which does not report
29097 directory terminated by a slash as a directory.
29098 (gprcmd): Idem for "pwd" internal command.
29099
29100 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
29101 target names rewrite to fix regressions with recent version of
29102 GNU/make. Starting with GNU/make 3.80 the pipe character was not
29103 handled properly anymore.
29104
29105 2004-09-01 Andreas Schwab <schwab@suse.de>
29106
29107 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
29108 * raise.c [!IN_RTS]: Undef abort.
29109
29110 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
29111
29112 * utils2.c (build_allocator): Use ssize_int.
29113
29114 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
29115
29116 2004-08-27 Andreas Schwab <schwab@suse.de>
29117
29118 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
29119
29120 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29121 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29122
29123 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
29124
29125 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29126
29127 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
29128 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29129 * utils.c (init_gigi_decls): Likewise.
29130 * utils2.c (build_call_raise, build_allocator): Likewise.
29131
29132 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
29133
29134 * utils.c (gnat_init_decl_processing): Adjust
29135 build_common_tree_nodes call.
29136
29137 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
29138
29139 * utils2.c (build_allocator): Use build_int_cst for negative
29140 size types.
29141
29142 2004-08-18 Richard Henderson <rth@redhat.com>
29143
29144 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
29145
29146 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
29147
29148 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
29149 call.s
29150 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
29151 (gnat_to_gnu): Likewise.
29152
29153 2004-08-16 Pascal Obry <obry@gnat.com>
29154
29155 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
29156 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
29157 option and not mdll anymore. Update comment.
29158
29159 2004-08-16 Pascal Obry <obry@gnat.com>
29160
29161 * bld.adb (Put_Include_Project): Properly handle directory separators
29162 on Windows.
29163
29164 2004-08-16 Ed Schonberg <schonberg@gnat.com>
29165
29166 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
29167 decreasing the number of allocated junk nodes while searching for the
29168 appropriate subprogram.
29169
29170 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
29171
29172 * cuintp.c (UI_To_gnu): Use build_int_cst..
29173 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29174 * utils.c (init_gigi_decls): Likewise.
29175 * utils2.c (build_call_raise): Likewise.
29176
29177 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
29178
29179 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
29180 for a global aliased object with a variable size and an unconstrained
29181 nominal subtype, pretend there is no initializer if the one we have is
29182 incomplete, and avoid referencing an inexistant component in there. The
29183 part we have will be rebuilt anyway and the reference may confuse
29184 further operations.
29185
29186 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
29187
29188 * einfo.ads: Minor reformatting
29189
29190 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
29191 restrictions in the ALI if we only want to warn about violations.
29192
29193 2004-08-13 Vincent Celier <celier@gnat.com>
29194
29195 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
29196 when creating a new Unit_Record in table Units.
29197
29198 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
29199 that are violated, if any.
29200
29201 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
29202 add directory separator if path already ends with a directory separator.
29203
29204 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29205
29206 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
29207 unit, this is an attempt to inline a construct that is not available in
29208 the current restricted mode, so abort rather than trying to continue.
29209
29210 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
29211 discriminants that rename those of the parent, recover names of
29212 original discriminants for the constraint on the full view of the
29213 parent.
29214 (Complete_Private_Subtype): Do not create a subtype declaration if the
29215 subtype is an itype.
29216
29217 * gnat_rm.texi: Added section on implementation of discriminated
29218 records with default values for discriminants.
29219
29220 2004-08-13 Ed Schonberg <schonberg@gnat.com>
29221
29222 PR ada/15601
29223 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
29224 the second operand is overloaded.
29225
29226 2004-08-10 Richard Henderson <rth@redhat.com>
29227
29228 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
29229 add __builtin_alloca.
29230
29231 2004-08-10 Richard Henderson <rth@redhat.com>
29232
29233 * config-lang.in (boot_language): Yes.
29234
29235 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
29236
29237 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
29238 from complaining on potential uninitialized reference.
29239 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
29240 new specification and test explicitly for non-zero return value.
29241
29242 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
29243 returning C.int, to avoid using a derived boolean type.
29244
29245 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
29246 Duplicate_Subexpr_No_Checks in preference to direct use of
29247 Remove_Side_Effects and New_Copy_Tree.
29248 Clear Comes_From_Source on prefix of 'Size attribute reference.
29249
29250 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
29251 g-socthi-vxworks.adb: Change calls to
29252 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
29253 and test explicitly for non-zero return value.
29254
29255 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
29256 (Is_Socket_In_Set): Declare imported function as returning C.int, to
29257 avoid using a derived boolean type.
29258
29259 2004-08-09 Albert Lee <lee@gnat.com>
29260
29261 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
29262
29263 2004-08-09 Pascal Obry <obry@gnat.com>
29264
29265 * gnat_ugn.texi: Document new way to build DLLs on Windows using
29266 GCC's -shared option.
29267
29268 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
29269 Options_2 parameter (options put after object files).
29270
29271 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
29272
29273 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
29274 ignore overflows on low and high bounds of an index to also account for
29275 differences in signedness between sizetype and gnu_index_subtype.
29276 These are as legitimate as the ones caused by a lower TYPE_PRECISION
29277 on sizetype.
29278
29279 2004-08-09 Robert Dewar <dewar@gnat.com>
29280
29281 * s-solita.ads, s-solita.adb: Minor reformatting
29282
29283 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
29284 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
29285 obsolescent section
29286 Add note that No_Implicit_Conditionals does not suppress
29287 run time constraint checks.
29288
29289 * vms_conv.ads: Minor reformatting
29290
29291 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
29292 and necessary for following change).
29293 (Mark): Return new format Mark_Id containing sec stack address
29294 (Release): Use sec stack address from Mark_Id avoiding Self call
29295
29296 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
29297 pointer (cleanup and necessary for following change).
29298 Define Mark_Id as record containing address of secondary stack, that way
29299 Release does not need to find the stack again, decreasing the number of
29300 calls to Self and improving efficiency.
29301
29302 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
29303
29304 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
29305 case variable into the individual case branches when possible.
29306
29307 * sem_ch11.adb: Minor reformatting
29308
29309 * prj.ads: Correct spelling of suffixs
29310
29311 * prj-nmsc.adb: Minor reformatting
29312 Correct spelling suffixs throughout (also in identifiers)
29313
29314 * freeze.adb: Minor spelling correction
29315
29316 * exp_ch2.adb: Cleanups to handling of Current_Value
29317 (no functional effect).
29318
29319 * bld.adb: Correct spelling of suffixs
29320
29321 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
29322
29323 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29324
29325 PR ada/15408
29326 * sem_ch7.adb (Install_Private_Declarations): In the body of the
29327 package or of a child, private entities are both immediately_visible
29328 and not hidden.
29329
29330 2004-08-09 Ed Schonberg <schonberg@gnat.com>
29331
29332 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
29333 there are no range checks on the value of the literal.
29334
29335 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
29336 wrapped is the triggering alternative of an asynchronous select, action
29337 statements mustbe inserted before the select itself.
29338
29339 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
29340 case where the prefix is a protected function call.
29341 (Resolve_Attribute, case 'Access): The attribute reference on a
29342 subprogram is legal in a generic body if the subprogram is declared
29343 elsewhere.
29344
29345 2004-08-09 Vincent Celier <celier@gnat.com>
29346
29347 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
29348 languages, otherwise building the library may fail with unresolved
29349 symbols.
29350 (Compile_Sources): Do not build libraries if -c switch is used
29351
29352 * gnatlink.adb (Process_Args): New switches -M and -Mmap
29353 (Write_Usage): If map file creation is supported, output new switches
29354 -M and -Mmap.
29355 (Gnatlink): When -M is specified, add the necessary switch(es) to the
29356 gcc call, when supported.
29357
29358 * Makefile.in: Added indepsw.o to the object list for gnatlink
29359 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
29360
29361 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
29362 indepsw.adb, indepsw.ads: New files.
29363
29364 2004-08-09 Bernard Banner <banner@gnat.com>
29365
29366 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
29367
29368 * Makefile.in: add section for vxworks x86
29369
29370 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
29371
29372 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
29373 per-object constrained components where the discriminant is of an
29374 Access type.
29375 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
29376 the parent initialization procedure for derived Unchecked_Unions.
29377 Instead, derived Unchecked_Unions build their own initialization
29378 procedure.
29379 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
29380 Check the body of the subprogram for details.
29381 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
29382 functions for derived Unchecked_Union types by introducing a condition.
29383 Allow the creation of TSS equality functions for Unchecked_Unions.
29384 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
29385 Add formal parameter Discr to function signature. Discr is used to
29386 control the generated case statement for Unchecked_Union types.
29387 (Make_Eq_If): Rename formal parameter Node to E in function signature.
29388
29389 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
29390 Unchecked_Unions.
29391 Check the body of the subprogram for details.
29392 (Expand_Composite_Equality): Augment composite type equality to include
29393 correct handling of Unchecked_Union components.
29394 (Expand_N_In): Add condition to detect illegal membership tests when the
29395 subtype mark is a constrained Unchecked_Union and the expression lacks
29396 inferable discriminants, and build a Raise_Program_Error node.
29397 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
29398 to detect types that contain components of unconstrained Unchecked_Union
29399 subtype. Add condition to detect equality between types that have an
29400 unconstrained Unchecked_Union component, and build a Raise_Program_Error
29401 node. Add condition to detect equality between Unchecked_Union types
29402 that lack inferable discriminants, and build a Raise_Program_Error node.
29403 Otherwise build a TSS equality function call.
29404 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
29405 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
29406 with the operand lacking inferable discriminants, and build a Raise_
29407 Program_Error node.
29408 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
29409 composite equality.
29410 (Has_Inferable_Discriminants): Implement new predicate for objects and
29411 expressions of Unchecked_Union type. Check the body of subprogram for
29412 details.
29413 (Has_Unconstrained_UU_Components): Add function
29414 Component_Is_Unconstrained_UU. It is used to detect whether a single
29415 component is of an unconstrained Unchecked_Union subtype. Add function
29416 Variant_Is_Unconstrained_UU. It is used to detect whether a single
29417 component inside a variant is of an unconstrained Unchecked_Union type.
29418
29419 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
29420 inferred discriminant values. Add condition to generate a case
29421 statement with an inferred discriminant as the switch.
29422 (Make_Component_List_Assign): Introduce a Boolean flag that determines
29423 the behaviour of the subprogram in the presence of an Unchecked_Union.
29424 Add condition to trigger the usage of the inferred discriminant value
29425 as the generated case statement switch.
29426 (Make_Field_Assign): Introduce a Boolean flag that determines the
29427 behaviour of the subprogram in the presence of an Unchecked_Union. Add
29428 condition to trigger the usage of the inferred discriminant value as
29429 the right-hand side of the generated assignment.
29430
29431 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
29432 parameter generation when dealing with Unchecked_Unions.
29433
29434 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
29435 checks for Unchecked_Unions.
29436
29437 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
29438
29439 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
29440 Raise_Program_Error nodes for the execution of Read and Write
29441 attributes of Unchecked_Union types and the execution of Input and
29442 Output attributes of Unchecked_Union types that lack default
29443 discriminant values.
29444
29445 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
29446 Unchecked_Union. Add procedure Check_Component. It is used to inspect
29447 per-object constrained components of Unchecked_Unions for being
29448 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
29449 check individual components withing a variant.
29450
29451 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
29452 comparison of Unchecked_Unions.
29453 (Resolve_Equality_OP): Remove guard that prevents equality between
29454 Unchecked_Unions.
29455
29456 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
29457 of component subtypes for Unchecked_Union components.
29458 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
29459 since it is the actual subtype.
29460
29461 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
29462 pass of Unchecked_Union subtypes as generic actuals to formal types
29463 that lack known_discriminant_parts or that are derived Unchecked_Union
29464 types, and do nothing. In any other case, produce an error message.
29465
29466 * sem_ch3.adb (Analyze_Component_Declaration): Add function
29467 Contains_POC. It determines whether a constraint uses the discriminant
29468 of an enclosing record type.
29469 Add condition to detect per-object constrained component and set the
29470 appropriate flag.
29471 (Derived_Type_Declaration): Remove guard that prevents derivation from
29472 Unchecked_Union types.
29473 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
29474 Union subtypes.
29475
29476 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
29477 references to Unchecked_Union discriminants.
29478
29479 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
29480 formal generation when dealing with Unchecked_Unions.
29481 (Set_Actual_Subtypes): Add condition to prevent generation of actual
29482 subtypes for Unchecked_Unions.
29483
29484 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
29485 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
29486 completions of discriminated partial views by Unchecked_Unions and
29487 produce an error message.
29488
29489 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29490
29491 * trans.c (struct stmt_group): New field, GLOBAL.
29492 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
29493 (struct elab_info): New struct.
29494 (elab_info_list, gnu_elab_proc_stack): New variables.
29495 (Compilation_Unit_to_gnu): New procedure.
29496 (gigi): Call it and also handle elaboration procs we've saved.
29497 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
29498 global field from parent.
29499 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
29500 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
29501 (start_stmt_group): Initialize global field from parent.
29502 (add_decl_expr): Set to global for current statement group.
29503 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
29504 post.
29505
29506 * utils.c (global_bindings_p): True when no current_function_decl; no
29507 longer check current_binding_level.
29508
29509 2004-08-09 Ben Brosgol <brosgol@gnat.com>
29510
29511 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
29512 choice.
29513
29514 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
29515
29516 2004-08-06 Andreas Schwab <schwab@suse.de>
29517
29518 * utils.c (gnat_define_builtin): Remove second parameter of
29519 make_decl_rtl.
29520 (begin_subprog_body): Likewise.
29521
29522 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
29523
29524 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
29525 optimization, not supported by the tree-ssa back-end.
29526
29527 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
29528
29529 * s-mastop-irix.adb: Update comments.
29530
29531 * a-except.adb (Exception_Information): Raise Constraint_Error if
29532 exception Id is Null_Id.
29533 This is required behavior, which is more reliably and clearly checked
29534 at the top level interface level.
29535
29536 2004-07-26 Javier Miranda <miranda@gnat.com>
29537
29538 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
29539 call if a component has no default_expression and the box is used.
29540
29541 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
29542 default_expression and you use box, it behaves as if you had declared a
29543 stand-alone object.
29544 (Resolve_Record_Aggregate): If a component has no default_expression and
29545 you use box, it behaves as if you had declared a stand-alone object.
29546
29547 * sem_ch10.adb (Install_Siblings): Do not make visible the private
29548 entities of private-with siblings.
29549
29550 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29551
29552 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
29553 for a component of an itype, set the parent pointer for analysis,
29554 there is no list in which to insert it.
29555
29556 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
29557 bona-fide renamings, not for inherited operations.
29558
29559 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
29560 actual for a formal that is an access parameter, create local
29561 finalization list even if the expression is not an aggregate.
29562
29563 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29564
29565 PR ada/16213
29566 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
29567 Diagnose properly illegal subprogram renamings that are library units.
29568
29569 2004-07-26 Ed Schonberg <schonberg@gnat.com>
29570
29571 PR ada/15588
29572 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
29573 conversion rewritten as an unchecked conversion, check that original
29574 expression is a variable.
29575
29576 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
29577 unchecked_conversion, create new node rather than rewriting in place,
29578 to preserve original construct.
29579
29580 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29581
29582 * gigi.h (gnat_expand_body): Deleted.
29583
29584 * Make-lang.in: (trans.o): Depends on function.h.
29585
29586 * misc.c: (gnat_expand_body): Moved to here.
29587
29588 * trans.c (gnat_expand_body_1): Deleted.
29589 (gnat_expand_body): Moved from here.
29590 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
29591 (add_stmt): Check for marked visited with global_bindings_p.
29592 (gnat_gimplify_expr, case COMPONENT_REF): New case.
29593 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
29594
29595 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
29596 VIEW_CONVERT_EXPR if not operation type.
29597
29598 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
29599 fat pointer.
29600
29601 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
29602 changes: reformatting of negation operators, removing unneeded
29603 inequality comparison with zero, converting equality comparisons with
29604 zero to negations, changing int/0/1 to bool/false/true, replace calls
29605 to gigi_abort with abort, and various other similar changes.
29606
29607 2004-07-26 Vincent Celier <celier@gnat.com>
29608
29609 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
29610 "setup".
29611
29612 * make.adb (Gnatmake): Fail when a library is not present and there is
29613 no object directory.
29614
29615 * mlib-prj.adb (Check_Library): No need to check if the library needs
29616 to be rebuilt if there is no object directory, hence no object files
29617 to build the library.
29618
29619 * opt.ads (Setup_Projects): New Boolean flag.
29620
29621 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
29622 Location.
29623 Create directory when Kind /= "" and in "gnat setup". Report error if
29624 directory cannot be created.
29625 (Ada_Check): Create library interface copy dir if it does not exist
29626 and we are in "gnat setup".
29627 (Find_Sources): No error if in "gnat setup" and no Ada sources were
29628 found.
29629 (Language_Independent_Check): Create object directory, exec directory
29630 and/or library directory if they do not exist and we are in
29631 "gnat setup".
29632
29633 * vms_conv.ads: (Command_Type): New command Setup.
29634
29635 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
29636
29637 * vms_data.ads: Add qualifiers/switches for new built-in command
29638 "setup".
29639
29640 2004-07-25 Richard Henderson <rth@redhat.com>
29641
29642 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
29643 DECL_IGNORED_P on RESULT_DECL.
29644
29645 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
29646
29647 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
29648 allocation and potentially overflowing update with
29649 Tailored_Exception_Information. Use the sec-stack free procedural
29650 interface to output Exception_Information instead.
29651
29652 * a-except.adb (To_Stderr): New subprogram for character, and string
29653 version moved from a-exextr to be visible from other separate units.
29654 (Tailored_Exception_Information): Remove the procedural version,
29655 previously used by the default Last_Chance_Handler and not any more.
29656 Adjust various comments.
29657
29658 * a-exexda.adb: Generalize the exception information procedural
29659 interface, to minimize the use of secondary stack and the need for
29660 local buffers when the info is to be output to stderr:
29661 (Address_Image): Removed.
29662 (Append_Info_Character): New subprogram, checking for overflows and
29663 outputing to stderr if buffer to fill is of length 0.
29664 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
29665 (Append_Info_Address, Append_Info_Exception_Name,
29666 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
29667 Append_Info_Basic_Exception_Traceback,
29668 Append_Info_Exception_Information): New subprograms.
29669 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
29670 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
29671 Exception_Info_Maxlength, Exception_Name_Length,
29672 Exception_Message_Length): New subprograms.
29673 (Exception_Information): Use Append_Info_Exception_Information.
29674 (Tailored_Exception_Information): Use
29675 Append_Info_Basic_Exception_Information.
29676 Export services for the default Last_Chance_Handler.
29677
29678 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
29679 other separate units.
29680
29681 2004-07-20 Vincent Celier <celier@gnat.com>
29682
29683 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
29684
29685 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29686
29687 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
29688 emit itype references for the designated types of component types that
29689 are declared outside of the full record declaration, and that may
29690 denote a partial view of that record type.
29691
29692 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29693
29694 PR ada/15607
29695 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
29696 which is the designated type in an access component declaration, to the
29697 list of incomplete dependents of the parent type, to avoid elaboration
29698 issues with out-of-scope subtypes.
29699 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
29700 full view of the parent.
29701
29702 2004-07-20 Ed Schonberg <schonberg@gnat.com>
29703
29704 PR ada/15610
29705 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
29706 entities that are hidden, such as references to generic actuals
29707 outside an instance.
29708
29709 2004-07-20 Javier Miranda <miranda@gnat.com>
29710
29711 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
29712 support to the new notation.
29713 (Analyze_Selected_Component): Add call to Try_Object_Operation.
29714
29715 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
29716
29717 * s-taprob.adb: Adding the elaboration code required for initializing
29718 the tasking soft links that are common to the full and the restricted
29719 run times.
29720
29721 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
29722 restricted run time has been moved to the package
29723 System.Soft_Links.Tasking.
29724
29725 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
29726 restricted run time has been moved to the package
29727 System.Soft_Links.Tasking.
29728
29729 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
29730
29731 * s-solita.ads, s-solita.adb: New files.
29732
29733 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29734
29735 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29736 Case_Statement_to_gnu): Split off from gnat_to_gnu.
29737 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29738 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29739 Exception_Handler_to_gnu_zcx): Likewise.
29740
29741 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
29742
29743 * gigi.h (builtin_function): Declare.
29744
29745 2004-07-15 Robert Dewar <dewar@gnat.com>
29746
29747 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29748 reformatting
29749
29750 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
29751 access values as an example of a warning.
29752
29753 * gnat_rm.texi: Document new attribute Has_Access_Values
29754
29755 * gnat-style.texi: Document that box comments belong on nested
29756 subprograms
29757
29758 * sem_util.ads (Has_Access_Values): Improved documentation
29759
29760 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
29761
29762 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
29763 (Process_Interface_Name): Call to this new procedure
29764 (Set_Extended_Import_Export_External_Name): Call to this new procedure
29765
29766 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
29767
29768 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
29769
29770 * einfo.ads: Minor comment typo fixed
29771
29772 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
29773
29774 * snames.adb: Add _atcb.
29775
29776 * snames.ads: Add Name_uATCB.
29777
29778 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
29779 (in the expanded code) when using the restricted run time.
29780
29781 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
29782 a in parameter in order to allow ATCBs to be preallocated (in the
29783 expanded code).
29784
29785 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
29786 order to allow ATCBs to be preallocated. In case of error, the ATCB is
29787 deallocated in System.Tasking.Stages.
29788
29789 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
29790 order to allow ATCBs to be preallocated.
29791
29792 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
29793 here. It was previously done in Initialize_ATCB.
29794
29795 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
29796
29797 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
29798 Restricted run time.
29799
29800 * exp_ch3.adb: When using the Restricted run time, pass the
29801 preallocated Ada_Task_Control_Block when creating a task.
29802
29803 2004-07-15 Ed Schonberg <schonberg@gnat.com>
29804
29805 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
29806 function call that is itself an actual in an enclosing call, diagnose
29807 problem here rather than assuming that resolution will catch it.
29808
29809 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
29810 the local copy of a generic unit for a formal package, and the generic
29811 is a child unit, install private part of ancestors before compiling
29812 private part of spec.
29813
29814 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
29815 use scope entities rather than tree structures, to handle properly
29816 parent units that are instances rewritten as bodies for inlining
29817 purposes.
29818
29819 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
29820 Remove_Parents): Handle properly a parent unit that is an
29821 instantiation, when the unit has been rewritten as a body for inlining
29822 purposes.
29823
29824 * par.adb (Goto_List): Global variable to collect goto statements in a
29825 given unit, for use in detecting natural loops.
29826
29827 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
29828 use in detecting natural loops.
29829
29830 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
29831 backwards goto's, and rewrite as a infinite loop, to improve locality
29832 of temporaries.
29833
29834 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
29835 subcomponent that includes an indexed reference, to prevent the
29836 generation of copies that would miscompile the desired assignment
29837 statement.
29838 (Build_Task_Image_Decls): Add a numeric suffix to
29839 generated name for string variable, to avoid spurious conflicts with
29840 the name of the type of a single protected object.
29841
29842 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
29843 loop with an explicit exit statement, to avoid generating an
29844 out-of-range value with 'Succ leading to spurious constraint_errors
29845 when compiling with -gnatVo.
29846
29847 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
29848
29849 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
29850 might not be analyzed yet, even if its Etype is already set (case of an
29851 unchecked conversion built using Unchecked_Convert_To, for example).
29852 If the prefix has already been analyzed, this will be a nop anyway.
29853
29854 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
29855 controller type, or an assignment of a record type with controlled
29856 components, copy only user data, and leave the finalization chain
29857 pointers untouched.
29858
29859 2004-07-15 Vincent Celier <celier@gnat.com>
29860
29861 * make.adb (Collect_Arguments): Improve error message when attempting
29862 to compile a source not part of any project, when -x is not used.
29863
29864 * prj.ads: (Defined_Variable_Kind): New subtype
29865
29866 * prj-attr.adb (Register_New_Package): Two new procedures to register
29867 a package with or without its attributes.
29868 (Register_New_Attribute): Mew procedure to register a new attribute in a
29869 package.
29870 New attribute oriented subprograms: Attribute_Node_Id_Of,
29871 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29872 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29873 Next_Attribute.
29874 New package oriented subprograms: Package_Node_Id_Of,
29875 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29876
29877 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
29878 type.
29879 (Package_Node_Id): Now a private, self initialized type
29880 (Register_New_Package): New procedure to register a package with its
29881 attributes.
29882 New attribute oriented subprograms: Attribute_Node_Id_Of,
29883 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
29884 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
29885 Next_Attribute.
29886 New package oriented subprograms: Package_Node_Id_Of,
29887 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
29888
29889 * prj-dect.adb (Parse_Attribute_Declaration,
29890 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
29891
29892 * prj-makr.adb (Make): Parse existing project file before creating
29893 other files. Fail if there was an error during parsing.
29894
29895 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
29896 new spec of Prj.Attr.
29897
29898 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
29899 to new spec of Prj.Attr.
29900
29901 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29902
29903 * utils2.c: Fix typo in comment.
29904
29905 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29906
29907 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
29908 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
29909
29910 2004-07-14 Andreas Schwab <schwab@suse.de>
29911
29912 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
29913
29914 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29915
29916 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
29917 object type.
29918 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
29919 TYPE_STUB_DECL.
29920
29921 * misc.c (gnat_types_compatible_p): New function.
29922 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
29923 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
29924
29925 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
29926 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
29927 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
29928 (mark_visited): Don't mark dummy type.
29929 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
29930 parameter, we must remove any LJM building from GNU_NAME.
29931 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
29932 (pos_to_constructor): Use int_const_binop.
29933 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
29934 PARM_DECL.
29935
29936 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
29937 (gnat_pushlevel): Set TREE_USE on BLOCK node.
29938 (gnat_install_builtins): Add __builtin_memset.
29939
29940 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
29941
29942 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
29943 for a renaming, stabilize the initialization expression if we are at a
29944 local level. At the local level, uses of the renaming may be performed
29945 by a direct dereference of the initializing expression, and we don't
29946 want possible variables there to be evaluated for every use.
29947
29948 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
29949 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
29950 them on the way. Account for the fact that we may introduce side
29951 effects in the process.
29952
29953 2004-07-13 Richard Henderson <rth@redhat.com>
29954
29955 * misc.c (default_pass_by_ref): Use pass_by_reference.
29956
29957 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
29958
29959 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
29960 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
29961
29962 2004-07-08 Richard Henderson <rth@redhat.com>
29963
29964 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
29965 commentary.
29966
29967 2004-07-06 Vincent Celier <celier@gnat.com>
29968
29969 * vms_conv.ads: Minor reformatting.
29970 Alphabetical order for enumerated values of type Command_Type, to have
29971 the command in alphabetical order for the usage.
29972
29973 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
29974 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
29975
29976 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
29977
29978 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
29979 (Add_Archive_Path): Only add the global archive if there is one.
29980 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
29981 or not any object file to put in the global archive, and don't build
29982 a global archive if there is none.
29983 (X_Switches): New table
29984 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
29985 in the X_Switches table, if any.
29986 (Initialize): Make sure the X_Switches table is empty
29987 (Scan_Arg): Record -X switches in table X_Switches
29988
29989 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
29990
29991 * make.adb: Minor comment fix
29992
29993 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
29994 invoked with directory information, add the directory in front of the
29995 path.
29996
29997 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
29998 invoked with directory information, add the directory in front of the
29999 path.
30000
30001 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30002 when Keep_Temporary_Files is False.
30003 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30004 directory information, add the directory in front of the path.
30005 When not on VMS, handle new switch -dn before the command to set
30006 Keep_Temporary_Files to True.
30007 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30008 everywhere.
30009
30010 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30011 invoked with directory information, add the directory in front of the
30012 path.
30013
30014 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
30015
30016 * snames.ads, snames.adb (Name_Stub): New name for the distributed
30017 systems annex.
30018
30019 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30020 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30021
30022 * g-socket.adb (To_Timeval): Fix incorrect conversion of
30023 Selector_Duration to Timeval for the case of 0.0.
30024
30025 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30026 documentation from Evolve_And_Then.
30027
30028 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
30029
30030 * s-taprop-tru64.adb, s-taprop-os2.adb,
30031 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30032
30033 2004-07-06 Robert Dewar <dewar@gnat.com>
30034
30035 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30036 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30037 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30038 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30039 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30040 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30041 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30042 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30043 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30044 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30045 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30046 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30047 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30048 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30049 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30050 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30051 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30052 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30053 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30054 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30055 vms_data.ads: Minor reformatting,
30056 Fix bad box comment format.
30057
30058 * gnat_rm.texi: Fix minor grammatical error
30059
30060 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30061
30062 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30063 more cases of discriminated records to be recognized as not needing a
30064 secondary stack.
30065 (Has_Access_Values): New function.
30066
30067 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
30068
30069 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
30070 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
30071 with LRM terminology).
30072 Change terminology in comments primitive type => elementary type.
30073
30074 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30075
30076 PR ada/15602
30077 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
30078 parameters do not impose any requirements on the presence of a body.
30079
30080 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30081
30082 PR ada/15593
30083 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
30084 compilation unit and is in an open scope at the point of instantiation,
30085 assume that a body may be present later.
30086
30087 2004-07-06 Ed Schonberg <schonberg@gnat.com>
30088
30089 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
30090 Improve error message when specified size is not supported.
30091
30092 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
30093 is never a primitive operation.
30094
30095 2004-07-05 Andreas Schwab <schwab@suse.de>
30096
30097 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
30098 RECORD_OR_UNION_CHECK.
30099 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
30100
30101 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
30102
30103 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
30104 dependency on xgnatugn, instead build it via a submake.
30105 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
30106
30107 2004-07-04 Richard Henderson <rth@redhat.com>
30108
30109 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
30110
30111 2004-07-01 Richard Henderson <rth@redhat.com>
30112
30113 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
30114 * utils.c (max_size): Likewise.
30115
30116 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30117
30118 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
30119 and rest_of_type_compilation; add arg to create_*_decl.
30120 (annotate_decl_with_node): Deleted.
30121 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
30122 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
30123 (get_current_block_context, gnat_pushdecl): New declarations.
30124 (gnat_init_stmt_group): Likewise.
30125 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
30126 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
30127 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
30128 (gnat_init): Call gnat_init_stmt_group.
30129 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
30130 (gnu_pending_elaboration_list): Deleted.
30131 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
30132 (gigi): Rearrange initialization calls and move some to last above.
30133 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
30134 Delete calls to add_decl_expr; add arg to create_*_decl.
30135 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
30136 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
30137 begin_subprog_body and call it.
30138 Don't push and pop ggc context.
30139 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30140 (add_stmt): Remove handling of DECL_EXPR from here.
30141 If not in function, mark visited.
30142 (add_decl_expr): Put global at top level.
30143 Check for cases of DECL_INITIAL we have to handle here.
30144 (process_type): Add extra arg to create_type_decl.
30145 (build_unit_elab): Rework to just gimplify.
30146 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
30147 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
30148 (get_pending_elaborations, pending_elaborations_p): Likewise.
30149 (push_pending_elaborations, pop_pending_elaborations): Likewise.
30150 (get_elaboration_location, insert_elaboration_list): Likewise.
30151 (gnat_binding_level): Renamed from ada_binding_level.
30152 (init_gnat_to_gnu): Don't clear pending_elaborations.
30153 (global_bindings_p): Treat as global if no current_binding_level.
30154 (set_current_block_context): New function.
30155 (gnat_pushdecl): Renamed from pushdecl; major rework.
30156 All callers changed.
30157 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
30158 (finish_record_type): Call call pushdecl for stub decl.
30159 (function_nesting_depth): Deleted.
30160 (begin_subprog_body): Delete obsolete code.
30161 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
30162
30163 2004-06-28 Robert Dewar <dewar@gnat.com>
30164
30165 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30166 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
30167 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
30168 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30169 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
30170
30171 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
30172 deal with problem of inefficient slices on machines with strict
30173 alignment, when the slice is a component of a composite.
30174
30175 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
30176 machines, we need the check there as well.
30177
30178 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30179
30180 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
30181 determine safe copying direction for overlapping slice assignments
30182 when component is controlled.
30183
30184 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
30185 formal derived type in the actual for a formal package are visible in
30186 the enclosing instance.
30187
30188 2004-06-28 Ed Schonberg <schonberg@gnat.com>
30189
30190 PR ada/15600
30191 * sem_util.adb (Trace_Components): Diagnose properly an illegal
30192 circularity involving a private type whose completion includes a
30193 self-referential component.
30194 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
30195 renaming or an instantiation from an implicit derived operation.
30196
30197 2004-06-28 Pascal Obry <obry@gnat.com>
30198
30199 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
30200 DLL.
30201 (Library_File_Name_For): Idem.
30202
30203 2004-06-28 Matthew Gingell <gingell@gnat.com>
30204
30205 * g-traceb.ads: Add explanatory note on the format of addresses
30206 expected by addr2line.
30207
30208 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
30209
30210 * Makefile.in: Force debugging information on s-tasdeb.adb,
30211 a-except.adb and s-assert.adb needed by the debugger.
30212
30213 2004-06-28 Vincent Celier <celier@gnat.com>
30214
30215 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
30216 Need_To_Build_Lib.
30217 (Gnatmake): Ditto.
30218
30219 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
30220
30221 * prj.adb: Minor reformatting
30222 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
30223
30224 * prj.ads: Comment updates
30225 Minor reformatting
30226 (Project_Data): Change Flag1 to Need_To_Build_Lib.
30227 Remove Flag2: not used.
30228
30229 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
30230 declaration.
30231
30232 * gnat_ugn.texi: Put a "null;" declaration in one project file example
30233
30234 * gnat_rm.texi: Document Empty declarations "null;".
30235
30236 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
30237 front of the linker options.
30238 (Link_Foreign): Put the global archives and the libraries in front of
30239 the linker options.
30240
30241 2004-06-28 Javier Miranda <miranda@gnat.com>
30242
30243 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
30244 (RTU_Loaded): Code cleanup
30245 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
30246 withed predefined units.
30247
30248 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
30249 explicitly withed predefined units.
30250 Fix typo in comment
30251
30252 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
30253 explicitly withed predefined units.
30254
30255 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30256
30257 * ada-tree.def (DECL_STMT): Deleted.
30258 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
30259 (DECL_STMT_VAR): Deleted.
30260 * decl.c: add_decl_stmt now add_decl_expr.
30261 * gigi.h: Likewise.
30262 * trans.c: Likewise.
30263 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30264 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
30265 (add_stmt): Only handle padded type here.
30266 (add_stmt_with_node): Allow gnat_node to not be present.
30267 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
30268 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
30269 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
30270 make a SAVE_EXPR for the entire fat pointer.
30271 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
30272 (create_index_type): Make a DECL_EXPR.
30273 (end_subprog_body): Don't call allocate_struct_function here but
30274 do clear cfun.
30275
30276 2004-06-25 Pascal Obry <obry@gnat.com>
30277
30278 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
30279 Relocatable from Build_Dynamic_Library call.
30280
30281 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
30282 Relocatable are now synonym.
30283
30284 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
30285
30286 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
30287 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
30288 call.
30289
30290 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
30291 Lib_Address and Relocatable.
30292 (Default_DLL_Address): Removed.
30293
30294 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30295 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30296 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
30297 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
30298 (Default_DLL_Address): Removed.
30299
30300 * mlib-tgt-mingw.adb: Ditto.
30301 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
30302
30303 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
30304 the initial thread stack size.
30305
30306 * a-strmap.ads: Move package L to private part as it is not used in
30307 the spec. Found while reading code.
30308
30309 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
30310
30311 * tracebak.c: Introduce support for a GCC infrastructure based
30312 implementation of __gnat_backtrace.
30313
30314 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
30315 any more. Use accessors instead. This eases maintenance and relaxes
30316 some alignment constraints.
30317 (_GNAT_Exception structure): Remove the Ada specific fields
30318 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
30319 a-exexpr.adb.
30320 (is_handled_by, __gnat_eh_personality): Replace component references to
30321 exception structure by use of the new accessors.
30322
30323 * init.c (__gnat_initialize): Adjust comments to match the just
30324 reverted meaning of the -static link-time option.
30325
30326 * adaint.c (convert_addresses): Arrange not to define a stub for
30327 mips-irix any more, as we now want to rely on a real version from a
30328 recent libaddr2line.
30329
30330 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
30331 the personality routine can use them and not have to rely on a C
30332 counterpart of the record anymore. This simplifies maintenance and
30333 relaxes the constraint of having Standard'Maximum_Alignment match
30334 BIGGEST_ALIGNMENT.
30335 Update comments, and add a section on the common header alignment issue.
30336
30337 2004-06-25 Geert Bosch <bosch@gnat.com>
30338
30339 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
30340 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
30341
30342 2004-06-25 Robert Dewar <dewar@gnat.com>
30343
30344 * gnat_rm.texi: Fix section on component clauses to indicate that the
30345 restriction on byte boundary placement still applies for bit packed
30346 arrays.
30347 Add comment on stack usage from Initialize_Scalars
30348
30349 * gnat_ugn.texi: Add documentation for -gnatyLnnn
30350
30351 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
30352 limiting nesting level.
30353
30354 * usage.adb: Add line for -gnatyLnnn switch
30355
30356 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
30357 sem_ch13.adb, exp_aggr.adb: Minor reformatting
30358
30359 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
30360 type as well as on the subtype. This corrects a problem in freeze in
30361 setting alignments of atomic types.
30362
30363 * sem_eval.ads: Minor comment typo fixed
30364
30365 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
30366 level. Minor reformatting.
30367
30368 * fname.adb (Is_Predefined_File_Name): Require a letter after the
30369 minus sign. This means that file names like a--b.adb will not be
30370 considered predefined.
30371
30372 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
30373 record Test new flag and give diagnostic for bad component clause.
30374 (Freeze_Entity): Set alignment of array from component alignment in
30375 cases where this is safe to do.
30376
30377 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
30378 arrays.
30379
30380 * cstand.adb: (Create_Standard): Set alignment of String to 1
30381
30382 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
30383
30384 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
30385 code in the common constrained array cases.
30386
30387 * a-storio.adb: Change implementation to avoid possible alignment
30388 problems on machines requiring strict alignment (data should be moved
30389 as type Buffer, not type Elmt).
30390
30391 * checks.adb (Apply_Array_Size_Check): Improve these checks by
30392 killing the overflow checks which we really do not need (64-bits is
30393 enough).
30394
30395 2004-06-25 Vincent Celier <celier@gnat.com>
30396
30397 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
30398 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
30399 inconditionally for the main project.
30400 (Recursive_Add_Archives.Add_Archive_Path): New procedure
30401 (Link_Executables.Check_Time_Stamps): New procedure
30402 (Link_Executables.Link_Foreign): New procedure
30403 Changes made to reduce nesting level of this package
30404 (Check): New procedure
30405 (Add_Switches): When not in quiet output, check that a switch is not
30406 the concatenation of several valid switches. If it is, issue a warning.
30407 (Build_Global_Archive): If the global archive is rebuilt, linking need
30408 to be done.
30409 (Compile_Sources): Rebuilding a library archive does not imply
30410 rebuilding the global archive.
30411 (Build_Global_Archive): New procedure
30412 (Build_Library): New name for Build_Archive, now only for library
30413 project
30414 (Check_Archive_Builder): New procedure
30415 (Create_Global_Archive_Dependency_File): New procedure
30416 (Gprmake): Call Build_Global_Archive before linking
30417 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
30418 throughout.
30419 (Scan_Arg): Display the Copyright notice when -v is used
30420
30421 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
30422 for gnatls.
30423
30424 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
30425 COMPILE.
30426 Add new GNAT LIST qualifier /FILES=
30427 Added qualifier /DIRECTORY= to GNAT METRIC
30428 Added qualifier /FILES= to GNAT METRIC
30429 Added qualifier /FILES to GNAT PRETTY
30430
30431 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
30432 to take into account both versions of the switch.
30433
30434 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
30435 always be the last switch to the gcc driver. Disable switch storing so
30436 that switches automatically added by the gcc driver are not put in the
30437 ALI file.
30438
30439 * prj.adb (Project_Empty): Take into account changes in components of
30440 Project_Data.
30441
30442 * prj.ads (Languages_Processed): New enumaration value All_Languages.
30443
30444 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
30445 used. Split Boolean component Ada_Sources_Present in two Boolean
30446 components Ada_Sources_Present and Other_Sources_Present.
30447 Minor reformatting
30448
30449 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
30450 instead of Sources_Present.
30451 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30452
30453 * prj-nmsc.adb: Minor reformatting
30454 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
30455 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
30456 Check_Ada_Naming_Scheme.
30457 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
30458 throughout.
30459
30460 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
30461 In_Limited.
30462 Make sure that all cycles where there is at least one "limited with"
30463 are detected.
30464 (Parse_Single_Project): New Boolean parameter In_Limited
30465
30466 * prj-proc.adb (Recursive_Check): When Process_Languages is
30467 All_Languages, call first Prj.Nmsc.Ada_Check, then
30468 Prj.Nmsc.Other_Languages_Check.
30469
30470 * prj-proc.adb (Process): Use Ada_Sources_Present or
30471 Other_Sources_Present (instead of Sources_Present) depending on
30472 Process_Languages.
30473
30474 * lang-specs.h: Keep -g and -m switches in the same order, and as the
30475 last switches.
30476
30477 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
30478 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
30479 False.
30480 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
30481 False.
30482
30483 * lib.ads (Disable_Switch_Storing): New procedure.
30484
30485 * make.adb: Modifications to reduce nesting level of this package.
30486 (Check_Standard_Library): New procedure
30487 (Gnatmake.Check_Mains): New procedure
30488 (Gnatmake.Create_Binder_Mapping_File): New procedure
30489 (Compile_Sources.Compile): Add switch -gnatez as the last option
30490 (Display): Never display -gnatez
30491
30492 * Makefile.generic:
30493 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
30494
30495 * gnatcmd.adb (Check_Project): New function
30496 (Process_Link): New procedure to reduce nesting depth
30497 (Check_Files): New procedure to reduce the nesting depth.
30498 For GNAT METRIC, include the inherited sources in extending projects.
30499 (GNATCmd): When GNAT LS is invoked with a project file and no files,
30500 add the list of files from the sources of the project file. If this list
30501 is too long, put it in a temp text files and use switch -files=
30502 (Delete_Temp_Config_Files): Delete the temp text file that contains
30503 a list of source for gnatpp or gnatmetric, if one has been created.
30504 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
30505 in the project file is too large, create a temporary text file that
30506 list them and pass it to the tool with "-files=<temp text file>".
30507 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
30508
30509 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
30510 generated file is in not in Ada.
30511
30512 * gnatls.adb: Remove all parameters And_Save that are no longer used.
30513 (Scan_Ls_Arg): Add processing for -files=
30514 (Usage): Add line for -files=
30515
30516 * g-os_lib.adb (On_Windows): New global constant Boolean flag
30517 (Normalize_Pathname): When on Windows and the path starts with a
30518 directory separator, make sure that the resulting path will start with
30519 a drive letter.
30520
30521 * clean.adb (Clean_Archive): New procedure
30522 (Clean_Project): When there is non-Ada code, delete the global archive,
30523 the archive dependency files, the object files and their dependency
30524 files, if they exist.
30525 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
30526
30527 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
30528
30529 * sinfo.ads: Fix typo in comment.
30530
30531 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
30532 the TSS for remote access-to-subprogram types, since these TSS are
30533 always present once the type has been analyzed.
30534 (RAS_E_Dereference): Same.
30535
30536 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
30537 reference raises Bad_Attribute, mark the reference as analyzed so the
30538 node (and any children resulting from rewrites that could have occurred
30539 during the analysis that ultimately failed) is not analyzed again.
30540
30541 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
30542
30543 * exp_dist.adb: Minor comment fix.
30544
30545 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
30546 type is an anonymous access type, no unchecked deallocation of the
30547 allocated object can occur. If the object is controlled, attach it with
30548 a count of 1. This allows attachment to the Global_Final_List, if
30549 no other relevant list is available.
30550 (Get_Allocator_Final_List): For an anonymous access type that is
30551 the type of a discriminant or record component, the corresponding
30552 finalisation list is the one of the scope of the type.
30553
30554 2004-06-25 Ed Schonberg <schonberg@gnat.com>
30555
30556 * sem_ch3.adb (Replace_Type): When computing the signature of an
30557 inherited subprogram, use the first subtype if the derived type
30558 declaration has no constraint.
30559
30560 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
30561 before applying previous optimization. Minor code cleanup.
30562
30563 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
30564 placed at the beginning of an unpacked record without explicit
30565 alignment, a slice of it will be aligned and does not need a copy when
30566 used as an actual.
30567
30568 2004-06-25 Ed Schonberg <schonberg@gnat.com>
30569
30570 PR ada/15591
30571 PR ada/15592
30572 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
30573 reference is written with expressions mimicking parameters.
30574
30575 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
30576
30577 PR ada/15589
30578 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
30579 STEP 2a. The constraints of a full type declaration of a derived record
30580 type are checked for conformance with those declared in the
30581 corresponding private extension declaration. The message
30582 "not conformant with previous declaration" is emitted if an error is
30583 detected.
30584
30585 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30586
30587 * g-traceb.ads: Document the need for -E binder switch in the spec.
30588
30589 * g-trasym.ads: Document the need for -E binder switch in the spec.
30590
30591 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
30592
30593 * sem_prag.adb: Add handling of pragma Detect_Blocking.
30594
30595 * snames.h, snames.ads, snames.adb: Add entry for pragma
30596 Detect_Blocking.
30597
30598 * s-rident.ads: Change reference to pragma Detect_Blocking.
30599
30600 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
30601 system.ads.
30602
30603 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
30604 to indicate whether pragma Detect_Blocking is active.
30605
30606 * par-prag.adb: Add entry for pragma Detect_Blocking.
30607
30608 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
30609 of not handling WITH.
30610 Note that this replaces the previous update which was incorrect.
30611
30612 2004-06-25 Javier Miranda <miranda@gnat.com>
30613
30614 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
30615 use-clauses to have a clean environment.
30616
30617 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
30618 the installation of the use-clauses to stablish a clean environment in
30619 case of compilation of a separate unit; otherwise the call to
30620 use_one_package is protected by the barrier Applicable_Use.
30621
30622 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
30623 the installation of the use-clauses to stablish a clean environment in
30624 case of compilation of a separate unit.
30625 (End_Use_Clauses): Minor comment cleanup.
30626
30627 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
30628
30629 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
30630
30631 2004-06-23 Richard Henderson <rth@redhat.com>
30632
30633 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
30634
30635 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30636
30637 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
30638 now bool instead of int.
30639 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
30640 * trans.c (gnu_switch_label_stack): New function.
30641 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
30642 elaboration of renamed entity returns.
30643 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
30644 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
30645 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
30646 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
30647 DECL_SIZE_UNIT and simplify variable-sized case.
30648 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30649 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
30650 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
30651 (build_unit_elab): Disable for now.
30652 * utils.c (mark_visited): New function.
30653 (pushdecl): Walk tree to call it for global decl.
30654 (update_pointer_to): Update all variants of pointer and ref types.
30655 Add arg to COMPONENT_REF.
30656 (convert): Likewise.
30657 Move check for converting between variants lower down.
30658 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
30659 (build_allocator): Don't force type of MODIFY_EXPR.
30660 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
30661 put_var_into_stack.
30662
30663 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30664
30665 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
30666 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
30667 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
30668 subprograms.
30669 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
30670 all callers changed.
30671 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
30672 the way that EXIT_STMT finds the loop label.
30673 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
30674 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
30675 (add_stmt): Use annotate_with_locus insted of setting directly.
30676 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
30677 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
30678 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
30679 (build_vms_descriptor): Add extra args to ARRAY_REF.
30680 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
30681 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
30682 New cases.
30683 (build_binary_op): Don't make explicit CONVERT_EXPR.
30684 Add extra rgs to ARRAY_REF.
30685
30686 2004-06-14 Pascal Obry <obry@gnat.com>
30687
30688 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
30689 Windows. Fix minor typo.
30690
30691 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
30692 which is now supported on Windows. With this implementation using the
30693 Library Project feature is no different on Windows than on UNIX.
30694
30695 2004-06-14 Vincent Celier <celier@gnat.com>
30696
30697 * makegpr.adb (Compile_Sources): Nothing to do when there are no
30698 non-Ada sources.
30699
30700 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
30701
30702 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
30703 found, show the project name and the path of the previously parsed
30704 project file.
30705
30706 2004-06-14 Ed Schonberg <schonberg@gnat.com>
30707
30708 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
30709 array, avoid copying the actual before the call.
30710
30711 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
30712
30713 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
30714 Instead, allocate memory on worst-case alignment assumptions, and then
30715 return an aligned address within the allocated zone.
30716
30717 2004-06-14 Robert Dewar <dewar@gnat.com>
30718
30719 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
30720 elab entities in predefined units in No_Run_Time_Mode.
30721 (Gen_Adainit_C): Same fix
30722 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
30723 units in No_Run_Time_Mode
30724 (Gen_Elab_Calls_C): Same fix
30725
30726 * symbols-vms-alpha.adb: Minor reformatting
30727
30728 * g-debpoo.ads: Minor reformatting
30729
30730 * lib.adb (In_Same_Extended_Unit): Version working on node id's
30731
30732 * lib.ads (In_Same_Extended_Unit): Version working on node id's
30733
30734 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30735 working on nodes.
30736
30737 * make.adb: Minor reformatting
30738
30739 * par-ch12.adb: Minor reformatting
30740
30741 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30742
30743 * prj-strt.adb: Minor reformatting
30744
30745 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30746 be more general.
30747
30748 * sem_attr.adb: Minor reformatting
30749
30750 * sem_ch7.adb: Minor reformatting
30751
30752 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
30753 for type in the same unit as the object declaration.
30754
30755 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
30756 static string expressions and not just string literals.
30757 Minor reformatting
30758 (Set_Warning): Reset restriction warning flag for restriction pragma
30759 Implement pragma Profile_Warnings
30760 Implement pragma Profile (Restricted)
30761 Give obolescent messages for old restrictions and pragmas
30762
30763 * snames.h, snames.ads, snames.adb: Add new entry for pragma
30764 Profile_Warnings.
30765
30766 * s-rident.ads: Add declarations for restrictions required by profile
30767 Restricted and profile Ravenscar.
30768
30769 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
30770
30771 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
30772 configuration pragmas.
30773
30774 2004-06-11 Vincent Celier <celier@gnat.com>
30775
30776 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
30777 gnatsym, when symbol policy is Restricted.
30778
30779 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
30780 gnatsym, when symbol policy is Restricted.
30781
30782 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
30783 read the symbol file.
30784 (Finalize): Fail in symbol policy Restricted if a symbol in the original
30785 symbol file is not in the object files. Do not create a new symbol file
30786 when symbol policy is Restricted.
30787
30788 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
30789 in Scng.
30790
30791 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
30792 Restricted.
30793 (Usage): Line for new switch -R
30794
30795 * make.adb (Initialize): When the platform is not VMS, add the
30796 directory where gnatmake is invoked in the front of the path, if
30797 gnatmake is invoked with directory information. Change the Scan_Args
30798 while loop to a for loop.
30799 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
30800 if Depth is equal or greater than the proposed depth, there is nothing
30801 to do.
30802 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
30803 instead of 0.
30804
30805 * prj.ads: Add new symbol policy Restricted.
30806
30807 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
30808 with the new parameters Check_All_Labels and Case_Location.
30809
30810 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
30811 (Library_Symbol_File needs to be defined).
30812
30813 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
30814 and Case_Location If Check_All_Labels is True, check that all values of
30815 the string type are used, and output warning(s) if they are not.
30816
30817 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
30818 and Case_Location.
30819
30820 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
30821
30822 * gnat_ugn.texi: Update documentation about the library directory in
30823 Library Projects.
30824
30825 * makegpr.adb (Display_Command): In verbose mode, also display the
30826 value of the CPATH env var, when the compiler is gcc.
30827 (Initialize): Change the Scan_Args while loop to a for loop
30828 (Compile_Individual_Sources): Change directory to object directory
30829 before compilations.
30830
30831 * symbols.ads: New symbol policy Restricted.
30832
30833 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
30834
30835 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
30836 is now taken care of internally in the Exception_Propagation package
30837 and does not require clients assistance any more.
30838
30839 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
30840 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
30841 functions. Helpers to maintain a predicate required in the handling of
30842 occurrence transfer between tasks.
30843 This is now handled internally and does not require clients assistance
30844 for the setup/propagate separation anymore.
30845 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
30846 allocation strategy, handle the Setup_And_Not_Propagated predicate and
30847 document.
30848
30849 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
30850 raise_after_setup, now that everything is handled internally within the
30851 setup/propagation engine.
30852
30853 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30854
30855 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
30856 Add additional conditions for the case of an actual being a simple
30857 name or literal. Improve inlining by preventing the generation
30858 of temporaries with a short lifetime (one use).
30859
30860 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
30861
30862 PR ada/15587
30863 * einfo.ads: Minor comment updates for Has_Completion and
30864 E_Constant list of flags.
30865
30866 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
30867 and constant redeclarations now set the Has_Completion flag of their
30868 defining identifiers.
30869
30870 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
30871 Inspect_Deferred_Constant_Completion.
30872 Used to detect private deferred constants that have not been completed
30873 either by a constant redeclaration or pragma Import. Emits error message
30874 "constant declaration requires initialization expression".
30875
30876 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
30877 completes a deferred constant.
30878
30879 2004-06-11 Geert Bosch <bosch@gnat.com>
30880
30881 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
30882
30883 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
30884 calculating exponent for scaling denormal numbers.
30885 (Leading_Part): Properly raise Constraint_Error for zero or negative
30886 Adjustment.
30887 (Remainder): Properly raise Constraint_Error for zero divisor.
30888
30889 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
30890
30891 * sem_util.adb: Minor reformatting.
30892
30893 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
30894 dereference when accessing the entry parameter record.
30895 (Check_Array_Type): Always check for possible implicit dereference.
30896 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30897 Abort if a pointer is still present (denoting that an implicit
30898 dereference was left in the tree by the front-end).
30899
30900 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
30901 dereference when accessing the entry parameter record.
30902 (Check_Array_Type): Always check for possible implicit dereference.
30903 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
30904 Abort if a pointer is still present (denoting that an implicit
30905 dereference was left in the tree by the front-end).
30906
30907 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
30908
30909 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
30910 message, like the compiler itself does. Easier to parse the output.
30911
30912 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
30913
30914 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
30915 be base names, and not includes directories.
30916
30917 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30918
30919 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
30920 so that dependencies are properly taken into account by make.
30921
30922 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
30923
30924 PR ada/15622
30925 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
30926 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
30927
30928 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
30929
30930 * Makefile.in (install-gnatlib): install target-specific run-time files.
30931
30932 * Make-lang.in: Remove obsolete targets.
30933
30934 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30935
30936 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
30937 specification, to catch misuses of program unit names.
30938
30939 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
30940 superfluous conversions in an instance.
30941
30942 2004-06-11 Ed Schonberg <schonberg@gnat.com>
30943
30944 PR ada/15403
30945 * sem_ch12.adb (Save_References): If operator node has been folded to
30946 enumeration literal, associated_node must be discarded.
30947
30948 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
30949
30950 * s-stchop-vxworks.adb: Add required pragma Convention to
30951 Task_Descriptor because it is updated by a C function.
30952
30953 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
30954
30955 PR ada/15568
30956 * Makefile.in: Remove target specific SO_OPT on IRIX
30957
30958 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30959
30960 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
30961 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
30962 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
30963 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
30964 (STMT_STMT, USE_STMT): New statement codes.
30965 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
30966 * ada-tree.h: Reflect above changes.
30967 (struct tree_loop_id): Deleted.
30968 (union lang_tree_node, struct lang_decl, struct lang_type):
30969 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
30970 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
30971 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
30972 (IS_ADA_STMT): New macro.
30973 * decl.c (annotate_decl_with_node): New function.
30974 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
30975 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
30976 Call add_stmt_with_node to do needed assignments.
30977 Add call to update setjmp buffer directly, not via EXPR_STMT.
30978 (maybe_variable): Argment GNAT_NODE deleted.
30979 * gigi.h (maybe_variable): Likewise.
30980 (make_transform, add_stmt_with_node, set_block_for_group): New.
30981 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
30982 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
30983 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
30984 (set_lineno, set_lineno_from_sloc): Likewise.
30985 (record_code_position, insert_code_for): Likewise.
30986 (gnat_poplevel): Now returns void.
30987 (end_subprog_body): Now takes argument.
30988 * misc.c (cgraph.h, tree-inline.h): New includes.
30989 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
30990 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
30991 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
30992 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
30993 (gnat_parse_file): Don't set immediate_size_expand.
30994 Call cgraph functions.
30995 (gnat_expand_expr): Remove most cases.
30996 (record_code_position, insert_code_for): Remove from here.
30997 * trans.c (toplev.h, tree-gimple.h): Now included.
30998 (discard_file_names): Deleted.
30999 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31000 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31001 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31002 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31003 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31004 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31005 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31006 (set_block_for_group, add_stmt_list): Likewise.
31007 (start_stmt_group): Renamed from start_block_stmt.
31008 (end_stmt_group): Likewise, from end_block_stmt.
31009 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31010 (gigi): Don't set discard_file_names or call set_lineno.
31011 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31012 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31013 Numerous changes throughout to reflect new names and complete
31014 function-at-a-time implementation.
31015 (gnat_expand_stmt): Delete or comment out all cases.
31016 (process_inlined_subprograms): Use add_stmt.
31017 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31018 call set_lineno; also remove unneeded block handling.
31019 (process_type): Remove unneeded block handling.
31020 (build_unit_elab): Remove calls to deleted functions.
31021 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31022 (tree-dump.h): Likewise.
31023 (struct ada_binding_level): Add field jmpbuf_decl.
31024 (gnat_define_builtin, gnat_install_builtins): New.
31025 (gnat_gimplify_function, gnat_finalize): Likewise.
31026 (gnat_poplevel): No longer return BLOCK, set it instead.
31027 Remove code dealing with nested functions.
31028 (gnat_init_decl_processing): Also set size_type_node.
31029 Call gnat_install_builtins.
31030 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31031 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31032 Remove special-case for "main".
31033 (end_subprog_body): Add arg and rework for tree-ssa.
31034 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31035 Add case for BOOLEAN_TYPE.
31036 * utils2.c (rtl.h): Now include.
31037 (build_call_raise): Test Debug_Flag_NN directly.
31038 (build_call_alloc_dealloc): Don't use local stack allocation for now.
31039 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31040 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31041
31042 2004-06-07 Robert Dewar <dewar@gnat.com>
31043
31044 * a-direct.ads, einfo.ads: Minor comment updates
31045
31046 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31047 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31048 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31049 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31050 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31051
31052 * s-interr-sigaction.adb: Remove unreferenced variable
31053 (Attached_Interrupts). Minor reformatting.
31054 Avoid use of variable I (replace by J).
31055
31056 * par-ch10.adb: Fix text of one error message
31057
31058 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31059 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31060 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31061 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31062 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31063 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
31064 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
31065 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31066 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
31067 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
31068 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
31069 2005 support.
31070
31071 2004-06-07 Doug Rupp <rupp@gnat.com>
31072
31073 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
31074
31075 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
31076
31077 * mlib-tgt-vms-ia64.adb: New file.
31078
31079 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
31080 Add mlib-tgt-vms-ia64.adb
31081 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
31082 Move to alpha specific ifeq section.
31083 Add VMS specific versions of symbols.adb
31084 Renaming of 5q vms files.
31085
31086 * 5qsystem.ads renamed to system-vms_64.ads.
31087
31088 2004-06-07 Vincent Celier <celier@gnat.com>
31089
31090 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
31091 explain that when a time of day corresponding to the non existing hour
31092 on the day switching to DST is specified, Split may return a different
31093 value for Seconds.
31094
31095 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
31096 to GNAT PRETTY.
31097
31098 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
31099 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
31100
31101 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
31102 to False.
31103 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
31104 the linking options.
31105 (Build_Library.Check_Libs): On VMS, if there is a dependency on
31106 g-trasym.ads, set Gtrasymobj_Needed to True.
31107
31108 * prj-attr.adb: Add new package Metrics for gnatmetric
31109
31110 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
31111 canonical case to take into account files with upper case characters on
31112 Windows.
31113 (Ada_Check): Load the reference symbol file name in the name buffer to
31114 check it, not the symbol file name.
31115
31116 * snames.ads, snames.adb: Add standard name Metrics (name of project
31117 file package for gnatmetric).
31118
31119 * vms_conv.ads: Add Metric to Comment_Type
31120
31121 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
31122
31123 * vms_data.ads: Add qualifiers for GNAT METRIC
31124
31125 * makegpr.adb (Link_Executables): Take into account the switches
31126 specified in package Linker of the main project.
31127
31128 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
31129
31130 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
31131 the index of the last element is Units.Last, not Units.Table'Last
31132 (which is usually not a valid index within the actually allocated
31133 storage for the table).
31134
31135 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
31136 determines whether to generate a call to a checked storage pool
31137 Dereference action.
31138 Generate such a call only for a dereference that either comes from
31139 source, or is the result of rewriting a dereference that comes from
31140 source.
31141
31142 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
31143
31144 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
31145
31146 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
31147
31148 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
31149 file level, elaborate the stride for inner dimensions in alignment
31150 units, not bytes.
31151
31152 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
31153 in a comment.
31154
31155 2004-06-07 Javier Miranda <miranda@gnat.com>
31156
31157 * exp_ch6.adb: Correct wrong modification in previous patch
31158
31159 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
31160
31161 * g-trasym.ads: Corrected comment to properly reflect level of support
31162 on VMS.
31163
31164 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
31165
31166 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
31167 includes case of a variable referenced on the left hand side of an
31168 assignment, therefore remove redundant code. Variables and prefixes of
31169 indexed or selected components are now marked as referenced on left
31170 hand side. Warnings are now properly emitted when variables or prefixes
31171 are assigned but not read.
31172
31173 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
31174 left hand side referenced variables. Private access types do not
31175 produce the warning "variable ... is assigned but never read".
31176 Add also additional checks to left hand side referenced variables.
31177 Aliased, renamed objects and access types do not produce the warning
31178 "variable ... is assigned but never read" since other entities may read
31179 the memory location.
31180
31181 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
31182
31183 * Makefile.in: In the powerpc/vxworks-specific section, restore
31184 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
31185 by mistake).
31186
31187 2004-06-07 Ed Schonberg <schonberg@gnat.com>
31188
31189 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
31190 predefined operators.
31191 Removes spurious type errors from g-trasym-vms.adb.
31192
31193 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
31194 distinct from the operator appearing in the source, call appropriate
31195 routine to insert conversions when needed, and complete resolution of
31196 node.
31197 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
31198 interpretations for rewritten right operand.
31199 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
31200 the other operand is overloaded and the context is a type conversion.
31201
31202 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31203
31204 * ada-tree.def (BLOCK_STMT): Now has two operands.
31205 (BREAK_STMT): New.
31206
31207 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
31208
31209 * gigi.h: (gnat_poplevel): Now returns a tree.
31210
31211 * trans.c (end_block_stmt): Add arg; all callers changed.
31212 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
31213 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
31214 (add_stmt): Set TREE_TYPE.
31215 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
31216 (gnat_expand_stmt, case BREAK_STMT): New case.
31217
31218 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
31219
31220 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
31221
31222 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
31223 procedure Set_Stack_Size that is not needed.
31224
31225 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
31226
31227 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
31228 used for gnatpp input file and for the files upon which it depends
31229
31230 2004-06-07 Ben Brosgol <brosgol@gnat.com>
31231
31232 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31233
31234 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
31235
31236 * gnatvsn.ads: Bump version numbers appropriately.
31237 Add new build type.
31238
31239 2004-06-07 Pascal Obry <obry@gnat.com>
31240
31241 * gnat_ugn.texi: Improve comments about imported names and link names
31242 on Windows. Add a note about the requirement to use -k gnatdll's option
31243 when working with a DLL which has stripped stdcall symbols (no @nn
31244 suffix).
31245
31246 2004-05-27 Vincent Celier <celier@gnat.com>
31247
31248 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
31249 COMMENTS_LAYOUT=UNTOUCHED
31250
31251 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
31252 symbols-vms-alpha.adb
31253
31254 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
31255
31256 * sem.ads: Clarify documentation on checks suppression.
31257
31258 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
31259
31260 2004-05-27 Ed Schonberg <schonberg@gnat.com>
31261
31262 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
31263 the case of multiple derivations.
31264 (Is_Object_Reference): For a selected component, verify that the prefix
31265 is itself an object and not a value.
31266
31267 * sem_ch12.adb (Same_Instantiated_Constant): New name for
31268 Same_Instantiated_Entity.
31269 (Same_Instantiated_Variable): Subsidiary to
31270 Check_Formal_Package_Instance, to recognize actuals for in-out generic
31271 formals that are obtained from a previous formal package.
31272 (Instantiate_Subprogram_Body): Emit proper error when
31273 generating code and the proper body of a stub is missing.
31274
31275 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
31276 has a universal interpretation, do the disambiguation here.
31277
31278 * exp_ch4.adb (Expand_N_Type_Conversion,
31279 Expand_N_Unchecked_Type_Conversion): Special handling when target type
31280 is Address, to avoid typing anomalies when Address is a visible integer
31281 type.
31282
31283 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
31284 to determine whether a subprogram should not be marked Pure, even when
31285 declared in a pure package.
31286
31287 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
31288
31289 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
31290
31291 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
31292 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
31293 Update the documentation about the Ravenscar profile, following the
31294 definition found in AI-249.
31295
31296 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
31297 setting the Profile (Ravenscar). This must be done in addition to
31298 setting the required restrictions.
31299
31300 * rtsfind.ads: Add the set of operations defined in package
31301 Ada.Interrupts.
31302
31303 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
31304 restriction.
31305
31306 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
31307
31308 lang-specs.h: Always require -c or -S and always redirect to /dev/null
31309 if -gnatc or -gnats is passed.
31310
31311 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
31312
31313 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
31314 a significant reference. Warnings are now properly emitted when a
31315 discriminated type is not referenced.
31316
31317 * lib-xref.adb (Generate_Reference): A deferred constant completion,
31318 record representation clause or record type discriminant does not
31319 produce a reference to its corresponding entity. Warnings are now
31320 properly emitted when deferred constants and record types are not
31321 referenced.
31322
31323 2004-05-27 Geert Bosch <bosch@gnat.com>
31324
31325 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
31326 Fixes ACATS Annex G tests.
31327
31328 2004-05-27 Robert Dewar <dewar@gnat.com>
31329
31330 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
31331 handling WITH
31332
31333 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
31334
31335 * s-interr.adb (Server_Task): Take into account case of early return
31336 from sigwait under e.g. linux.
31337
31338 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
31339
31340 * gnat_ugn.texi: Add description for the new gnatpp options:
31341 -rnb - replace the original source without creating its backup copy
31342 -c0 - do not format comments
31343
31344 2004-05-24 Geert Bosch <bosch@gnat.com>
31345
31346 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
31347 with 192 bits of precision, sufficient to reduce a double-extended
31348 arguments X with a maximum relative error of T'Machine_Epsilon, for X
31349 in -2.0**32 .. 2.0**32.
31350 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
31351 reduction by the processor, which only uses a 68-bit approximation of
31352 Pi.
31353 (Tan): Always reduce arguments and compute function either using
31354 the processor's fptan instruction, or by dividing sin and cos as needed.
31355
31356 2004-05-24 Doug Rupp <rupp@gnat.com>
31357
31358 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
31359 gcc error on 32/64 bit VMS.
31360
31361 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
31362
31363 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
31364 since this is what we get for stack overflows although not documented
31365 as such.
31366 Document the issues which may require adjustments to our signal
31367 handlers.
31368
31369 2004-05-24 Ed Schonberg <schonberg@gnat.com>
31370
31371 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
31372 enclosing dynamic scope if the instantiation is within a generic unit.
31373
31374 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31375
31376 * exp_dbug.ads: Fix typo.
31377
31378 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
31379 Rename it to its proper name: system-linux-ia64.ads
31380 (stamp-gnatlib1): Remove extra target specific run time files when
31381 setting up the rts directory.
31382
31383 2004-05-24 Javier Miranda <miranda@gnat.com>
31384
31385 * einfo.ads, einfo.adb (Limited_Views): Removed.
31386 (Limited_View): New attribute that replaces the previous one. It is
31387 now a bona fide package with the limited-view list through the
31388 first_entity and first_private attributes.
31389
31390 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
31391 limited-private-with clause.
31392 (Install_Limited_Withed_Unit): Install the private declarations of a
31393 limited-private-withed package. Update the installation of the shadow
31394 entities according to the new structure (see Build_Limited_Views)
31395 (Build_Limited_Views): Replace the previous implementation of the
31396 limited view by a package entity that references the first shadow
31397 entity plus the first shadow private entity (required for limited-
31398 private-with clause)
31399 (New_Internal_Shadow_Entity): Code cleanup.
31400 (Remove_Limited_With_Clause): Update the implementation to undo the
31401 new work carried out by Build_Limited_Views.
31402 (Build_Chain): Complete documentation.
31403 Replace Ada0Y by Ada 0Y in comments
31404 Minor reformating
31405
31406 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
31407 types the level of accessibility depends on the enclosing type
31408 declaration.
31409
31410 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
31411 entities. Complete documentation of previous change.
31412
31413 2004-05-24 Robert Dewar <dewar@gnat.com>
31414
31415 * namet.adb: Minor reformatting
31416 Avoid use of name I (replace by J)
31417 Minor code restructuring
31418
31419 * sem_ch6.adb: Minor reformatting
31420
31421 * lib-writ.adb: Do not set restriction as active if this is a
31422 Restriction_Warning case.
31423
31424 * sem_prag.adb: Reset restriction warning flag if real pragma
31425 restriction encountered.
31426
31427 * s-htable.adb: Minor reformatting
31428 Change rotate count to 3 in Hash (improves hash for small strings)
31429
31430 * 5qsystem.ads: Add comments for type Address (no literals allowed).
31431
31432 * gnat_ugn.texi: Add new section of documentation "Code Generation
31433 Control", which describes the use of -m switches.
31434
31435 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
31436
31437 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
31438 through the DECL_INITIAL for renamed variables.
31439
31440 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31441
31442 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
31443
31444 2004-05-19 Joel Brobecker <brobecker@gnat.com>
31445
31446 * exp_dbug.ads: Correct comments concerning handling of overloading,
31447 since we no longer use $ anymore.
31448
31449 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
31450
31451 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
31452 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
31453 with illegal subunits.
31454
31455 2004-05-19 Ed Schonberg <schonberg@gnat.com>
31456
31457 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
31458 body with front-end inlining enabled, check whether an inline pragma
31459 appears immediately after the body and applies to it.
31460
31461 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
31462 enabled and the pragma appears after the body of the subprogram.
31463
31464 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31465
31466 Part of function-at-a-time conversion
31467
31468 * misc.c (adjust_decl_rtl): Deleted.
31469 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
31470 Define.
31471
31472 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
31473 (add_decl_stmt, add_stmt, block_has_vars): New functions.
31474 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
31475
31476 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
31477 when making a decl.
31478 (gnat_to_gnu_entity): Likewise.
31479 Use add_stmt to update setjmp buffer.
31480 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
31481 flush_addressof.
31482 No longer call adjust_decl_rtl.
31483 (DECL_INIT_BY_ASSIGN_P): New macro.
31484 (DECL_STMT_VAR): Likewise.
31485
31486 * trans.c (gigi): Call start_block_stmt to make the outermost
31487 BLOCK_STMT.
31488 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
31489 Call start_block_stmt and end_block_stmt temporarily.
31490 Use gnat_expand_stmt instead of expand_expr_stmt.
31491 (add_decl_stmt): New function.
31492 (tree_transform): Call it.
31493 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
31494 (end_block_stmt): Set type and NULL_STMT.
31495 (gnat_expand_stmt): Make recursize call instead of calling
31496 expand_expr_stmt.
31497 (gnat_expand_stmt, case DECL_STMT): New case.
31498 (set_lineno_from_sloc): Do nothing if global.
31499 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
31500 (start_block_stmt, add_stmt, end_block_stmt): New functions.
31501 (build_block_stmt): Call them.
31502 (gnat_to_code): Don't expand NULL_STMT.
31503 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
31504 args.
31505 (tree_transform): Likewise.
31506 (tree_transform, case N_Null_Statement): Return NULL_STMT.
31507 (gnat_expand_stmt, case NULL_STMT): New case.
31508 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
31509 IF_STMT_TRUE.
31510
31511 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
31512 TREE_ADDRESSABLE.
31513
31514 * utils.c (create_var_decl): Do not call expand_decl or
31515 expand_decl_init.
31516 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
31517 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
31518 here.
31519 (struct e_stack): Add chain_next to GTY.
31520 (struct binding_level): Deleted.
31521 (struct ada_binding_level): New struct.
31522 (free_block_chain): New.
31523 (global_binding_level, clear_binding_level): Deleted.
31524 (global_bindings_p): Rework to see if no chain.
31525 (kept_level_p, set_block): Deleted.
31526 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
31527 new data structure and work directly on BLOCK node.
31528 (gnat_poplevel): Similarly.
31529 (get_decls): Look at BLOCK_VARS.
31530 (insert_block): Work directly on BLOCK node.
31531 (block_has_var): New function.
31532 (pushdecl): Rework for new binding structures.
31533 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
31534 poplevel.
31535 (build_subprog_body): Likewise.
31536 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
31537
31538 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
31539
31540 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
31541 (DECL_STMT_VAR): Likewise.
31542
31543 2004-05-17 Robert Dewar <dewar@gnat.com>
31544
31545 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
31546 procedure
31547
31548 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
31549 of restriction synonyums by using
31550 Restrict.Process_Restriction_Synonyms.
31551
31552 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
31553
31554 * s-restri.ads (Tasking_Allowed): Correct missing comment
31555
31556 * s-rident.ads: Add entries for restriction synonyms
31557
31558 * ali.adb: Fix some problems with badly formatted ALI files that can
31559 result in infinite loops.
31560
31561 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
31562 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
31563 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31564 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
31565 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
31566 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
31567 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
31568 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
31569 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
31570 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
31571 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
31572 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
31573 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
31574 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31575 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31576 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31577 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
31578 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
31579 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
31580 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
31581 to Task_Id (minor cleanup).
31582
31583 2004-05-17 Vincent Celier <celier@gnat.com>
31584
31585 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
31586 directory separator.
31587
31588 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
31589 project being extended, if Languages is not declared in extending
31590 project.
31591
31592 2004-05-17 Javier Miranda <miranda@gnat.com>
31593
31594 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
31595 limited view of a visible sibling.
31596
31597 2004-05-14 Robert Dewar <dewar@gnat.com>
31598
31599 * gnat_ugn.texi: Minor change to -gnatS documentation
31600
31601 * sprint.adb: Remove some instances of Assert (False) and for this
31602 purpose replace them by output of a ??? string.
31603
31604 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
31605 Assert (False).
31606
31607 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
31608 flag processing. This was suppressing required dependencies in
31609 No_Run_Time mode and is not needed since the binder does not generate
31610 references for things in libgnat anyway.
31611
31612 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
31613 warning.
31614
31615 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
31616
31617 * gnat_ugn.texi: Document AIX-specific issue with initialization of
31618 resolver library.
31619
31620 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
31621 action for the case of an actual parameter in an init proc call.
31622
31623 2004-05-14 Ed Schonberg <schonberg@gnat.com>
31624
31625 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
31626 subtype, check visible entities in base type.
31627
31628 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
31629 actions if the object is a renaming.
31630
31631 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
31632 Check_Formal_Package_Instance, to determine more precisely when the
31633 formal and the actual denote the same entity.
31634
31635 2004-05-14 Javier Miranda <miranda@gnat.com>
31636
31637 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
31638
31639 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
31640 corresponding to a private_with must be removed from visibility; it
31641 will be made visible later, just before we analyze the private part of
31642 the package.
31643 (Check_Private_Child_Unit): Allow private_with clauses in public
31644 siblings.
31645 (Install_Siblings): Make visible the private entities of private-withed
31646 siblings.
31647 (Install_Withed_Unit): Do not install the private withed unit if we
31648 are compiling a package declaration and the Private_With_OK flag was
31649 not set by the caller. These declarations will be installed later,
31650 just before we analyze the private part of the package.
31651
31652 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
31653 during the evaluation of the expression that initializes the object,
31654 decorate it with the expected type to avoid cascade errors.
31655 Code cleanup.
31656
31657 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
31658 subprogram we have to install the private_with clauses after its
31659 specification has been analyzed (as documented in AI-262.TXT).
31660
31661 * sem_ch8.adb (Has_Private_With): New function. Determines if the
31662 current compilation unit has a private with on a given entity.
31663 (Find_Direct_Name): Detect the Beaujolais problem described in
31664 AI-262.TXT
31665
31666 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
31667 provides the functionality of the function Is_Ancestor that was
31668 previously available in sem_ch10. It has been renamed to avoid
31669 overloading.
31670
31671 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
31672
31673 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31674
31675 * utils.c (build_vms_descriptor): Use SImode pointers.
31676
31677 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
31678
31679 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
31680
31681 2004-05-14 GNAT Script <nobody@gnat.com>
31682
31683 * Make-lang.in: Makefile automatically updated
31684
31685 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
31686
31687 Renaming of target specific files for clarity
31688
31689 * Makefile.in: Rename GNAT target specific files.
31690
31691 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
31692 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
31693 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
31694 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
31695 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
31696 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
31697 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
31698 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
31699 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
31700 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
31701 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
31702 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
31703 51osinte.adb, 51osinte.ads, 51system.ads,
31704 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31705 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
31706 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
31707 56tpopsp.adb, 57system.ads, 58system.ads,
31708 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
31709 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31710 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
31711 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
31712 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
31713 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31714 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
31715 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31716 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31717 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
31718 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
31719 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
31720 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
31721 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
31722 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
31723 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31724 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31725 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31726 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
31727 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
31728 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
31729 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
31730 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
31731 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31732 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31733 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31734 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31735 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31736 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31737 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31738 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31739 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31740 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31741 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31742 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31743 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31744 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31745 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31746 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31747 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31748
31749 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
31750 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
31751 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
31752 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
31753 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
31754 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
31755 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
31756 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
31757 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
31758 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
31759 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
31760 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
31761 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
31762 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
31763 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
31764 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
31765 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
31766 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
31767 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
31768 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
31769 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
31770 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
31771 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
31772 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
31773 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
31774 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
31775 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
31776 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
31777 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
31778 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
31779 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
31780 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
31781 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
31782 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
31783 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
31784 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
31785 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
31786 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
31787 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
31788 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
31789 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
31790 s-osinte-vms.ads, s-osinte-vxworks.adb,
31791 s-osinte-vxworks.ads, s-osprim-mingw.adb,
31792 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
31793 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
31794 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
31795 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
31796 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
31797 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
31798 s-stchop-vxworks.adb, s-taprop-dummy.adb,
31799 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
31800 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
31801 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
31802 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
31803 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
31804 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
31805 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
31806 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
31807 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
31808 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
31809 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
31810 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
31811 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
31812 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
31813 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
31814 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
31815 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
31816 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
31817 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
31818 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
31819 system-irix-o32.ads, system-linux-x86_64.ads,
31820 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
31821 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
31822 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
31823 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
31824 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
31825 system-vxworks-mips.ads, system-vxworks-ppc.ads,
31826 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
31827 above.
31828
31829 2004-05-13 Zack Weinberg <zack@codesourcery.com>
31830
31831 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
31832
31833 2004-05-13 Diego Novillo <dnovillo@redhat.com>
31834
31835 Merge from tree-ssa-20020619-branch.
31836
31837 * config-lang.in (boot_language, build_by_default): Set
31838 to no.
31839 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
31840 (max_size): Add static chain op for call_expr.
31841
31842 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
31843
31844 PR target/15331
31845 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
31846
31847 2004-05-11 Roger Sayle <roger@eyesopen.com>
31848
31849 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
31850 COND_EXPR.
31851
31852 2004-05-10 Doug Rupp <rupp@gnat.com>
31853
31854 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
31855 system.aux_dec.
31856
31857 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
31858
31859 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
31860
31861 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
31862 Fixes undefined symbols in IA64 gnatlib.
31863
31864 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
31865
31866 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
31867 Short_Address). This will be moved to system.auxdec.
31868
31869 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
31870
31871 * sem_util.adb: Replace test for presence of a node that is always
31872 present with a call to Discard_Node.
31873
31874 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
31875 Analyze on the library unit node after generation of distribution stub
31876 constructs. The call was a no-op because Unit_Node has already been
31877 Analyzed, and the tree fragments for the distribution stubs are
31878 analyzed as they are inserted in Exp_Dist.
31879 Update comment regarding to distribution stubs to reflect that we
31880 do not generate stub in separate files anymore.
31881
31882 * einfo.ads: Clarify the fact that a tagged private type has the
31883 E_Record_Type_With_Private Ekind.
31884
31885 * erroutc.adb: Minor reformatting
31886
31887 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
31888 values if line length is increased using -gnatyM (noticed during code
31889 reading).
31890
31891 * eval_fat.adb: Minor reformatting
31892 Put spaces around exponentiation operator
31893
31894 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31895
31896 PR ada/15005
31897 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
31898 has been rewritten as an explicit dereference, retrieve type of
31899 original node to check for possibly unconstrained record type.
31900
31901 2004-05-10 Ed Schonberg <schonberg@gnat.com>
31902
31903 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
31904 overriding, use the operation of the parent unconditionally.
31905
31906 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
31907 operation when either operand is a literal, to avoid further
31908 ambiguities.
31909
31910 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
31911 overridden by a previous explicit declaration, mark the previous entity
31912 as overriding.
31913
31914 * sem_disp.adb (Check_Dispatching_Operation): New predicate
31915 Is_Visibly_Controlled, to determine whether a declaration of a
31916 primitive control operation for a derived type overrides an inherited
31917 one. Add warning if the explicit declaration does not override.
31918
31919 2004-05-10 Vincent Celier <celier@gnat.com>
31920
31921 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
31922 some cases when the sources are no longer present.
31923
31924 * make.adb (Collect_Arguments): Fail if an external source, not part
31925 of any project need to be compiled, when switch -x has not been
31926 specified.
31927
31928 * makeusg.adb: Document new switch -x
31929
31930 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
31931 defaulted to False.
31932
31933 * switch-m.adb (Scan_Make_Switches): New switch -x
31934
31935 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
31936 gnatmake switch -x.
31937
31938 * gnat_ugn.texi: Document new gnatmake switch -x
31939
31940 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
31941
31942 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
31943
31944 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
31945 (process_attributes): Likewise.
31946
31947 2004-05-10 Joel Brobecker <brobecker@gnat.com>
31948
31949 * s-inmaop.ads: Fix spelling mistake in one of the comments.
31950
31951 2004-05-10 Robert Dewar <dewar@gnat.com>
31952
31953 * gnat_ugn.texi: Document that for config pragma files, the maximum
31954 line length is always 32767.
31955
31956 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
31957 literals is now allowed.
31958
31959 * gnat-style.texi: Remove statement about splitting long lines before
31960 an operator rather than after, since we do not follow this rule at all.
31961 Clarify rule (really lack of rule) for spaces around exponentiation
31962
31963 * sem_elim.adb: Allow concatenation of string literals as well as a
31964 single string literal for pragma arguments.
31965
31966 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
31967
31968 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
31969 written for append case.
31970
31971 * frontend.adb: Changes to avoid checking max line length in config
31972 pragma files.
31973
31974 * g-os_lib.ads: Minor reformatting
31975
31976 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
31977 wrong in any case. Instead use standard value. Noticed during code
31978 reading.
31979
31980 * opt.ads (Max_Line_Length): New field, used to implement removal of
31981 limitation on length of lines when scanning config pragma files.
31982
31983 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
31984 makeutl.ads, makeutl.adb: Minor reformatting
31985
31986 * scn.adb: Do not check line length while scanning config pragma files
31987 Do not check line length while scanning out license information
31988
31989 * scng.adb: Changes to avoid line length checks while parsing config
31990 pragma files.
31991
31992 2004-05-10 GNAT Script <nobody@gnat.com>
31993
31994 * Make-lang.in: Makefile automatically updated
31995
31996 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
31997
31998 * osint.adb (Find_Program_Name): Fix handling of VMS version
31999 number.
32000
32001 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
32002
32003 * g-os_lib.ads (Invalid_Time): New constant
32004
32005 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32006 return OS_Time instead of time_t to match what is imported by Ada.
32007 Now return -1 if the file doesn't exist, instead of a random value
32008
32009 2004-05-05 Robert Dewar <dewar@gnat.com>
32010
32011 * usage.adb: Add line for -gnatR?s switch
32012
32013 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32014
32015 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32016 and for Match (Data_First, Data_last)
32017
32018 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32019 written when we are dealing with multi-unit files.
32020
32021 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
32022
32023 * Makefile.in: Remove unused targets and variables.
32024
32025 2004-05-05 Vincent Celier <celier@gnat.com>
32026
32027 * switch-m.adb: New gnatmake switch -eI
32028
32029 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32030 of new gnatmake switch -eInnn.
32031
32032 * makegpr.adb: Take into account new parameters Index and Src_Index in
32033 Prj.Util.
32034
32035 * clean.adb: Implement support for multi-unit sources, including new
32036 switch -i.
32037
32038 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32039 Src_Index.
32040
32041 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32042 (Extract_From_Q): New out parameter Index
32043 (Mark, Is_Marked): Subprograms moved to Makeutl
32044 (Switches_Of): New parameter Source_Index
32045 (Add_Switch): New parameter Index
32046 (Check): New parameter Source_Index
32047 (Collect_Arguments): New parameter Source_Index
32048 (Collect_Arguments_And_Compile): New parameter Source_Index
32049 (Compile): New parameter Source_Index
32050 Put subprograms in alphabetical order
32051 Add support for multi-source sources, including in project files.
32052
32053 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32054 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32055 Make.
32056
32057 * makeusg.adb: New gnatmake switch -eInnn
32058
32059 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32060 Prj.Util.Value_Of.
32061
32062 * opt.ads (Main_Index): New variable, defaulted to 0.
32063
32064 * osint.ads, osinte.adb (Add_File): New parameter Index
32065 (Current_Source_Index): New function
32066
32067 * prj.adb: Take into account new components Index and Src_Index
32068
32069 * prj.ads (String_Element): New component Index
32070 (Variable_Value): New component Index
32071 (Array_Element): New component Src_Index
32072
32073 * prj-attr.adb: Indicate that optional index may be specified for
32074 attributes Main, Executable, Spec, Body and some of Switches.
32075
32076 * prj-attr.ads (Attribute_Kind): New values for optional indexes
32077 (Attribute_Record): New component Optional_Index
32078
32079 * prj-com.ads (File_Name_Data): New component Index
32080
32081 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
32082
32083 * prj-env.adb (Put): Output optional index
32084
32085 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
32086 attributes Spec and Body.
32087
32088 * prj-nmsc.adb: Process optional indexes
32089
32090 * prj-pp.adb: Ouput "at" for optional indexes
32091
32092 * prj-proc.adb: Take into account optional indexes
32093
32094 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
32095 Optional_Index. For string literal,
32096 process optional index when Optional_Index is True.
32097 (Parse_Expresion): New Boolean parameter Optional_Index
32098
32099 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
32100 (Set_Source_Index_Of): New procedure
32101
32102 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
32103 index.
32104
32105 * prj-util.ads (Executable_Of): New parameter Index
32106 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
32107 New parameter Src_Index, defaulted to 0.
32108
32109 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32110
32111 PR ada/15257
32112 * sem_ch3.adb (Access_Definition): If this is an access parameter
32113 whose designated type is imported through a limited_with clause, do
32114 not add the enclosing subprogram to the list of private dependents of
32115 the type.
32116
32117 2004-05-05 Ed Schonberg <schonberg@gnat.com>
32118
32119 PR ada/15258
32120 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
32121 a limited_with clause, and the other is its non-limited view.
32122
32123 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
32124
32125 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
32126
32127 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
32128 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
32129 Stand.Boolean_Literals to produce references to entities
32130 Standard_False and Standard_True from compile-time computed boolean
32131 values.
32132
32133 * stand.ads (Boolean_Literals): New variable, provides the entity
32134 values for False and True, for use by the expander.
32135
32136 2004-05-05 Doug Rupp <rupp@gnat.com>
32137
32138 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
32139 5vinmaop.adb: Unchecked convert Short_Address vice Address
32140
32141 * adaint.c, raise.c: Caste CRTL function return value
32142 to avoid gcc error on 32/64 bit IVMS.
32143
32144 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
32145 target = IA64/VMS.
32146
32147 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
32148
32149 * 5qsystem.ads (Address): Declare as Long_Integer
32150 (Short_Address): Declare as 32 bit subtype of Address
32151 Declare abstract address operations to avoid gratuitous ambiguities.
32152
32153 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
32154
32155 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
32156 instead of the old Boolean_Entry_Barriers.
32157 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
32158
32159 2004-05-05 GNAT Script <nobody@gnat.com>
32160
32161 * Make-lang.in: Makefile automatically updated
32162
32163 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32164
32165 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
32166
32167 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
32168
32169 PR ada/15152
32170 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
32171 alone. Replacing object references by literals is inappropriate in a
32172 so low level context.
32173
32174 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32175
32176 * a-exexpr.adb: Add comments
32177
32178 2004-05-03 Joel Brobecker <brobecker@gnat.com>
32179
32180 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
32181 declare the Ancestor_Tags array in Type_Specific_Data with a small size
32182 without risking a bounds check error when accessing one of its
32183 components.
32184 (Type_Specific_Data): Define Ancestor_Tags as a small array.
32185 This prevents us from hitting a limitation during the debug info
32186 generation when using stabs.
32187
32188 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
32189 small array.
32190 This prevents us from hitting a limitation during the debug info
32191 generation when using stabs.
32192
32193 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
32194
32195 lang-specs.h: Remove -gnatz* from specs.
32196
32197 2004-05-03 Vincent Celier <celier@gnat.com>
32198
32199 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
32200
32201 * Make-lang.in, Makefile.in: Add gprmake
32202
32203 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
32204
32205 * sem_aggr.adb: Fix typo in comment.
32206
32207 2004-05-03 Robert Dewar <dewar@gnat.com>
32208
32209 * make.adb: Minor reformatting
32210
32211 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
32212
32213 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
32214 so that it works when address is not a private type.
32215
32216 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
32217 properly with rewritten unchecked conversions. This prevents
32218 order-of-elaboration issues that can otherwise arise.
32219 (Minimum_Size): Don't check size of access types under VMS
32220
32221 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
32222 interpretations of integer literals as type System.Address.
32223
32224 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
32225 (Is_Descendent_Of): New function
32226
32227 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
32228
32229 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32230 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
32231 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
32232
32233 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
32234 of the old Max_Entry_Queue_Depth.
32235
32236 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32237 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
32238 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
32239
32240 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
32241 New entry for proper handling of Max_Entry_Queue_Depth.
32242 New entry for proper handling of No_Dynamic_Interrupts.
32243
32244 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
32245 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32246 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
32247 the GNAT specific restriction Max_Entry_Queue_Depth.
32248 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
32249 the GNAT specific restriction No_Dynamic_Interrupts.
32250
32251 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
32252 instead of the old Boolean_Entry_Barriers.
32253 Use the new restriction No_Dynamic_Attachment instead of the old
32254 No_Dynamic_Interrupts.
32255
32256 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
32257 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32258
32259 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
32260 of the old Max_Entry_Queue_Depth.
32261
32262 2004-05-03 GNAT Script <nobody@gnat.com>
32263
32264 * Make-lang.in: Makefile automatically updated
32265
32266 2004-04-29 Ed Schonberg <schonberg@gnat.com>
32267
32268 * checks.adb (Enable_Range_Check): If the prefix of an index component
32269 is an access to an unconstrained array, perform check unconditionally.
32270
32271 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32272
32273 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
32274 Component_Clause.
32275
32276 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
32277
32278 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
32279 alternate stack setting. There was no support for the tasking cases
32280 and the changes eventually caused a number of side-effect failures in
32281 the non-tasking case too.
32282
32283 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
32284
32285 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
32286 -gnats is passed.
32287
32288 2004-04-29 Vincent Celier <celier@gnat.com>
32289
32290 * make.adb (Gnatmake): Increase max size of argument array for
32291 gnatbind for the potential addition of -F.
32292 If there are Stand-Alone Library projects, invoke gnatbind with -F to
32293 be sure that elaboration flags will be checked.
32294
32295 * switch-c.adb: Correct call to Scan_Pos for -gnateI
32296
32297 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
32298
32299 * sem_warn.adb (Check_References): Move '<access-variable> may be
32300 null' warning out of under Warn_On_No_Value_Assigned.
32301
32302 2004-04-29 Ed Falis <falis@gnat.com>
32303
32304 * gnat_ugn.texi: Fixed texi error
32305
32306 2004-04-29 Robert Dewar <dewar@gnat.com>
32307
32308 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
32309 abstract operations if they come from predefined files.
32310
32311 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
32312 Dynamic, not RM).
32313
32314 * s-addope.adb: Correct obvious error in mod function
32315
32316 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
32317
32318 * Makefile.in: Add target pairs for powerpc darwin*
32319 tasking support.
32320
32321 * a-intnam-darwin.ads, s-osinte-darwin.adb,
32322 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
32323
32324 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32325
32326 * Makefile.in: Add target macro definitions for s390*-linux*.
32327 * system-linux-s390.ads: New file.
32328 * system-linux-s390x.ads: New file.
32329
32330 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
32331
32332 * gnat_ugn.texi: Correct argument to @setfilename.
32333
32334 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32335
32336 * a-exexpr.adb (Unwind_Word): New data type.
32337 (Unwind_Exception): Use it as type of Private1 and Private2.
32338
32339 * raise.c (db_action_for): Fix debug printf.
32340
32341 2004-04-27 Ed Schonberg <schonberg@gnat.com>
32342
32343 * a-wtmoio.ads: Formal type must be a modular type, not a signed
32344 integer type.
32345
32346 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32347
32348 * decl.c (gnat_to_gnu_entity, case object): Call
32349 __builtin_update_setjmp_buf.
32350
32351 * gigi.h (update_setjmp_buf): Deleted.
32352 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
32353
32354 * misc.c: (update_setjmp_buf): Deleted.
32355
32356 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
32357 around block of RTL.
32358
32359 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
32360
32361 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
32362
32363 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
32364 subprogram for which no pragma All_Calls_Remote applies, store the
32365 address of the real subprogram in the underlying record type, so local
32366 dereferences do not go through the PCS.
32367
32368 2004-04-26 Robert Dewar <dewar@gnat.com>
32369
32370 * i-c.ads: Add some type qualifications to avoid ambiguities when
32371 compiling with s-auxdec.ads and a non-private address type.
32372
32373 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
32374
32375 * Makefile.rtl: Fix error in previous check-in:
32376 Add s-addope.o to non tasking object list (rather than tasking object
32377 list).
32378
32379 2004-04-26 Javier Miranda <miranda@gnat.com>
32380
32381 * sem_aggr.adb: Fix typo in comments
32382 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
32383 Required to check the null-exclusion attribute.
32384
32385 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
32386 case of anonymous access types in record and array components. For a
32387 component definition the level is the same of the enclosing composite
32388 type.
32389
32390 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
32391 that are anonymous access types the level of accessibility depends on
32392 the enclosing type declaration. In order to have this information, set
32393 the scope of the anonymous access type to the enclosing record type
32394 declaration.
32395 (Array_Type_Declaration): In case of components that are anonymous
32396 access types the level of accessibility depends on the enclosing type
32397 declaration. In order to have this information, set the scope of the
32398 anonymous access type to the enclosing array type declaration.
32399
32400 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
32401 access type.
32402
32403 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
32404 renaming of anonymous access-to-constant types allowed if and only if
32405 the renamed object is access-to-constant.
32406
32407 * sem_util.adb (Type_Access_Level): In case of anonymous access types
32408 that are component_definition or discriminants of a nonlimited type,
32409 the level is the same as that of the enclosing component type.
32410
32411 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
32412
32413 * sem_elim.adb: Some minor code reorganization from code reading. Fix
32414 misprint in the function name (File_Name_Match).
32415
32416 2004-04-23 Laurent Guerby <laurent@guerby.net>
32417
32418 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
32419 install.
32420
32421 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32422
32423 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
32424
32425 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
32426
32427 * adaint.c (__gnat_try_lock): No longer requires that the parent
32428 directory be writable, the directory itself is enough.
32429 (gnat_is_absolute_path): Change profile, so that the call from
32430 GNAT.OS_Lib can be made more efficient.
32431
32432 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
32433 from GNAT.OS_Lib can be made more efficient.
32434
32435 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
32436 one copy of the file name. Found by code reading.
32437
32438 2004-04-23 Vincent Celier <celier@gnat.com>
32439
32440 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
32441 Correct documentation on gnatmake switches transmitted to the compiler
32442
32443 * ali.ads: Minor comment fix
32444
32445 2004-04-23 Javier Miranda <miranda@gnat.com>
32446
32447 * sem_ch6.adb: (Confirming Types): Code cleanup
32448
32449 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
32450 subprogram types: E_Anonymous_Access_Subprogram_Type and
32451 E_Anonymous_Access_Protected_Subprogram_Type.
32452
32453 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
32454
32455 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32456 whether a pragma All_Calls_Remote applies to the subprogram on which
32457 'Access is taken.
32458 No functional change is introduced by this revision; the new parameter
32459 will be used to allow calls to local RCI subprograms to be optimized
32460 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32461 as is already done in the PolyORB implementation of the DSA.
32462
32463 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32464 whether a pragma All_Calls_Remote applies to the subprogram on which
32465 'Access is taken.
32466 No functional change is introduced by this revision; the new parameter
32467 will be used to allow calls to local RCI subprograms to be optimized
32468 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32469 as is already done in the PolyORB implementation of the DSA.
32470
32471 2004-04-23 Robert Dewar <dewar@gnat.com>
32472
32473 * Makefile.rtl: Add entry for s-addope.o in run time library list
32474 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
32475 * s-addope.ads, s-addope.adb: New files.
32476
32477 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
32478 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
32479 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
32480 System.Address to be non-private and signed.
32481
32482 * sem_elim.adb: Minor reformatting (fairly extensive)
32483 Some minor code reorganization from code reading
32484 Add a couple of ??? comments
32485
32486 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32487
32488 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
32489 (tree_transform, case N_If_Statement): Remove non-determinism.
32490
32491 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
32492
32493 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
32494
32495 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
32496 Eliminate' section.
32497
32498 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
32499 no longer used as a parameter name for Eliminate pragma).
32500
32501 2004-04-22 Laurent Guerby <laurent@guerby.net>
32502
32503 PR optimization/14984
32504 PR optimization/14985
32505 * trans.c (gigi): Fix non determinism leading to bootstrap
32506 comparison failures.
32507
32508 2004-04-21 Pascal Obry <obry@gnat.com>
32509
32510 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
32511 passed to spawnvp() to properly handle program pathname with spaces on
32512 Win32.
32513
32514 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
32515
32516 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
32517 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
32518 unlocked in case of exceptions.
32519
32520 2004-04-21 Joel Brobecker <brobecker@gnat.com>
32521
32522 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
32523 This function does not exist anymore.
32524
32525 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
32526
32527 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
32528
32529 * link.c: Move variables to the __gnat name space.
32530
32531 * Makefile.in: list link.o explicitly when needed.
32532
32533 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
32534
32535 2004-04-21 Javier Miranda <miranda@gnat.com>
32536
32537 * einfo.adb (Original_Access_Type): New subprogram
32538 (Set_Original_Access_Type): New subprogram
32539 (Write_Field21_Name): Write the name of the new field
32540
32541 * einfo.ads (Original_Access_Type): New field present in access to
32542 subprogram types.
32543 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
32544 E_Anonymous_Access_Protected_Subprogram_Type.
32545
32546 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
32547 subprogram types.
32548
32549 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
32550 to anonymous access to subprogram types.
32551
32552 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
32553 to subprogram types.
32554
32555 * sem_ch3.adb (Access_Definition): Complete decoration of entities
32556 corresponding to anonymous access to subprogram types.
32557 (Analyze_Component_Declaration): Add new actual to the call to
32558 subprogram replace_anonymous_access_to_protected_subprogram.
32559 (Array_Type_Declaration): Add new actual to the call to subprogram
32560 replace_anonymous_access_to_protected_subprogram.
32561 (Process_Discriminants): Add new actual to the call to subprogram
32562 replace_anonymous_access_to_protected_subprogram.
32563 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
32564
32565 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32566 formal.
32567
32568 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
32569 access to subprogram types.
32570
32571 * sem_util.adb (Has_Declarations): Addition of package_specification
32572 nodes.
32573
32574 2004-04-21 Ed Schonberg <schonberg@gnat.com>
32575
32576 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
32577 inlined flags to renamed entity only if in current unit.
32578
32579 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
32580
32581 * s-parint.ads: Add DSA implementation marker.
32582
32583 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
32584 value of System.Partition_Interface.DSA_Implementation to determine
32585 what version of the distributed systems annex is available (no
32586 implementation, GLADE, or PolyORB).
32587
32588 2004-04-21 Joel Brobecker <brobecker@gnat.com>
32589
32590 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
32591
32592 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32593
32594 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
32595 with new type if alias sets differ.
32596 Fixes ACATS c41103b.
32597
32598 2004-04-21 Vincent Celier <celier@gnat.com>
32599
32600 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
32601 Add array Lang_Args for the language specific compiling argument
32602 switches.
32603
32604 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
32605
32606 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
32607
32608 * gnat_rm.texi: Update the descripton of the Eliminate pragma
32609 according to the recent changes in the format of the parameters of the
32610 pragma (replacing Homonym_Number with Source_Location).
32611
32612 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
32613
32614 * 5isystem.ads: Removed, unused.
32615
32616 * gnat_rm.texi: Redo 1.13 change.
32617
32618 2004-04-19 Robert Dewar <dewar@gnat.com>
32619
32620 * s-stoele.ads: Clean up definition of Storage_Offset (the new
32621 definition is cleaner, avoids the kludge of explicit Standard operator
32622 references, and also is consistent with a visible System.Address with
32623 no visible operations.
32624
32625 * s-geveop.adb: Add declarations to avoid assumption of visible
32626 operations on type System.Address (since these might not be available
32627 if Address is a non-private type for which the operations
32628 are made abstract).
32629
32630 * sem_eval.adb: Minor reformatting
32631
32632 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
32633 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
32634 reformatting (new function spec format).
32635
32636 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
32637 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
32638 s-caun64.adb: Add declarations to avoid assumption of visible
32639 operations on type System.Address (since these might not be available
32640 if Address is a non-private type for which the operations are made
32641 abstract).
32642
32643 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
32644
32645 * exp_intr.adb: Minor comment update
32646
32647 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
32648
32649 * 5omastop.adb: Add declarations to avoid assumption of visible
32650 operations on type System.Address (since these might not be available
32651 if Address is a non-private type for which the operations
32652 are made abstract).
32653
32654 2004-04-19 Vincent Celier <celier@gnat.com>
32655
32656 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
32657
32658 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
32659 defaulted to Ada.
32660
32661 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
32662 defaulted to Ada.
32663 Call Check with Process_Languages.
32664 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
32665 with Process_Languages.
32666 (Recursive_Check): New Boolean parameter Process_Languages. Call
32667 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
32668 Process_Languages.
32669
32670 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
32671
32672 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
32673 parameter Ada_Main, defaulted to True.
32674 Check for Ada specific characteristics only when Ada_Main is True.
32675
32676 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
32677
32678 * prj.adb: (Project_Empty): Add new Project_Data components.
32679
32680 * prj.ads: New types and tables for non Ada languages.
32681 (Project_Data): New components Languages, Impl_Suffixes,
32682 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
32683 Include_Path, Include_Data_Set.
32684
32685 * prj-env.ads, prj-env.adb: Minor reformatting
32686
32687 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
32688 Put subprograms in alphabetical order
32689
32690 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
32691 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
32692 Opt.Follow_Links.
32693
32694 * mlib-prj.adb: Back out modification in last version, as they are
32695 incorrect.
32696 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
32697
32698 * make.adb: (Mains): Moved to package Makeutl
32699 (Linker_Opts): Moved to package Makeutl
32700 (Is_External_Assignment): Moved to package Makeutl
32701 (Test_If_Relative_Path): Moved to package Makeutl
32702 (Gnatmake): Move sorting of linker options to function
32703 Makeutl.Linker_Options_Switches.
32704
32705 * makeutl.ads, makeutl.adb: New files.
32706
32707 * Makefile.in: Add makeutl.o to the object files for gnatmake
32708
32709 * makeusg.adb: Add line for new switch -eL.
32710
32711 * gnatls.adb (Image): New function.
32712 (Output_Unit): If in verbose mode, output the list of restrictions
32713 specified by pragmas Restrictions.
32714
32715 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
32716 Text_IO.
32717
32718 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
32719 needed, to put it in the range 1970 (included) - 2026 (excluded).
32720 (Time_Of): Do not shift Unix_Min_Year (1970).
32721 Shift the date by multiple of 56 years, if needed, to put it in the
32722 range 1970 (included) - 2026 (excluded).
32723
32724 * adaint.h, adaint.c (__gnat_set_executable): New function.
32725
32726 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32727
32728 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
32729 and pop GC context.
32730 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
32731 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32732 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32733 (tree_transform, case N_Code_Statement): Likewise.
32734 (gnat_expand_stmt, case LABEL_STMT): Don't look at
32735 LABEL_STMT_FIRST_IN_EH.
32736 (gnat_expand_stmt, case ASM_STMT): New case.
32737
32738 * utils2.c (build_unary_op): Properly set TREE_READONLY of
32739 UNCONSTRAINED_ARRAY_REF.
32740
32741 * utils.c (poplevel): Temporarily push/pop GC context around inline
32742 function expansion.
32743
32744 * decl.c (maybe_variable): Properly set TREE_READONLY of
32745 UNCONSTRAINED_ARRAY_REF.
32746 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32747
32748 * ada-tree.def: (ASM_STMT): New.
32749
32750 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
32751 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
32752 ASM_STMT_INPUT): New.
32753 (ASM_STMT_CLOBBER): Likewise.
32754
32755 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
32756
32757 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
32758 general rcheck mechanism to raise Program_Error for E.4(18), instead
32759 of a custom raiser in System.Partition_Interface.
32760 Part of general cleanup work before PolyORB integration.
32761
32762 * snames.ads, snames.adb: Add new runtime library entities and names
32763 for PolyORB DSA.
32764
32765 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32766 exp_dist.
32767 (Build_Subprogram_Id): New subprogram provided by exp_dist
32768 Code reorganisation in preparation for PolyORB integration.
32769
32770 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
32771 exp_dist.
32772 (Build_Subprogram_Id): New subprogram provided by exp_dist
32773
32774 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
32775 actual parameter types for call to dereference of an
32776 access-to-subprogram type.
32777
32778 * rtsfind.ads: Add new runtime library entities and names for PolyORB
32779 DSA.
32780
32781 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
32782 instead, which has the same behaviour here since we never pass it a
32783 NULL pointer.
32784
32785 * link.c (run_path_option, Solaris case): Use -Wl, as for other
32786 platforms.
32787
32788 * Makefile.in: adjust object file lists for gnatlink and gnatmake
32789 to account for new dependency upon Interfaces.C.Strings + link.o
32790 For x86 FreeBSD, use 86numaux.
32791
32792 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
32793 from Mlib.Tgt to Mlib.
32794
32795 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
32796 target-independent.
32797
32798 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
32799 target-specific versions of this subprogram, now implemented as a
32800 target-independent function in Mlib.
32801
32802 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
32803 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
32804 (Linker_Library_Path_Option): Remove target-specific versions of this
32805 subprogram, now implemented as a target-independent function in Mlib.
32806
32807 * atree.adb: (Allocate_Initialize_Node): New subprogram.
32808 Factors out node table slots allocation.
32809 (Fix_Parents): New subprogram.
32810 Encapsulate the pattern of fixing up parent pointers for syntactic
32811 children of a rewritten node.
32812 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
32813 (Rewrite): Use New_Copy when creating saved copy of original node.
32814 (Replace): Use Copy_Node to copy nodes.
32815
32816 2004-04-19 Javier Miranda <miranda@gnat.com>
32817
32818 * sprint.adb (Sprint_Node_Actual): Give support to the new
32819 Access_To_Subprogram node available in Access_Definition nodes. In
32820 addition, give support to the AI-231 node fields: null-exclusion,
32821 all-present, constant-present.
32822
32823 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
32824
32825 * sinfo.ads, sinfo.adb:
32826 New field Access_To_Subprogram_Definition in Access_Definition nodes
32827
32828 * sem_ch6.adb (Process_Formals): Move here the code that creates and
32829 decorates internal subtype declaration corresponding to the
32830 null-excluding formal. This code was previously in Set_Actual_Subtypes.
32831 In addition, carry out some code cleanup on this code. In case of
32832 access to protected subprogram call
32833 Replace_Anonymous_Access_To_Protected_Subprogram.
32834 (Set_Actual_Subtypes): Code cleanup.
32835
32836 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
32837 Find_Type in case of anonymous access renamings. Add warning in case of
32838 null-excluding attribute used in anonymous access renaming.
32839
32840 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32841 subprogram
32842
32843 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
32844 subprogram.
32845 (Access_Definition): In case of anonymous access to subprograms call
32846 the corresponding semantic routine to decorate the node.
32847 (Access_Subprogram_Declaration): Addition of some comments indicating
32848 some code that probably should be added here. Detected by comparison
32849 with the access_definition subprogram.
32850 (Analyze_Component_Declaration): In case of access to protected
32851 subprogram call Replace_Anonymous_Access_To_Protected.
32852 (Array_Type_Declaration): In case of access to protected subprogram call
32853 Replace_Anonymous_Access_To_Protected_Subprogram.
32854 (Process_Discriminants): In case of access to protected subprogram call
32855 Replace_Anonymous_Access_To_Protected_Subprogram.
32856
32857 * par.adb (P_Access_Definition): New formal that indicates if the
32858 null-exclusion part was present.
32859 (P_Access_Type_Definition): New formal that indicates if the caller has
32860 already parsed the null-excluding part.
32861
32862 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
32863 (P_Identifier_Declarations): Code cleanup and give support to renamings
32864 of anonymous access to subprogram types.
32865 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
32866 (P_Array_Type_Definition): Give support to AI-254.
32867 (P_Component_Items): Give support to AI-254.
32868 (P_Access_Definition): New formal that indicates if the header was
32869 already parsed by the caller.
32870 (P_Access_Type_Definition): New formal that indicates if the caller has
32871 already parsed the null-excluding part.
32872
32873 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
32874 call to P_Access_Definition.
32875
32876 2004-04-19 Geert Bosch <bosch@gnat.com>
32877
32878 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
32879 the delicate semantics of floating-point to integer conversion.
32880 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
32881
32882 * eval_fat.adb (Machine_Mantissa): Moved to spec.
32883 (Machine_Radix): New function.
32884
32885 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
32886 conversion checks.
32887 (Machine_Radix): New function also for use in conversion checks.
32888
32889 2004-04-19 Ed Schonberg <schonberg@gnat.com>
32890
32891 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
32892
32893 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
32894 to decorate the access-to-protected subprogram and the equivalent type.
32895
32896 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
32897 to anonymous access to subprogram types.
32898
32899 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
32900 constant-folding, for legality checks in contexts that require an RM
32901 static expression.
32902
32903 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
32904 temporary but stack checking is not enabled, increment serial number
32905 to so that symbol generation is consistent with and without stack
32906 checking.
32907
32908 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
32909 independent on whether stack checking is enabled, caller must check
32910 the corresponding flag.
32911
32912 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
32913 range checks.
32914 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
32915 parent if it has discriminants.
32916 (Build_Derived_Private_Type): Constructed full view does
32917 not come from source.
32918 (Process_Discriminants): Default discriminants on a tagged type are
32919 legal if this is the internal completion of a private untagged
32920 derivation.
32921
32922 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
32923 no constraint checks, because it corresponds to an existing object.
32924
32925 * sem_prag.adb (Process_Convention): Pragma applies
32926 only to subprograms in the same declarative part, i.e. the same unit,
32927 not the same scope.
32928
32929 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
32930 ignore type mismatch on a numeric conversion if expression comes from
32931 expansion.
32932
32933 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
32934
32935 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
32936 Homonym_Number parameter, add processing for Source_Location parameter
32937 corresponding.
32938 (Check_Eliminated): Remove the check for homonym numbers, add the check
32939 for source location traces.
32940
32941 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
32942 with Arg_Source_Location corresponding to the changes in the format of
32943 the pragma.
32944
32945 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
32946 Eliminate pragma corresponding to the changes in the format of the
32947 pragma: Homonym_Number is replaced with Source_Location, two ways of
32948 distinguishing homonyms are mutially-exclusive.
32949
32950 2004-04-19 Joel Brobecker <brobecker@gnat.com>
32951
32952 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
32953
32954 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
32955 No_Dollar_In_Label, no longer necessary, as it is always True.
32956 (Strip_Suffixes): Likewise.
32957
32958 2004-04-19 Gary Dismukes <dismukes@gnat.com>
32959
32960 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
32961 modulus for compatibility with size clause on targets with 16-bit
32962 Integer.
32963
32964 * layout.adb (Discrimify): In the case of private types, set Vtyp to
32965 full type to fix type mismatches on calls to size functions for
32966 discriminant-dependent array components.
32967
32968 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
32969
32970 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
32971 lib.
32972
32973 2004-04-19 Pascal Obry <obry@gnat.com>
32974
32975 * mdll-utl.adb (Locate): New version is idempotent.
32976
32977 2004-04-17 Laurent Guerby <laurent@guerby.net>
32978
32979 PR ada/14988 (partial)
32980 * impunit.adb: Fix typo.
32981
32982 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
32983
32984 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
32985 and install-rts-cert targets. Remove all gnatlib and gnattools
32986 targets and all other rts-* targets (moved to libada). Remove (now)
32987 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
32988 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
32989
32990 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32991
32992 * trans.c (tree_transform): Shortcut returning error_mark_node for
32993 statements in annotate_only_mode.
32994 (tree_transform, case N_Label, case N_Return_Statement,
32995 N_Goto_Statement): Make statement tree instead of generating code.
32996 (tree_transform, case N_Assignment_Statement): No longer check
32997 type_annotate_only.
32998 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
32999 RETURN_STMT): New.
33000 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33001 New fcns.
33002 (gnat_to_gnu): Collect any RTL generated and deal with it.
33003 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33004 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33005 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33006
33007 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33008
33009 * ada-tree.def (EXPR_STMT): Fix typo in name.
33010 (BLOCK_STMT, IF_STMT): New nodes.
33011
33012 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33013 LABEL_STMT_FIRST_IN_EH): New macros.
33014 (RETURN_STMT_EXPR): Likewise.
33015
33016 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33017 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33018
33019 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33020
33021 * atree.ads: Correct documentation on extended nodes.
33022
33023 * link.c: Set run_path_option for FreeBSD.
33024
33025 2004-04-08 Vincent Celier <celier@gnat.com>
33026
33027 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33028 one of the ALI file, do not link with DEC lib.
33029
33030 * par.adb Remove the last two characters ("%s" or "%b") when checking
33031 if a language defined unit may be recompiled.
33032
33033 2004-04-08 Ed Schonberg <schonberg@gnat.com>
33034
33035 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33036 removal of abstract operation leaves no possible interpretation for
33037 expression.
33038
33039 * sem_eval.adb (Eval_Qualified_Expression): Use
33040 Set_Raises_Constraint_Error on node when needed, so that it does not
33041 get optimized away by subsequent optimizations.
33042
33043 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33044 operands even when they are not wrapped in a type conversion.
33045
33046 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
33047
33048 * sem_prag.adb (Set_Exported): Warn about making static as result of
33049 export only when the export is coming from source. This may be not
33050 be true e.g. on VMS where we expand export pragmas for exception codes
33051 together with imported or exported exceptions, and we don't want the
33052 user to be warned about something he didn't write.
33053
33054 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
33055
33056 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33057 duplication between normal entities and those declared as renamings.
33058 No functional change.
33059
33060 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
33061 inline functions returning an unconstrained result.
33062
33063 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
33064
33065 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33066 conform to what other front-ends do.
33067
33068 2004-04-08 Doug Rupp <rupp@gnat.com>
33069
33070 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
33071 libraries.
33072
33073 2004-04-06 Pascal Obry <obry@gnat.com>
33074
33075 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
33076
33077 * osint.adb (Program_Name): Do not look past a directory separator.
33078
33079 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
33080
33081 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
33082
33083 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
33084 requirement for preserving a copy of the original assignment node.
33085
33086 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
33087
33088 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
33089
33090 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
33091 when supported.
33092
33093 2004-04-06 Ed Schonberg <schonberg@gnat.com>
33094
33095 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
33096 operator calls in functional notation, and apply
33097 Universal_Interpretation to operands, not to their type.
33098
33099 2004-04-06 Robert Dewar <dewar@gnat.com>
33100
33101 * 5wdirval.adb: Minor reformatting
33102
33103 2004-04-06 Ed Falis <falis@gnat.com>
33104
33105 * gnat_rm.texi: Improve a reference to the GCC manual
33106
33107 2004-04-05 Vincent Celier <celier@gnat.com>
33108
33109 * adaint.h, adaint.c: Add function __gnat_named_file_length
33110
33111 * impunit.adb: Add Ada.Directories to the list
33112
33113 * Makefile.in: Add VMS and Windows versions of
33114 Ada.Directories.Validity package body.
33115
33116 * Makefile.rtl: Add a-direct and a-dirval
33117
33118 * mlib-tgt.ads: Minor comment update.
33119
33120 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
33121 a-direct.ads, a-direct.adb: New files.
33122
33123 2004-04-05 Vincent Celier <celier@gnat.com>
33124
33125 PR ada/13620
33126 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
33127 just to the compiler.
33128
33129 2004-04-05 Robert Dewar <dewar@gnat.com>
33130
33131 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
33132 returned string is 1.
33133
33134 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
33135
33136 * eval_fat.ads: Minor reformatting
33137
33138 * g-curexc.ads: Document that lower bound of returned string values
33139 is always one.
33140
33141 * gnatlink.adb: Add ??? comment for previous change
33142 (need to document why this is VMS specific)
33143
33144 * s-stoele.ads: Minor reformatting
33145
33146 * tbuild.ads: Minor reformatting throughout (new function specs)
33147
33148 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
33149 after WITH.
33150
33151 * scng.adb: Minor reformatting
33152
33153 2004-04-05 Geert Bosch <bosch@gnat.com>
33154
33155 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
33156 (Leading_Part): Still perform truncation to machine number if the
33157 specified radix_digits is greater or equal to machine_mantissa.
33158
33159 2004-04-05 Javier Miranda <miranda@gnat.com>
33160
33161 * par-ch3.adb: Complete documentation of previous change
33162 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
33163 (aliased must appear before constant).
33164
33165 * par-ch4.adb: Complete documentation of previous change.
33166
33167 * par-ch6.adb: Complete documentation of previous change.
33168
33169 * sinfo.ads: Fix typo in commment.
33170
33171 2004-04-05 Ed Schonberg <schonberg@gnat.com>
33172
33173 * sem_ch3.adb (Inherit_Components): If derived type is private and has
33174 stored discriminants, use its discriminants to constrain parent type,
33175 as is done for non-private derived record types.
33176
33177 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
33178 Ada 2005 AI-310: an abstract non-dispatching operation is not a
33179 candidate interpretation in an overloaded call.
33180
33181 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
33182 expression is Null and target type is not an access type (e.g. a
33183 non-private address type).
33184
33185 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
33186
33187 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
33188 statement whose right-hand side is an inlined call, save a copy of the
33189 original assignment subtree to preserve enough consistency for
33190 Analyze_Assignment to proceed.
33191
33192 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
33193 complete assignment subtree which is now unnecessary, as the expansion
33194 of inlined call has been improved to preserve a consistent assignment
33195 tree. Note_Possible_Modification must be called only
33196 after checks have been applied, or else unnecessary checks will
33197 be generated.
33198
33199 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
33200 of explicit dereferences that do not Come_From_Source:
33201 - be selective on cases where we must go back to the dereferenced
33202 pointer (an assignment to an implicit dereference must not be
33203 recorded as modifying the pointer);
33204 - do not rely on Original_Node being present (Analyze_Assignment
33205 calls Note_Possible_Modification on a copied tree).
33206
33207 * sem_warn.adb (Check_References): When an unset reference to a pointer
33208 that is never assigned is encountered, prefer '<pointer> may be null'
33209 warning over '<pointer> is never assigned a value'.
33210
33211 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
33212
33213 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
33214 the ABI.
33215
33216 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
33217
33218 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
33219 libexc. We currently don't reference anything in this library and
33220 linking it in triggers linker warnings we don't want to see.
33221
33222 * init.c: Update comments.
33223
33224 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33225
33226 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
33227 * utils.c (create_field_decl): Likewise.
33228 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
33229
33230 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
33231
33232 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
33233 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
33234 Add info directory entry and category.
33235
33236 2004-04-02 Jan Hubicka <jh@suse.cz>
33237
33238 * utils.c: Include function.h
33239 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
33240
33241 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33242
33243 PR ada/14150
33244 * Make-lang.in: Clean up generation of documentation
33245
33246 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
33247
33248 * xgnatug.adb: Removed, replaced by xgnatugn.adb
33249
33250 * xgnatugn.adb: Replaces xgnatug.adb
33251
33252 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
33253
33254 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
33255
33256 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33257 gnat_ug_wnt.texi: Removed.
33258
33259 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33260
33261 * utils2.c: Update copyright notice.
33262
33263 2004-04-01 Robert Dewar <dewar@gnat.com>
33264
33265 * checks.adb: Minor reformatting throughout
33266 Note that prev checkin added RM reference to alignment warning
33267
33268 2004-04-01 Ed Schonberg <schonberg@gnat.com>
33269
33270 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
33271 non-static when building aggregate for bit-packed array.
33272
33273 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
33274 function call that is itself the actual in a procedure call, build
33275 temporary for it.
33276
33277 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
33278 a string literal, create a temporary for it, constant folding only
33279 handles scalars here.
33280
33281 2004-04-01 Vincent Celier <celier@gnat.com>
33282
33283 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
33284 Error_Msg_SP): New empty procedures to instantiate the Scanner.
33285 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
33286 tokens.
33287 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
33288 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
33289 and get the checksum.
33290
33291 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
33292 already in the Q.
33293 Increase the Marking_Label at the end of the Multiple_Main_Loop,
33294 instead of at the beginning.
33295
33296 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
33297 directly.
33298 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
33299 on VMS.
33300
33301 * osint.ads (Multi_Unit_Index_Character): New Character global variable
33302
33303 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
33304 not '~' directly.
33305
33306 * par.adb: Remove test on file name to detect language defined units.
33307 Add test on unit name, after parsing, to detect language defined units
33308 that are not compiled with -gnatg (except System.RPC and its children)
33309
33310 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
33311 following units without style checking.
33312
33313 * switch-c.adb: Change -gnatC to -gnateI
33314
33315 * usage.adb: Document new switch -gnateInnn
33316
33317 * scng.adb (Accumulate_Token_Checksum): New procedure
33318 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
33319 word or literal number.
33320 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
33321 numbers.
33322
33323 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
33324
33325 * a-tasatt.adb,
33326 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
33327 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
33328 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
33329 5vtpopde.adb: Add missing 'constant' keywords.
33330
33331 2004-04-01 Javier Miranda <miranda@gnat.com>
33332
33333 * par-ch4.adb: (P_Allocator): Code cleanup
33334
33335 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
33336 attribute.
33337
33338 * sinfo.ads: Complete documentation of previous change
33339
33340 2004-04-01 Pascal Obry <obry@gnat.com>
33341
33342 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
33343 only on VMS. This special handling was done because an old GNU/ld bug
33344 on Windows which has been fixed.
33345
33346 2004-04-01 GNAT Script <nobody@gnat.com>
33347
33348 * Make-lang.in: Makefile automatically updated
33349
33350 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33351
33352 * decl.c (gnat_to_gnu_entity, make_type_from_size):
33353 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
33354 * trans.c (tree_transform, convert_with_check): Likewise.
33355 * utils.c (gnat_signed_or_unsigned_type): Likewise.
33356 (build_vms_descriptor, unchecked_convert): Likewise.
33357 * utils2.c (nonbinary_modular_operation): Likewise.
33358
33359 2004-03-29 Javier Miranda <miranda@gnat.com>
33360
33361 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
33362 (Install_Null_Excluding_Check): Local subprogram that determines whether
33363 an access node requires a runtime access check and if so inserts the
33364 appropriate run-time check.
33365 (Apply_Access_Check): Call Install_Null_Excluding check if required
33366 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
33367
33368 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
33369
33370 * einfo.ads: Fix typo in comment
33371
33372 * exp_ch3.adb (Build_Assignment): Generate conversion to the
33373 null-excluding type to force the corresponding run-time check.
33374 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
33375 type to force the corresponding run-time check.
33376
33377 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
33378 the null-excluding type to force the corresponding run-time check.
33379
33380 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
33381 case of access types unless they have the null-excluding attribute.
33382
33383 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
33384 part.
33385
33386 * exp_util.ads: Fix typo in comment
33387
33388 * par.adb (P_Null_Exclusion): New subprogram
33389 (P_Subtype_Indication): New formal that indicates if the null-excluding
33390 part has been scanned-out and it was present
33391
33392 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
33393
33394 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
33395 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
33396 type to force the corresponding run-time check
33397 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
33398 components
33399 (Resolve_Array_Aggregate): Carry out some static checks
33400 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
33401
33402 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
33403 attribute must be set only if specified by means of the null-excluding
33404 part. In addition, we must also propagate the access-constant attribute
33405 if present.
33406 (Access_Subprogram_Declaration, Access_Type_Declaration,
33407 Analyze_Component_Declaration, Analyze_Object_Declaration,
33408 Array_Type_Declaration, Process_Discriminants,
33409 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
33410 and carry out some static checks.
33411 (Build_Derived_Access_Type): Set the null-excluding attribute
33412 (Derived_Type_Declaration, Process_Subtype): Carry out some static
33413 checks.
33414
33415 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
33416
33417 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
33418
33419 * sem_ch6.adb (Process_Formals): Carry out some static checks.
33420 (Set_Actual_Subtypes): Generate null-excluding subtype if the
33421 null-excluding part was present; it is not required to be done here in
33422 case of anonymous access types.
33423 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
33424 value.
33425
33426 * sem_res.adb (Resolve_Actuals): Carry out some static check
33427 (Resolve_Null): Allow null in anonymous access
33428
33429 * sinfo.adb: New subprogram Null_Exclusion_Present
33430 All_Present and Constant_Present available on access_definition nodes
33431
33432 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
33433 object_declaration, derived_type_definition, component_definition,
33434 discriminant_specification, access_to_object_definition,
33435 access_function_definition, allocator, access_procedure_definition,
33436 access_definition, parameter_specification, All_Present and
33437 Constant_Present flags available on access_definition nodes.
33438
33439 2004-03-29 Robert Dewar <dewar@gnat.com>
33440
33441 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
33442 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
33443 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
33444 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
33445 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
33446 sem_prag.adb: Updates to handle multiple units/file
33447
33448 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
33449
33450 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
33451 sem_util.adb: Minor reformatting
33452
33453 * sem_ch12.adb: Add comment for previous change
33454
33455 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
33456
33457 * osint.adb (Executable_Prefix): Set Exec_Name to the current
33458 executable name when not initialized. Otherwise, use its current value.
33459
33460 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
33461 initialize it to another executable name than the current one. This
33462 allows to configure paths for an executable name (gnatmake) different
33463 from the current one (gnatdist).
33464
33465 2004-03-29 Ed Schonberg <schonberg@gnat.com>
33466
33467 * exp_ch6.adb (Expand_Call): A call to a function declared in the
33468 current unit cannot be inlined if it appears in the body of a withed
33469 unit, to avoid order of elaboration problems in gigi.
33470
33471 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
33472 information for protected (wrapper) operation as well, to simplify gdb
33473 use.
33474
33475 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
33476 protected body, indicate that the entity for the generated spec comes
33477 from source, to ensure that references are properly generated for it.
33478 (Build_Body_To_Inline): Do not inline a function that returns a
33479 controlled type.
33480
33481 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
33482 apply convention to homonyms that are declared explicitly.
33483
33484 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
33485 that renames an equality operator and the operands are overloaded,
33486 resolve them with the declared formal types, before rewriting as an
33487 operator.
33488
33489 2004-03-29 GNAT Script <nobody@gnat.com>
33490
33491 * Make-lang.in: Makefile automatically updated
33492
33493 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33494
33495 * memtrack.adb: Log realloc calls, which are treated as free followed
33496 by alloc.
33497
33498 2004-03-25 Vincent Celier <celier@gnat.com>
33499
33500 * prj-makr.adb (Process_Directories): Detect when a file contains
33501 several units. Do not include such files in the config pragmas or
33502 in the naming scheme.
33503
33504 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
33505 Resolve links only when not in Trusted_Mode.
33506 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
33507 Do not resolve links for the display names.
33508
33509 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
33510 resolve links when computing the display names.
33511
33512 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
33513
33514 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
33515 attribute reference does not denote a subtype, it can be any
33516 expression that has a classwide type, potentially after an implicit
33517 dereference. In particular, the prefix can be a view conversion for
33518 a classwide type (for which Is_Object_Reference holds), but it can
33519 also be a value conversion for an access-to-classwide type. In the
33520 latter case, there is an implicit dereference, and the original node
33521 for the prefix does not verify Is_Object_Reference.
33522
33523 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
33524 conversion of a discriminant-dependent component of a mutable object
33525 is one itself.
33526
33527 2004-03-25 Ed Schonberg <schonberg@gnat.com>
33528
33529 * freeze.adb (Freeze_Entity): When an inherited subprogram is
33530 inherited, has convention C, and has unconstrained array parameters,
33531 place the corresponding warning on the derived type declaration rather
33532 than the original subprogram.
33533
33534 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
33535 indication on renaming declaration, if formal has a box and actual
33536 is absent.
33537
33538 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
33539 determine whether to generate an implicit or explicit reference to
33540 the renamed entity.
33541
33542 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
33543 subprogram renaming comes from a defaulted formal subprogram in an
33544 instance.
33545
33546 2004-03-25 Gary Dismukes <dismukes@gnat.com>
33547
33548 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
33549 value expressions to ensure that calls within a component definition
33550 will be checked (since those are evaluated during the record type's
33551 elaboration).
33552
33553 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
33554
33555 * s-tpobop.adb: Code clean up:
33556 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
33557 code.
33558 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
33559
33560 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
33561
33562 * Makefile.in: Clean up in the ravenscar run time.
33563
33564 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33565
33566 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
33567 of No_Strict_Aliasing to build_pointer_type_for_mode.
33568 * utils.c (update_pointer_to): Walk pointer and ref chains.
33569
33570 2004-03-22 Cyrille Comar <comar@act-europe.fr>
33571
33572 * ali.ads: Fix Comment about Dynamic_Elab.
33573
33574 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
33575 Has_RACW, Is_Generic, etc.)
33576 (Output_Object, Gnatls): Take into account ALI files not attached to
33577 an object.
33578
33579 2004-03-22 Vincent Celier <celier@gnat.com>
33580
33581 * gprep.adb: Change all String_Access to Name_Id
33582 (Is_ASCII_Letter): new function
33583 (Double_File_Name_Buffer): New procedure
33584 (Preprocess_Infile_Name): New procedure
33585 (Process_Files): New procedure
33586 (Gnatprep): Check if output and input are existing directories.
33587 Call Process_Files to do the real job.
33588
33589 2004-03-22 Robert Dewar <dewar@gnat.com>
33590
33591 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
33592 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
33593
33594 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
33595
33596 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
33597 case when the source contains only comments.
33598
33599 2004-03-22 Ed Schonberg <schonberg@gnat.com>
33600
33601 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
33602 declaration for a child subprogram body that acts as a spec, indicate
33603 that the entity in the declaration needs debugging information.
33604
33605 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
33606 full view if the subtype is created for a constrained record component;
33607 gigi has enough information to construct the record, and there is no
33608 place in the tree for the declaration.
33609
33610 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
33611 serial number for the dummy body that is built for analysis, to avoid
33612 inconsistencies in the generation of internal names when compiling
33613 with -gnatN.
33614
33615 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
33616
33617 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
33618 object.
33619
33620 2004-03-22 GNAT Script <nobody@gnat.com>
33621
33622 * Make-lang.in: Makefile automatically updated
33623
33624 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33625
33626 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33627 * trans.c (tree_transform, emit_index_check): Likewise.
33628 * utils.c (build_template): Likewise.
33629 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
33630 (maybe_unconstrained_array, unchecked_convert): Likewise.
33631 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
33632 (build_unary_op): Likewise.
33633 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33634 (fill_vms_descriptor): Likewise.
33635 (build_call_alloc_dealloc): Likewise.
33636 ALIGN is unsigned.
33637 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
33638
33639 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
33640
33641 PR other/14630
33642 * gnat_ug.texi: Add info directory category and entry.
33643 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33644 gnat_ug_wnt.texi: Regenerate.
33645
33646 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
33647
33648 * ada-tree.h: Update copyright notice.
33649 Minor reformatting.
33650
33651 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
33652
33653 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
33654 as regular exception objects and not as mere integers representing the
33655 condition code. The latter approach required some dynamics to mask off
33656 severity bits, which did not fit well into the GCC table based model.
33657 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
33658 exception data objects. We don't it and it would conflict with the other
33659 external symbol we have to generate for such exceptions.
33660
33661 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
33662 the special code for VMS exceptions, since these are now represented
33663 as regular exceptions objects.
33664
33665 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33666
33667 * decl.c (debug_no_type_hash): Remove.
33668 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
33669 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
33670
33671 2004-03-19 Laurent Guerby <laurent@guerby.net>
33672
33673 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
33674 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
33675
33676 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33677
33678 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
33679 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
33680 (TYPE_RM_SIZE_INT): Directly use type.values.
33681 (TREE_LOOP_ID): Clean up check.
33682 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
33683 TYPE_VALUES, not TYPE_FIELDS.
33684 * trans.c (convert_with_check): Delay access of bounds of basetype
33685 until sure is numeric.
33686
33687 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
33688
33689 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
33690
33691 Code clean up:
33692 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
33693 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
33694 Specific.Set instead of direct call to e.g pthread_setspecific.
33695
33696 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
33697
33698 * adaint.c: Update comments.
33699
33700 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
33701 GNATLIB_SHARED for FreeBSD.
33702
33703 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
33704
33705 * init.c [VxWorks]: Do not fix the stack size for the environment task.
33706 When needed (stack checking) the stack size is retrieved
33707 from the VxWorks kernel.
33708
33709 * Makefile.in: Flag -nostdinc is required when building the run time
33710 for avoiding looking for files in the base compiler.
33711 Add the VxWorks specific version of the package body for
33712 System.Stack_checking.Operations (5zstchop.adb).
33713
33714 * Make-lang.in: Add the object file for
33715 System.Stack_Checking.Operations.
33716
33717 * Makefile.rtl: Add object file for the package
33718 System.Stack_Checking.Operations.
33719
33720 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
33721
33722 * s-stache.ads, s-stache.adb: Move the operations related to stack
33723 checking from this package to package System.Stack_Checking.Operations.
33724 This way, stack checking operations are only linked in the final
33725 executable when using the -fstack-check flag.
33726
33727 2004-03-18 Doug Rupp <rupp@gnat.com>
33728
33729 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
33730 Reorganize ifeq's.
33731
33732 * 5qsystem.ads, 5xcrtl.ads: New files.
33733
33734 2004-03-18 Vincent Celier <celier@gnat.com>
33735
33736 * prj.adb (Reset): Reset hash table Files_Htable
33737
33738 * prj-env.adb (Source_Paths, Object_Paths): New tables.
33739 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33740 the procedures Add_To_Path_File.
33741 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33742 making sure that each directory is present only once and, for object
33743 dirs, when a directory already present is added, the duplicate is
33744 removed and the directory is always put as the last in the table.
33745 Write the path files at the end of these accumulations.
33746
33747 * prj-nmsc.adb (Record_Source): Add source file name in hash table
33748 Files_Htable for all sources.
33749
33750 * prj-proc.adb (Process): Remove restrictions between not directly
33751 related extending projects.
33752
33753 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
33754
33755 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
33756 (Find_Sources): Minor speed optimization.
33757
33758 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
33759 parameter Trusted_Mode.
33760
33761 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
33762
33763 * scn.adb (Determine_License): Take into account a degenerated case
33764 when the source contains only comments.
33765
33766 2004-03-18 Ed Schonberg <schonberg@gnat.com>
33767
33768 * sem_warn.adb (Check_References): For a warning on a selected
33769 component that does not come from source, locate an uninitialized
33770 component of the record type to produce a more precise error message.
33771
33772 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
33773
33774 * 3zsoccon.ads: Fix multicast options.
33775
33776 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
33777 in the spec.
33778
33779 2004-03-15 Robert Dewar <dewar@gnat.com>
33780
33781 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
33782 pragma used for a private type.
33783
33784 * lib-xref.adb (Generate_Reference): Do not generate warning if
33785 reference is in a different unit from the pragma Unreferenced.
33786
33787 * 5vtpopde.adb: Minor reformatting
33788 Fix casing of To_Task_ID
33789
33790 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
33791 flag if we have an unchecked conversion to an access type in the same
33792 unit.
33793
33794 2004-03-15 Geert Bosch <bosch@gnat.com>
33795
33796 * a-ngcoty.adb (Modulus): In alternate formula for large real or
33797 imaginary parts, use Double precision throughout.
33798
33799 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
33800 we want to be able to compile run-time with -gnata for testing, but
33801 this may also be instantiated in user code that is compiled with -gnata.
33802
33803 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
33804
33805 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
33806 codes. Having a separate type for this is useful to enforce consistency
33807 throughout the various run-time units.
33808 (Exception_Data): Use Exception_Code for Import_Code.
33809
33810 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
33811 Natural and Integer in various places.
33812 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
33813 with the severity bits masked off.
33814 (Register_VMS_Exception): Handle the additional exception data pointer
33815 argument.
33816
33817 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
33818 component, now reflected by an exported accessor.
33819 (is_handled_by): New routine to compute whether the propagated
33820 occurrence matches some handler choice specification. Extracted out of
33821 get_action_description_for, and expanded to take care of the VMS
33822 specifities.
33823 (get_action_description_for): Use is_handled_by instead of an explicit
33824 complex condition to decide if the current choice at hand catches the
33825 propagated occurrence.
33826
33827 * raise.h (Exception_Code): New type for C.
33828
33829 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
33830 System.Standard_Library.Exception_Code, to allow references from the
33831 pragma import/export expander.
33832
33833 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
33834 New accessors to allow easy access to GNAT exception data
33835 characteristics.
33836 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
33837 redundant Handled_By_Others component, helper for the personality
33838 routine which will now be able to call the appropriate exception data
33839 accessor instead.
33840
33841 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
33842 component of Standard_Exception_Type to be the closest possible to
33843 Exception_Code in System.Standard_Library, that we cannot get at this
33844 point. Expand a ??? comment to notify that this type node should
33845 probably be rewritten later on.
33846
33847 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
33848 registration call to include a pointer to the exception object in the
33849 arguments.
33850
33851 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
33852 instead of int and explicit bitmasks.
33853
33854 2004-03-15 Vincent Celier <celier@gnat.com>
33855
33856 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
33857 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
33858
33859 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
33860 longer needed now that it is in the spec of
33861 System.Tasking.Task_Attributes.
33862
33863 * adaint.h, adaint.c: (__gnat_create_output_file): New function
33864
33865 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
33866
33867 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
33868
33869 * make.adb (Gnatmake): Do not check the executable suffix; it is being
33870 taken care of in Scan_Make_Arg.
33871 (Scan_Make_Arg): Add the executable suffix only if the argument
33872 following -o, in canonical case, does not end with the executable
33873 suffix. When in verbose mode and executable file name does not end
33874 with executable suffix, output the executable name, in canonical case.
33875
33876 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
33877 to avoid warnings when instantiating Ada.Task_Attributes.
33878 Minor reformating.
33879
33880 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
33881 in the correct order.
33882
33883 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
33884 redirect standard output and error to a file for the invocation of the
33885 compiler, then read the file.
33886
33887 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
33888 directory, instead of the Value.
33889 (Find_Source_Dirs): Remove useless code & comments.
33890
33891 2004-03-15 Ed Schonberg <schonberg@gnat.com>
33892
33893 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
33894 tagged type is inherited, and the parent operation is not frozen yet,
33895 force generation of a freeze node for the inherited operation, so the
33896 corresponding dispatch entry is properly initialized.
33897 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
33898 when looking for user-defined equality operation.
33899
33900 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
33901 boolean when locating primitive equality of tagged component.
33902
33903 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
33904 bit-aligned field and the right-hand side a string literal, introduce
33905 a temporary before expanding assignment into a loop.
33906
33907 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
33908 priority in full, to ensure that any expanded subepxressions of it are
33909 elaborated in the scope of the init_proc.
33910
33911 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
33912 after object declaration, skipping over code that may have been
33913 generated for validity checks.
33914
33915 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
33916 discriminants, ignore the known discriminants of its full view, if
33917 any, to check legality.
33918
33919 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
33920 component if type has unknown discriminants.
33921 (Analyze_Private_Extension_Declaration): Discriminant constraint is
33922 null if type has unknown discriminants.
33923
33924 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
33925 for end label when present.
33926
33927 * s-fileio.adb (Open): When called with a C_Stream, use given name for
33928 temporary file, rather than an empty string.
33929
33930 2004-03-15 Ed Falis <falis@gnat.com>
33931
33932 * s-thread.adb: Removed, no longer used.
33933
33934 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33935
33936 * decl.c (target.h): Now include.
33937 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
33938 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
33939 (validate_size): For POINTER_TYPE, get smallest size permitted on
33940 machine.
33941
33942 * fe.h: Sort Einfo decls and add Set_Mechanism.
33943
33944 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
33945 (ada/decl.o): Depends on target.h.
33946
33947 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
33948 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
33949
33950 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
33951
33952 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
33953
33954 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
33955 Insert_Dereference_Action when rewriting an implicit dereference into
33956 an explicit one, this will be taken care of during expansion of the
33957 explicit dereference.
33958 (Expand_N_Slice): Same. Always do the rewriting, even for the case
33959 of non-packed slices, since the dereference action generated by
33960 expansion of the explicit dereference is needed in any case.
33961 (Expand_N_Selected_Component): When rewriting an implicit dereference,
33962 analyze and resolve the rewritten explicit dereference so it is seen
33963 by the expander.
33964 (Insert_Dereference_Action): This procedure is now called only for the
33965 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
33966 dereferences that do not come from source (including explicit
33967 dereferences resulting from rewriting implicit ones), but do not
33968 recursively insert a check for the dereference nodes contained within
33969 the check.
33970 (Insert_Dereference_Action): Clarify and correct comment.
33971
33972 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
33973
33974 PR ada/14131
33975 Move language detection to the top level.
33976 * config-lang.in: Build by default.
33977
33978 2004-03-05 Robert Dewar <dewar@gnat.com>
33979
33980 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
33981
33982 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
33983 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
33984 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
33985 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
33986 unchecked conversion to spec to avoid warnings.
33987
33988 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
33989 to Task_ID
33990
33991 * 7stpopsp.adb: Correct casing in To_Task_ID call
33992
33993 * a-strsea.ads, a-strsea.adb: Minor reformatting
33994
33995 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
33996
33997 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
33998 Adjust Max_Msg_Length to be clearly large enough.
33999
34000 * fe.h: Define In_Same_Source_Unit
34001
34002 * osint.adb: Add pragma Warnings Off to suppress warnings
34003 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34004 aliasing warnings.
34005
34006 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34007
34008 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34009
34010 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34011
34012 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34013
34014 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34015
34016 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34017 node. We now do generate them for gcc back end.
34018
34019 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34020 warning.
34021
34022 * sinput-c.adb: Fix bad name in header.
34023 Add pragma Warnings Off to suppress aliasing warning.
34024
34025 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34026
34027 * snames.h, snames.ads, snames.adb: Add entry for pragma
34028 No_Strict_Aliasing.
34029
34030 2004-03-05 Vincent Celier <celier@gnat.com>
34031
34032 * prj-com.ads: Add hash table Files_Htable to check when a file name
34033 is already a source of another project.
34034
34035 * prj-nmsc.adb (Record_Source): Before recording a new source, check
34036 if its file name is not already a source of another project. Report an
34037 error if it is.
34038
34039 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34040 source file name, call gnatpp with all the sources of the main project.
34041
34042 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34043 of file names.
34044
34045 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34046 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34047 /RUNTIME_SYSTEM=, converted to --RTS=
34048 /NOTABS, converted to -notabs
34049
34050 2004-03-05 Pascal Obry <obry@gnat.com>
34051
34052 * make.adb: Minor reformatting.
34053
34054 2004-03-05 Ed Schonberg <schonberg@gnat.com>
34055
34056 Part of implemention of AI-262.
34057 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34058
34059 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34060 procedure.
34061
34062 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34063 when component type is a partially constrained class-wide subtype.
34064 (Constrain_Discriminated_Type): If parent type has unknown
34065 discriminants, a constraint is illegal, even if full view has
34066 discriminants.
34067 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
34068 with unknown discriminants whose full view is a discriminated record.
34069
34070 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
34071 flag, to handle properly derivations of tagged types with unknown
34072 discriminants.
34073 (Analyze_Package_Spec, Analyze_Package_Body): Install
34074 Private_With_Clauses before analyzing private part or body.
34075
34076 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
34077 Has_Discriminants can be true for a given type (documentation).
34078
34079 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
34080
34081 * s-restri.ads: Fix license (GPL->GMGPL).
34082
34083 * s-tassta.adb: Minor reformatting.
34084
34085 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34086 by calls to Exit_One_ATC_Level, since additional clean up is performed
34087 by this function.
34088
34089 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34090 by calls to Exit_One_ATC_Level, since additional clean up is performed
34091 by this function.
34092
34093 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34094
34095 * trans.c: Reflect GCC changes to fix bootstrap problem.
34096 Add warning for suspicious aliasing unchecked conversion.
34097
34098 2004-03-05 GNAT Script <nobody@gnat.com>
34099
34100 * Make-lang.in: Makefile automatically updated
34101
34102 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
34103
34104 * ali.adb (Read_Instantiation_Instance): Do not modify the
34105 current_file_num when reading information about instantiations, since
34106 this corrupts files in later references.
34107
34108 2004-03-02 Vincent Celier <celier@gnat.com>
34109
34110 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
34111 before checking if it is read-only.
34112
34113 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
34114 of SRC_DIRS and eliminate duplicates.
34115
34116 * gprcmd.adb: Replace command "path" with command "path_sep" to return
34117 the path separator.
34118 (Usage): Document path_sep
34119
34120 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
34121 C++ compiler. No need for a script.
34122 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
34123 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
34124 subst.
34125
34126 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
34127 where there are Ada sources.
34128 (Set_Ada_Paths): Only add to the include path the source dirs of project
34129 with Ada sources.
34130 (Add_To_Path): Add the Display_Values of the directories, not their
34131 Values.
34132
34133 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
34134 data.
34135
34136 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
34137 is not No_Name.
34138 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
34139 Value is canonicalized.
34140 (Language_Independent_Check): Do not copy Value to Display_Value when
34141 canonicalizing Value.
34142
34143 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
34144 path to find limited with cycles.
34145 (Parse_Single_Project): Use canonical cased path to find the end of a
34146 with cycle.
34147
34148 2004-03-02 Ed Schonberg <schonberg@gnat.com>
34149
34150 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
34151 and not a child unit.
34152
34153 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
34154 appear in a with_clause.
34155
34156 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
34157 only happen in type_annotate mode, do not try to elaborate it.
34158
34159 * exp_util.adb (Force_Evaluation): If expression is a selected
34160 component on the left of an assignment, use a renaming rather than a
34161 temporary to remove side effects.
34162
34163 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
34164 inlined instance body, which is analyzed before the end of the
34165 enclosing scope.
34166
34167 2004-03-02 Robert Dewar <dewar@gnat.com>
34168
34169 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
34170 sem_ch4.adb: Use new feature for substitution of keywords in VMS
34171
34172 * errout.ads, errout.adb: Implement new circuit for substitution of
34173 keywords in VMS.
34174
34175 * sem_case.adb (Analyze_Choices): Place message properly when case is
34176 a subtype reference rather than an explicit range.
34177
34178 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
34179
34180 2004-03-02 Doug Rupp <rupp@gnat.com>
34181
34182 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
34183
34184 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
34185
34186 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
34187
34188 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34189
34190 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
34191 BLKmode bitfield.
34192
34193 2004-02-25 Robert Dewar <dewar@gnat.com>
34194
34195 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34196 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
34197 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
34198 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
34199 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
34200 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
34201 the defining instance of the type to avoid aliasing problems.
34202 Fix copyright header. Fix bad comments in package header.
34203
34204 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
34205
34206 2004-02-25 Ed Schonberg <schonberg@gnat.com>
34207
34208 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
34209 rewritten as references when aliased through an address clause.
34210
34211 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
34212 whether call can be interpreted as an indirect call to the result of a
34213 parameterless function call returning an access subprogram.
34214
34215 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
34216
34217 Code clean up:
34218 * exp_ch7.adb (Make_Clean): Remove generation of calls to
34219 Unlock[_Entries], since this is now done by Service_Entries directly.
34220
34221 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
34222
34223 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
34224 Requeue_Call for better code readability. Change spec and update calls:
34225 PO_Service_Entries now unlock the PO on exit.
34226 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
34227 PO_Service_Entries.
34228
34229 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
34230
34231 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
34232
34233 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
34234
34235 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
34236 protected subprogram call and analyzing the result of such expanding
34237 in case when the called protected subprogram is eliminated.
34238
34239 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
34240 names.
34241
34242 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
34243
34244 * Makefile.in: Clean ups.
34245
34246 2004-02-23 Ed Schonberg <schonberg@gnat.com>
34247
34248 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
34249 protected operations if original subprogram is flagged as eliminated.
34250 (Expand_N_Subprogram_Body): For a protected operation, create
34251 discriminals for next operation before checking whether the operation
34252 is eliminated.
34253
34254 * exp_ch9.adb (Expand_N_Protected_Body,
34255 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
34256 for internal protected operations if the original subprogram is
34257 eliminated.
34258
34259 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
34260 declared in a single protected object.
34261
34262 2004-02-23 Vincent Celier <celier@gnat.com>
34263
34264 * prj-attr.adb: Make attribute Builder'Executable an associative array,
34265 case insensitive if file names are case insensitive, instead of a
34266 standard associative array.
34267
34268 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
34269 them as case insensitive on platforms where the file names are case
34270 sensitive.
34271
34272 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
34273 project file has already been parsed that canonical path are compared.
34274
34275 2004-02-23 Robert Dewar <dewar@gnat.com>
34276
34277 * sinput-c.ads: Correct bad unit title in header
34278
34279 * freeze.adb: Minor reformatting
34280
34281 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34282
34283 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
34284 nonaddressable COMPONENT_REF that is removing padding that we are
34285 taking the address of, take the address of the padded record instead
34286 if item is variable size.
34287
34288 2004-02-20 Robert Dewar <dewar@gnat.com>
34289
34290 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
34291
34292 2004-02-20 Ed Schonberg <schonberg@gnat.com>
34293
34294 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
34295 itype references for the constrained designated type of a component
34296 whose base type is already frozen.
34297
34298 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
34299
34300 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
34301 avoid GCC warnings.
34302
34303 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
34304
34305 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
34306 identifier for a phantom package that rewrites the formal package
34307 declaration with a box. The Add semantic decorations for the defining
34308 identifier from the original node (that represents the formal package).
34309
34310 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
34311
34312 * Make-lang.in (ada/stamp-sdefault): Use the top level
34313 move-if-change.
34314
34315 2004-02-19 Richard Henderson <rth@redhat.com>
34316
34317 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
34318
34319 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
34320
34321 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
34322 Scan_ALI can be used for multiple ALI files without reinitializing
34323 between calls.
34324
34325 2004-02-18 Robert Dewar <dewar@gnat.com>
34326
34327 * debug.adb: Minor reformatting.
34328
34329 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34330
34331 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
34332 to zero if there is an address clause.
34333
34334 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
34335
34336 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
34337
34338 2004-02-18 Gary Dismukes <dismukes@gnat.com>
34339
34340 * layout.adb (Layout_Component_List): Revise generation of call to
34341 discriminant-checking function to pass selections of all of the type's
34342 discriminants rather than just the variant-controlling discriminant.
34343
34344 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
34345
34346 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
34347 fail in the current setup and triggers spurious system error messages.
34348 Pretend it occurred and failed instead.
34349
34350 2004-02-18 Vincent Celier <celier@gnat.com>
34351
34352 * bld.adb: Mark FLDFLAGS as saved
34353 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
34354 it is not the root project. Put each directory to be
34355 extended between double quotes to prevent it to be expanded on Windows.
34356 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
34357 the project file. Set them back to their initial values if they have not
34358 been set in the project file.
34359
34360 * gprcmd.adb: (Gprdebug, Debug): New global variables
34361 (Display_Command): New procedure
34362 (Usage): Document new command "linkopts"
34363 Call Display_Command when env var GPRDEBUG has the value "TRUE"
34364 Implement new command "linkopts"
34365 Remove quotes that may be around arguments for "extend"
34366 Always call Normalize_Pathname with arguments formatted for the platform
34367
34368 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
34369 Change @echo to @$(display) in target clean to be able to clean silently
34370
34371 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
34372
34373 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
34374 canonical case.
34375
34376 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
34377 = Extending_All when current project is an extending all project.
34378
34379 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
34380 set to True only for LINK command, after Unix switch -o.
34381 (Process_Arguments): Set Output_File_Expected to True for LINK command
34382 after Unix switch -o. When Output_File_Expected is True, never add an
34383 extension to a file name.
34384
34385 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
34386 option file name, only to the --for-linker= switch.
34387 (Option_File_Name): If option file name do not end with ".opt", append
34388 "/OPTIONS".
34389
34390 2004-02-18 GNAT Script <nobody@gnat.com>
34391
34392 * Make-lang.in: Makefile automatically updated
34393
34394 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
34395
34396 * Make-lang.in (stamp-sdefault): Do not depend on
34397 move-if-change.
34398
34399 2004-02-12 Zack Weinberg <zack@codesourcery.com>
34400
34401 * config-lang.in: Disable Ada by default until probe logic for
34402 a bootstrap Ada compiler can be moved to the top level configure
34403 script.
34404
34405 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
34406
34407 * decl.c (components_to_record): Don't claim that the internal fields
34408 we make to hold the variant parts are semantically addressable, because
34409 they are not.
34410
34411 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
34412 adjust the comment describing the modular type form when we can use it.
34413 (Install_PAT): Account for the Esiz renaming.
34414
34415 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
34416 sc_onstack context indication before raising the exception to which
34417 the signal is mapped. Allows better handling of later signals possibly
34418 triggered by the resumed user code if the exception is handled.
34419
34420 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
34421
34422 * 5zinit.adb: Removed, no longer used.
34423
34424 2004-02-12 Robert Dewar <dewar@gnat.com>
34425
34426 * ali.adb: Remove separating space between parameters on R line. Makes
34427 format consistent with format used by the binder for Set_Globals call.
34428
34429 * atree.ads, atree.adb: Minor reformatting (new function header format)
34430
34431 * bindgen.adb: Add Run-Time Globals documentation section containing
34432 detailed documentation of the globals passed from the binder file to
34433 the run time.
34434
34435 * gnatls.adb: Minor reformatting
34436
34437 * init.c (__gnat_set_globals): Add note pointing to documentation in
34438 bindgen.
34439
34440 * lib-writ.ads, lib-writ.adb: Remove separating space between
34441 parameters on R line.
34442 Makes format consistent with format used by the binder for Set_Globals
34443 call.
34444
34445 * osint.ads: Add 2004 to copyright notice
34446 Minor reformatting
34447
34448 * snames.ads: Correct capitalization of FIFO_Within_Priorities
34449 Noticed during code reading, documentation issue only
34450
34451 * usage.adb: Remove junk line for obsolete C switch
34452 Noticed during code reading
34453
34454 2004-02-12 Vincent Celier <celier@gnat.com>
34455
34456 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
34457 extend for each directory, so that multiple /** directories are
34458 extended individually.
34459 (Recursive_Process): Set the default for LANGUAGES to ada
34460
34461 * gprcmd.adb: Define new command "ignore", to do nothing.
34462 Implement new comment "path".
34463
34464 * Makefile.generic: Suppress output when SILENT is set
34465 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
34466 used, so that the correct compiler is invoked.
34467 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
34468 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
34469
34470 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
34471
34472 * Makefile.in: Clean ups and remove obsolete targets.
34473
34474 2004-02-12 Ed Schonberg <schonberg@gnat.com>
34475
34476 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
34477 predicate declared in exp_util.
34478
34479 * exp_util.adb: Add comments.
34480
34481 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
34482 visibility before compiling context of the subunit.
34483
34484 * sem_res.adb (Check_Parameterless_Call): If the context expects a
34485 value but the name is a procedure, do not attempt to analyze as a call,
34486 in order to obtain more telling diagnostics.
34487
34488 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
34489 'Access on parameterless function calls.
34490 (Normalize_Actuals): For a parameterless function call with missing
34491 actuals, defer diagnostic until resolution of enclosing call.
34492
34493 * sem_util.adb (Wrong_Type): If the context type is an access to
34494 subprogram and the expression is a procedure name, suggest a missing
34495 'attribute.
34496
34497 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
34498 Nathanael Nerode <neroden@gcc.gnu.org>
34499
34500 PR ada/6637
34501 PR ada/5911
34502 Merge with libada-branch:
34503 * config-lang.in: Build libada only when ada is built.
34504
34505 2004-02-09 Ed Schonberg <schonberg@gnat.com>
34506
34507 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
34508 for a tagged type, verify that both formals have the same type.
34509
34510 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
34511 temporary when the formal is an in-parameter and the actual a possibly
34512 unaligned slice.
34513
34514 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
34515 when expansion is disabled, to ensure proper name capture with
34516 overloaded literals. Condition can be of any boolean type, resolve
34517 accordingly.
34518
34519 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
34520 renaming is for a formal subprogram with a default operator name, and
34521 there is a usable operator that is visible at the point of
34522 instantiation.
34523
34524 2004-02-09 Robert Dewar <dewar@gnat.com>
34525
34526 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
34527 rewrite to ignore errors in ali files, intended to allow tools downward
34528 compatibility with new versions of ali files.
34529
34530 * ali.ads: Add new parameter Ignore_Errors
34531
34532 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
34533 duplicating the error message giving the file with restrictions.
34534
34535 * debug.adb: Add debug flag I for gnatbind
34536
34537 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
34538 operators for the case where the operator is a defining operator.
34539
34540 * exp_ch3.adb: Minor reformatting (new function spec format).
34541
34542 * exp_ch4.adb: Add comment for previous change, and make minor
34543 adjustment to loop to always check for improper loop termination.
34544 Minor reformatting throughout (new function spec format).
34545
34546 * gnatbind.adb: Implement -di debug flag for gnatbind
34547
34548 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
34549
34550 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
34551
34552 * lib-load.adb: Fix bad assertion.
34553 Found by testing and code reading.
34554 Minor reformatting.
34555
34556 * lib-load.ads: Minor reformatting.
34557
34558 * lib-writ.adb: There is only one R line now.
34559
34560 * lib-writ.ads: Add documentation on making downward compatible changes
34561 to ali files so old tools work with new ali files.
34562 There is only one R line now.
34563 Add documentation on format incompatibilities (with special GPS note)
34564
34565 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
34566
34567 * par-load.adb: Minor reformatting
34568
34569 * sem_ch8.adb: Fix to error message from last update
34570 Minor reformatting and restructuring of code from last update
34571
34572 * par-prag.adb, snames.adb, snames.ads, snames.h,
34573 sem_prag.adb: Implement pragma Profile.
34574
34575 * stylesw.adb: Implement -gnatyN switch to turn off all style check
34576 options.
34577
34578 * usage.adb: Add line for -gnatyN switch
34579
34580 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
34581
34582 2004-02-09 Albert Lee <lee@gnat.com>
34583
34584 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
34585
34586 2004-02-09 Ed Schonberg <schonberg@gnat.com>
34587
34588 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
34589 slices.
34590
34591 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
34592 is nested in an instance that is not frozen yet, to avoid
34593 order-of-elaboration problems in gigi.
34594
34595 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
34596 body the attribute is legal.
34597
34598 2004-02-09 Robert Dewar <dewar@gnat.com>
34599
34600 * s-rident.ads: Minor comment correction
34601
34602 * targparm.adb: Remove dependence on uintp completely. There was
34603 always a bug in Make in that it called Targparm before initializing
34604 the Uint package. The old code appeared to get away with this, but
34605 the new code did not! This caused an assertion error in gnatmake.
34606
34607 * targparm.ads: Fix bad comment, restriction pragmas with parameters
34608 are indeed fully supported.
34609
34610 2004-02-06 Alan Modra <amodra@bigpond.net.au>
34611
34612 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
34613
34614 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
34615
34616 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
34617 with targetm.calls.promote_prototypes.
34618
34619 2004-02-04 Robert Dewar <dewar@gnat.com>
34620
34621 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
34622 ali.ads, gprcmd.adb: Minor reformatting
34623
34624 * bindgen.adb: Output restrictions string for new style restrictions
34625 handling
34626
34627 * impunit.adb: Add s-rident.ads (System.Rident) and
34628 s-restri (System.Restrictions)
34629
34630 * lib-writ.adb: Fix bug in writing restrictions string (last few
34631 entries wrong)
34632
34633 * s-restri.ads, s-restri.adb: Change name Restrictions to
34634 Run_Time_Restrictions to avoid conflict with package name.
34635 Add circuit to read and acquire run time restrictions.
34636
34637 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
34638
34639 * restrict.ads, restrict.adb: Use the new restriction
34640 No_Task_Attributes_Package instead of the old No_Task_Attributes.
34641
34642 * sem_prag.adb: No_Task_Attributes is a synonym of
34643 No_Task_Attributes_Package.
34644
34645 * snames.ads, snames.adb: New entry for proper handling of
34646 No_Task_Attributes.
34647
34648 * s-rident.ads: Adding restriction No_Task_Attributes_Package
34649 (AI-00249) that supersedes the GNAT specific restriction
34650 No_Task_Attributes.
34651
34652 2004-02-04 Ed Schonberg <schonberg@gnat.com>
34653
34654 * sem_prag.adb:
34655 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
34656 body, an identifier may be wrapped in an unchecked conversion.
34657
34658 2004-02-04 Vincent Celier <celier@gnat.com>
34659
34660 * lib-writ.ads: Comment update for the W lines
34661
34662 * bld.adb: (Expression): An empty string list is static
34663
34664 * fname-uf.adb: Minor comment update
34665
34666 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
34667
34668 * gnatbind.adb: Initialize Cumulative_Restrictions with the
34669 restrictions on the target.
34670
34671 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
34672
34673 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
34674 gen_rtx.
34675
34676 2004-02-02 Arnaud Charlet <charlet@gnat.com>
34677
34678 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
34679
34680 2004-02-02 Vincent Celier <celier@gnat.com>
34681
34682 * gprcmd.adb (Check_Args): If condition is false, print the invoked
34683 comment before the usage.
34684 Gprcmd: Fail when command is not recognized.
34685 (Usage): Document command "prefix"
34686
34687 * g-md5.adb (Digest): Process last block.
34688 (Update): Do not process last block. Store remaining characters and
34689 length in Context.
34690
34691 * g-md5.ads (Update): Document that several call to update are
34692 equivalent to one call with the concatenated string.
34693 (Context): Add fields to allow new Update behaviour.
34694
34695 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
34696 defaulted to False.
34697 When May_Fail is True and no existing file can be found, return No_File.
34698
34699 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
34700 functions.
34701
34702 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
34703 spec file name instead on the W line.
34704
34705 2004-02-02 Robert Dewar <dewar@gnat.com>
34706
34707 * ali.adb: Read and acquire info from new format restrictions lines
34708
34709 * bcheck.adb: Add circuits for checking restrictions with parameters
34710
34711 * bindgen.adb: Output dummy restrictions data
34712 To be changed later
34713
34714 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34715 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
34716 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
34717 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
34718 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
34719
34720 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
34721 the warning message on access to possibly uninitialized variable S)
34722 Minor changes for new restrictions handling.
34723
34724 * gnatbind.adb: Minor reformatting
34725 Minor changes for new restrictions handling
34726 Move circuit for -r processing here from bcheck (cleaner)
34727
34728 * gnatcmd.adb, gnatlink.adb: Minor reformatting
34729
34730 * lib-writ.adb: Output new format restrictions lines
34731
34732 * lib-writ.ads: Document new R format lines for new restrictions
34733 handling.
34734
34735 * s-restri.ads/adb: New files
34736
34737 * Makefile.rtl: Add entry for s-restri.ads/adb
34738
34739 * par-ch3.adb: Fix bad error messages starting with upper case letter
34740 Minor reformatting
34741
34742 * restrict.adb: Major rewrite throughout for new restrictions handling
34743 Major point is to handle restrictions with parameters
34744
34745 * restrict.ads: Major changes in interface to handle restrictions with
34746 parameters. Also generally simplifies setting of restrictions.
34747
34748 * snames.ads/adb: New entry for proper handling of No_Requeue
34749
34750 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
34751 restriction counting.
34752 Other minor changes for new restrictions handling
34753
34754 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
34755 Restriction_Warnings now allows full parameter notation
34756 Major rewrite of Restrictions for new restrictions handling
34757
34758 2004-02-02 Javier Miranda <miranda@gnat.com>
34759
34760 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
34761 syntax rule for object renaming declarations.
34762 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
34763 component definitions.
34764
34765 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
34766 components.
34767 (Array_Type_Declaration): Give support to access components. In addition
34768 it was also modified to reflect the name of the object in anonymous
34769 array types. The old code did not take into account that it is possible
34770 to have an unconstrained anonymous array with an initial value.
34771 (Check_Or_Process_Discriminants): Allow access discriminant in
34772 non-limited types.
34773 (Process_Discriminants): Allow access discriminant in non-limited types
34774 Initialize the new Access_Definition field in N_Object_Renaming_Decl
34775 node. Change Ada0Y to Ada 0Y in comments
34776
34777 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
34778 equality operators.
34779 Change Ada0Y to Ada 0Y in comments
34780
34781 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
34782 renamings Change Ada0Y to Ada 0Y in comments
34783
34784 * sem_type.adb (Find_Unique_Type): Give support to the equality
34785 operators for universal access types
34786 Change Ada0Y to Ada 0Y in comments
34787
34788 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
34789
34790 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
34791 field.
34792 (N_Object_Renaming_Declaration): Addition of Access_Definition field
34793 Change Ada0Y to Ada 0Y in comments
34794
34795 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
34796 component definition and object renaming nodes
34797 Change Ada0Y to Ada 0Y in comments
34798
34799 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
34800
34801 * restrict.adb: Use the new restriction identifier
34802 No_Requeue_Statements instead of the old No_Requeue for defining the
34803 restricted profile.
34804
34805 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
34806 No_Requeue_Statements.
34807
34808 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
34809 that supersedes the GNAT specific restriction No_Requeue. The later is
34810 kept for backward compatibility.
34811
34812 2004-02-02 Ed Schonberg <schonberg@gnat.com>
34813
34814 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
34815 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
34816 pragma and fix incorrect ones.
34817
34818 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
34819 warning if the pragma is redundant.
34820
34821 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
34822
34823 * 5staprop.adb: Add missing 'constant' keywords.
34824
34825 * Makefile.in: use consistent value for SYMLIB on
34826 platforms where libaddr2line is supported.
34827
34828 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34829
34830 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
34831 annotating types.
34832
34833 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
34834
34835 * init.c (__gnat_install_handler): Setup an alternate stack for signal
34836 handlers in the environment thread. This allows proper propagation of
34837 an exception on stack overflows in this thread even when the builtin
34838 ABI stack-checking scheme is used without support for a stack reserve
34839 region.
34840
34841 * utils.c (create_field_decl): Augment the head comment about bitfield
34842 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
34843 here, because the former is not accurate enough at this point.
34844 Let finish_record_type decide instead.
34845 Don't make a bitfield if the field is to be addressable.
34846 Always set a size for the field if the record is packed, to ensure the
34847 checks for bitfield creation are triggered.
34848 (finish_record_type): During last pass over the fields, clear
34849 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
34850 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
34851 from DECL_BIT_FIELD.
34852
34853 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
34854
34855 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
34856 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
34857 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
34858
34859 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34860
34861 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
34862
34863 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
34864 (ZCX_By_Default): Likewise.
34865 (Front_End_ZCX_Support): Likewise.
34866
34867 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
34868 (Initialize_Lock): Mark Level unreferenced.
34869 (Sleep): Mark Reason unreferenced.
34870 (Timed_Sleep): Likewise.
34871 (Wakeup): Likewise.
34872 (Exit_Task): Use Result.
34873 (Check_No_Locks): Mark Self_ID unreferenced.
34874
34875 * 5gtasinf.adb (New_Sproc): Make Attr constant.
34876 (Bound_Thread_Attributes): Make Sproc constant.
34877 (New_Bound_Thread_Attributes): Likewise.
34878
34879 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34880
34881 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
34882 one-dimensional array an slice assignments, when component type is
34883 controlled.
34884
34885 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
34886 component type is controlled, and control_actions are in effect, use
34887 TSS procedure rather than generating inline code.
34888
34889 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
34890 arrays with controlled components.
34891
34892 2004-01-26 Vincent Celier <celier@gnat.com>
34893
34894 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
34895 command line for the non VMS case.
34896
34897 * gnatlink.adb (Process_Binder_File): When building object file, if
34898 GNU linker is used, put all object paths between quotes, to prevent ld
34899 error when there are unusual characters (such as '!') in the paths.
34900
34901 * Makefile.generic: When there are sources in Ada and the main is in
34902 C/C++, invoke gnatmake with -B, instead of -z.
34903
34904 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
34905 from VMS_Conversion.
34906 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
34907 specification of argument file on the command line.
34908
34909 2004-01-26 Bernard Banner <banner@gnat.com>
34910
34911 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
34912
34913 2004-01-26 Ed Schonberg <schonberg@gnat.com>
34914
34915 * snames.adb: Update copyright notice.
34916 Add info on slice assignment for controlled arrays.
34917
34918 2004-01-23 Robert Dewar <dewar@gnat.com>
34919
34920 * exp_aggr.adb: Minor reformatting
34921
34922 * exp_ch9.adb: Minor code clean up
34923 Minor reformatting
34924 Fix bad character in comment
34925
34926 PR ada/13471
34927 * targparm.adb (Get_Target_Parameters): Give clean abort error on
34928 unexpected end of file, along with more detailed message.
34929
34930 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34931
34932 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
34933 PAT.
34934
34935 * decl.c (copy_alias_set): New function.
34936 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
34937
34938 2004-01-23 Doug Rupp <rupp@gnat.com>
34939
34940 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
34941 lib$${file} in case subsequent character is not a separator.
34942
34943 2004-01-23 Vincent Celier <celier@gnat.com>
34944
34945 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
34946 when the GCC version is at least 3.
34947
34948 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
34949 Remove all "Opt.", to prepare for opt split
34950
34951 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
34952 Extends_All. Set to True when the project parsed is an extending all
34953 project. Fails for importing an extending all project only when the
34954 imported project is an extending all project.
34955 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
34956 depending on the value of Extends_All returned.
34957
34958 * prj-proc.adb (Process): Check that no project shares its object
34959 directory with a project that extends it, directly or indirectly,
34960 including a virtual project.
34961 Check that no project extended by another project shares its object
34962 directory with another also extended project.
34963
34964 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
34965 Kind = N_With_Clause
34966
34967 * prj-tree.ads: Minor reformatting
34968 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
34969
34970 2004-01-23 Ed Schonberg <schonberg@gnat.com>
34971
34972 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
34973 applies to a type with an incomplete view, use full view in Name of
34974 clause, for consistency with uses of Get_Attribute_Definition_Clause.
34975
34976 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
34977
34978 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
34979 SCHED_RR, since other values are not supported by this policy.
34980 (Initialize): Move initialization of mutex attribute to package
34981 elaboration, to prevent early access to this variable.
34982
34983 * Makefile.in: Remove mention of Makefile.adalib, unused.
34984
34985 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
34986 1ssecsta.ads: Removed, unused.
34987
34988 2004-01-21 Javier Miranda <miranda@gnat.com>
34989
34990 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
34991 entity if already built in the current scope.
34992
34993 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
34994 reminder in internal scopes. Required for nested limited aggregates.
34995
34996 2004-01-21 Doug Rupp <rupp@gnat.com>
34997
34998 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
34999 VMS. Replace all occurences of libgnat- and libgnarl- with
35000 libgnat$(hyphen) and libgnarl$(hyphen).
35001 Fixed shared library build problem on VMS.
35002
35003 2004-01-21 Robert Dewar <dewar@gnat.com>
35004
35005 * mlib-prj.adb: Minor reformatting
35006
35007 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
35008
35009 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35010 'constant' keywords for declaration of pointers that are not modified.
35011
35012 * exp_pakd.adb: Fix English in comment.
35013
35014 2004-01-21 Ed Schonberg <schonberg@gnat.com>
35015
35016 PR ada/10889
35017 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35018 copy all attributes of the parent, including the foreign language
35019 convention.
35020
35021 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
35022
35023 PR ada/10565
35024 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35025 for 'delay until' statement.
35026
35027 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
35028
35029 * Make-lang.in: Replace $(docdir) with doc.
35030 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35031 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35032 to use consistent MAKEINFO rule.
35033 (ada.man, ada.srcman): Dummy entry.
35034 (ADA_INFOFILES): Define.
35035 (ada.info, ada.srcinfo): New rules.
35036
35037 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
35038
35039 * utils.c: Update copyright notice, missed in previous change.
35040
35041 2004-01-19 Vincent Celier <celier@gnat.com>
35042
35043 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35044 args if Bind is True. Set First_ALI, if not already done.
35045 (Build_Library): For Stand Alone Libraries, extract from one ALI file
35046 an eventual --RTS switch, for gnatbind, and all backend switches +
35047 --RTS, for linking.
35048
35049 2004-01-19 Robert Dewar <dewar@gnat.com>
35050
35051 * sem_attr.adb, memtrack.adb: Minor reformatting
35052
35053 2004-01-19 Ed Schonberg <schonberg@gnat.com>
35054
35055 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35056 that rename enumeration literals. This is properly done in sem_eval.
35057
35058 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35059 to functions that rename enumeration literals.
35060
35061 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35062 functions that rename enumeration literals.
35063
35064 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
35065
35066 * Make-lang.in (utils.o): Depend on target.h.
35067 * utils.c: Include target.h.
35068 (process_attributes): Use targetm.have_named_sections instead
35069 of ASM_OUTPUT_SECTION_NAME.
35070
35071 2004-01-16 Andreas Jaeger <aj@suse.de>
35072
35073 * Makefile.in: Add $(DESTDIR).
35074
35075 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
35076
35077 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
35078 also when not defining if a Size clause applies. That information is
35079 not to be ignored.
35080
35081 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
35082
35083 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
35084 symbolic links for the shared gnat run time when needed.
35085
35086 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
35087
35088 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
35089 for writing, and terminate with an error message if not.
35090
35091 2004-01-15 Ed Schonberg <schonberg@gnat.com>
35092
35093 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
35094 warning on an access to subprogram in an instance, when the target
35095 type is declared in the same generic unit.
35096 (Eval_Attribute): If 'access is known to fail accessibility check,
35097 rewrite as a raise statement.
35098
35099 2004-01-15 GNAT Script <nobody@gnat.com>
35100
35101 * Make-lang.in: Makefile automatically updated
35102
35103 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
35104
35105 * Make-lang.in (ada.srcextra): Dummy entry.
35106
35107 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
35108
35109 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
35110
35111 2004-01-13 Ed Schonberg <schonberg@gnat.com>
35112
35113 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
35114 components that are initialized with aggregates.
35115
35116 2004-01-13 Vincent Celier <celier@gnat.com>
35117
35118 * gnatlink.adb (Process_Binder_File): To find directory of shared
35119 libgcc, if "gcc-lib" is not a subdirectory, look for the last
35120 subdirectory "lib" in the path of the shared libgnat or libgnarl.
35121
35122 * make.adb (Gnatmake): If GCC version is at least 3, link with
35123 -shared-libgcc, when there is at least one shared library project.
35124
35125 * opt.ads (GCC_Version): New integer constant.
35126
35127 * adaint.c (get_gcc_version): New function.
35128
35129 2004-01-13 Robert Dewar <dewar@gnat.com>
35130
35131 * sem_dist.adb, sem_res.adb, sem_util.adb,
35132 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
35133 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
35134
35135 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
35136
35137 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
35138 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
35139 declarations.
35140
35141 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
35142
35143 * misc.c: Remove trailing spaces.
35144 Update copyright notice missed in previous change.
35145
35146 PR ada/13572
35147 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
35148 prefix/share/make
35149
35150 * Makefile.generic: Update copyright.
35151 Add license notice.
35152
35153 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
35154 of prefix/share/make.
35155
35156 * Makefile.prolog: Update copyright.
35157 Add license notice.
35158
35159 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
35160
35161 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
35162 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
35163 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
35164 instead of String.
35165
35166 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
35167 signature.
35168
35169 2004-01-12 Javier Miranda <miranda@gnat.com>
35170
35171 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
35172 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
35173 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
35174 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
35175 Component_Definition node.
35176
35177 2004-01-12 Ed Falis <falis@gnat.com>
35178
35179 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
35180
35181 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
35182
35183 * link.c: Change default libgnat kind to STATIC for FreeBSD.
35184
35185 2004-01-12 Bernard Banner <banner@gnat.com>
35186
35187 * Makefile.in: map 86numaux to a-numaux for x86_64
35188
35189 2004-01-12 Ed Schonberg <schonberg@gnat.com>
35190
35191 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
35192 generated to rename a generic actual, go to the actual itself, the
35193 subtype is not a user-visible entity.
35194
35195 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
35196 part is a private subtype, reset the visibility of its full view, if
35197 any, to be consistent.
35198
35199 PR ada/13417
35200 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
35201 to use a generic package G as a formal package for another generic
35202 declared within G.
35203
35204 2004-01-12 Robert Dewar <dewar@gnat.com>
35205
35206 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
35207
35208 * usage.adb: Remove mention of obsolete -gnatwb switch
35209 Noticed during code reading
35210
35211 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
35212
35213 * 1ssecsta.adb: Minor changes for -gnatwa warnings
35214
35215 2004-01-12 GNAT Script <nobody@gnat.com>
35216
35217 * Make-lang.in: Makefile automatically updated
35218
35219 2004-01-09 Mark Mitchell <mark@codesourcery.com>
35220
35221 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
35222
35223 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35224
35225 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
35226
35227 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
35228
35229 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
35230 Update comment and copyright date.
35231 * stamp-xgnatug: Delete.
35232
35233 2004-01-05 Robert Dewar <dewar@gnat.com>
35234
35235 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
35236 be modified by the binder generated main program if the -D switch is
35237 used.
35238
35239 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
35240 imported functions (since now we expect this to be done for imported
35241 functions)
35242
35243 * 5vtaprop.adb: Add several ??? for sections requiring more comments
35244 Minor reformatting throughout
35245
35246 * 5zinit.adb: Minor reformatting
35247 Add 2004 to copyright date
35248 Minor changes to avoid -gnatwa warnings
35249 Correct some instances of using OR instead of OR ELSE (noted while
35250 doing reformatting)
35251
35252 * sprint.adb: Minor updates to avoid -gnatwa warnings
35253
35254 * s-secsta.ads, s-secsta.adb:
35255 (SS_Get_Max): New function to obtain high water mark for ss stack
35256 Default_Secondary_Stack is not a constant since it may be modified by
35257 the binder generated main program if the -D switch is used.
35258
35259 * switch-b.adb: New -Dnnn switch for binder
35260
35261 * switch-c.adb:
35262 Make -gnatg imply all warnings currently in -gnatwa
35263
35264 * vms_conv.adb: Minor reformatting
35265 Add 2004 to copyright notice
35266 Add 2004 to printed copyright notice
35267
35268 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
35269 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
35270 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
35271 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
35272 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
35273 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
35274 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
35275 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
35276 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
35277 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
35278 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
35279 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
35280 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
35281 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
35282 checks.adb, clean.adb, cstand.adb, einfo.ads,
35283 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
35284 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
35285 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
35286 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
35287 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
35288 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
35289 Minor reformatting and code clean ups.
35290 Minor changes to prevent -gnatwa warnings
35291
35292 * ali.adb: Minor reformatting and cleanup of code
35293 Acquire new SS indication of secondary stack use from ali files
35294
35295 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
35296 (since now we expect this to be done for imported functions)
35297
35298 * bindgen.adb: Generate call to modify default secondary stack size if
35299 -Dnnn switch given
35300
35301 * bindusg.adb: Add line for new -D switch
35302
35303 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
35304 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
35305 Add circuitry for both records and arrays to avoid gigi
35306 processing if the type involved has non-bit-aligned components
35307
35308 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
35309 N_String_Literal node always references an E_String_Literal_Subtype
35310 entity. This may not be true in the future.
35311 (Possible_Bit_Aligned_Component): Move processing of
35312 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
35313
35314 * exp_ch6.adb (Expand_Thread_Body): Pick up
35315 Default_Secondary_Stack_Size as variable so that we get value modified
35316 by possible -Dnnn binder parameter.
35317
35318 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
35319 (Type_May_Have_Bit_Aligned_Components): New function.
35320
35321 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
35322 (Type_May_Have_Bit_Aligned_Components): New function.
35323
35324 * fe.h: (Set_Identifier_Casing): Fix prototype.
35325 Add declaration for Sem_Elim.Eliminate_Error_Msg.
35326 Minor reformatting.
35327
35328 * freeze.adb (Freeze_Entity): Add RM reference to error message about
35329 importing constant atomic/volatile objects.
35330 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
35331 unless explicit Pure_Function pragma given, to avoid insidious bug of
35332 call to non-pure imported function getting eliminated.
35333
35334 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
35335 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
35336 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
35337 Add 2004 to printed copyright notice
35338
35339 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
35340 stack used.
35341
35342 * Makefile.rtl: Add entry for g-sestin.o
35343 g-sestin.ads: New file.
35344
35345 * mdll.adb: Minor changes to avoid -gnatwa warnings
35346
35347 * mlib-tgt.adb: Minor reformatting
35348
35349 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
35350 New switch Sec_Stack_Used (GNAT, GNATBIND)
35351 Make Default_Secondary_Stack_Size a variable instead of a constant,
35352 so that it can be modified by the new -Dnnn bind switch.
35353
35354 * rtsfind.adb (Load_Fail): Give full error message in configurable
35355 run-time mode if all_errors mode is set. This was not done in the case
35356 of a file not found, which was an oversight.
35357 Note if secondary stack unit is used by compiler.
35358
35359 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
35360 ineffective elaborate all pragmas on non-visible packages (this
35361 happened when a renamed subprogram was called). Now the elaborate all
35362 always goes on the package containing the renaming rather than the one
35363 containing the renamed subprogram.
35364
35365 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
35366 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
35367
35368 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
35369 has an Etype that references an E_String_Literal.
35370 (Eval_String_Literal): Avoid assumption that N_String_Literal node
35371 always references an E_String_Literal_Subtype entity. This may not
35372 be true in the future.
35373
35374 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
35375 pragma location.
35376
35377 * sem_res.adb (Resolve): Specialize msg for function name used in proc
35378 call.
35379
35380 2004-01-05 Ed Falis <falis@gnat.com>
35381
35382 * g-debuti.adb: Replaced direct boolean operator with short-circuit
35383 form.
35384
35385 2004-01-05 Vincent Celier <celier@gnat.com>
35386
35387 * bld.adb: Minor comment updates
35388 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
35389 of Item_Name).
35390
35391 * make.adb (Gnatmake): Special process for files to compile/check when
35392 -B is specified. Fail when there are only foreign mains in attribute
35393 Main of the project file and -B is not specified. Do not skip bind/link
35394 steps when -B is specified.
35395
35396 * makeusg.adb: Document new switch -B
35397
35398 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
35399
35400 * switch-m.adb: (Scan_Make_Switches): Process -B switch
35401
35402 * vms_data.ads: Add new GNAT PRETTY qualifier
35403 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
35404
35405 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35406
35407 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
35408 case.
35409
35410 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
35411 Set_Identifier_Casing.
35412
35413 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
35414 has size that overflows.
35415
35416 2004-01-05 Gary Dismukes <dismukes@gnat.com>
35417
35418 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
35419 -gnatwa warning on static condition.
35420
35421 2004-01-05 Doug Rupp <rupp@gnat.com>
35422
35423 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
35424
35425 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
35426
35427 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
35428 all attributes, including read-only attribute.
35429
35430 2004-01-05 Pascal Obry <obry@gnat.com>
35431
35432 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
35433 library naming scheme.
35434
35435 * mlib-prj.adb (Build_Library): Generate different names for the static
35436 or dynamic version of the GNAT runtime. This is needed to support the
35437 new shared library naming scheme.
35438 (Process_Binder_File): Add detection of shared library in binder file
35439 based on the new naming scheme.
35440
35441 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
35442 scheme for the shared runtime libraries.
35443
35444 * Makefile.in:
35445 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
35446 scheme.
35447 (install-gnatlib): Do not create symlinks for shared libraries.
35448 (gnatlib-shared-default): Idem.
35449 (gnatlib-shared-dual-win32): New target. Not used for now as the
35450 auto-import feature does not support arrays/records.
35451 (gnatlib-shared-win32): Do not create copy for the shared libraries.
35452 (gnatlib-shared-vms): Fix shared runtime libraries names.
35453
35454 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
35455 dependent runtime shared library name.
35456
35457 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
35458
35459 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
35460 than the object.
35461
35462 2004-01-05 Ed Schonberg <schonberg@gnat.com>
35463
35464 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
35465 protected objects when allocator has a subtype indication, not a
35466 qualified expression. Note that qualified expressions may have to be
35467 checked when limited aggregates are implemented.
35468
35469 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
35470 pure, emit warning.
35471 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
35472 subprogram is imported, remove warning.
35473
35474 2004-01-05 Geert Bosch <bosch@gnat.com>
35475
35476 * s-poosiz.adb: Update copyright notice.
35477 (Allocate): Use Task_Lock to protect against concurrent access.
35478 (Deallocate): Likewise.
35479
35480 2004-01-05 Joel Brobecker <brobecker@gnat.com>
35481
35482 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
35483 comment.
35484
35485 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
35486
35487 * gnat_ug.texi: Force a CVS commit by updating copyright.
35488 * gnat_ug_vxw.texi: Regenerate.
35489 * gnat_ug_wnt.texi: Regenerate.
35490 * gnat_ug_vms.texi: Regenerate.
35491 * gnat_ug_unx.texi: Regenerate.
35492
35493 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
35494
35495 * trans.c: Remove uses of "register" specifier in
35496 declarations of local variables.
35497
35498 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
35499
35500 * stamp-xgnatug: New stamp file.
35501 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
35502 (ada/doctools/xgnatug): Add $(build_exeext).
35503 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
35504 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
35505
35506 2003-12-17 Ed Falis <falis@gnat.com>
35507
35508 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
35509 eliminate warning.
35510
35511 * a-exextr.adb: Add context clause for
35512 Ada.Exceptions.Last_Chance_Handler.
35513
35514 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
35515
35516 * cstand.adb (Create_Standard): Change the way how the declaration of
35517 the Duration type is created (making it the same way as it is for all
35518 the other standard types).
35519
35520 2003-12-17 Robert Dewar <dewar@gnat.com>
35521
35522 * s-crtl.ads: Fix header format
35523 Change Pure to Preelaborate
35524
35525 2003-12-17 Ed Schonberg <schonberg@gnat.com>
35526
35527 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
35528 the expression type only if it is declared in the current unit.
35529
35530 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
35531 are universal and already analyzed, as can occur in constrained
35532 subcomponents that depend on discriminants, when one constraint is a
35533 subtype mark.
35534
35535 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
35536 type Any_Fixed is legal as the argument of a conversion, if only one
35537 fixed-point type is in context.
35538
35539 2003-12-17 GNAT Script <nobody@gnat.com>
35540
35541 * Make-lang.in: Makefile automatically updated
35542
35543 2003-12-15 Robert Dewar <dewar@gnat.com>
35544
35545 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
35546 sec stack size.
35547
35548 2003-12-15 Vincent Celier <celier@gnat.com>
35549
35550 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
35551 (Gnatchop): Do not set failure status when reporting the number of
35552 warnings.
35553
35554 2003-12-15 Doug Rupp <rupp@gnat.com>
35555
35556 * s-ctrl.ads: New file.
35557
35558 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
35559
35560 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
35561 (GNATBIND_OBJS): Add ada/s-crtl.o.
35562
35563 * Makefile.in [VMS]: Clean up ifeq rules.
35564
35565 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
35566 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
35567 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
35568 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
35569 s-tasdeb.adb: Update copyright.
35570 Import System.CRTL.
35571 Make minor modifications to use System.CRTL declared functions instead
35572 of importing locally.
35573
35574 2003-12-15 GNAT Script <nobody@gnat.com>
35575
35576 * Make-lang.in: Makefile automatically updated
35577
35578 2003-12-11 Ed Falis <falis@gnat.com>
35579
35580 * 5zinit.adb: Clean up.
35581
35582 * 5zintman.adb (Notify_Exception): replaced case statement with a call
35583 to __gnat_map_signal, imported from init.c to support
35584 signal -> exception mappings that depend on the vxWorks version.
35585
35586 * init.c:
35587 Created and exported __gnat_map_signal to support signal -> exception
35588 mapping that is dependent on the VxWorks version.
35589 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
35590
35591 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
35592
35593 * 5wosinte.ads: Link with -mthreads switch.
35594
35595 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
35596
35597 * init.c (__gnat_install_handler [NetBSD]): Set
35598 __gnat_handler_installed, as done on all other platforms.
35599 Remove duplicated code.
35600
35601 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
35602
35603 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
35604
35605 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
35606
35607 * sinfo.ads: Fix inconsistent example code in comment.
35608
35609 2003-12-11 Robert Dewar <dewar@gnat.com>
35610
35611 * a-tiinau.adb: Add a couple of comments
35612
35613 * sem_ch3.adb: Minor reformatting
35614
35615 * sem_prag.adb:
35616 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
35617 Minor reformatting throughout
35618
35619 2003-12-11 Ed Schonberg <schonberg@gnat.com>
35620
35621 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
35622 bounds of a loop, create a separate block in order to generate proper
35623 cleanup actions to prevent memory leaks.
35624
35625 * sem_res.adb (Resolve_Call): After a call to
35626 Establish_Transient_Scope, the call may be rewritten and relocated, in
35627 which case no further processing is needed.
35628
35629 * sem_util.adb: (Wrong_Type): Refine previous fix.
35630 Fixes ACATS regressions.
35631
35632 PR ada/13353
35633 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
35634 be inlined.
35635
35636 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
35637
35638 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
35639 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
35640 obsolete files.
35641
35642 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
35643 (rts-zfp): Ditto.
35644
35645 2003-12-08 Robert Dewar <dewar@gnat.com>
35646
35647 * 7sintman.adb: Minor reformatting
35648
35649 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
35650 standard linker options to get standard libraries linked. We now plan
35651 to provide dummy versions of these libraries to match the appropriate
35652 configurable run-time (e.g. if a library is not needed at all, provide
35653 a dummy empty library).
35654
35655 * targparm.ads: Configurable_Run_Time mode no longer affects linker
35656 options (-L parameters and standard libraries). What we plan to do is
35657 to provide dummy libraries where the libraries are not required.
35658
35659 * gnatbind.adb: Minor comment improvement
35660
35661 2003-12-08 Javier Miranda <miranda@gnat.com>
35662
35663 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
35664 aggregate in the parent. Otherwise constants with limited aggregates
35665 are not supported. Add new formal to pass the component type (Ctype).
35666 It is required to call the corresponding IP subprogram in case of
35667 default initialized components.
35668 (Gen_Assign): In case of default-initialized component, generate a
35669 call to the IP subprogram associated with the component.
35670 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
35671 of aggregate with default initialized components.
35672 (Has_Default_Init_Comps): Improve implementation to recursively check
35673 all the present expressions.
35674
35675 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
35676 to indicate that the initialization call corresponds to a
35677 default-initialized component of an aggregate.
35678 In case of default initialized aggregate with tasks this parameter is
35679 used to generate a null string (this is just a workaround that must be
35680 improved later). In case of discriminants, this parameter is used to
35681 generate a selected component node that gives access to the discriminant
35682 value.
35683
35684 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
35685 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
35686 allocated aggregates with default-initialized components.
35687
35688 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
35689 the box notation is used in positional aggregates.
35690
35691 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
35692
35693 * lib.ads: Fix typo in comment
35694
35695 2003-12-08 Vincent Celier <celier@gnat.com>
35696
35697 * prj.adb (Project_Empty): New component Unkept_Comments
35698 (Scan): Remove procedure; moved to Prj.Err.
35699
35700 * prj.ads (Project_Data): New Boolean component Unkept_Comments
35701 (Scan): Remove procedure; moved to Prj.Err.
35702
35703 * prj-dect.adb: Manage comments for the different declarations.
35704
35705 * prj-part.adb (With_Record): New component Node
35706 (Parse): New Boolean parameter Store_Comments, defaulted to False.
35707 Set the scanner to return ends of line and comments as tokens, if
35708 Store_Comments is True.
35709 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
35710 comments are associated with these nodes. Store the node IDs in the
35711 With_Records.
35712 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
35713 With_Records.
35714 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
35715 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
35716 current project. Call Tree.Restore afterwards. Set the various nodes
35717 for comment storage (Next_End, End_Of_Line, Previous_Line,
35718 Previous_End).
35719
35720 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
35721 defaulted to False.
35722
35723 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
35724 to False. When Truncated is True, truncate the string, never go to the
35725 next line.
35726 (Write_End_Of_Line_Comment): New procedure
35727 (Print): Process comments for nodes N_With_Clause,
35728 N_Package_Declaration, N_String_Type_Declaration,
35729 N_Attribute_Declaration, N_Typed_Variable_Declaration,
35730 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
35731 Process nodes N_Comment.
35732
35733 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35734 without comments and there are some comments, set the flag
35735 Unkept_Comments to True.
35736 (Scan): If there are comments, set the flag Unkept_Comments to True and
35737 clear the comments.
35738 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35739 (Next_End_Nodes: New table
35740 (Comment_Zones_Of): New function
35741 (Scan): New procedure; moved from Prj. Accumulate comments in the
35742 Comments table and set end of line comments, comments after, after end
35743 and before end.
35744 (Add_Comments): New procedure
35745 (Save, Restore, Seset_State): New procedures
35746 (There_Are_Unkept_Comments): New function
35747 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35748 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35749 procedures.
35750 (First_Comment_After, First_Comment_After_End): New functions
35751 (First_Comment_Before, First_Comment_Before_End): New functions
35752 (Next_Comment): New function
35753 (End_Of_Line_Comment, Follows_Empty_Line,
35754 Is_Followed_By_Empty_Line): New functions
35755 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
35756 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
35757 (Set_Next_Comment): New procedure
35758 (Default_Project_Node): Associate comment before if the node can store
35759 comments.
35760
35761 * scans.ads (Token_Type): New enumeration value Tok_Comment
35762 (Comment_Id): New global variable
35763
35764 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
35765 defaulted to False.
35766 (Scan): Store position of start of comment. If comments are tokens, set
35767 Comment_Id and set Token to Tok_Comment when scanning a comment.
35768 (Set_Comment_As_Token): New procedure
35769
35770 * sinput-p.adb: Update Copyright notice
35771 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
35772 that no longer exists.
35773
35774 2003-12-08 Javier Miranda <miranda@gnat.com>
35775
35776 * sem_aggr.adb: Add dependence on Exp_Tss package
35777 Correct typo in comment
35778 (Resolve_Aggregate): In case of array aggregates set the estimated
35779 type of the aggregate before calling resolve. This is needed to know
35780 the name of the corresponding IP in case of limited array aggregates.
35781 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
35782 in case of default initialized array components.
35783
35784 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
35785 types. Required to give support to limited aggregates in generic
35786 formals.
35787
35788 2003-12-08 Ed Schonberg <schonberg@gnat.com>
35789
35790 * sem_ch3.adb (Check_Initialization): For legality purposes, an
35791 inlined body functions like an instantiation.
35792 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
35793 until bounds are analyzed, to diagnose premature use of type.
35794
35795 * sem_util.adb (Wrong_Type): Improve error message when the type of
35796 the expression is used prematurely.
35797
35798 2003-12-08 GNAT Script <nobody@gnat.com>
35799
35800 * Make-lang.in: Makefile automatically updated
35801
35802 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
35803
35804 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
35805 they are automatically generated by Make-lang.in and cause nothing but
35806 maintenance troubles.
35807
35808 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
35809
35810 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
35811 version of this unit).
35812
35813 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
35814
35815 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
35816 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
35817 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
35818 the body of System.Interrupt_Management common to several targets.
35819 Update copyright notice when appropriate.
35820
35821 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
35822 constant.
35823
35824 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
35825 to ensure that the kernel fills in the interrupted context structure
35826 before calling a signal handler, which is necessary to be able to
35827 unwind past it. Update the copyright notice.
35828
35829 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
35830
35831 * a-elchha.ads: New file.
35832
35833 * a-elchha.adb: New default last chance handler. Contents taken from
35834 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
35835
35836 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
35837 is moved to a-elchha.adb to provide a target-independent default last
35838 chance handler.
35839
35840 * Makefile.rtl: Add a-elchha.o
35841
35842 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
35843
35844 2003-12-05 Ed Schonberg <schonberg@gnat.com>
35845
35846 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
35847 declared in an instance, do not inline the call if the instance is not
35848 frozen yet, to prevent order of elaboration problems.
35849
35850 * sem_prag.adb: Add comments for previous fix.
35851
35852 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
35853
35854 * g-table.adb: Use the right variable in Set_Item.
35855 Update copyright notice.
35856
35857 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
35858
35859 * Makefile.in: Remove unused rules.
35860
35861 2003-12-05 Vincent Celier <celier@gnat.com>
35862
35863 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
35864 -nostdlib. Not needed here after all.
35865
35866 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
35867
35868 PR ada/11724
35869 * adaint.h, adaint.c, g-os_lib.ads:
35870 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
35871 on some platforms (including FreeBSD), it is a 64 bit value.
35872 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
35873
35874 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
35875
35876 * gnatvsn.ads (Library_Version): Now contain only the relevant
35877 version info.
35878 (Verbose_Library_Version): New constant.
35879
35880 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
35881 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
35882 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
35883
35884 * gnatlbr.adb: Clean up: replace Library_Version by
35885 Verbose_Library_Version.
35886
35887 * make.adb, lib-writ.adb, exp_attr.adb:
35888 Clean up: replace Library_Version by Verbose_Library_Version.
35889
35890 * 5lintman.adb: Removed.
35891
35892 * Makefile.in:
35893 Update and simplify computation of LIBRARY_VERSION.
35894 Fix computation of GSMATCH_VERSION.
35895 5lintman.adb is no longer used: replaced by 7sintman.adb.
35896
35897 2003-12-03 Robert Dewar <dewar@gnat.com>
35898
35899 * exp_ch5.adb:
35900 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
35901 name. Modified to consider small non-bit-packed arrays as troublesome
35902 and in need of component-by-component assigment expansion.
35903
35904 2003-12-03 Vincent Celier <celier@gnat.com>
35905
35906 * lang-specs.h: Process nostdlib as nostdinc
35907
35908 * back_end.adb: Update Copyright notice
35909 (Scan_Compiler_Arguments): Process -nostdlib directly.
35910
35911 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
35912
35913 * Makefile.in:
35914 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
35915 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
35916 included in HIE_NONE_TARGET_PAIRS.
35917
35918 2003-12-03 Ed Schonberg <schonberg@gnat.com>
35919
35920 * sem_attr.adb:
35921 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
35922 is legal in an instance, because legality is cheched in the template.
35923
35924 * sem_prag.adb:
35925 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
35926 appplied to an unchecked conversion of a formal parameter.
35927
35928 * sem_warn.adb:
35929 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
35930 variables.
35931
35932 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
35933
35934 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
35935 routines. The second one is new functionality to deal with backtracing
35936 through signal handlers.
35937 (unwind): Split into the two separate subroutines above.
35938 Update the documentation, and deal properly with sizeof (REG) different
35939 from sizeof (void*).
35940
35941 2003-12-01 Nicolas Setton <setton@act-europe.fr>
35942
35943 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
35944 so that the debugger can reliably access the value of the parameter,
35945 and therefore is able to display the exception name when an exception
35946 breakpoint is reached.
35947
35948 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
35949
35950 * fmap.adb: Fix typo in warning message.
35951
35952 * g-socket.ads, g-socket.adb: Make Free a visible instance of
35953 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
35954
35955 2003-12-01 Vincent Celier <celier@gnat.com>
35956
35957 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
35958 ther is no Afile.
35959 (Build_Library): Get the switches only if Default_Switches is declared
35960 in package Binder.
35961
35962 2003-12-01 Ed Schonberg <schonberg@gnat.com>
35963
35964 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
35965 actuals that are indexed components, reanalyze actual to ensure that
35966 packed array references are properly expanded.
35967
35968 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
35969 attempted assignment to a discriminant.
35970
35971 2003-12-01 Robert Dewar <dewar@gnat.com>
35972
35973 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
35974 reformatting.
35975
35976 * switch-c.adb: Minor reformatting of comments
35977
35978 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35979
35980 * Makefile.in: Clean ups.
35981
35982 2003-12-01 GNAT Script <nobody@gnat.com>
35983
35984 * Make-lang.in: Makefile automatically updated
35985
35986 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
35987
35988 * 5wsystem.ads: Disable zero cost exception, not ready yet.
35989
35990 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
35991
35992 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
35993 to force serialization.
35994
35995 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
35996
35997 * g-socket.ads, g-socket.adb:
35998 Clarify documentation of function Stream. Introduce a Free procedure
35999 to release the returned Stream once it becomes unused.
36000
36001 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36002
36003 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
36004
36005 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36006 since NT 4 cannot handle timeout values that are too large,
36007 e.g. DWORD'Last - 1.
36008
36009 2003-11-26 Ed Schonberg <schonberg@gnat.com>
36010
36011 * exp_ch4.adb:
36012 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36013 in procedure calls and whose expansion must be deferred.
36014
36015 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36016 is in exp_ch4.
36017
36018 * sem_ch3.adb:
36019 (Build_Derived_Array_Type): Create operator for unconstrained type
36020 if ancestor is unconstrained.
36021
36022 2003-11-26 Vincent Celier <celier@gnat.com>
36023
36024 * make.adb (Project_Object_Directory): New global variable
36025 (Change_To_Object_Directory): New procedure
36026 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36027 of Change_Dir directly. Do not change working directory to object
36028 directory of main project after each compilation.
36029 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36030 directly.
36031 Change to object directory of main project before binding step.
36032 (Initialize): Initialize Project_Object_Directory to No_Project
36033
36034 * mlib-prj.adb:
36035 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36036 binding a Stand-Alone Library.
36037
36038 * output.adb: Update Copyright notice
36039 (Write_Char): Output buffer when full
36040
36041 2003-11-26 Robert Dewar <dewar@gnat.com>
36042
36043 * sem_ch13.adb: (Check_Size): Reset size if size is too small
36044
36045 * sem_ch13.ads:
36046 (Check_Size): Fix documentation to include bit-packed array case
36047
36048 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36049
36050 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36051
36052 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36053
36054 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
36055
36056 PR ada/13142
36057 * utils.c (init_gigi_decls): Change name of built-in setjmp to
36058 __builtin_setjmp, since this is apparently needed by recent
36059 non Ada changes.
36060
36061 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36062
36063 * adadecode.c: Only include ctype.h if not IN_GCC.
36064 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36065
36066 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
36067
36068 * Makefile.in:
36069 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
36070 signals and interrupts.
36071
36072 * 5zintman.ads: New File.
36073
36074 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
36075 add exception signals to the set of unmasked signals.
36076
36077 * 5ztaprop.adb:
36078 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
36079 between signals and interrupts.
36080 Add to Unblocked_Signal_Mask the set of signals that are in
36081 Keep_Unmasked.
36082
36083 * 7sinmaop.adb:
36084 Adding a check to see whether the Interrupt_ID we want to unmask is in
36085 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
36086 reason is that the index type of the Keep_Unmasked array is not always
36087 Interrupt_ID; it may be a subtype of Interrupt_ID.
36088
36089 2003-11-24 Gary Dismukes <dismukes@gnat.com>
36090
36091 * exp_util.adb:
36092 (Remove_Side_Effects): Condition constantness of object created for a
36093 an unchecked type conversion on the constantness of the expression
36094 to ensure the correct value for 'Constrained when passing components
36095 of view-converted class-wide objects.
36096
36097 2003-11-24 Robert Dewar <dewar@gnat.com>
36098
36099 * par-load.adb (Load): Improve handling of misspelled and missing units
36100 Removes several cases of compilation abandoned messages
36101
36102 * lib.adb: (Remove_Unit): New procedure
36103
36104 * lib.ads: (Remove_Unit): New procedure
36105
36106 * lib-load.adb: Minor reformatting
36107
36108 2003-11-24 Vincent Celier <celier@gnat.com>
36109
36110 * make.adb:
36111 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
36112 (Marking_Label): Label to mark processed source files. Incremented for
36113 each executable.
36114 (Gnatmake): Increase Marking_Labet for each executable
36115 (Is_Marked): Compare against marking label
36116 (Mark): Mark with marking label
36117
36118 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
36119
36120 * s-thread.ads:
36121 Move the declaration of the TSD for System.Threads to System.Soft_Links.
36122 Add some comments.
36123
36124 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
36125 (rts-cert): build a single relocatable object for the run-time lib.
36126 Fix perms.
36127
36128 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
36129
36130 * Make-lang.in:
36131 Use gnatls rather than gcc to obtain the location of GNAT RTL for
36132 crosstools build.
36133
36134 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
36135
36136 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
36137 can not use it as before (that is, as a variable) when dumping it into
36138 the tree file. Add a local variable to store the result of this
36139 function and to be used as the string to be written into the tree.
36140
36141 * scn.adb (Initialize_Scanner): Add comments explaining the recent
36142 changes.
36143
36144 * sinput.adb (Source_First, Source_Last): In case of
36145 Internal_Source_File, replace returning attributes of
36146 Internal_Source_Ptr (which is wrong) with returning attributes of
36147 Internal_Source.
36148
36149 2003-11-24 Ed Schonberg <schonberg@gnat.com>
36150
36151 * sem_ch3.adb:
36152 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
36153 used for implicit concatenation operators.
36154 Code cleanup.
36155
36156 * sem_elab.adb:
36157 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
36158 task bodies that are in the scope of a Suppress pragma.
36159 (Check_A Call): Use the flag to prevent spurious elaboration checks.
36160
36161 * sinfo.ads, sinfo.adb:
36162 New flag No_Elaboration_Check on function/procedure calls, to properly
36163 suppress checks on calls in task bodies that are within a local suppress
36164 pragma.
36165
36166 * exp_ch4.adb:
36167 (Expand_Concatenate_Other): Use the proper integer type for the
36168 expression for the upper bound, to avoid universal_integer computations
36169 when possible.
36170
36171 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
36172
36173 * .cvsignore: Delete.
36174
36175 2003-11-21 Andreas Schwab <schwab@suse.de>
36176
36177 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
36178
36179 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
36180
36181 * 5wsystem.ads: Enable zero cost exception.
36182
36183 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
36184
36185 * 5ztiitho.adb: Remove an unreferenced variable.
36186
36187 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
36188
36189 * adaint.c: For FreeBSD, use mkstemp.
36190
36191 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
36192
36193 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
36194
36195 2003-11-21 Robert Dewar <dewar@gnat.com>
36196
36197 * bld.adb: Remove useless USE of gnatvsn
36198
36199 * gnatchop.adb: Minor reformatting
36200 Clean up version handling to be more consistent
36201
36202 * gnatxref.adb: Minor reformatting
36203
36204 * gprcmd.adb: Minor reformatting
36205 Fix output of copyright to be more consistent with other tools
36206
36207 2003-11-21 Vincent Celier <celier@gnat.com>
36208
36209 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
36210
36211 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
36212
36213 * atree.adb (Initialize): Add initializations for global variables
36214 used in New_Copy_Tree.
36215
36216 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
36217 Internal_Source_File as the actual).
36218 Put the set of statements creating Any_Character before the set of
36219 statements creating Any_Array to have Any_Character fully initialized
36220 when it is used in creating Any_Array.
36221
36222 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
36223 not call Scan in case if the actual is Internal_Source_File
36224 Add 2003 to copyright note.
36225
36226 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
36227 processing Internal_Source_File.
36228
36229 * types.ads: Add the constant Internal_Source_File representing the
36230 source buffer for artificial source-code-like strings created within
36231 the compiler (the definition of Source_File_Index is changed).
36232
36233 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
36234
36235 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
36236 56system.ads: New file, FreeBSD version.
36237
36238 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
36239
36240 * Make-lang.in (ada.extraclean): Delete.
36241
36242 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
36243
36244 * gnatmem.adb: Clean up verbose output.
36245
36246 * gprcmd.adb: Change copyright to FSF.
36247
36248 2003-11-19 Vincent Celier <celier@gnat.com>
36249
36250 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
36251 and Version (ignored).
36252
36253 * symbols.ads: (Policy): New type
36254 (Initialize): New parameter Reference, Symbol_Policy and
36255 Library_Version.
36256 Remove parameter Force.
36257 Minor reformatting.
36258
36259 * snames.ads, snames.adbadb: New standard names
36260 Library_Reference_Symbol_File and Library_Symbol_Policy
36261
36262 * mlib-prj.adb:
36263 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
36264 project.
36265
36266 * mlib-tgt.adb:
36267 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
36268
36269 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
36270
36271 * prj.adb: (Project_Empty): New component Symbol_Data
36272
36273 * prj.ads: (Policy, Symbol_Record): New types
36274 (Project_Data): New component Symbol_Data
36275
36276 * prj-attr.adb:
36277 New attributes Library_Symbol_File, Library_Symbol_Policy and
36278 Library_Reference_Symbol_File.
36279
36280 * prj-nmsc.adb:
36281 (Ada_Check): When project is a Stand-Alone library project, process
36282 attribute Library_Symbol_File, Library_Symbol_Policy and
36283 Library_Reference_Symbol_File.
36284
36285 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36286 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
36287 5sml-tgt.adb (Build_Dynamic_Library): New parameter
36288 Symbol_Data (ignored).
36289
36290 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
36291 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
36292 functions Option_File_Name and Version_String. Set new options of
36293 gnatsym related to symbol file, symbol policy and reference symbol
36294 file.
36295
36296 * 5vsymbol.adb:
36297 Extensive modifications to take into account the reference symbol file,
36298 the symbol policy, the library version and to put in the symbol file the
36299 minor and major IDs.
36300
36301 * bld.adb (Process_Declarative_Items): Put second argument of
36302 gprcmd to_absolute between single quotes, to avoid problems with
36303 Windows.
36304
36305 * bld-io.adb: Update Copyright notice.
36306 (Flush): Remove last character of a line, if it is a back slash, to
36307 avoid make problems.
36308
36309 * gnatsym.adb:
36310 Implement new scheme with reference symbol file and symbol policy.
36311
36312 * g-os_lib.ads: (Is_Directory): Clarify comment
36313
36314 2003-11-19 Robert Dewar <dewar@gnat.com>
36315
36316 * atree.adb: Move New_Copy_Tree global variables to head of package
36317
36318 * errout.adb: Minor reformatting
36319
36320 2003-11-19 Javier Miranda <miranda@gnat.com>
36321
36322 * sem_ch4.adb: (Diagnose_Call): Improve error message.
36323 Add reference to Ada0Y (AI-50217)
36324
36325 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
36326 sem_util.adb: Add reference to AI-50217
36327
36328 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
36329
36330 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
36331
36332 * sem_aggr.adb: Complete documentation of AI-287 changes
36333
36334 * par-ch4.adb: Document previous changes.
36335
36336 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
36337 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
36338 Ada0Y (AI-50217)
36339
36340 * exp_aggr.adb: Add references to AI-287 in previous changes
36341
36342 2003-11-19 Ed Schonberg <schonberg@gnat.com>
36343
36344 * exp_ch6.adb:
36345 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
36346 in the rewriting is the result of an inlined call.
36347
36348 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
36349 parameter is a type conversion, use original node to construct the
36350 post-call assignment, because expression may have been rewritten, e.g.
36351 if it is a packed array.
36352
36353 * sem_attr.adb:
36354 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
36355 body, just as it is in an instance.
36356 Categorization routines
36357
36358 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
36359 Instantiate_Object): Set proper sloc reference for message on missing
36360 actual.
36361
36362 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
36363
36364 * Makefile.in: Add FreeBSD libgnat pairs.
36365
36366 * usage.adb: Fix typo in usage message.
36367
36368 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
36369
36370 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
36371 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
36372 pragma Thread_Body.
36373 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
36374
36375 * s-thread.adb: This file is now a dummy implementation of
36376 System.Thread.
36377
36378 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
36379
36380 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
36381
36382 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
36383
36384 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36385 instanciation references in the parent type description.
36386
36387 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36388
36389 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
36390
36391 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
36392 TYPE_PRECISION directly from esize.
36393
36394 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
36395
36396 * cstreams.c:
36397 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
36398
36399 * init.c: Initialization routines for FreeBSD
36400
36401 * link.c: Link info for FreeBSD
36402
36403 * sysdep.c: Add the case of FreeBSD
36404
36405 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
36406
36407 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
36408 already called in System.Threads.
36409
36410 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
36411 environment task, as it has been moved to System.Threads.Initialization.
36412
36413 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
36414
36415 * adaint.c (__gnatlib_install_locks): Only reference
36416 __gnat_install_locks on VMS, since other platforms can avoid using
36417 --enable-threads=gnat
36418
36419 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36420
36421 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
36422
36423 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
36424 TYPE_PACKED_ARRAY_TYPE_P.
36425 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
36426
36427 Part of PR ada/12806
36428 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
36429 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
36430
36431 2003-11-17 Vincent Celier <celier@gnat.com>
36432
36433 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
36434 to False.
36435 Do not set exit status to Failure when Warning is True.
36436 (Gnatchop): Make errors "no compilation units found" and
36437 "no source files written" warnings only.
36438
36439 * make.adb (Gnatmake): When using a project file, set
36440 Look_In_Primary_Dir to False.
36441 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
36442 and Local_Configuration_Pragmas in the project where they are declared
36443 not an extending project which might have inherited them.
36444
36445 * osint.adb (Locate_File): If Name is already an absolute path, do not
36446 look for a directory.
36447
36448 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
36449 -gnats (Check_Syntax) is used, issue only a warning, not an error.
36450
36451 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
36452 in objects of type Variable_Value.
36453
36454 * prj.ads: (Variable_Value): New component Project
36455
36456 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
36457 is in a project extended by Project.
36458
36459 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
36460 Project of Variable_Values to this new parameter value.
36461 (Expression): Set component Project of Variable_Values.
36462 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
36463 Set the component Project in array elements.
36464
36465 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
36466
36467 * errout.adb: (Initialize): Add initialization for error nodes.
36468
36469 * sem_ch12.adb (Initialize): Add missing initializations for
36470 Exchanged_Views and Hidden_Entities.
36471
36472 2003-11-17 Ed Schonberg <schonberg@gnat.com>
36473
36474 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
36475 already instantiated tree for use in subsequent inlining.
36476 (Analyze_Associations, Instantiate_Formal_Subprogram,
36477 Instantiate_Object): improve error message for mismatch in
36478 instantiations.
36479
36480 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
36481 instantiations of subprograms declared in instances.
36482
36483 2003-11-17 Javier Miranda <miranda@gnat.com>
36484
36485 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
36486 executed only under the Extensions_Allowed flag.
36487
36488 2003-11-17 Robert Dewar <dewar@gnat.com>
36489
36490 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
36491 zeroes suppressed.
36492 (Address_Image): Fix bug of returning 0x instead of 0x0
36493 Minor reformatting (function specs).
36494
36495 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
36496 (missed case of 33-63)
36497
36498 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
36499
36500 * s-thread.adb: Add comments for pragma Restriction
36501
36502 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
36503 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
36504
36505 2003-11-17 Ed Falis <falis@gnat.com>
36506
36507 * s-thread.adb: Added No_Tasking restriction for this implementation.
36508
36509 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
36510
36511 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36512 instanciation references in the parent type description.
36513
36514 2003-11-17 GNAT Script <nobody@gnat.com>
36515
36516 * Make-lang.in: Makefile automatically updated
36517
36518 2003-11-16 Jason Merrill <jason@redhat.com>
36519
36520 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
36521 and TAGS files that include them for each front end.
36522
36523 2003-11-14 Andreas Jaeger <aj@suse.de>
36524
36525 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
36526 is the canonical version.
36527 * misc.c (gnat_handle_option): Likewise.
36528
36529 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
36530
36531 * 5nsystem.ads: New file for x86_64-linux-gnu.
36532
36533 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
36534
36535 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
36536
36537 * comperr.adb: Fix logic in previous change.
36538
36539 2003-11-13 Vincent Celier <celier@gnat.com>
36540
36541 * 5bml-tgt.adb (Build_Dynamic_Library): Use
36542 Osint.Include_Dir_Default_Prefix instead of
36543 Sdefault.Include_Dir_Default_Name.
36544
36545 * gnatlbr.adb: Update Copyright notice
36546 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
36547 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
36548 instead of Sdefault.Object_Dir_Default_Name
36549
36550 * gnatlink.adb:
36551 (Process_Binder_File): Never suppress the option following -Xlinker
36552
36553 * mdll-utl.adb:
36554 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
36555 Sdefault.Object_Dir_Default_Name.
36556
36557 * osint.ads, osint.adb:
36558 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
36559 Minor reformatting.
36560
36561 * vms_conv.ads: Minor reformating
36562 Remove GNAT STANDARD and GNAT PSTA
36563
36564 * vms_conv.adb:
36565 Allow GNAT MAKE to have several files on the command line.
36566 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
36567 Sdefault.Object_Dir_Default_Name.
36568 Minor Reformating
36569 Remove data for GNAT STANDARD
36570
36571 * vms_data.ads:
36572 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
36573 Remove data for GNAT STANDARD
36574 Remove options and documentation for -gnatwb/-gnatwB: these warning
36575 options no longer exist.
36576
36577 2003-11-13 Ed Falis <falis@gnat.com>
36578
36579 * 5zthrini.adb: (Init_RTS): Made visible
36580
36581 * 5zthrini.adb:
36582 (Register): Removed unnecessary call to taskVarGet that checked whether
36583 an ATSD was already set as a task var for the argument thread.
36584
36585 * s-thread.adb:
36586 Updated comment to reflect that this is a VxWorks version
36587 Added context clause for System.Threads.Initialization
36588 Added call to System.Threads.Initialization.Init_RTS
36589
36590 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
36591
36592 * 5zthrini.adb:
36593 (Init_RTS): New procedure, for the initialization of the run-time lib.
36594
36595 * s-thread.adb:
36596 Remove dependancy on System.Init, so that this file can be used in the
36597 AE653 sequential run-time lib.
36598
36599 2003-11-13 Robert Dewar <dewar@gnat.com>
36600
36601 * bindgen.adb: Minor reformatting
36602
36603 2003-11-13 Ed Schonberg <schonberg@gnat.com>
36604
36605 * checks.adb:
36606 (Apply_Discriminant_Check): Do no apply check if target type is derived
36607 from source type with no applicable constraint.
36608
36609 * lib-writ.adb:
36610 (Ensure_System_Dependency): Do not apply the style checks that may have
36611 been specified for the main unit.
36612
36613 * sem_ch8.adb:
36614 (Find_Selected_Component): Further improvement in error message, with
36615 RM reference.
36616
36617 * sem_res.adb:
36618 (Resolve): Handle properly the case of an illegal overloaded protected
36619 procedure.
36620
36621 2003-11-13 Javier Miranda <miranda@gnat.com>
36622
36623 * exp_aggr.adb:
36624 (Has_Default_Init_Comps): New function to check the presence of
36625 default initialization in an aggregate.
36626 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
36627 extension aggregate of a limited record. In addition, a new formal
36628 was added to do not initialize the record controller (if any) during
36629 this recursive expansion of ancestors.
36630 (Init_Controller): Add support for limited record components.
36631 (Expand_Record_Aggregate): In case of default initialized components
36632 convert the aggregate into a set of assignments.
36633
36634 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
36635 describing the new syntax.
36636 Nothing else needed to be done because this subprogram delegates part of
36637 its work to P_Precord_Or_Array_Component_Association.
36638 (P_Record_Or_Array_Component_Association): Give support to the new
36639 syntax for default initialization of components.
36640
36641 * sem_aggr.adb:
36642 (Resolve_Aggregate): Relax the strictness of the frontend in case of
36643 limited aggregates.
36644 (Resolve_Record_Aggregate): Give support to default initialized
36645 components.
36646 (Get_Value): In case of default initialized components, duplicate
36647 the corresponding default expression (from the record type
36648 declaration). In case of default initialization in the *others*
36649 choice, do not check that all components have the same type.
36650 (Resolve_Extension_Aggregate): Give support to limited extension
36651 aggregates.
36652
36653 * sem_ch3.adb:
36654 (Check_Initialization): Relax the strictness of the front-end in case
36655 of aggregate and extension aggregates. This test is now done in
36656 Get_Value in a per-component manner.
36657
36658 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
36659 expression corresponds to a limited aggregate. This test is now done
36660 in Get_Value.
36661
36662 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
36663 Box_Present flag.
36664
36665 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
36666 present in an N_Component_Association node
36667
36668 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
36669
36670 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
36671 type-conformant entry only if they are homographs.
36672
36673 2003-11-13 GNAT Script <nobody@gnat.com>
36674
36675 * Make-lang.in: Makefile automatically updated
36676
36677 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36678
36679 * adadecode.c: Use <> form of include for ctype.h.
36680 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
36681
36682 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36683
36684 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
36685 Works around PR middle-end/6552.
36686
36687 2003-11-10 Ed Falis <falis@gnat.com>
36688
36689 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
36690
36691 * 5zinit.adb: (Install_Handler): Moved back to spec
36692 (Install_Signal_Handlers): Deleted
36693
36694 * 5zthrini.adb: Added context clause for System.Storage_Elements
36695 (Register): Only handles creation of taskVar; initialization moved to
36696 Thread_Body_Enter.
36697 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
36698 Added declaration of environment task secondary stack and
36699 initialization.
36700
36701 * s-thread.adb: Implement bodies for thread body processing
36702
36703 * s-thread.ads:
36704 Added comment identifying supported targets for pragma Thread_Body.
36705
36706 2003-11-10 Pascal Obry <obry@gnat.com>
36707
36708 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
36709 GNAT_MAX_PATH_LEN.
36710
36711 * s-fileio.adb:
36712 (Open): Properly check for string length before copying into the buffer.
36713 Raises Name_Error if buffer is too small. Note that this was a potential
36714 buffer overflow.
36715
36716 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
36717
36718 * bindgen.adb, comperr.adb: Code clean ups.
36719 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
36720
36721 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
36722
36723 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
36724
36725 2003-11-10 Vincent Celier <celier@gnat.com>
36726
36727 * gprcmd.adb:
36728 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
36729 installation.
36730
36731 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36732
36733 * prj.adb: (Project_Empty): Add new boolean component Virtual
36734
36735 * prj.ads: (Virtual_Prefix): New constant string
36736 (Project_Data): New boolean component Virtual
36737
36738 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36739 a library project is extended by a virtual extending project.
36740
36741 * prj-part.adb:
36742 Modifications throughout to implement extending-all project, including:
36743 (Virtual_Hash, Processed_Hash): New hash tables
36744 (Create_Virtual_Extending_Project): New procedure
36745 (Look_For_Virtual_Projects_For): New procedure
36746
36747 * prj-proc.adb:
36748 (Process): After checking the projects, if main project is an
36749 extending-all project, set the object directory of all virtual extending
36750 project to the object directory of the main project.
36751 Adjust error message when a virtual extending project has the same
36752 object directory as an project being extended.
36753 (Recursive_Process): If name starts with the virtual prefix, set Virtual
36754 to True in the project data.
36755
36756 * prj-tree.adb:
36757 (Default_Project_Node): Add new boolean component Extending_All
36758 (Is_Extending_All): New function
36759 (Set_Is_Extending_All): New procedure
36760
36761 * prj-tree.ads: (Is_Extending_All): New function
36762 (Set_Is_Extending_All): New procedure
36763 (Project_Node_Record): New boolean component Extending_All
36764
36765 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
36766
36767 * vms_data.ads:
36768 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
36769
36770 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
36771 "gprcmd prefix" to define it.
36772
36773 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
36774
36775 * einfo.ads: Fix a typo and remove an extraneous word in comments.
36776
36777 * lib-load.adb:
36778 (Create_Dummy_Package_Unit): Set the scope of the entity for the
36779 created dummy package to Standard_Standard, not to itself, to
36780 defend other parts of the front-end against encoutering a cycle in
36781 the scope chain.
36782
36783 * sem_ch10.adb:
36784 (Analyze_With_Clause): When setting the entities for the successive
36785 N_Expanded_Names that constitute the name of a child unit, do not
36786 attempt to go further than Standard_Standard in the chain of scopes.
36787 This case arises from the placeholder units created by
36788 Create_Dummy_Package_Unit in the case of a with_clause for a
36789 nonexistent child unit.
36790
36791 2003-11-10 Ed Schonberg <schonberg@gnat.com>
36792
36793 * exp_ch6.adb:
36794 (Expand_Thread_Body): Place subprogram on scope stack, so that new
36795 declarations are given the proper scope.
36796
36797 * sem_ch13.adb:
36798 (Check_Expr_Constants): Reject an expression that contains a constant
36799 created during expansion, and that appears after the object to which
36800 the address clause applies.
36801
36802 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
36803 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
36804 that uses 'Range of a function call with controlled components, so
36805 that the function result can be finalized before starting the loop.
36806
36807 * sem_ch8.adb:
36808 (Find_Selected_Component): Improve error message when prefix is
36809 an implicit dereference of an incomplete type.
36810
36811 2003-11-10 Robert Dewar <dewar@gnat.com>
36812
36813 * opt.ads: New Print_Standard flag for -gnatS switch
36814
36815 * sem_ch13.adb: Remove some additional checks for unaligned arrays
36816
36817 * cstand.adb (Create_Standard): Print out package standard if -gnatS
36818 switch set
36819
36820 * debug.adb: Update doc for -gnatds to discuss relationship with new
36821 -gnatS flag
36822
36823 * sinfo.adb: Add new field Entity_Or_Associated_Node
36824
36825 * sinfo.ads: Add new field Entity_Or_Associated_Node
36826 Update documentation for Associated_Node and Entity fields to clarify
36827 relationship and usage.
36828
36829 * sprint.adb:
36830 (Write_Id): Properly process Associated_Node field in generic template
36831
36832 * switch-c.adb:
36833 Recognize new -gnatS switch for printing package Standard
36834 This replaces gnatpsta
36835
36836 * usage.adb:
36837 Add line for new -gnatS switch for printing package Standard
36838 This replaces gnatpsta
36839
36840 2003-11-10 Andreas Jaeger <aj@suse.de>
36841
36842 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
36843 integer.
36844
36845 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36846
36847 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
36848 by gnat1.
36849
36850 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36851
36852 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
36853 no longer needed.
36854
36855 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
36856
36857 * sysdep.c: Add handling of cygwin.
36858
36859 2003-11-10 GNAT Script <nobody@gnat.com>
36860
36861 * Make-lang.in: Makefile automatically updated
36862
36863 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
36864
36865 PR 12950
36866 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
36867 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
36868 Replace GNAT_ROOT by GCC_ROOT.
36869
36870 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
36871
36872 2003-11-06 Zack Weinberg <zack@codesourcery.com>
36873
36874 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
36875 and update for changed meaning of GET_MODE_BITSIZE.
36876
36877 2003-11-04 Doug Rupp <rupp@gnat.com>
36878
36879 * sysdep.c: Problem discovered during IA64 VMS port.
36880 [VMS] #include <unixio.h> to get proper prototypes.
36881
36882 * adaint.c:
36883 Issues discovered/problems fixed during IA64 VMS port.
36884 [VMS] #define _POSIX_EXIT for proper semantics.
36885 [VMS] #include <unixio.h> for proper prototypes.
36886 [VMS] (fork): #define IA64 version.
36887 (__gnat_os_exit): Remove unnecessary VMS specific code.
36888
36889 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36890
36891 Part of PR ada/12806
36892 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
36893 tree, not integer.
36894
36895 * decl.c:
36896 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
36897 not integer.
36898
36899 * targtyps.c, decl.c, misc.c,
36900 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
36901 routines to work around change in FP sizing semantics in GCC.
36902
36903 * utils.c:
36904 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
36905
36906 * gigi.h: (enumerate_modes): New function.
36907
36908 * Make-lang.in: (ada/misc.o): Add real.h.
36909
36910 * misc.c: (enumerate_modes): New function.
36911
36912 2003-11-04 Robert Dewar <dewar@gnat.com>
36913
36914 * 3vtrasym.adb: Minor reformatting
36915 Use terminology encoded/decoded name, rather than C++ specific notion
36916 of mangling (this is the terminology used throughout GNAT).
36917
36918 * einfo.h: Regenerated
36919
36920 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
36921
36922 * exp_ch6.adb:
36923 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
36924
36925 * par-prag.adb: Add dummy entry for Thread_Body pragma
36926
36927 * rtsfind.ads:
36928 Add entries for System.Threads entities for thread body processing
36929
36930 * sem_attr.adb:
36931 (Analyze_Pragma, Access attributes): Check these are not applied to a
36932 thread body, since this is not permitted
36933
36934 * sem_prag.adb: Add processing for Thread_Body pragma.
36935 Minor comment fix.
36936
36937 * sem_res.adb:
36938 (Resolve_Call): Check for incorrect attempt to call a thread body
36939 procedure with a direct call.
36940
36941 * snames.ads, snames.adb: Add entry for Thread_Body pragma
36942 Add names associated with thread body expansion
36943
36944 * snames.h: Add entry for Thread_Body pragma
36945
36946 * s-thread.adb: Add entries for thread body processing
36947 These are dummy bodies so far
36948
36949 * s-thread.ads: Add documentation on thread body handling.
36950 Add entries for thread body processing.
36951
36952 2003-11-04 Javier Miranda <miranda@gnat.com>
36953
36954 * sem_ch10.adb:
36955 (Build_Limited_Views): Return after posting an error in case of limited
36956 with_clause on subprograms, generics, instances or generic renamings
36957 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
36958 on subprograms, generics, instances or generic renamings
36959
36960 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
36961
36962 * raise.c (setup_to_install): Correct mistake in last revision; two
36963 arguments out of order.
36964
36965 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
36966 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
36967 notice, missed in previous change.
36968 Remove trailing blanks and other style errors introduced in previous
36969 change.
36970
36971 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
36972
36973 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
36974 rid of the wrapper for a LJM type, ensuring we don't do that if the
36975 field is addressable. This avoids potential low level type view
36976 mismatches later on, for instance in a by-reference argument passing
36977 process.
36978
36979 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36980
36981 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
36982 aligned at byte boundary.
36983
36984 2003-11-04 Joel Brobecker <brobecker@gnat.com>
36985
36986 * decl.c (components_to_record): Do not delete the empty variants from
36987 the end of the union type.
36988
36989 2003-11-04 Ed Schonberg <schonberg@gnat.com>
36990
36991 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
36992 operation for a derived type, an explicit declaration may use a local
36993 subtype of Boolean.
36994
36995 2003-11-04 Vincent Celier <celier@gnat.com>
36996
36997 * make.adb (Gnatmake): Allow main sources on the command line with a
36998 library project when it is only for compilation (no binding or
36999 linking).
37000
37001 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37002
37003 * Makefile.in: Remove many duplicate variables.
37004
37005 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
37006
37007 * Make-lang.in (dvi): Move targets to $(docobjdir).
37008 (gnat_ug_vms.dvi): Simplify rule and adjust target.
37009 (gnat_ug_wnt.dvi): Likewise.
37010 (gnat_ug_unx.dvi): Likewise.
37011 (gnat_ug_vxw.dvi): Likewise.
37012 (gnat_rm.dvi): Likewise.
37013 (gnat-style.dvi): Likewise.
37014
37015 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37016
37017 * gigi.h: Missed commit from update for C90.
37018
37019 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37020
37021 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37022
37023 2003-10-31 Andreas Schwab <schwab@suse.de>
37024
37025 * raise.c (get_action_description_for): Fix typo in last change.
37026
37027 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
37028
37029 PR ada/12761
37030 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37031 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37032
37033 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
37034
37035 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37036 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37037 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37038 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37039 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37040
37041 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
37042
37043 * 3vtrasym.adb:
37044 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37045 numbers when symbol name is too long.
37046
37047 2003-10-30 Ed Falis <falis@gnat.com>
37048
37049 * g-signal.ads, g-signal.adb: New files
37050
37051 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37052
37053 * Makefile.rtl: Introduce GNAT.Signals
37054
37055 2003-10-30 Robert Dewar <dewar@gnat.com>
37056
37057 * freeze.adb: Minor reformatting
37058
37059 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37060
37061 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37062 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
37063 New handling of Id_Check parameter to improve recognition of keywords
37064 used as identifiers.
37065 Update copyright notice to include 2003
37066
37067 2003-10-29 Robert Dewar <dewar@gnat.com>
37068
37069 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
37070 sem_ch10.adb: Minor reformatting
37071
37072 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
37073 (Expand_Assign_Record): Test right hand side for bit unaligned as well
37074
37075 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
37076
37077 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
37078 Support for TBK$SYMBOLIZE-based symbolic traceback.
37079
37080 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
37081
37082 * exp_disp.adb:
37083 Revert previous change, that did not work well when pragma No_Run_Time
37084 was used in conjunction with a run-time other than ZFP.
37085
37086 2003-10-29 Vincent Celier <celier@gnat.com>
37087
37088 * make.adb:
37089 (Gnatmake): When there are no Ada mains in attribute Main, disable the
37090 bind and link steps only is switch -z is not used.
37091
37092 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
37093
37094 * Makefile.generic: Remove duplicated setting of CC.
37095
37096 * Makefile.prolog: Set CC to gcc by default, to override make's
37097 default (cc).
37098
37099 * einfo.h: Regenerated.
37100
37101 2003-10-29 Ed Schonberg <schonberg@gnat.com>
37102
37103 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
37104 current body, after compiling subunit.
37105
37106 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
37107 when in deleted code, because gigi needs properly ordered freeze
37108 actions to annotate types.
37109
37110 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
37111 prevent the premature freezing of record type that contains
37112 subcomponents with a private type that does not yet have a completion.
37113
37114 2003-10-29 Javier Miranda <miranda@gnat.com>
37115
37116 * sem_ch12.adb:
37117 (Analyze_Package_Instantiation): Check that instances can not be used in
37118 limited with_clauses.
37119
37120 * sem_ch8.adb:
37121 (Analyze_Package_Renaming): Check that limited withed packages cannot
37122 be renamed. Improve text on error messages related to limited
37123 with_clauses.
37124
37125 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
37126
37127 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
37128 Update copyright notice.
37129
37130 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
37131 (Install_Limited_Context_Clauses): New subprogram that isolates all the
37132 checks required for limited context_clauses and installs the limited
37133 view.
37134 (Install_Limited_Withed_Unit): Complete its documentation.
37135 (Analyze_Context): Check that limited with_clauses are only allowed in
37136 package specs.
37137 (Install_Context): Call Install_Limited_Context_Clauses after the
37138 parents have been installed.
37139 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
37140 package as 'From_With_Type'; this mark indicates that the limited view
37141 is installed. Used to check bad usages of limited with_clauses.
37142 (Build_Limited_Views): Do not add shadow entities to the scope's list
37143 of entities. Do not add real entities to the Non_Limited_Views chain.
37144 Improve error notification.
37145 (Remove_Context_Clauses): Remove context clauses in two phases:
37146 limited views first and regular views later (to maintain the
37147 stack model).
37148 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
37149 its visible entities.
37150
37151 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
37152
37153 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
37154 with any type that Is_Fixed_Point_Type.
37155
37156 * sinfo.ads: Fix documentation for Associated_Node attribute.
37157
37158 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
37159
37160 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
37161 both '-gnatc' and '-gnatt' are specified.
37162
37163 * atree.adb (Initialize): Add initialization for Node_Count (set to
37164 zero).
37165
37166 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37167
37168 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
37169 do not consider as Pure.
37170
37171 Part of implementation of function-at-a-time:
37172
37173 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
37174 (tree_transform): Add new argument to build_component_ref.
37175 (tree_transform, case N_Assignment_Statement): Make and return an
37176 EXPR_STMT.
37177 (tree_transform): If result IS_STMT, set flags and return it.
37178 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37179
37180 * utils2.c (build_simple_component_ref, build_component_ref): Add new
37181 arg, NO_FOLD_P.
37182 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
37183 (build_allocator): Likewise.
37184
37185 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
37186 Add new arg to build_component_ref.
37187 (maybe_unconstrained_array, unchecked_convert): Likewise.
37188
37189 * ada-tree.def (EXPR_STMT): New code.
37190
37191 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
37192
37193 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
37194 build_component_ref calls.
37195
37196 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
37197
37198 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37199 (build_component_ref): Add new argument, NO_FOLD_P.
37200
37201 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
37202
37203 * Makefile.generic: Add missing substitution on object_deps handling.
37204
37205 PR ada/5909
37206 * Make-lang.in (check-ada): Enable ACATS test suite.
37207
37208 2003-10-27 Robert Dewar <dewar@gnat.com>
37209
37210 * exp_ch3.adb:
37211 (Freeze_Array_Type): We do not need an initialization routine for types
37212 derived from String or Wide_String. They should be treated the same
37213 as String and Wide_String themselves. This caused problems with the
37214 use of Initialize_Scalars.
37215
37216 * exp_ch5.adb:
37217 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
37218 composites. This allows use of component clauses that are not byte
37219 aligned.
37220
37221 * sem_prag.adb:
37222 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
37223 is an attempt to pack an array of atomic objects.
37224
37225 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
37226
37227 2003-10-27 Pascal Obry <obry@gnat.com>
37228
37229 * g-dirope.adb:
37230 (Basename): Check for drive letters in a pathname only on DOS based OS.
37231
37232 2003-10-27 Vincent Celier <celier@gnat.com>
37233
37234 * make.adb:
37235 (Gnatmake): When unable to change dir to the object dir, display the
37236 content of the parent dir of the obj dir, to try to understand why this
37237 happens.
37238
37239 2003-10-27 GNAT Script <nobody@gnat.com>
37240
37241 * Make-lang.in: Makefile automatically updated
37242
37243 2003-10-27 Ed Schonberg <schonberg@gnat.com>
37244
37245 * sem_ch12.adb:
37246 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
37247 should not be done in Save/Restore_Scope_Stack, because it is performed
37248 locally.
37249
37250 * sem_ch8.adb:
37251 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37252 whether use clauses should be removed/restored.
37253
37254 * sem_ch8.ads:
37255 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37256 whether use clauses should be removed/restored.
37257
37258 2003-10-26 Andreas Jaeger <aj@suse.de>
37259
37260 * Makefile.in: Remove duplicated lines.
37261
37262 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37263
37264 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
37265 minimize the differences with ACT tree.
37266
37267 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
37268 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
37269 Gnatvsn.Gnat_Static_Version_String to reduce differences between
37270 ACT and FSF trees.
37271
37272 2003-10-24 Pascal Obry <obry@gnat.com>
37273
37274 PR ada/12014
37275 * adadecode.c (ostrcpy): New function.
37276 (__gnat_decode): Use ostrcpy of strcpy.
37277 (has_prefix): Set first parameter a const.
37278 (has_suffix): Set first parameter a const.
37279 Update copyright notice. Fix source name in header.
37280 Removes a trailing space.
37281
37282 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
37283
37284 * exp_disp.adb:
37285 Remove the test against being in No_Run_Time_Mode before generating a
37286 call to Register_Tag. It is redundant with the test against the
37287 availability of the function Register_Tag.
37288
37289 2003-10-24 Vincent Celier <celier@gnat.com>
37290
37291 * g-catiio.adb: (Month_Name): Correct spelling of February
37292
37293 * make.adb: (Mains): New package
37294 (Initialize): Call Mains.Delete
37295 (Gnatmake): Check that each main on the command line is a source of a
37296 project file and, if there are several mains, each of them is a source
37297 of the same project file.
37298 (Gnatmake): When a foreign language is specified in attribute Languages,
37299 no main is specified on the command line and attribute Mains is not
37300 empty, only build the Ada main. If there is no Ada main, just compile
37301 the Ada sources and their closure.
37302 (Gnatmake): If a main is specified on the command line with directory
37303 information, check that the source exists and, if it does, that the path
37304 is the actual path of a source of a project.
37305
37306 * prj-env.adb:
37307 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
37308 Full_Path is True, return the full path instead of the simple file name.
37309 (Project_Of): New function
37310
37311 * prj-env.ads:
37312 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
37313 defaulted to False.
37314 (Project_Of): New function
37315
37316 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37317
37318 * Makefile.generic:
37319 Ensure objects of main project are always checked and rebuilt if needed.
37320 Set CC to gcc by default.
37321 Prepare new handling of link by creating a global archive (not activated
37322 yet).
37323
37324 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37325 stringt.h: Update copyright notice. Remove trailing blanks.
37326 Fix source name in header.
37327
37328 2003-10-24 Robert Dewar <dewar@gnat.com>
37329
37330 * sem_ch12.adb: Minor reformatting
37331
37332 * sem_ch3.adb:
37333 Minor reformatting (including new function return style throughout)
37334
37335 * sem_ch3.ads:
37336 Minor reformatting (including new function return style throughout)
37337
37338 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37339
37340 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37341 stringt.h: Update copyright notice. Remove trailing blanks.
37342 Fix source name in header.
37343
37344 2003-10-24 GNAT Script <nobody@gnat.com>
37345
37346 * Make-lang.in: Makefile automatically updated
37347
37348 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
37349
37350 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
37351 stringt.h: Convert to ISO C90 declarations and definitions.
37352
37353 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
37354
37355 PR ada/11978
37356 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
37357 External_Tag attribute definition clauses.
37358
37359 2003-10-23 Ed Schonberg <schonberg@gnat.com>
37360
37361 PR ada/7613
37362 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
37363 child unit, generate a fully qualified name to avoid spurious errors
37364 when the context contains renamings of different child units with
37365 the same simple name.
37366
37367 * exp_dbug.ads: Add documentation on name qualification for renamings
37368 of child units.
37369
37370 2003-10-23 Robert Dewar <dewar@gnat.com>
37371
37372 * g-regpat.ads, g-regpat.adb: Minor reformatting
37373
37374 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
37375
37376 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
37377
37378 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37379
37380 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
37381 Machine call.
37382
37383 * urealp.h: (Machine): Update to proper definition.
37384
37385 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
37386
37387 * init.c, adaint.c: Minor reformatting.
37388
37389 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
37390
37391 * adaint.c (w32_epoch_offset): Define static const at file level.
37392 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
37393 rather than t_create, t_access in call to GetFileTime. Use union
37394 to convert between FILETIME and unsigned long long.
37395 (__gnat_file_time_name): Test for invalid file handle.
37396 (__gnat_set_filetime_name): Support win32 targets using
37397 w32api SetFileTime.
37398
37399 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
37400
37401 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
37402
37403 * ctrl_c.c (__gnat_int_handler): Remove declaration.
37404
37405 * decl.c (creat_concat_name): Const-ify prefix.
37406
37407 * adaint.c: Include ctype.h if __MINGW32__.
37408 (__gnat_readlink): Mark arguments as possibly unused.
37409 (__gnat_symlink): Likewise.
37410 (__gnat_is_symbolic_link): Likewise.
37411 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
37412 declaration
37413 (__gnat_file_time_name): Don't declare struct stat statbuf when
37414 not needed.
37415 (__gnat_is_absolute_path): Add parenthesis around condition of
37416 'if' statement to avoid warning.
37417 (__gnat_plist_init): Specify void as parameter.
37418 (plist_enter): Likewise.
37419 (plist_leave): Likewise.
37420 (remove_handle): Make static. Initialize prev.
37421
37422 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37423
37424 PR ada/10110
37425 * Makefile.in: Disable build of gnatpsta.
37426 * cstreams.c (__gnat_full_name): Minor improvements and clean up
37427 of previous change.
37428
37429 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37430
37431 * tracebak.c (MAX): Avoid redefinition warning.
37432
37433 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
37434 Change msg to const char *.
37435 (__gnat_install_handler): Remove ss, unused.
37436 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
37437 to const char *.
37438 * cstreams.c (__gnat_full_name): Declare p only when used.
37439 (__gnat_full_name) [sgi] Return buffer.
37440
37441 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37442
37443 * mingw32.h: New file.
37444 * gnat_wrapper.adb: New file.
37445
37446 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
37447
37448 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
37449 string match a pre compiled regular expression (the corresponding
37450 version of the function working on a raw regular expression)
37451 Fix typos in various comments
37452 Update copyright notice in spec
37453
37454 2003-10-21 Gary Dismukes <dismukes@gnat.com>
37455
37456 * exp_ch3.adb:
37457 (Component_Needs_Simple_Initialization): Return False when the type is a
37458 packed bit array. Revise spec comments to document this case.
37459
37460 * exp_prag.adb:
37461 (Expand_Pragma_Import): Set any expression on the imported object to
37462 empty to avoid initializing imported objects (in particular this
37463 covers the case of zero-initialization of bit arrays).
37464 Update copyright notice.
37465
37466 2003-10-21 Ed Schonberg <schonberg@gnat.com>
37467
37468 * sem_ch12.adb:
37469 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
37470 a subunit is missing.
37471 (Instantiate_Subprogram_Body): If body of function is missing, set type
37472 of return expression explicitly in dummy body, to prevent cascaded
37473 errors when a subunit is missing.
37474 Fixes PR 5677.
37475
37476 * sem_ch3.adb:
37477 (Access_Subprogram_Declaration): Verify that return type is valid.
37478 Fixes PR 8693.
37479
37480 * sem_elab.adb:
37481 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
37482 generic.
37483 Fixes PR 12318.
37484
37485 * sem_util.adb:
37486 (Corresponding_Discriminant): If the scope of the discriminant is a
37487 private type without discriminant, use its full view.
37488 Fixes PR 8247.
37489
37490 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
37491
37492 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
37493 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
37494 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
37495 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
37496 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
37497 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
37498 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37499 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
37500 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
37501 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
37502 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
37503 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
37504 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
37505 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
37506 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
37507 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
37508 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
37509 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
37510 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
37511 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
37512 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
37513 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
37514 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
37515 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
37516 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
37517 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
37518 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
37519 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
37520 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
37521 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
37522 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
37523 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
37524 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
37525 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
37526 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
37527 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
37528 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
37529 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
37530 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
37531 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
37532 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
37533 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
37534 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
37535 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
37536 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
37537 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
37538 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
37539 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
37540 vms_conv.ads, vms_conv.adb, vms_data.ads,
37541 vxaddr2line.adb: Files added. Merge with ACT tree.
37542
37543 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
37544 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
37545 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
37546 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
37547 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
37548 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
37549 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37550 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
37551 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
37552 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
37553
37554 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37555 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37556 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37557 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37558 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
37559 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
37560 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37561 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
37562 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
37563 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
37564 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
37565 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
37566 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
37567 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
37568 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
37569 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
37570 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
37571 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37572 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
37573 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
37574 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
37575 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37576 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37577 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37578 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
37579 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
37580 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
37581 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37582 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
37583 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37584 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37585 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
37586 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
37587 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
37588 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
37589 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
37590 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
37591 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
37592 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
37593 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
37594 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
37595 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
37596 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
37597 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
37598 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
37599 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
37600 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
37601 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
37602 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
37603 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
37604 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
37605 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
37606 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
37607 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
37608 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
37609 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
37610 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
37611 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
37612 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
37613 checks.adb, checks.ads, cio.c, comperr.adb,
37614 comperr.ads, csets.adb, cstand.adb, cstreams.c,
37615 debug_a.adb, debug_a.ads, debug.adb, decl.c,
37616 einfo.adb, einfo.ads, errout.adb, errout.ads,
37617 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
37618 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
37619 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
37620 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
37621 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
37622 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
37623 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
37624 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
37625 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
37626 fe.h, fmap.adb, fmap.ads, fname.adb,
37627 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
37628 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
37629 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
37630 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37631 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37632 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37633 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
37634 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
37635 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
37636 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
37637 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
37638 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
37639 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
37640 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
37641 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
37642 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
37643 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
37644 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
37645 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
37646 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
37647 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
37648 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
37649 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
37650 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
37651 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
37652 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
37653 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
37654 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
37655 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
37656 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
37657 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
37658 layout.adb, lib.adb, lib.ads, lib-list.adb,
37659 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
37660 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37661 link.c, live.adb, make.adb, make.ads,
37662 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
37663 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
37664 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
37665 misc.c, mkdir.c, mlib.adb, mlib.ads,
37666 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
37667 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
37668 namet.adb, namet.ads, namet.h, nlists.ads,
37669 nlists.h, nmake.adt, opt.adb, opt.ads,
37670 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
37671 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
37672 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37673 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
37674 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
37675 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
37676 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
37677 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
37678 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
37679 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
37680 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
37681 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
37682 prj-util.adb, prj-util.ads, raise.c, raise.h,
37683 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
37684 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
37685 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
37686 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
37687 scans.ads, scn.adb, scn.ads, s-crc32.adb,
37688 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
37689 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
37690 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
37691 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
37692 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
37693 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37694 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37695 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
37696 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
37697 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
37698 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
37699 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
37700 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
37701 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
37702 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37703 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
37704 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
37705 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
37706 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
37707 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
37708 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
37709 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
37710 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
37711 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
37712 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
37713 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
37714 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
37715 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
37716 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
37717 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
37718 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
37719 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
37720 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
37721 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
37722 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
37723 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
37724 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
37725 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37726 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37727 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
37728 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
37729 stringt.adb, stringt.ads, stringt.h, style.ads,
37730 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
37731 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37732 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37733 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37734 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37735 table.adb, table.ads, targparm.adb, targparm.ads,
37736 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37737 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37738 ttypes.ads, types.ads, types.h, uintp.adb,
37739 uintp.ads, uintp.h, uname.adb, urealp.adb,
37740 urealp.ads, urealp.h, usage.adb, utils2.c,
37741 utils.c, validsw.adb, validsw.ads, widechar.adb,
37742 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37743 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37744 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37745 gnatvsn.ads: Merge with ACT tree.
37746
37747 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37748
37749 2003-10-20 Mark Mitchell <mark@codesourcery.com>
37750
37751 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
37752 (gnat_ug_vmx.info): Likewise.
37753 (gnat_ug_vxw.info): Likewise.
37754 (gnat_ug_wnt.info): Likewise.
37755 (gnat_rm.info): Likewise.
37756 (gnat-style.info): Likewise.
37757
37758 * Make-lang.in (ada.install-info): Remove target.
37759 (info): New target.
37760 (install-info): Likewise.
37761 (gnat_ug_unx.info): Simplify rule.
37762 (gnat_ug_vmx.info): Likewise.
37763 (gnat_ug_vxw.info): Likewise.
37764 (gnat_ug_wnt.info): Likewise.
37765 (gnat_rm.info): Likewise.
37766 (gnat-style.info): Likewise.
37767
37768 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
37769
37770 * Make-lang.in: Replace uses of $(target_alias) with
37771 $(target_noncanonical).
37772 * ada/Makefile.in: Remove unused mention of $(target_alias).
37773
37774 2003-10-06 Mark Mitchell <mark@codesourcery.com>
37775
37776 * Make-lang.in (ada.info): Replace with ...
37777 (info): ... this.
37778 (ada.dvi): Replace with ...
37779 (dvi): ... this.
37780
37781 2003-09-29 Zack Weinberg <zack@codesourcery.com>
37782
37783 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
37784 initialize dconstp5 and dconstmp5.
37785
37786 2003-09-28 Richard Henderson <rth@redhat.com>
37787
37788 * trans.c (tree_transform): Update call to expand_asm_operands.
37789
37790 2003-09-21 Richard Henderson <rth@redhat.com>
37791
37792 * trans.c, utils.c: Revert.
37793
37794 2003-09-21 Richard Henderson <rth@redhat.com>
37795
37796 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
37797 change to const.
37798
37799 2003-09-04 Michael Matz <matz@suse.de>
37800
37801 * misc.c: Include "target.h".
37802 * Make-lang.in (misc.o): Add dependency on target.h.
37803
37804 2003-09-03 DJ Delorie <dj@redhat.com>
37805
37806 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
37807 hook.
37808
37809 2003-08-30 Zack Weinberg <zack@codesourcery.com>
37810
37811 * Makefile.in: Update substitutions to match changes to
37812 configure. Use include directives instead of @-insertions
37813 to read in host and target fragments. Add a rule to
37814 regenerate ada/Makefile.
37815
37816 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
37817
37818 * lang-options.h: Remove.
37819 * lang.opt: Add help text.
37820
37821 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
37822
37823 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
37824 calls.
37825
37826 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
37827
37828 * misc.c (gnat_handle_option): Don't handle filenames.
37829
37830 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
37831
37832 * Make-lang.in: Replace PWD with PWD_COMMAND.
37833 * Makefile.adalib: Likewise.
37834 * Makefile.in: Likewise.
37835
37836 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
37837
37838 * misc.c (gnat_argv): Revert last change.
37839 (gnat_handle_option, gnat_init_options): Copy arguments.
37840
37841 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
37842
37843 * misc.c (gnat_argv): Make const.
37844
37845 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37846
37847 * misc.c (save_argc, save_argv): Keep non-static!
37848
37849 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
37850
37851 * misc.c (save_argc, save_argv): Make static.
37852 (gnat_init_options): New prototype.
37853 (gnat_init_options): Update.
37854
37855 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
37856
37857 * gnat_ug.texi: Remove unlikely characters from @vars.
37858 * gnat_ug_vms.texi: Regenerate.
37859
37860 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
37861
37862 * misc.c (record_code_position): Adjust emit_note call.
37863
37864 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
37865
37866 * misc.c (gnat_handle_option): Don't check for missing arguments.
37867
37868 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
37869
37870 * utils.c (end_subprog_body): Adjust expand_function_end call.
37871
37872 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
37873
37874 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
37875 Bind_Main_Program.
37876
37877 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
37878
37879 * lang.opt: Declare Ada.
37880 * misc.c (gnat_init_options): Update.
37881
37882 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
37883
37884 * utils.c (begin_subprog_body): Adjust init_function_start call.
37885
37886 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37887
37888 * Make-lang.in: Update to use options.c and options.h.
37889 * misc.c: Include options.h not aoptions.h.
37890 (gnat_handle_option): Abort on unrecognized switch.
37891 (gnat_init_options): Request Ada switches.
37892
37893 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
37894
37895 * lang.opt: Add -Wall.
37896 * misc.c (gnat_handle_option): Handle it.
37897
37898 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
37899
37900 * misc.c (gnat_handle_option): Fix warnings.
37901
37902 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
37903
37904 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
37905
37906 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
37907
37908 * Make-lang.in: Update to handle command-line options.
37909 * lang.opt: New file.
37910 * misc.c: Include aoptions.h.
37911 (cl_options_count, cl_options): Remove.
37912 (gnat_handle_option): New.
37913 (gnat_decode_option): Remove.
37914 (LANG_HOOKS_DECODE_OPTION): Remove.
37915 (LANG_HOOKS_HANDLE_OPTION): Override.
37916
37917 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
37918
37919 * init.c, misc.c, trans.c, utils.c: Remove dead code.
37920
37921 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
37922
37923 * Makefile.in: Replace "host_canonical" with "host" for autoconf
37924 substitution.
37925
37926 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
37927
37928 * Make-lang.in: Update.
37929 * misc.c: Include opts.h. Define cl_options_count and cl_options.
37930
37931 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
37932
37933 * misc.c (gnat_init_options): Update.
37934
37935 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37936
37937 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
37938 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
37939 __attribute__ ((__unused__)).
37940
37941 2003-06-05 Jan Hubicka <jh@suse.cz>
37942
37943 * Make-lang.in: Add support for stageprofile and stagefeedback
37944
37945 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
37946
37947 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
37948 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
37949
37950 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
37951
37952 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
37953 Remove non-VMS directive.
37954 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
37955 alternatives.
37956 (Examples of gnatls Usage): Remove VMS alternative.
37957
37958 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
37959
37960 PR ada/9953
37961 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
37962 and turn ZCX_By_Default back to False since the underlying support
37963 is not quite there yet.
37964
37965 2003-06-01 Andreas Jaeger <aj@suse.de>
37966
37967 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
37968 and ROUND_TYPE_SIZE_UNIT.
37969
37970 2003-05-22 Geert Bosch <bosch@gnat.com>
37971
37972 * gnat_rm.texi : Remove reference to Ada Core Technologies.
37973
37974 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
37975
37976 * trans.c (tree_transform): Use location_t and input_location
37977 directly.
37978 (build_unit_elab): Likewise.
37979 * utils.c (create_label_decl): Likewise.
37980
37981 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
37982
37983 * trans.c (tree_transform, build_unit_elab,
37984 set_lineno): Rename lineno to input_line.
37985 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
37986 end_subprog_body): Likewise.
37987 * utils2.c (build_call_raise): Likewise.
37988
37989 2003-05-01 Laurent Guerby <guerby@acm.org>
37990
37991 PR ada/10546
37992 * 5iosinte.ads: Increase pthread_cond_t size to match recent
37993 LinuxThread and NPTL version, merge from ACT.
37994
37995 2003-04-28 Zack Weinberg <zack@codesourcery.com>
37996
37997 * utils.c (convert): No need to clear TREE_CST_RTL.
37998
37999 2003-04-23 Geert Bosch <bosch@gnat.com>
38000
38001 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38002 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38003 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38004 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38005 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38006 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38007 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38008 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38009 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38010 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38011 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38012 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38013 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38014 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38015 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38016 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38017 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38018 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38019 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38020 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38021 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38022 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38023 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38024 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38025 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38026 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38027 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38028 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38029 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38030 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38031 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38032 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38033 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38034 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38035 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38036 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38037 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38038 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38039 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38040 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38041 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38042 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38043 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38044 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38045 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38046 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38047 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38048 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38049 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38050 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38051 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38052 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38053 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38054 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38055 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38056 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38057 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38058 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38059 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38060 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38061 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38062 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38063 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38064 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38065 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38066 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
38067 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
38068 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
38069 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
38070 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
38071 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
38072 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
38073 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
38074 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
38075 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
38076 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
38077 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
38078 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
38079 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
38080 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
38081 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
38082 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
38083 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
38084 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
38085 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
38086 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
38087 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
38088 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
38089 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
38090 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
38091 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
38092 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
38093 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
38094 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
38095 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
38096 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
38097 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
38098 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
38099 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
38100 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
38101 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
38102 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
38103 ali.adb, ali.ads, alloc.ads, argv.c,
38104 atree.adb, atree.ads, atree.h, aux-io.c,
38105 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
38106 binde.adb, binde.ads, binderr.adb, binderr.ads,
38107 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
38108 butil.adb, butil.ads, cal.c, calendar.ads,
38109 casing.adb, casing.ads, ceinfo.adb, checks.adb,
38110 checks.ads, cio.c, comperr.adb, comperr.ads,
38111 config-lang.in, csets.adb, csets.ads, csinfo.adb,
38112 cstand.adb, cstand.ads, cuintp.c, debug.adb,
38113 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
38114 dec-io.ads, dec.ads, deftarg.c, directio.ads,
38115 einfo.adb, einfo.ads, elists.adb, elists.ads,
38116 elists.h, errno.c, errout.adb, errout.ads,
38117 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
38118 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
38119 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
38120 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
38121 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
38122 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
38123 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
38124 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
38125 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
38126 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
38127 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
38128 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
38129 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
38130 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
38131 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
38132 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
38133 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
38134 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
38135 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
38136 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
38137 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38138 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38139 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38140 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
38141 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
38142 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
38143 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
38144 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
38145 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
38146 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
38147 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
38148 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
38149 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
38150 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
38151 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
38152 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
38153 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
38154 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
38155 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
38156 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
38157 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
38158 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
38159 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
38160 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
38161 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
38162 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
38163 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
38164 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
38165 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
38166 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
38167 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
38168 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
38169 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
38170 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
38171 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
38172 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
38173 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
38174 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
38175 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
38176 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38177 lib.adb, lib.ads, live.adb, live.ads,
38178 machcode.ads, make.adb, make.ads, makeusg.adb,
38179 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
38180 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
38181 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
38182 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
38183 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
38184 mlib.ads, namet.adb, namet.ads, nlists.adb,
38185 nlists.ads, opt.adb, opt.ads, osint-b.adb,
38186 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
38187 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
38188 osint.ads, output.adb, output.ads, par-ch10.adb,
38189 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
38190 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38191 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
38192 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
38193 par-tchk.adb, par-util.adb, par.adb, par.ads,
38194 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
38195 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
38196 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
38197 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
38198 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
38199 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
38200 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
38201 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
38202 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
38203 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
38204 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
38205 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
38206 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
38207 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
38208 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
38209 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
38210 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
38211 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38212 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
38213 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
38214 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
38215 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
38216 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38217 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
38218 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
38219 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
38220 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
38221 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
38222 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
38223 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
38224 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
38225 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
38226 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
38227 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
38228 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
38229 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
38230 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
38231 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
38232 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
38233 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
38234 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
38235 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
38236 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
38237 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
38238 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
38239 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
38240 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
38241 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
38242 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
38243 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
38244 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
38245 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
38246 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
38247 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
38248 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
38249 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
38250 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
38251 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
38252 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
38253 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
38254 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
38255 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
38256 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
38257 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
38258 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
38259 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
38260 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
38261 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
38262 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
38263 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
38264 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
38265 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
38266 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
38267 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
38268 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
38269 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
38270 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
38271 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
38272 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
38273 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38274 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
38275 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
38276 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
38277 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38278 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
38279 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
38280 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
38281 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
38282 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
38283 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
38284 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
38285 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
38286 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
38287 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
38288 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
38289 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
38290 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
38291 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
38292 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
38293 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
38294 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
38295 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
38296 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
38297 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
38298 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
38299 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
38300 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
38301 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
38302 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
38303 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
38304 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38305 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38306 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
38307 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
38308 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
38309 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
38310 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
38311 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
38312 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
38313 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
38314 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
38315 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
38316 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
38317 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
38318 snames.ads, sprint.adb, sprint.ads, stand.adb,
38319 stand.ads, stringt.adb, stringt.ads, style.adb,
38320 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
38321 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
38322 switch-m.ads, switch.adb, switch.ads, system.ads,
38323 table.adb, table.ads, targparm.adb, targparm.ads,
38324 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
38325 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
38326 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
38327 ttypef.ads, ttypes.ads, types.adb, types.ads,
38328 uintp.adb, uintp.ads, uname.adb, uname.ads,
38329 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
38330 usage.adb, usage.ads, validsw.adb, validsw.ads,
38331 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
38332 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
38333 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
38334 formatting and other trivial changes from ACT.
38335
38336 2003-04-12 Zack Weinberg <zack@codesourcery.com>
38337
38338 * gigi.h, utils2.c (build_constructor):
38339 Rename gnat_build_constructor. Use build_constructor.
38340 * decl.c (gnat_to_gnu_entity)
38341 * trans.c (tree_transform, pos_to_constructor, extract_values)
38342 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
38343 (unchecked_convert)
38344 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
38345 (fill_vms_descriptor):
38346 Update to match.
38347
38348 2003-04-06 Zack Weinberg <zack@codesourcery.com>
38349
38350 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
38351 * misc.c (gnat_tree_size): New function.
38352 (LANG_HOOKS_TREE_SIZE): Override.
38353
38354 2003-04-03 Jason Merrill <jason@redhat.com>
38355
38356 * misc.c (gnat_adjust_rli): #if 0.
38357
38358 2003-03-31 Geert Bosch <bosch@gnat.com>
38359
38360 PR ada/10020
38361 * link.c : Fix misspelled "const" keyword
38362
38363 2003-03-23 Mark Mitchell <mark@codesourcery.com>
38364
38365 PR c++/7086
38366 * utils2.c: Adjust calls to put_var_into_stack.
38367
38368 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
38369
38370 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
38371
38372 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
38373
38374 * misc.c (gnat_init): Update for new prototype.
38375
38376 2003-03-05 Olivier Hainque <hainque@gnat.com>
38377
38378 ada/9961
38379 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
38380 warning, and fix return type for the IN_RTS && !SJLJ case.
38381
38382 2003-03-04 Tom Tromey <tromey@redhat.com>
38383
38384 * Make-lang.in (ada.tags): New target.
38385
38386 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
38387
38388 ada/9911
38389 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
38390 wrapper, which name remains constant whatever underlying GCC
38391 scheme.
38392
38393 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
38394 the stable interface needed for a-except.
38395
38396 2003-03-02 Andreas Jaeger <aj@suse.de>
38397
38398 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38399 gnat_ug_wnt.texi: Regenerate.
38400
38401 2003-03-02 Laurent Guerby <guerby@acm.org>
38402
38403 * Makefile.in (install-gnatlib): Match previous change there
38404 so it works.
38405
38406 2003-02-28 Andreas Schwab <schwab@suse.de>
38407
38408 * Make-lang.in (install-gnatlib): Change to ada directory before
38409 running make instead of using ada/Makefile directly.
38410
38411 2003-02-18 Ben Elliston <bje@redhat.com>
38412
38413 Part of PR ada/9406
38414 * gnat_ug.texi (Binder output file): Grammar fix.
38415
38416 2003-02-18 Ben Elliston <bje@redhat.com>
38417
38418 PR other/7350
38419 * 5qtaprop.adb (Sleep): Fix typo in comment.
38420
38421 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
38422
38423 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
38424 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38425 gnat_ug_wnt.texi: Regenerate.
38426
38427 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38428
38429 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
38430 be created if necessary.
38431 (ada.install-common): Let $(DESTDIR)$(bindir) be created
38432 if necessary. Remove erroneous and redundant gnatchop
38433 installation commands. Test for gnatdll before attempting
38434 to install it.
38435 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
38436 and gnatdll from all plausible locations.
38437
38438 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
38439
38440 * utils2.c (build_unary_op): Don't check flag_volatile.
38441 * gnat_ug.texi: Remove -fvolatile from example.
38442 * gnat_ug_vxw.texi: Likewise.
38443
38444 2003-01-29 Laurent Guerby <guerby@acm.org>
38445
38446 PR ada/8344
38447 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
38448 * Makefile.in: match previous change.
38449 * Make-lang.in: match previous change.
38450
38451 2003-01-29 Joel Sherrill <joel@OARcorp.com>
38452
38453 * 5rosinte.ads: Add SIGXCPU.
38454 * 5rtpopsp.adb: New file.
38455 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
38456 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
38457 specific file 5rtpopsp.adb.
38458 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
38459 is likely needed for all newlib targets.
38460 * init.c: Add RTEMS specific version of __gnat_initialize().
38461
38462 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38463
38464 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
38465
38466 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38467
38468 * init.c (__gnat_error_handler): Make msg const.
38469
38470 * gmem.c (convert_addresses): Move declaration ...
38471 * adaint.h: ... here.
38472 * adaint.c (convert_addresses): Adapt addrs type to match
38473 prototype.
38474
38475 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
38476
38477 2003-01-24 Andreas Schwab <schwab@suse.de>
38478
38479 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
38480 size_t to avoid warning.
38481
38482 2003-01-21 Zack Weinberg <zack@codesourcery.com>
38483
38484 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
38485
38486 2003-01-09 Geoffrey Keating <geoffk@apple.com>
38487
38488 * gnat_rm.texi: Remove RCS version number.
38489
38490 * ada-tree.h (union lang_tree_node): Add chain_next option.
38491
38492 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38493
38494 * Make-lang.in (ada.install-info, ada.install-common,
38495 ada.uninstall): Prepend $(DESTDIR) to the destination
38496 directory in all (un)installation commands.
38497 * Makefile.in (install-gnatlib, install-rts): Ditto.
38498
38499 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
38500
38501 * gnat_rm.texi, gnat_ug.texi: Use @copying.
38502 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38503 gnat_ug_wnt.texi: Regenerate.
38504
38505 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
38506
38507 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
38508 only.
38509 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
38510 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
38511 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
38512 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
38513 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
38514 $(srcdir)/doc/include/gcc-common.texi.
38515
38516 2002-12-15 Geert Bosch <bosch@gnat.com>
38517
38518 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
38519
38520 2002-12-14 Geert Bosch <bosch@gnat.com>
38521
38522 PR ada/5690
38523 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
38524 case of a body created for a Renaming_As_Body, on which
38525 conformance checks are not performed.
38526
38527 2002-11-30 Zack Weinberg <zack@codesourcery.com>
38528
38529 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
38530 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
38531 not already included.
38532 * Make-lang.in: Update dependencies.
38533
38534 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
38535 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
38536 solution to buffer overflow bug on GNU/Linux.
38537
38538 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
38539
38540 PR ada/5856
38541 PR ada/6919
38542 * bindgen.adb: Remove all references to Public_Version.
38543 * comperr.adb: Remove all references to Public_Version and
38544 GNATPRO_Version; correct bug reporting instructions.
38545 * comperr.ads: Change to match bug box.
38546 * gnatvsn.ads: Remove all references to Public version and
38547 GNATPRO version.
38548
38549 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
38550
38551 PR ada/6919
38552 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
38553 GNU/Linux.
38554
38555 PR ada/6558
38556 * config-lang.in: Remove diff_excludes.
38557
38558 2002-11-05 Graham Stott <graham.stott@btinternet.com>
38559
38560 PR ada/8358
38561 * trans.c (gnu_pending_elaboration_lists): New GC root.
38562 (build_unit_elab): Use..
38563
38564 2002-10-30 Geert Bosch <bosch@gnat.com>
38565
38566 PR ada/6558
38567 * misc.c : Include optabs.h
38568
38569 * Make-lang.in (misc.o): Add dependency on optabs.h
38570
38571 2002-10-29 Geert Bosch <bosch@gnat.com>
38572
38573 PR ada/6558
38574 * Make-lang.in (gnatbind): Depend on CONFIG_H
38575
38576 2002-10-29 Geert bosch <bosch@gnat.com>
38577
38578 PR ada/6558
38579 * misc.c: Unrevert misc.c (1.13)
38580
38581 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
38582
38583 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
38584 maintainership comments.
38585
38586 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
38587
38588 PR ada/5904
38589 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
38590 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
38591 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
38592 7staprop.adb: Correct statements in comments about
38593 maintainership of GNAT.
38594
38595 PR ada/5904
38596 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
38597 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
38598 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
38599 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
38600 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
38601 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
38602 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
38603 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
38604 comments about maintainership of GNAT.
38605
38606 PR ada/6919 (forward port of patch for PR ada/5904)
38607 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
38608 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
38609 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
38610 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
38611 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
38612 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
38613 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
38614 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
38615 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
38616 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
38617 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
38618 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
38619 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
38620 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
38621 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
38622 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
38623 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
38624 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
38625 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
38626 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
38627 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
38628 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
38629 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
38630 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
38631 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
38632 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
38633 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
38634 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
38635 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
38636 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
38637 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
38638 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
38639 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
38640 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
38641 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
38642 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
38643 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
38644 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
38645 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
38646 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
38647 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
38648 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
38649 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
38650 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
38651 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
38652 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
38653 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
38654 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
38655 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
38656 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
38657 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
38658 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
38659 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
38660 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
38661 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
38662 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
38663 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
38664 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
38665 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
38666 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
38667 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
38668 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
38669 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
38670 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
38671 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
38672 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
38673 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
38674 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
38675 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
38676 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
38677 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
38678 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
38679 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
38680 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
38681 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
38682 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
38683 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
38684 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
38685 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
38686 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
38687 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
38688 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
38689 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
38690 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
38691 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
38692 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
38693 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
38694 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
38695 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
38696 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
38697 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
38698 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
38699 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
38700 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
38701 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
38702 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
38703 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
38704 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
38705 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
38706 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
38707 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
38708 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
38709 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
38710 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
38711 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
38712 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
38713 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
38714 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
38715 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
38716 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
38717 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
38718 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
38719 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
38720 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
38721 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
38722 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
38723 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
38724 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
38725 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
38726 par-endh.adb par-labl.adb par-load.adb par-prag.adb
38727 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
38728 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
38729 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
38730 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
38731 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38732 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38733 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38734 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38735 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38736 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38737 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38738 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38739 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38740 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38741 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38742 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38743 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38744 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38745 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38746 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38747 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38748 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38749 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
38750 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
38751 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
38752 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
38753 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
38754 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
38755 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
38756 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
38757 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
38758 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
38759 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
38760 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
38761 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
38762 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
38763 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
38764 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
38765 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
38766 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
38767 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
38768 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
38769 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
38770 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
38771 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
38772 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
38773 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
38774 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
38775 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
38776 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
38777 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
38778 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
38779 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
38780 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
38781 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
38782 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
38783 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
38784 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
38785 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
38786 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
38787 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
38788 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
38789 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
38790 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
38791 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
38792 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
38793 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
38794 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
38795 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
38796 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
38797 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
38798 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
38799 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
38800 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
38801 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
38802 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
38803 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
38804 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
38805 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
38806 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
38807 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
38808 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
38809 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
38810 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
38811 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
38812 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
38813 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
38814 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
38815 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
38816 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
38817 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
38818 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
38819 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
38820 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
38821 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
38822 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
38823 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
38824 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
38825 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
38826 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
38827 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
38828 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
38829 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
38830 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
38831 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
38832 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
38833 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
38834 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
38835 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
38836 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
38837 stringt.ads stringt.h style.adb style.ads stylesw.adb
38838 stylesw.ads switch.adb switch.ads sysdep.c system.ads
38839 table.adb table.ads targparm.adb targparm.ads targtyps.c
38840 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
38841 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
38842 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
38843 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
38844 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
38845 usage.ads utils.c utils2.c validsw.adb validsw.ads
38846 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
38847 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
38848 xtreeprs.adb: Correct statements in comments about maintainership
38849 of GNAT.
38850
38851 2002-09-23 Zack Weinberg <zack@codesourcery.com>
38852
38853 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
38854 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
38855 * gnatvsn.ads: Gnat_Version_String is now a function.
38856 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
38857 copy the C version_string into a String and return it.
38858 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
38859 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
38860 Remove pragma Ident (Gnat_Version_String). If this was the
38861 sole use of package Gnatvsn, remove the with statement too.
38862 * gnat1drv.adb: Tweak -gnatv output.
38863
38864 2002-09-17 Richard Henderson <rth@redhat.com>
38865
38866 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
38867 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
38868 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
38869 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
38870 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
38871 and real_2expN instead of a loop.
38872 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
38873 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
38874
38875 2002-08-25 Andre Leis <a.leis@gmx.net>
38876 David Billinghurst <David.Billinghurst@riotinto.com>
38877
38878 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
38879
38880 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38881
38882 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
38883 Remove $(CONFIG_H) dependency.
38884
38885 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
38886
38887 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
38888
38889 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38890
38891 * adadecode.c (ada_demangle): Use xstrdup in lieu of
38892 xmalloc/strcpy.
38893 * misc.c (gnat_decode_option): Likewise.
38894
38895 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
38896
38897 * make.adb (Add_Switch): Make Generic_Position a procedure. The
38898 function approach did not work well because of a side effect (the
38899 function call could reallocate the table which was being indexed
38900 using its result). Fixes ada/4851. [RESURRECTED]
38901
38902 2002-07-01 Roger Sayle <roger@eyesopen.com>
38903
38904 * ada/utils.c (builtin_function): Accept an additional parameter.
38905
38906 2002-06-28 Andreas Jaeger <aj@suse.de>
38907
38908 PR ada/7144
38909 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
38910 <adi@thur.de>.
38911
38912 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38913
38914 * Makefile.in (SHELL): Set to @SHELL@.
38915
38916 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
38917
38918 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
38919 array size calculation.
38920
38921 2002-06-04 Andreas Jaeger <aj@suse.de>
38922
38923 * Make-lang.in (gnatbind): Readd rule that has been lost in last
38924 patch.
38925
38926 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
38927
38928 Merge from pch-branch:
38929
38930 * config-lang.in (gtfiles): Add ada-tree.h.
38931 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
38932 (SET_TYPE_MODULUS): New.
38933 (SET_TYPE_INDEX): New.
38934 (SET_TYPE_DIGITS_VALUE): New.
38935 (SET_TYPE_RM_SIZE): New.
38936 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
38937 (SET_TYPE_ADA_SIZE): New.
38938 (SET_TYPE_ACTUAL_BOUNDS): New.
38939 (SET_DECL_CONST_CORRESPONDING_VAR): New.
38940 (SET_DECL_ORIGINAL_FIELD): New.
38941 (TREE_LOOP_ID): Correct typo.
38942 * decl.c: Use new macros.
38943 * utils.c: Include debug.h, use new macros.
38944 * utils2.c: Use new macros.
38945
38946 * ada-tree.h: Update all macros for new tree description.
38947 (struct tree_loop_id): New.
38948 (union lang_tree_node): New.
38949 (struct lang_decl): New.
38950 (struct lang_type): New.
38951 * misc.c (gnat_mark_tree): Delete.
38952 (LANG_HOOKS_MARK_TREE): Delete.
38953 * trans.c (tree_transform): No longer any need to cast
38954 for TREE_LOOP_ID.
38955
38956 * utils.c (struct language_function): New dummy structure.
38957
38958 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
38959 (misc.o): Likewise.
38960 (utils.o): Likewise; also gtype-ada.h.
38961 * Make-lang.in (gnat1): Add dependency on s-gtype.
38962 (gnatbind): Add dependency on $(CONFIG_H).
38963 * utils.c: Correct last #include.
38964 (stuct e_stack): Remove unnecessary 'static'.
38965 (mark_e_stack): Remove unused prototype.
38966
38967 * scn-nlit.adb: Remove whitespace after version number to
38968 keep lines under 80 chars.
38969 * snames.adb: Likewise.
38970 * treepr.ads: Likewise.
38971
38972 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
38973 (misc.o): Likewise.
38974 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
38975 * config-lang.in (gtfiles): New.
38976 * decl.c: Use gengtype for roots.
38977 * gigi.h: Use gengtype for roots.
38978 * trans.c: Use gengtype for roots.
38979 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
38980
38981 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
38982
38983 * misc.c (gnat_init): Adjust setting of internal_error_function.
38984
38985 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
38986
38987 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
38988 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38989 gnat_ug_wnt.texi: Regenerate.
38990
38991 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
38992
38993 * 5ntaprop.adb (with System.OS_Primitives): Remove.
38994
38995 * cstreams.c (max_path_len): Move from here ...
38996 * adaint.c (__gnat_max_path_len): ... to here.
38997 * adaint.c (__gnat_max_path_len): Declare.
38998 * g-dirope.adb (Max_Path): Adjust.
38999 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
39000 * i-cstrea.ads (max_path_len): Adjust.
39001 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39002 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39003
39004 * Makefile.in, Make-lang.in: Documentation is now built in
39005 Make-lang.in. Store Info and generated Texinfo files in the
39006 source directory.
39007 * gnat_ug.texi: Remove CVS keywords, correct version number.
39008 Set file name correctly.
39009
39010 * gnat_ug_*.texi: Add.
39011 * .cvsignore: Ignore generated Texinfo files.
39012
39013 2002-05-30 Zack Weinberg <zack@codesourcery.com>
39014
39015 * ada.h: Add MI guard macro.
39016 (SUBTYPE): Define constants with an anonymous enum, not static
39017 const variables.
39018 (IN): Cast constants to appropriate type before use.
39019
39020 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
39021
39022 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39023 (experimental)".
39024
39025 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39026
39027 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39028 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39029 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39030 (ALL_ADA_CFLAGS): Likewise.
39031 (ADA_INCLUDES): Likewise.
39032 Adapt for new working dir.
39033 (GNATBIND): Use Makefile.in version.
39034 (.SUFFIXES): Copy from Makefile.in.
39035 (ada-warn): Define.
39036 (.adb.o, .ads.o): Copy from Makefile.in.
39037 Added $(OUTPUT_OPTION).
39038 (GNAT1_C_OBJS): Moved from Makefile.in.
39039 Prefix with ada subdir.
39040 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39041 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39042 Adapt for new working dir.
39043 (EXTRA_GNATBIND_OBJS): Likewise.
39044 (ADA_BACKEND): Moved from Makefile.in.
39045 Renamed to avoid conflict with global BACKEND.
39046 Use that one.
39047 (TARGET_ADA_SRCS): Moved from Makefile.in.
39048 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39049 Use ADA_BACKEND.
39050 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39051 (ada_extra_files): Moved from Makefile.in.
39052 Prefix with ada subdir.
39053 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39054 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39055 (ada/nmake.ads): Likewise.
39056 (update-sources): Moved from Makefile.in.
39057 Prefix with ada subdir.
39058 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39059 (ADA_TREE_H): Likewise.
39060 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39061 (ada/memtrack.o): Likewise.
39062 (ada/adadecode.o): Likewise.
39063 Update dependencies.
39064 (ada/adaint.o): New.
39065 (ada/argv.o): Moved from Makefile.in.
39066 Prefix with ada subdir.
39067 Update dependencies.
39068 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
39069 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
39070 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
39071 Prefix with ada subdir.
39072 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
39073 (GNAT DEPENDENCIES): Regenerate.
39074 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
39075 toplevel Makefile.in.
39076 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
39077 (TARGET_ADA_SRCS): Removed.
39078 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
39079 (GNATBIND_OBJS): Likewise.
39080 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
39081 (BACKEND): Removed.
39082 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
39083 (TREE_H): Likewise.
39084 (ada_extra_files): Likewise.
39085 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
39086 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
39087 (update-sources): Likewise.
39088 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
39089 (ADA_TREE_H): Likewise.
39090 (adadecoce.o): Likewise.
39091 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
39092 (GNAT DEPENDENCIES): Likewise.
39093
39094 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39095
39096 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
39097 * Makefile.in: Likewise.
39098
39099 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39100
39101 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
39102 Restore $(CONFIG_H) and prefix.o dependencies.
39103 (ada.stage[1-4]): Depend on stage?-start.
39104
39105 * Makefile.in (b_gnatb.c): Depend on interfac.o.
39106
39107 2002-05-02 Jim Wilson <wilson@redhat.com>
39108
39109 * utils.c (finish_record_type): Change record_size to record_type.
39110
39111 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
39112
39113 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
39114 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
39115 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
39116
39117 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
39118
39119 * misc.c (gnat_parse_file): Update.
39120
39121 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
39122
39123 * misc.c (gnat_init): Don't set lang_attribute_common.
39124
39125 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
39126
39127 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
39128
39129 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
39130
39131 * gnat_ug.texi: New file.
39132
39133 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
39134 instead of gfdl.texi
39135
39136 * xgnatug.adb, ug_words: New files.
39137
39138 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
39139 gnat_rm and gnat-style manuals.
39140
39141 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
39142
39143 * gigi.h (incomplete_type_error): Remove.
39144 * utils.c (incomplete_type_error): Remove.
39145
39146 2002-04-16 Mark Mitchell <mark@codesourcery.com>
39147
39148 * trans.c (tree_transform): Add has_scope argument to
39149 expand_start_stmt_expr.
39150
39151 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39152
39153 * gigi.h (truthvalue_conversion): Rename.
39154 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
39155 * trans.c (tree_transform): Update.
39156 * utils2.c (truthvalue_conversion): Rename, update.
39157 (build_binary_op, build_unary_op): Update.
39158
39159 2002-04-04 Laurent Guerby <guerby@acm.org>
39160
39161 * make.adb: Implement -margs, remove restriction about file name placement.
39162 * makeusg.adb: Documentation update.
39163 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
39164 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
39165
39166 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39167
39168 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
39169 (builtin_function): Similarly.
39170
39171 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39172
39173 * decl.c (gnat_to_gnu_entity): Update.
39174 * gigi.h (mark_addressable): Rename.
39175 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
39176 * trans.c (tree_transform): Update.
39177 * utils.c (create_var_decl): Update.
39178 * util2.c (build_binary_op, build_unary_op,
39179 fill_vms_descriptor): Update.
39180 (mark_addressable): Rename, update.
39181
39182 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39183
39184 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
39185 Rename.
39186 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
39187 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
39188 * trans.c (tree_transform, convert_with_check): Update.
39189 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
39190 Rename.
39191
39192 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
39193
39194 * gigi.h (finish_incomplete_decl): Rename.
39195 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
39196 * utils.c (gnat_init_decl_processing): Don't set hook.
39197 (finish_incomplete_decl): Rename.
39198
39199 2002-03-29 Andreas Schwab <schwab@suse.de>
39200
39201 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
39202 directory.
39203
39204 2001-03-28 Robert Dewar <dewar@gnat.com>
39205
39206 * checks.ads:
39207 (Remove_Checks): New procedure
39208
39209 * checks.adb:
39210 (Remove_Checks): New procedure
39211
39212 * exp_util.adb:
39213 Use new Duplicate_Subexpr functions
39214 (Duplicate_Subexpr_No_Checks): New procedure
39215 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39216 (Duplicate_Subexpr): Restore original form (checks duplicated)
39217 (Duplicate_Subexpr): Call Remove_Checks
39218
39219 * exp_util.ads:
39220 (Duplicate_Subexpr_No_Checks): New procedure
39221 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39222 Add 2002 to copyright notice
39223
39224 * sem_util.adb: Use new Duplicate_Subexpr functions
39225
39226 * sem_eval.adb:
39227 (Eval_Indexed_Component): This is the place to call
39228 Constant_Array_Ref and to replace the value. We simply merge
39229 the code of this function in here, since it is now no longer
39230 used elsewhere. This fixes the problem of the back end not
39231 realizing we were clever enough to see that this was
39232 constant.
39233 (Expr_Val): Remove call to Constant_Array_Ref
39234 (Expr_Rep_Val): Remove call to Constant_Array_Ref
39235 Minor reformatting
39236 (Constant_Array_Ref): Deal with string literals (patch
39237 suggested by Zack Weinberg on the gcc list)
39238
39239 2001-03-28 Ed Schonberg <schonber@gnat.com>
39240
39241 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
39242 Duplicate_Subexpr_Move_Checks.
39243
39244 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
39245 Duplicate_Subexpr_Move_Checks.
39246
39247 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
39248 value of array exists before retrieving it (it may a private
39249 protected component in a function).
39250
39251 2002-03-28 Geert Bosch <bosch@gnat.com>
39252
39253 * prj-pp.adb : New file.
39254
39255 * prj-pp.ads : New file.
39256
39257 2002-03-28 Andreas Jaeger <aj@suse.de>
39258
39259 * Makefile.in (stamp-sdefault): Fix path for Makefile.
39260
39261 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
39262
39263 * misc.c (gnat_expand_expr): Move prototype.
39264
39265 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39266
39267 * misc.c (insert_default_attributes): Remove.
39268
39269 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39270
39271 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
39272 (gnat_init): Don't set hook.
39273 (gnat_expand_expr): Fix prototype.
39274
39275 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39276
39277 * misc.c (ggc_p): Remove.
39278
39279 2002-03-27 Geert Bosch <bosch@gnat.com>
39280
39281 * prj-makr.ads, prj-makr.adb : New files.
39282
39283 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
39284
39285 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
39286 (lang_mark_tree): Make static, rename.
39287
39288 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
39289
39290 * misc.c (maybe_build_cleanup): Remove.
39291
39292 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
39293
39294 * gigi.h (yyparse): Remove.
39295
39296 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
39297
39298 From Ben Brosgol <brosgol@gnat.com>
39299 * gnat_rm.texi: Sync with ACT version.
39300
39301 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
39302
39303 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
39304 (gnat_init): Remove old hook.
39305
39306 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
39307
39308 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
39309 (yyparse): Rename gnat_parse_file.
39310
39311 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
39312
39313 Delete all lines containing "$Revision:".
39314 * xeinfo.adb: Don't look for revision numbers.
39315 * xnmake.adb: Likewise.
39316 * xsinfo.adb: Likewise.
39317 * xsnames.adb: Likewise.
39318 * xtreeprs.adb: Likewise.
39319
39320 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39321
39322 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
39323 gnat_tree_code_name): Delete.
39324 (tree_code_type, tree_code_length, tree_code_name): Define.
39325 (gnat_init): Don't try to copy into the various tree_code
39326 arrays.
39327
39328 2002-03-11 Richard Henderson <rth@redhat.com>
39329
39330 * Makefile.in (.NOTPARALLEL): Add fake tag.
39331
39332 2002-03-07 Geert Bosch <bosch@gnat.com>
39333
39334 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
39335 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
39336 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
39337 switch-m.adb, switch-m.ads : New files.
39338
39339 2002-03-07 Geert Bosch <bosch@gnat.com>
39340
39341 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
39342 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
39343 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
39344 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
39345 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
39346 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
39347 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
39348 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
39349 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
39350 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
39351 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
39352 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
39353 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
39354 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
39355 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
39356 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
39357 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
39358 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
39359 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39360 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
39361 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
39362 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
39363 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
39364 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
39365 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
39366 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
39367 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
39368 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
39369 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
39370 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
39371 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
39372 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
39373 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
39374 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
39375 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39376 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
39377 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39378 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
39379 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
39380 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
39381 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
39382 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
39383 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
39384 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
39385 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
39386 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
39387 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
39388 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
39389 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
39390 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
39391 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
39392 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
39393 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
39394 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
39395 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
39396 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
39397 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
39398 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
39399 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
39400 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
39401 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
39402 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
39403 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
39404 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
39405 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
39406 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
39407 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
39408 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
39409 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
39410 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
39411 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
39412 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
39413 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
39414 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
39415 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
39416 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39417 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
39418 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39419 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
39420 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39421 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
39422 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
39423 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
39424 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
39425 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
39426 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
39427 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
39428 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
39429 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
39430 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
39431 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
39432 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
39433 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
39434 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
39435 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
39436 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
39437 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
39438
39439 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
39440 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
39441 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
39442 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
39443
39444 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
39445 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
39446
39447 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
39448 to mdll-fil.ad[bs] and mdll-util.ad[bs]
39449
39450 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
39451 from mdllfile.ad[bs] and mdlltool.ad[bs]
39452
39453 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39454
39455 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
39456 lieu of explicit sizeof/sizeof.
39457
39458 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
39459
39460 * misc.c (copy_lang_decl): Remove.
39461
39462 2002-02-27 Zack Weinberg <zack@codesourcery.com>
39463
39464 * misc.c: Delete traditional-mode-related code copied from the
39465 C front end but not used, or used only to permit the compiler
39466 to link.
39467
39468 2002-02-07 Richard Henderson <rth@redhat.com>
39469
39470 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
39471 * adaint.h (__gnat_to_gm_time): Update prototype.
39472
39473 2002-01-30 Richard Henderson <rth@redhat.com>
39474
39475 * trans.c (tree_transform) [N_Loop_Statement]: Use
39476 expand_exit_loop_top_cond.
39477
39478 2001-12-23 Richard Henderson <rth@redhat.com>
39479
39480 * utils.c (end_subprog_body): Push GC context around
39481 rest_of_compilation for nested functions.
39482
39483 2001-12-23 Richard Henderson <rth@redhat.com>
39484
39485 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
39486
39487 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
39488
39489 * gnat-style.texi (Declarations and Types): Remove ancient style
39490 rule which was mandated by code generation issues.
39491
39492 * gnat-style.texi (header): Add @dircategory, @direntry.
39493 (title page): Remove date.
39494 (general) Add @./@: where approriate, and two spaces after the
39495 full stop at the end of a sentence. Use @samp markup when
39496 referring concrete lexical entities (keywords, attribute names
39497 etc.), and @syntax for ARM grammar elements. Use @r for English
39498 text in comments. Use @emph for emphasis. Change "if-statements"
39499 etc. to "if statements" (without @samp). Break long lines. Make
39500 casing of section names consistent.
39501 (Identifiers): Use @samp markup for variable names.
39502 (Comments): Use @samp markup for comment characters. Line-end
39503 comments may follow any Ada code, not just statements. Fix
39504 misspelling of "Integer" as "integer".
39505 (Loop statements): Do not use variable name "I", use "J".
39506 (Subprogram Declarations): Document alignment.
39507 (Subprogram Bodies, Block statements): Document empty line before
39508 "begin".
39509
39510 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
39511
39512 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39513 function approach did not work well because of a side effect (the
39514 function call could reallocate the table which was being indexed
39515 using its result). Fixes ada/4851.
39516
39517 2001-12-19 Robert Dewar <dewar@gnat.com>
39518
39519 * bindgen.adb: Minor reformatting
39520
39521 * cstand.adb: Minor reformatting
39522
39523 * fmap.adb: Minor reformatting
39524 Change name from Add for Add_To_File_Map (Add is much too generic)
39525 Change Path_Name_Of to Mapped_Path_Name
39526 Change File_Name_Of to Mapped_File_Name
39527 Fix copyright dates in header
39528
39529 * fmap.ads:
39530 Change name from Add for Add_To_File_Map (Add is much too generic)
39531 Change Path_Name_Of to Mapped_Path_Name
39532 Change File_Name_Of to Mapped_File_Name
39533 Fix copyright dates in header
39534
39535 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
39536 Add use clause for Fmap.
39537
39538 * make.adb: Minor reformatting
39539
39540 * osint.adb: Minor reformatting. Change of names in Fmap.
39541 Add use clause for Fmap.
39542
39543 * prj-env.adb: Minor reformatting
39544
39545 * prj-env.ads: Minor reformatting
39546
39547 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
39548 error found (there were odd exceptions to this general rule in
39549 -gnatec/-gnatem processing)
39550
39551 2001-12-19 Olivier Hainque <hainque@gnat.com>
39552
39553 * raise.c (__gnat_eh_personality): Exception handling personality
39554 routine for Ada. Still in rough state, inspired from the C++ version
39555 and still containing a bunch of debugging artifacts.
39556 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
39557 inspired from the C++ library.
39558
39559 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
39560 exception handling integration.
39561
39562 2001-12-19 Arnaud Charlet <charlet@gnat.com>
39563
39564 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
39565 (HIE_SOURCES): Add s-secsta.ad{s,b}.
39566 (HIE_OBJS): Add s-fat*.o
39567 (RAVEN_SOURCES): Remove files that are no longer required. Add
39568 interrupt handling files.
39569 (RAVEN_MOD): Removed, no longer needed.
39570
39571 2001-12-19 Robert Dewar <dewar@gnat.com>
39572
39573 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
39574 Add 2001 to copyright date
39575
39576 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
39577 need to force universal inlining for these cases.
39578
39579 2001-12-19 Arnaud Charlet <charlet@gnat.com>
39580
39581 * s-taprob.adb: Minor clean ups so that this unit can be used in
39582 Ravenscar HI.
39583
39584 * exp_ch7.adb: Allow use of secondary stack in HI mode.
39585 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
39586
39587 2001-12-19 Vincent Celier <celier@gnat.com>
39588
39589 * prj-tree.ads (Project_Node_Record): Add comments for components
39590 Pkg_Id and Case_Insensitive.
39591
39592 2001-12-19 Pascal Obry <obry@gnat.com>
39593
39594 * g-socket.adb: Minor reformatting. Found while reading code.
39595
39596 2001-12-19 Robert Dewar <dewar@gnat.com>
39597
39598 * prj-tree.ads: Minor reformatting
39599
39600 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
39601
39602 * config-lang.in (diff_excludes): Remove.
39603
39604 2001-12-17 Ed Schonberg <schonber@gnat.com>
39605
39606 * sem_res.adb (Resolve_Selected_Component): do not generate a
39607 discriminant check if the selected component is a component of
39608 the argument of an initialization procedure.
39609
39610 * trans.c (tree_transform, case of arithmetic operators): If result
39611 type is private, the gnu_type is the base type of the full view,
39612 given that the full view itself may be a subtype.
39613
39614 2001-12-17 Robert Dewar <dewar@gnat.com>
39615
39616 * sem_res.adb: Minor reformatting
39617
39618 * trans.c (tree_transform, case N_Real_Literal): Add missing third
39619 parameter in call to Machine (unknown horrible effects from this
39620 omission).
39621
39622 * urealp.h: Add definition of Round_Even for call to Machine
39623 Add third parameter for Machine
39624
39625 2001-12-17 Ed Schonberg <schonber@gnat.com>
39626
39627 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
39628 predefined units in No_Run_Time mode.
39629
39630 2001-12-17 Richard Kenner <kenner@gnat.com>
39631
39632 * misc.c (insn-codes.h): Now include.
39633
39634 2001-12-17 Olivier Hainque <hainque@gnat.com>
39635
39636 * a-except.adb: Preparation work for future integration of the GCC 3
39637 exception handling mechanism
39638 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
39639 to factorize previous code sequences and make them externally callable,
39640 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
39641 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
39642 Use the new notification routines.
39643
39644 2001-12-17 Emmanuel Briot <briot@gnat.com>
39645
39646 * prj-tree.ads (First_Choice_Of): Document the when others case
39647
39648 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39649
39650 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
39651 HI-E mode, in order to support Ravenscar profile properly.
39652
39653 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
39654 mode on 32 bits targets.
39655
39656 2001-12-17 Vincent Celier <celier@gnat.com>
39657
39658 * fmap.adb: Initial version.
39659
39660 * fmap.ads: Initial version.
39661
39662 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
39663 If search is successfully done, add to mapping.
39664
39665 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
39666
39667 * make.adb:
39668 (Gnatmake): Add new local variable Mapping_File_Name.
39669 Create mapping file when using project file(s).
39670 Delete mapping file before exiting.
39671
39672 * opt.ads (Mapping_File_Name): New variable
39673
39674 * osint.adb (Find_File): Use path name found in mapping, if any.
39675
39676 * prj-env.adb (Create_Mapping_File): New procedure
39677
39678 * prj-env.ads (Create_Mapping_File): New procedure.
39679
39680 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
39681 (Mapping_File)
39682
39683 * usage.adb: Add entry for new switch -gnatem.
39684
39685 * Makefile.in: Add dependencies for fmap.o.
39686
39687 2001-12-17 Ed Schonberg <schonber@gnat.com>
39688
39689 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
39690 is a package instantiation rewritten as a package body.
39691 (Install_Withed_Unit): Undo previous change, now redundant.
39692
39693 2001-12-17 Gary Dismuke <dismukes@gnat.com>
39694
39695 * layout.adb:
39696 (Compute_Length): Move conversion to Unsigned to callers.
39697 (Get_Max_Size): Convert Len expression to Unsigned after calls to
39698 Compute_Length and Determine_Range.
39699 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
39700 Compute_Length and Determine_Range.
39701 Above changes fix problem with length computation for supernull arrays
39702 where Max (Len, 0) wasn't getting applied due to the Unsigned
39703 conversion used by Compute_Length.
39704
39705 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39706
39707 * rtsfind.ads:
39708 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
39709 System.Secondary_Stack.
39710 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
39711 in HI-E mode.
39712 Remove unused entity RE_Exception_Data.
39713
39714 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
39715
39716 * rident.ads (No_Secondary_Stack): New restriction.
39717
39718 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39719
39720 * gnat_rm.texi: Fix minor typos. Found while reading the section
39721 regarding "Bit_Order Clauses" that was sent to a customer.
39722 Very interesting documentation!
39723
39724 2001-12-17 Robert Dewar <dewar@gnat.com>
39725
39726 * sem_case.adb (Choice_Image): Avoid creating improper character
39727 literal names by using the routine Set_Character_Literal_Name. This
39728 fixes bombs in certain error message cases.
39729
39730 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39731
39732 * a-reatim.adb: Minor reformatting.
39733
39734 2001-12-17 Ed Schonberg <schonber@gnat.com>
39735
39736 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39737 case where the formal is an extension of another formal in the current
39738 unit or in a parent generic unit.
39739
39740 2001-12-17 Arnaud Charlet <charlet@gnat.com>
39741
39742 * s-tposen.adb: Update comments. Minor reformatting.
39743 Minor code clean up.
39744
39745 * s-tarest.adb: Update comments. Minor code reorganization.
39746
39747 2001-12-17 Gary Dismukes <dismukes@gnat.com>
39748
39749 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
39750 when Java_VM.
39751
39752 2001-12-17 Robert Dewa <dewar@gnat.com>
39753
39754 * exp_attr.adb: Minor reformatting
39755
39756 2001-12-17 Ed Schonberg <schonber@gnat.com>
39757
39758 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
39759 derivations nested within a child unit: verify that the parent
39760 type is declared in an outer scope.
39761
39762 2001-12-17 Robert Dewar <dewar@gnat.com>
39763
39764 * sem_ch12.adb: Minor reformatting
39765
39766 2001-12-17 Ed Schonberg <schonber@gnat.com>
39767
39768 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
39769 warning if current unit is a predefined one, from which bodies may
39770 have been deleted.
39771
39772 2001-12-17 Robert Dewar <dewar@gnat.com>
39773
39774 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
39775 Fix header format. Add 2001 to copyright date.
39776
39777 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
39778 which caused CE during compilation if checks were enabled.
39779
39780 2001-12-17 Vincent Celier <celier@gnat.com>
39781
39782 * make.adb:
39783 (Switches_Of): New function
39784 (Test_If_Relative_Path): New procedure
39785 (Add_Switches): Use new function Switches_Of
39786 (Collect_Arguments_And_Compile): Use new function Switches_Of.
39787 When using a project file, test if there are any relative
39788 search path. Fail if there are any.
39789 (Gnatmake): Only add switches for the primary directory when not using
39790 a project file. When using a project file, change directory to the
39791 object directory of the main project file. When using a project file,
39792 test if there are any relative search path. Fail if there are any.
39793 When using a project file, fail if specified executable is relative
39794 path with directory information, and prepend executable, if not
39795 specified as an absolute path, with the exec directory. Make sure
39796 that only one -o switch is transmitted to the linker.
39797
39798 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
39799
39800 * prj-nmsc.adb:
39801 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
39802 when using a non standard naming scheme.
39803 (Check_Ada_Naming_Scheme): Make sure that error messages
39804 do not raise exceptions.
39805 (Is_Illegal_Append): Return True if there is no dot in the suffix.
39806 (Language_Independent_Check): Check the exec directory.
39807
39808 * prj.adb (Project_Empty): Add new component Exec_Directory
39809
39810 * prj.ads:
39811 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
39812 (Project_Data): Add component Exec_Directory
39813
39814 * snames.adb: Updated to match snames.ads revision 1.215
39815
39816 * snames.ads: Added Exec_Dir
39817
39818 2001-12-17 Robert Dewar <dewar@gnat.com>
39819
39820 * make.adb: Minor reformatting
39821
39822 * prj-nmsc.adb: Minor reformatting
39823
39824 * snames.adb: Updated to match snames.ads
39825
39826 * snames.ads: Alphebetize entries for project file
39827
39828 2001-12-17 Ed Schonberg <schonber@gnat.com>
39829
39830 * trans.c (process_freeze_entity): Do nothing if the entity is a
39831 subprogram that was already elaborated.
39832
39833 2001-12-17 Richard Kenner <kenner@gnat.com>
39834
39835 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
39836 and Esize if object is referenced via pointer.
39837
39838 2001-12-17 Ed Schonberg <schonber@gnat.com>
39839
39840 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
39841 is discrete before analyzing choices.
39842
39843 2001-12-17 Joel Brobecker <brobecke@gnat.com>
39844
39845 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
39846 containing the name of the Ada Main Program. This string is mainly
39847 intended for the debugger.
39848 (Gen_Output_File_C): Do the equivalent change when generating a C file.
39849
39850 2001-12-17 Robert Dewar <dewar@gnat.com>
39851
39852 * ali.adb: Set new Dummy_Entry field in dependency entry
39853
39854 * ali.ads: Add Dummy_Entry field to source dependency table
39855
39856 * bcheck.adb (Check_Consistency): Ignore dummy D lines
39857
39858 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
39859
39860 * lib-writ.ads: Document dummy D lines for missing files.
39861
39862 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
39863
39864 2001-12-17 Robert Dewar <dewar@gnat.com>
39865
39866 * ali.adb: Type reference does not reset current file.
39867
39868 * ali.adb: Recognize and scan renaming reference
39869
39870 * ali.ads: Add spec for storing renaming references.
39871
39872 * lib-xref.ads: Add documentation for handling of renaming references
39873
39874 * lib-xref.adb: Implement output of renaming reference.
39875
39876 * checks.adb:
39877 (Determine_Range): Document local variables
39878 (Determine_Range): Make sure Hbound is initialized. It looks as though
39879 there could be a real problem here with an uninitialized reference
39880 to Hbound, but no actual example of failure has been found.
39881
39882 2001-12-17 Laurent Pautet <pautet@gnat.com>
39883
39884 * g-socket.ads:
39885 Fix comment of Shutdown_Socket and Close_Socket. These functions
39886 should not fail silently because if they are called twice, this
39887 probably means that there is a race condition in the user program.
39888 Anyway, this behaviour is consistent with the rest of this unit.
39889 When an error occurs, an exception is raised with the error message
39890 as exception message.
39891
39892 2001-12-17 Robert Dewar <dewar@gnat.com>
39893
39894 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
39895 that it happens before modification of Sloc values for -gnatD.
39896
39897 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
39898 so that it happens before modification of Sloc values for -gnatD.
39899
39900 * switch.adb: Minor reformatting
39901
39902 2001-12-15 Richard Henderson <rth@redhat.com>
39903
39904 * sem_ch7.adb: Wrap comment.
39905
39906 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
39907
39908 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
39909 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
39910 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
39911 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
39912 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
39913 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
39914 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
39915 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
39916 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
39917 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
39918 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
39919 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
39920 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
39921 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
39922 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
39923 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
39924 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
39925 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
39926 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
39927 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
39928 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
39929 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
39930 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
39931 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
39932 spelling errors.
39933
39934 2001-12-14 Vincent Celier <celier@gnat.com>
39935
39936 * osint.adb(Create_Debug_File): When an object file is specified,
39937 put the .dg file in the same directory as the object file.
39938
39939 2001-12-14 Robert Dewar <dewar@gnat.com>
39940
39941 * osint.adb: Minor reformatting
39942
39943 * lib-xref.adb (Output_Instantiation): New procedure to generate
39944 instantiation references.
39945
39946 * lib-xref.ads: Add documentation of handling of generic references.
39947
39948 * ali.adb (Read_Instantiation_Ref): New procedure to read
39949 instantiation references
39950
39951 * ali.ads: Add spec for storing instantiation references
39952
39953 * bindusg.adb: Minor reformatting
39954
39955 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39956
39957 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39958
39959 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39960
39961 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
39962
39963 * csets.ads:
39964 Fix header format
39965 Add 2001 to copyright date
39966 Add entry for Latin-5 (Cyrillic ISO-8859-5)
39967
39968 2001-12-14 Matt Gingell <gingell@gnat.com>
39969
39970 * adaint.c: mktemp is a macro on Lynx and can not be used as an
39971 expression.
39972
39973 2001-12-14 Richard Kenner <kenner@gnat.com>
39974
39975 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
39976 if operand is CONSTRUCTOR.
39977
39978 2001-12-14 Ed Schonberg <schonber@gnat.com>
39979
39980 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
39981 before emiting check on right-hand side, so that exception information
39982 is correct.
39983
39984 2001-12-14 Richard Kenner <kenner@gnat.com>
39985
39986 * utils.c (create_var_decl): Throw away initializing expression
39987 if just annotating types and non-constant.
39988
39989 2001-12-14 Vincent Celier <celier@gnat.com>
39990
39991 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
39992 Default_Ada_...
39993
39994 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39995 Remove functions.
39996 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
39997
39998 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
39999 Remove functions.
40000 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40001
40002 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40003
40004 * ChangeLog: Remove piece of diff output.
40005
40006 2001-12-14 Geert Bosch <bosch@gnat.com>
40007
40008 * config-lang.in: Update copyright notice
40009
40010 * layout.adb: Remove commented out code.
40011
40012 * mdllfile.ads: Update copyright notice. Fix header format.
40013
40014 * sem_case.ads: Likewise.
40015
40016 * sem_ch3.adb: Minor reformatting.
40017
40018 2001-12-12 Geert Bosch <bosch@gnat.com>
40019
40020 * freeze.ads: Update copyright date.
40021
40022 * g-comlin.ads: Minor reformatting.
40023
40024 * gnat-style.texi: Fix typo.
40025
40026 2001-12-12 Geert Bosch <bosch@gnat.com>
40027
40028 * einfo.h: Regenerate.
40029
40030 2001-12-12 Ed Schonberg <schonber@gnat.com>
40031
40032 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
40033 on known node types, rather than untyped fields. Further cleanups.
40034
40035 2001-12-12 Robert Dewar <dewar@gnat.com>
40036
40037 * sem_ch12.adb:
40038 (Save_Entity_Descendant): Minor comment update.
40039 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
40040 of an N_Attribute_Reference node. As per note below, this does not
40041 eliminate need for Associated_Node in attribute ref nodes.
40042 (Associated_Node): Documentation explicitly mentions attribute
40043 reference nodes, since this field is used in such nodes.
40044
40045 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40046
40047 2001-12-12 Robert Dewar <dewar@gnat.com>
40048
40049 * s-stalib.adb: Add more comments on with statements being needed
40050
40051 * par-ch12.adb: Minor reformatting
40052
40053 * prj-dect.ads: Fix copyright header
40054
40055 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
40056 inputs fit in 32 bits, but the result still overflows.
40057
40058 * s-fatgen.ads: Minor comment improvement
40059
40060 2001-12-12 Ed Schonberg <schonber@gnat.com>
40061
40062 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40063 formal derived type, look for an inherited component from the full
40064 view of the parent, if any.
40065
40066 2001-12-12 Robert Dewar <dewar@gnat.com>
40067
40068 * checks.ads (Apply_Alignment_Check): New procedure.
40069
40070 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
40071 ensure that the alignment of objects with address clauses is
40072 appropriate, and raise PE if not.
40073
40074 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
40075 Exp_Pakd.Known_Aligned_Enough
40076
40077 * mdllfile.ads: Minor reformatting
40078
40079 * mlib-fil.ads: Minor reformatting
40080
40081 2001-12-12 Ed Schonberg <schonber@gnat.com>
40082
40083 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
40084 fix to any component reference if enclosing record has non-standard
40085 representation.
40086
40087 2001-12-12 Vincent Celier <celier@gnat.com>
40088
40089 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
40090 Iteration
40091
40092 2001-12-12 Ed Schonberg <schonber@gnat.com>
40093
40094 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
40095 sem_attr.
40096
40097 2001-12-12 Robert Dewar <dewar@gnat.com>
40098
40099 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
40100
40101 2001-12-12 Emmanuel Briot <briot@gnat.com>
40102
40103 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
40104 and it adds dependencies to system.io.
40105
40106 2001-12-12 Pascal Obry <obry@gnat.com>
40107
40108 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
40109 variable name.
40110
40111 2001-12-11 Ed Schonberg <schonber@gnat.com>
40112
40113 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
40114 that is the parent of other generics, the instance body replaces the
40115 instance node. Retrieve the instance of the spec, which is the one
40116 that is visible in clients and within the body.
40117
40118 2001-12-11 Vincent Celier <celier@gnat.com>
40119
40120 * gnatmain.adb: Initial version.
40121
40122 * gnatmain.ads: Initial version.
40123
40124 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
40125
40126 * snames.adb: Updated to match snames.ads.
40127
40128 * snames.ads: Added Gnatstub.
40129
40130 2001-12-11 Vincent Celier <celier@gnat.com>
40131
40132 * prj-attr.adb (Initialization_Data): Change name from
40133 Initialisation_Data.
40134
40135 2001-12-11 Emmanuel Briot <briot@gnat.com>
40136
40137 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
40138 + and * applied to backslashed expressions like \r.
40139
40140 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
40141
40142 * g-os_lib.ads: String_List type added, Argument_List type is now
40143 subtype of String_List.
40144
40145 2001-12-11 Robert Dewar <dewar@gnat.com>
40146
40147 * g-os_lib.ads: Change copyright to FSF
40148 Add comments for String_List type
40149
40150 2001-12-11 Vincent Celier <celier@gnat.com>
40151
40152 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
40153 string to the buffer).
40154
40155 2001-12-11 Ed Schonberg <schonber@gnat.com>
40156
40157 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
40158 sem_attr.
40159
40160 * sem_attr.adb: Simplify previous fix for Address.
40161 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
40162 to avoid anomalies where the bound of the type appears to raise
40163 constraint error.
40164
40165 2001-12-11 Robert Dewar <dewar@gnat.com>
40166
40167 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
40168 handled.
40169
40170 2001-12-11 Ed Schonber <schonber@gnat.com>
40171
40172 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
40173 renamed unit before checking for recursive instantiations.
40174
40175 2001-12-11 Emmanuel Briot <briot@gnat.com>
40176
40177 * prj.ads: Add comments for some of the fields.
40178
40179 2001-12-11 Robert Dewar <dewar@gnat.com>
40180
40181 * lib-xref.adb (Output_Refs): Don't output type references outside
40182 the main unit if they are not otherwise referenced.
40183
40184 2001-12-11 Ed Schonberg <schonber@gnat.com>
40185
40186 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
40187 code and diagnose additional illegal uses
40188
40189 * sem_util.adb (Is_Object_Reference): An indexed component is an
40190 object only if the prefix is.
40191
40192 2001-12-11 Vincent Celier <celier@gnat.com>
40193
40194 * g-diopit.adb: Initial version.
40195
40196 * g-diopit.ads: Initial version.
40197
40198 * g-dirope.adb:
40199 (Expand_Path): Avoid use of Unbounded_String
40200 (Find, Wildcard_Iterator): Moved to child package Iteration
40201
40202 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
40203
40204 2001-12-11 Robert Dewar <dewar@gnat.com>
40205
40206 * sem_attr.adb: Minor reformatting
40207
40208 2001-12-11 Ed Schonberg <schonber@gnat.com>
40209
40210 * sem_ch3.adb: Clarify some ???.
40211
40212 2001-12-11 Robert Dewar <dewar@gnat.com>
40213
40214 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
40215 Exp_Pakd.Known_Aligned_Enough
40216
40217 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
40218 version is moved to Exp_Ch13.
40219
40220 2001-12-11 Robert Dewar <dewar@gnat.com>
40221
40222 * einfo.ads: Minor reformatting
40223
40224 * exp_ch5.adb: Add comment for previous.change
40225
40226 * ali.adb: New interface for extended typeref stuff.
40227
40228 * ali.ads: New interface for typeref stuff.
40229
40230 * checks.adb (Apply_Alignment_Check): New procedure.
40231
40232 * debug.adb: Add -gnatdM for modified ALI output
40233
40234 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
40235
40236 * lib-xref.adb: Extend generation of <..> notation to cover
40237 subtype/object types. Note that this is a complete rewrite,
40238 getting rid of the very nasty quadratic algorithm previously
40239 used for derived type output.
40240
40241 * lib-xref.ads: Extend description of <..> notation to cover
40242 subtype/object types. Uses {..} for these other cases.
40243 Also use (..) for pointer types.
40244
40245 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
40246
40247 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
40248 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
40249
40250 2001-12-11 Vincent Celier <celier@gnat.com>
40251
40252 * gnatcmd.adb:
40253 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
40254 Changed /BIND_ONLY to /ACTIONS=BIND
40255 Changed /LINK_ONLY to /ACTIONS=LINK
40256
40257 2001-12-11 Ed Schonberg <schonber@gnat.com>
40258
40259 * sem_ch8.adb (Find_Selected_Component): improved search for a
40260 candidate package in case of error.
40261
40262 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
40263 chain back on scope stack before reinstalling use clauses.
40264
40265 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
40266 is enabled, do not kill the code for the condition, to preserve
40267 warning.
40268
40269 2001-12-11 Robert Dewar <dewar@gnat.com>
40270
40271 * checks.adb (Insert_Valid_Check): Apply validity check to expression
40272 of conversion, not to result of conversion.
40273
40274 2001-12-11 Ed Schonberg <schonber@gnat.com>
40275
40276 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
40277 before freezing parent. If the declarations are mutually recursive,
40278 an access to the current record type may be frozen before the
40279 derivation is complete.
40280
40281 2001-12-05 Vincent Celier <celier@gnat.com>
40282
40283 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
40284 -c /COMPILE_ONLY, -l /LINK_ONLY
40285
40286 * opt.ads:
40287 (Bind_Only): New Flag
40288 (Link_Only): New flag
40289
40290 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
40291 and -l (Link_Only)
40292
40293 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
40294
40295 * make.adb:
40296 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
40297 (Gnatmake): Set the step flags. Only perform a step if the
40298 corresponding step flag is True.
40299 (Scan_Make_Arg): Reset the bind and link step flags when -u
40300 or -gnatc has been specified.
40301
40302 2001-12-05 Ed Schonberg <schonber@gnat.com>
40303
40304 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
40305 get bounds from right operand.
40306
40307 * sem_eval.adb: Minor reformatting
40308
40309 * exp_util.adb (Make_Literal_Range): use bound of literal rather
40310 than Index'First, its lower bound may be different from 1.
40311
40312 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
40313 and C48009J
40314
40315 2001-12-05 Vincent Celier <celier@gnat.com>
40316
40317 * prj-nmsc.adb Minor reformatting
40318
40319 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
40320 set and libraries are not supported.
40321
40322 2001-12-05 Ed Schonberg <schonber@gnat.com>
40323
40324 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
40325 private view explicitly, so the back-end can treat as a global
40326 when appropriate.
40327
40328 2001-12-05 Ed Schonberg <schonber@gnat.com>
40329
40330 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
40331 unit, always replace instance node with new body, for ASIS use.
40332
40333 2001-12-05 Vincent Celier <celier@gnat.com>
40334
40335 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
40336 libraries are not supported and both attributes Library_Name and
40337 Library_Dir are specified.
40338
40339 * prj-proc.adb (Expression): Set location of Result to location of
40340 first term.
40341
40342 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
40343 (prj-nmsc is now importing MLib.Tgt)
40344
40345 * prj-proc.adb: Put the change indicated above that was forgotten.
40346
40347 2001-12-05 Robert Dewar <dewar@gnat.com>
40348
40349 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
40350
40351 2001-12-05 Ed Schonberg <schonber@gnat.com>
40352
40353 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
40354 constraint, introduce explicit subtype declaration and derive from it.
40355
40356 * sem_ch3.adb: Minor reformatting
40357
40358 2001-12-05 Robert Dewar <dewar@gnat.com>
40359
40360 * checks.adb (Determine_Range): Increase cache size for checks.
40361 Minor reformatting
40362
40363 * exp_ch6.adb: Minor reformatting
40364 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
40365 a parameter whose root type is System.Address, since treating such
40366 subprograms as pure in the code generator is almost surely a mistake
40367 that will lead to unexpected results.
40368
40369 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
40370 change handling of conversions.
40371
40372 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
40373
40374 2001-12-05 Ed Schonberg <schonber@gnat.com>
40375
40376 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
40377 aggregate with static wrong size, attach generated Raise node to
40378 declaration.
40379
40380 2001-12-05 Robert Dewar <dewar@gnat.com>
40381
40382 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
40383 Fixes compilation abandoned bomb in B24009B.
40384
40385 2001-12-05 Ed Schonberg <schonber@gnat.com>
40386
40387 * sem_ch12.adb:
40388 Document use of Associated_Node on Selected_Components.
40389 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
40390 to clarify use of untyped descendant fields.
40391
40392 2001-12-05 Robert Dewar <dewar@gnat.com>
40393
40394 * prj-dect.ads: Add ??? comment
40395 Add 2001 to copyright notice (was not done in after all)
40396
40397 * prj-part.adb: Minor reformatting. Reword one awkward error message.
40398
40399 * prj.ads: Minor reformatting throughout, and add some ??? comments
40400
40401 * snames.ads: Minor reformatting
40402
40403 2001-12-05 Geert Bosch <bosch@gnat.com>
40404
40405 * snames.adb: Autoupdate
40406
40407 2001-12-05 Vincent Celier <celier@gnat.com>
40408
40409 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
40410
40411 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
40412
40413 * prj-env.adb: Minor comment changes (modifying -> extends).
40414
40415 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
40416
40417 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
40418 Tok_Extends.
40419
40420 * prj.adb (Initialize): Change Modifying to Extends.
40421
40422 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
40423
40424 * prj.ads: Minor comment change (Modifying -> extending).
40425
40426 * snames.ads: Change modifying to extends.
40427
40428 2001-12-05 Robert Dewar <dewar@gnat.com>
40429
40430 * sem_warn.adb: Remove stuff for conditionals, we are not going to
40431 do this after all.
40432
40433 * sem_warn.ads: Remove stuff for conditionals, we are not going to
40434 do this after all. Add 2001 to copyright notice
40435
40436 2001-12-04 Geert Bosch <bosch@gnat.com>
40437
40438 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
40439
40440 2001-12-04 Robert Dewar <dewar@gnat.com>
40441
40442 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
40443 location if we already have errors. Stops some cases of cascaded
40444 errors.
40445
40446 * errout.adb: Improve comment.
40447
40448 2001-12-04 Robert Dewar <dewar@gnat.com>
40449
40450 * sem_ch12.adb:
40451 (Analyze_Formal_Type_Definition): Defend against Error.
40452 (Analyze_Formal_Subprogram): Defend against Error.
40453
40454 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
40455 remove following semicolon if present. Removes cascaded error.
40456
40457 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
40458
40459 * bindgen.adb:
40460 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
40461 exceptions equals 0.
40462 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
40463 Fixes PIWG E tests (which have to be run with -gnatL).
40464
40465 2001-12-04 Robert Dewar <dewar@gnat.com>
40466
40467 * einfo.ads: Minor reformatting
40468
40469 2001-12-04 Ed Schonberg <schonber@gnat.com>
40470
40471 * einfo.ads: Block_Node points to the identifier of the block, not to
40472 the block node itself, to preserve the link when the block is
40473 rewritten, e.g. within an if-statement with a static condition.
40474
40475 * inline.adb (Cleanup_Scopes): recover block statement from block
40476 entity using new meaning of Block_Node.
40477
40478 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
40479 identifier of block node, rather than to node itself.
40480
40481 2001-12-04 Gary Dismukes <dismukes@gnat.com>
40482
40483 * layout.adb:
40484 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
40485 (Discrimify): Go back to setting the Etypes of the selected component
40486 because the Vname component does not exist at this point and will
40487 fail name resolution. Also set Analyzed.
40488 Remove with and use of Sem_Res.
40489
40490 2001-12-04 Arnaud Charlet <charlet@gnat.com>
40491
40492 * Makefile.in: (HIE_SOURCES): add s-fat*.
40493
40494 2001-12-04 Robert Dewar <dewar@gnat.com>
40495
40496 * sem_attr.adb:
40497 (Compile_Time_Known_Attribute): New procedure.
40498 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
40499 proper range check.
40500
40501 2001-12-04 Ed Schonberg <schonber@gnat.com>
40502
40503 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
40504 processing discriminants to diagnose illegal default values.
40505
40506 2001-12-04 Ed Schonberg <schonber@gnat.com>
40507
40508 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
40509 access discriminant within a type extension that constrains its
40510 parent discriminants.
40511
40512 2001-12-04 Ed Schonberg <schonber@gnat.com>
40513
40514 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
40515 is malformed, use instance of Any_Id to allow analysis to proceed.
40516
40517 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
40518 type definition is illegal.
40519 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
40520 misplaced.
40521
40522 2001-12-04 Ed Schonberg <schonber@gnat.com>
40523
40524 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
40525 constants.
40526
40527 2001-12-04 Robert Dewar <dewar@gnat.com>
40528
40529 * errout.adb: Minor reformatting
40530
40531 2001-12-04 Robert Dewar <dewar@gnat.com>
40532
40533 * exp_util.adb: Minor reformatting from last change
40534
40535 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
40536 which is a rewriting of an expression, traverse the original
40537 expression to remove warnings that may have been posted on it.
40538
40539 2001-12-04 Ed Schonberg <schonber@gnat.com>
40540
40541 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
40542 record that has other packed components.
40543
40544 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
40545
40546 * adaint.c: Minor cleanups.
40547
40548 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
40549
40550 * adaint.c: Do not use utime.h on vxworks.
40551
40552 2001-12-04 Arnaud Charlet <charlet@gnat.com>
40553
40554 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
40555 more confusion than it solves.
40556
40557 2001-12-04 Geert bosch <bosch@gnat.com>
40558
40559 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
40560
40561 2001-12-04 Geert Bosch <bosch@gnat.com>
40562
40563 * Makefile.in (update-sources): New target.
40564 For use by gcc_release script.
40565
40566 2001-12-04 Ed Schonberg <schonber@gnat.com>
40567
40568 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
40569 a configuration pragma, it is now legal wherever a pragma can appear.
40570
40571 2001-12-04 Zack Weinberg <zack@codesourcery.com>
40572
40573 * Makefile.in: Don't set ALL. Delete @cross_defines@,
40574 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
40575 is now @CROSS@ -DIN_GCC; update comment.
40576
40577 2001-12-04 Robert Dewar <dewar@gnat.com>
40578
40579 * einfo.adb (Has_Pragma_Pure_Function): New flag.
40580 Fix problem that stopped ceinfo from working
40581
40582 * einfo.ads (Has_Pragma_Pure_Function): New flag.
40583
40584 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
40585
40586 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
40587
40588 * gnatchop.adb:
40589 (File_Time_Stamp): New procedure.
40590 (Preserve_Mode): New boolean.
40591 (Write_Unit): Pass time stamp.
40592 Implement -p switch (preserve time stamps).
40593
40594 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
40595
40596 * gnatchop.adb: Do usage info for -p switch
40597
40598 * adaint.h (__gnat_set_file_time_name): New function
40599
40600 * adaint.c (__gnat_set_file_time_name): Implement
40601
40602 * adaint.h: Fix typo
40603
40604 2001-12-03 Robert Dewar <dewar@gnat.com>
40605
40606 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
40607 have Associated_Node.
40608
40609 2001-12-03 Robert Dewar <dewar@gnat.com>
40610
40611 * prj-proc.adb: Minor reformatting
40612
40613 * make.adb: Minor reformatting
40614
40615 2001-12-03 Geert Bosch <bosch@gnat.com>
40616
40617 * make.adb: Minor reformatting.
40618
40619 2001-12-03 Robert Dewar <dewar@gnat.com>
40620
40621 * sem_ch12.adb: Minor reformatting
40622
40623 2001-12-03 Ed Schonberg <schonber@gnat.com>
40624
40625 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
40626 push Standard on the stack before analyzing the instance body,
40627 in order to have a clean visibility environment.
40628
40629 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
40630
40631 2001-12-03 Ed Schonberg <schonber@gnat.com>
40632
40633 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
40634 instantiation of a body that contains an inlined body.
40635
40636 2001-12-03 Ed Schonberg <schonber@gnat.com>
40637
40638 * sem_ch12.adb:
40639 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
40640 to prevent freezing within formal packages.
40641 (Freeze_Subprogram_Body): If body comes from another instance that
40642 appeared before its own body, place freeze node at end of current
40643 declarative part, to prevent a back-end crash.
40644 (Inline_Instance_Body): Handle properly a package instance within
40645 a subprogram instance that is a child unit.
40646
40647 2001-12-01 Graham Stott <grahams@redhat.com>
40648
40649 * Makefile.in (misc.o): Add missing $(srcdir) prefix
40650 and add optabs.h dependency.
40651
40652 * misc.c: Include optabs.h
40653 (gnat_tree_code_type): Make static and const.
40654 (gnat_tree_code_length): Likewise.
40655 (gnat_tree_code_name): Likewise.
40656 (update_setjmp_buf): Obtain operands mode from insn_data.
40657
40658 2001-11-29 Richard Henderson <rth@redhat.com>
40659
40660 * init.c: Remove obsolete dwarf2 frame.h section.
40661
40662 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
40663
40664 * Make-lang.in (ada.generated-manpages): New dummy target.
40665
40666 2001-11-29 Ed Schonberg <schonber@gnat.com>
40667
40668 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
40669 into Command, an array conversion is illegal here. Uncovered by
40670 ACATS B460005.
40671
40672 2001-11-28 Geert Bosch <bosch@gnat.com>
40673
40674 * init.c: Minor whitespace changes.
40675
40676 2001-11-28 Doug Rupp <rupp@gnat.com>
40677
40678 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
40679 signal stack.
40680
40681 2001-11-28 Zack Weinberg <zack@codesourcery.com>
40682
40683 * misc.c (gnat_expand_constant): Move declaration above
40684 definition of lang_hooks.
40685 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
40686 (gnat_init): lang_expand_constant no longer exists.
40687
40688 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
40689 always have vprintf.
40690 (gnat_init): Always call set_internal_error_function.
40691
40692 2001-11-27 Andreas Jaeger <aj@suse.de>
40693
40694 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
40695
40696 2001-11-27 Laurent Guerby <guerby@acm.org>
40697
40698 * Makefile.in: Regenerate Ada dependencies.
40699
40700 2001-11-26 Richard Henderson <rth@redhat.com>
40701
40702 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
40703 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
40704 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
40705
40706 2001-11-25 Laurent Guerby <guerby@acm.org>
40707
40708 * sysdep.c (rts_get_*): Fix style.
40709
40710 2001-11-19 Laurent Guerby <guerby@acm.org>
40711
40712 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
40713 since it is of no apparent use and cause warnings.
40714
40715 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
40716
40717 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
40718 static too.
40719 (gnat_init): Don't return NULL.
40720 (finish_parse): Remove.
40721
40722 2001-11-17 Laurent Guerby <guerby@acm.org>
40723
40724 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
40725 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
40726 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
40727 * lang-spec.h: Add missing struct field to silence warnings.
40728 * sysdep.c (rts_get_*): Provide K&R prototype.
40729 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
40730 * traceback.c (Unlock_Task, Lock_Task): Likewise.
40731 * tracebak.c (__gnat_backtrace): Remove unused variable.
40732 * utils.c (end_subprog_body): Move to K&R style.
40733
40734 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40735
40736 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40737
40738 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
40739
40740 * misc.c (gnat_init): Change prototype. Include the
40741 functionality of the old init_parse and init_decl_processing.
40742 (gnat_init_decl_processing): New prototype.
40743 (init_parse): Remove.
40744 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40745
40746 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40747
40748 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40749 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
40750 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
40751 set_yydebug): Remove.
40752
40753 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40754
40755 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
40756 (struct lang_hooks): Constify.
40757 (language_string, lang_identify): Remove.
40758 * utils.c (init_decl_processing): Update.
40759
40760 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
40761
40762 * misc.c: Include langhooks-def.h.
40763 * Makefile.in: Update.
40764
40765 2001-10-30 Robert Dewar <dewar@gnat.com>
40766
40767 * style.adb:
40768 (Check_Identifier): Rewrite circuit to be compatible with use of letters
40769 in the upper half of ASCII.
40770 (Check_Identifier): Minor reformatting
40771
40772 2001-10-30 Geert Bosch <bosch@gnat.com>
40773
40774 * (Associated_Node, Set_Associated_Node): Do not check for
40775 Freeze_Entity.
40776
40777 2001-10-30 Robert Dewar <dewar@gnat.com>
40778
40779 * a-reatim.ads: Minor reformatting
40780
40781 2001-10-30 Robert Dewar <dewar@gnat.com>
40782
40783 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
40784 undocumented declarations.
40785
40786 2001-10-30 Pascal Obry <obry@gnat.com>
40787
40788 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
40789 to the binder and linker.
40790 Minor style fix.
40791
40792 * mdll.ads: Fix layout. Update copyright notice.
40793
40794 * mdll.adb: Fix layout. Update copyright notice.
40795
40796 2001-10-30 Robert Dewar <dewar@gnat.com>
40797
40798 * usage.adb: Minor fix to output for -gnaty.
40799
40800 2001-10-30 Ed Schonberg <schonber@gnat.com>
40801
40802 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
40803 to accommodate all its possible values.
40804
40805 * a-reatim.adb (Split): Special-case handling of Time_Span_First
40806 and of small absolute values of T.
40807
40808 2001-10-30 Richard Kenner <kenner@gnat.com>
40809
40810 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
40811 set_mem_attributes since not needed and wrong if RESULT if a REG;
40812 fixes ACATS failures.
40813
40814 2001-10-30 Geert Bosch <bosch@gnat.com>
40815
40816 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
40817 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
40818
40819 2001-10-30 Robert Dewar <dewar@gnat.com>
40820
40821 * bindusg.adb: Undocument -f switch.
40822
40823 * gnatcmd.adb: Remove /FULL_ELABORATION.
40824
40825 * opt.ads (Force_RM_Elaboration_Order): Document that this is
40826 obsolescent.
40827
40828 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
40829
40830 * gnatbind.adb: Minor update of warning msg.
40831
40832 2001-10-30 Vincent Celier <celier@gnat.com>
40833
40834 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
40835 for project file switches (-P (/PROJECT_FILE=),
40836 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
40837 or MEDIUM or HIGH)
40838
40839 2001-10-30 Geert Bosch <bosch@gnat.com>
40840
40841 * decl.c: Minor whitespace fixes.
40842
40843 2001-10-30 Richard Kenner <kenner@gnat.com>
40844
40845 * utils2.c (build_allocator): Test for SIZE overflow in array case too
40846
40847 2001-10-30 Geert Bosch <bosch@gnat.com>
40848
40849 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
40850 Found due to GCC 3.0 warning of using uninitialized value.
40851
40852 * layout.adb:
40853 (Get_Max_Size): Use variant record for tracking value/expression.
40854 Makes logic clearer and prevents warnings for uninitialized variables.
40855 (Layout_Array_Type): Use variant record for tracking value/expression.
40856 Makes logic clearer and prevents warnings for uninitialized variables.
40857
40858 2001-10-30 Robert Dewar <dewar@gnat.com>
40859
40860 * lib.adb: Minor reformatting
40861
40862 * s-taprop.ads: Minor reformatting
40863
40864 2001-10-29 Laurent Guerby <guerby@acm.org>
40865
40866 * init.c:
40867 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
40868 const.
40869 (_gnat_error_handler): Make MSG const.
40870
40871 2001-10-29 Richard Kenner <kenner@gnat.com>
40872
40873 * sysdep.c: Fix localtime_r problem on LynxOS.
40874 Also remove #elif to avoid warnings.
40875
40876 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
40877 used by this.
40878
40879 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
40880
40881 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
40882
40883 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
40884 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
40885 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
40886 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
40887 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
40888 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
40889 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
40890 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
40891 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
40892 types.ads, urealp.adb: Fix spelling errors.
40893
40894 2001-10-27 Laurent Guerby <guerby@acm.org>
40895
40896 * trans.c (gigi): Fix non determinism leading to bootstrap
40897 comparison failures for debugging information.
40898
40899 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
40900
40901 * gnat_rm.texi: Use @./@: where appropriate.
40902
40903 2001-10-26 Robert Dewar <dewar@gnat.com>
40904
40905 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
40906
40907 2001-10-26 Richard Kenner <kenner@gnat.com>
40908
40909 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
40910
40911 2001-10-26 Richard Kenner <kenner@gnat.com>
40912
40913 * decl.c (validate_size): Modify message for bad size to avoid
40914 implication that compiler is modifying the size.
40915
40916 2001-10-26 Robert Dewar <dewar@gnat.com>
40917
40918 * prj-util.adb: Minor reformatting. Fix bad header format.
40919
40920 2001-10-26 Robert Dewar <dewar@gnat.com>
40921
40922 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
40923
40924 * sinfo.ads: Clarify use of Associated_Node (documentation only).
40925
40926 * sem_ch12.adb: Change Node4 to Associated_Node. Change
40927 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
40928 much more narrowly in places where needed. These are cleanups.
40929
40930 2001-10-26 Joel Brobecker <brobecke@gnat.com>
40931
40932 * 5zosinte.ads (null_pthread): new constant.
40933
40934 * 5ztaprop.adb:
40935 (Initialize_TCB): Initialize thread ID to null, to be able to verify
40936 later that this field has been set.
40937 (Finalize_TCB): ditto.
40938 (Suspend_Task): Verify that the thread ID is not null before using it.
40939 (Resume_Task): ditto.
40940
40941 * s-tasdeb.adb:
40942 (Resume_All_Tasks): Lock the tasks list before using it.
40943 (Suspend_All_Tasks): ditto.
40944
40945 2001-10-26 Richard Kenner <kenner@gnat.com>
40946
40947 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
40948 Make constant variant of designated type for Is_Access_Constant.
40949 Call update_pointer_to with main variant.
40950
40951 * trans.c (process_freeze_entity, process_type):
40952 Call update_pointer_to on main variant.
40953
40954 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
40955 If main variant, update all other variants.
40956
40957 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
40958 TREE_STATIC.
40959
40960 2001-10-26 Robert Dewar <dewar@gnat.com>
40961
40962 * prj-util.adb: Minor reformatting
40963
40964 2001-10-26 Robert Dewar <dewar@gnat.com>
40965
40966 * prj-util.adb: Minor reformatting
40967
40968 2001-10-26 Robert Dewar <dewar@gnat.com>
40969
40970 * prj-attr.adb: Minor reformatting throughout
40971
40972 2001-10-26 Robert Dewar <dewar@gnat.com>
40973
40974 * prj-attr.ads: Minor reformatting
40975 Add ??? comment (this whole spec has almost no comments)
40976
40977 2001-10-26 Vincent Celier <celier@gnat.com>
40978
40979 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
40980 ("//") that precede the drive letter on Interix.
40981
40982 2001-10-26 Geert Bosch <bosch@gnat.com>
40983
40984 * gnat_rm.texi: Add GNAT Reference Manual.
40985
40986 2001-10-25 Robert Dewar <dewar@gnat.com>
40987
40988 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
40989 is Error. Similar change for other renaming cases.
40990
40991 2001-10-25 Robert Dewar <dewar@gnat.com>
40992
40993 * s-atacco.ads: Add pragma Inline_Always for functions.
40994 Fix header format. Add copyright 2001
40995
40996 2001-10-25 Ed Schonberg <schonber@gnat.com>
40997
40998 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
40999 return Error rather than Empty so that analysis can proceed.
41000
41001 2001-10-25 Ed Schonberg <schonber@gnat.com>
41002
41003 * sem_util.adb (Enter_Name): better handling of cascaded error
41004 messages when a unit appears in its own context.
41005
41006 2001-10-25 Ed Schonberg <schonber@gnat.com>
41007
41008 * sem_util.adb (Defining_Entity): in case of error, attach created
41009 entity to specification, so that semantic analysis can proceed.
41010
41011 2001-10-25 Robert Dewar <dewar@gnat.com>
41012
41013 * sem_util.adb
41014 (Defining_Entity): Deal with Error.
41015 (Process_End_Label): Deal with bad end label for.
41016
41017 2001-10-25 Ed Schonberg <schonber@gnat.com>
41018
41019 * sem_elab.adb (Check_A_Call): refine message when call is in an
41020 instance but callee is not declared in the generic unit.
41021
41022 2001-10-25 Ed Schonberg <schonber@gnat.com>
41023
41024 * sem_elab.adb (Check_A_Call): check for renaming before finding the
41025 enclosing unit, which may already be different from the calling unit.
41026
41027 2001-10-25 Geert Bosch <bosch@gnat.com>
41028
41029 * 4gintnam.ads: fix header format.
41030
41031 2001-10-25 Ed Schonberg <schonber@gnat.com>
41032
41033 * sem_res.adb (Resolve_Call): if the call is actually an indexing
41034 operation on the result of a parameterless call, perform elaboration
41035 check after the node has been properly rewritten.
41036
41037 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
41038 inlined within the generic tree, the defining identifier is not a
41039 compilation_unit.
41040
41041 2001-10-25 Ed Schonberg <schonber@gnat.com>
41042
41043 * sem_res.adb (Resolve): special-case resolution of Null in an
41044 instance or an inlined body to avoid view conflicts.
41045
41046 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
41047 compatibility by retrieving the access type of the generic copy.
41048
41049 2001-10-25 Robert Dewar <dewar@gnat.com>
41050
41051 * sem_ch3.adb:
41052 (Analyze_Number_Declaration): Handle error expression.
41053 (Signed_Integer_Type_Declaration): Handle error bound.
41054 (Analyze_Subtype_Indication): Handle error range.
41055
41056 * sem_util.adb (Get_Index_Bounds): Check for Error.
41057
41058 2001-10-25 Robert Dewar <dewar@gnat.com>
41059
41060 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
41061 in no run time mode.
41062
41063 2001-10-25 Pascal Obry <obry@gnat.com>
41064
41065 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
41066 mode case for ALLOC case.
41067
41068 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
41069 all platforms. Improvement of last change.
41070
41071 2001-10-25 Robert Dewar <dewar@gnat.com>
41072
41073 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
41074
41075 2001-10-25 Geert Bosch <bosch@gnat.com>
41076
41077 * osint.adb (Is_Relative): Remove duplicate.
41078
41079 2001-10-25 Pascal Obry <obry@gnat.com>
41080
41081 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
41082 pathnames in UNIX and DOS style with drive letter.
41083 (Is_Relative): new routine.
41084
41085 * osint.adb: Minor reformatting
41086
41087 * osint.adb (Is_Relative): implementation using
41088 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
41089
41090 2001-10-25 Pascal Obry <obry@gnat.com>
41091
41092 * g-dirope.adb (Basename): correctly compute offset between the
41093 original Path and the translated one.
41094
41095 * g-dirope.adb: (Base_Name): add some comments.
41096
41097 2001-10-25 Robert Dewar <dewar@gnat.com>
41098
41099 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
41100 in HIE mode, avoids compilation abandoned message
41101
41102 * exp_imgv.adb: Correct typo in previous change
41103
41104 * exp_imgv.adb: Correct typo in previous change (not my day!)
41105
41106 2001-10-25 Robert Dewar <dewar@gnat.com>
41107
41108 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
41109
41110 2001-10-25 Pascal Obry <obry@gnat.com>
41111
41112 * g-awk.ads: Move all pragma inlines next to the routine
41113 declarations. This is more uniform with other GNAT spec.
41114
41115 2001-10-22 Geert Bosch <bosch@gnat.com>
41116
41117 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
41118
41119 2001-10-19 Geert Bosch <bosch@gnat.com>
41120
41121 * Makefile.in (tools, gnattools): Remove gnatmem.
41122
41123 2001-10-17 Richard Henderson <rth@redhat.com>
41124
41125 * Makefile.in (misc.o): Depend on langhooks.h.
41126 * misc.c: Include it.
41127 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
41128 (LANG_HOOKS_DECODE_OPTION): New.
41129 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
41130
41131 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
41132
41133 * trans.c (tree_transform): Adjust to recent change in
41134 expand_asm_operands to implement named asm operands.
41135
41136 2001-10-11 Ed Schonberg <schonber@gnat.com>
41137
41138 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
41139 renaming of discriminant for mutable record type.
41140
41141 2001-10-11 Robert Dewar <dewar@gnat.com>
41142
41143 * validsw.adb: Properly save -gnatVn status.
41144
41145 2001-10-11 Robert Dewar <dewar@gnat.com>
41146
41147 * usage.adb: Add lines for V switch.
41148
41149 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
41150 (/VALIDITY_CHECKING).
41151
41152 2001-10-11 Ed Schonberg <schonber@gnat.com>
41153
41154 * sem_type.adb (Add_One_Interp): an operator for a type declared in
41155 an extension of System is known to be visible.
41156
41157 2001-10-11 Ed Schonberg <schonber@gnat.com>
41158
41159 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
41160 properly. Fixes regression on ACATS C34005G.
41161
41162 2001-10-11 Robert Dewar <dewar@gnat.com>
41163
41164 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
41165 loop in generic instance, since this is likely not very useful.
41166
41167 2001-10-11 Robert Dewar <dewar@gnat.com>
41168
41169 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
41170 the error message for high integrity mode.
41171
41172 * rtsfind.adb (RTE): Give message if we try to find an entity that
41173 is not available in high integrity mode.
41174
41175 * rtsfind.ads:
41176 (OK_To_Use_In_HIE_Mode): New array.
41177 (RTE): May return Empty in high integrity mode.
41178
41179 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
41180 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
41181
41182 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
41183 unit if not inlined always and in no runtime mode. Fixes problem
41184 caused by new Rtsfind changes.
41185
41186 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
41187 body is deleted.
41188
41189 * rtsfind.adb (RTE): Make sure we do not try to load unit after
41190 giving message for entity not available in high integrity mode.
41191
41192 2001-10-11 Pascal Obry <obry@gnat.com>
41193
41194 * impunit.adb: Add GNAT.CRC32.
41195
41196 2001-10-11 Ed Schonberg <schonber@gnat.com>
41197
41198 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
41199 properly the case where one universal operand in a non-static
41200 exponentiation of a real literal.
41201
41202 2001-10-11 Ed Schonberg <schonber@gnat.com>
41203
41204 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
41205 clause, return the gobal finalization list, for lack of anthing else.
41206
41207 2001-10-11 Ed Schonberg <schonber@gnat.com>
41208
41209 * exp_ch7.adb (Make_Transient_Block): if statement is within
41210 exception handler, always use new transient scope to place Clean
41211 procedure.
41212
41213 2001-10-11 Pascal Obry <obry@gnat.com>
41214
41215 * Makefile.in:
41216 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41217 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41218 (GNATLS_RTL_OBJS): add g-crc32.o
41219 (GNATMAKE_RTL_OBJS): add g-crc32.o
41220
41221 * ali-util.adb:
41222 (CRC_Match): new function.
41223 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
41224 instead of the previous simple checksum algorithm.
41225 (Time_Stamp_Mismatch): use CRC_Match for comparison.
41226 (Set_Source_Table): idem.
41227
41228 * ali-util.ads:
41229 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
41230 instead of simple checksum.
41231 (CRC_Match): new function.
41232 (CRC_Error): new constant.
41233
41234 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
41235 a CRC now and not a simple checksum. A CRC uses lower-case hex
41236 letters, fixes ambiguity in parsing.
41237
41238 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
41239 is what this variable will store.
41240
41241 * bcheck.adb: Change reference to chechsum in comments by CRC.
41242 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
41243 rename All_Checksum_Match to All_CRC_Match. Change due to API
41244 renaming since now GNAT does not use a simple checksum but a
41245 CRC using GNAT.CRC32.
41246
41247 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
41248 now and not anymore a simple checksum.
41249
41250 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
41251 places.
41252
41253 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
41254
41255 * scans.adb:
41256 (Restore_Scan_State): rename Checksum to CRC.
41257 (Save_Scan_State): idem.
41258
41259 * scans.ads:
41260 With GNAT.CRC32.
41261 (Checksum): rename to CRC.
41262 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
41263
41264 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
41265 GNAT.CRC32). Update copyright notice.
41266
41267 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
41268 GNAT.CRC32). Update copyright notice.
41269
41270 * scn.adb:
41271 (Accumulate_Checksum): removed.
41272 (Update): new procedure. Add a wide-character into the CRC.
41273
41274 * sinput-l.adb:
41275 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
41276 (Load_File): fix initialization of S (change Source_Checksum to
41277 Source_CRC)
41278
41279 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
41280 Source_CRC in S initialization.
41281
41282 * sinput.adb (Source_Checksum): renamed to Source_CRC.
41283
41284 * sinput.ads (Source_Checksum): renamed to Source_CRC.
41285 Update comments for the CRC.
41286
41287 * types.adb (Hex): Use lowercase for the letter part.
41288
41289 * types.ads (Get_Hex_String): Returns the hexadecimal representation
41290 for a word. This is currently used only for CRC. In previous version,
41291 the checksum was using a representation with all letter being
41292 upper-case. With the new implementation (using CRC) we do not remove
41293 the 32th bit of the CRC, so we can have an upper-case starting letter
41294 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
41295 It is ambigous since the CRC was optional and could be followed by
41296 options like EB, EE. So now this routines uses lower-case letter for
41297 the hexadecimal representation. Strange enough only lower case letters
41298 where checked in Scan_ALI (even if this was not a possible case).
41299
41300 * gnatvsn.ads (Library_Version): changed to 3.15a.
41301
41302 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
41303 for the compiler.
41304
41305 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
41306 for the compiler.
41307
41308 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
41309 Add 2001 to copyright notice
41310 (Accumulate_Checksum): Modify to use System.CRC32.
41311
41312 * ali-util.ads: Redo changes of previous revision to continue to use
41313 the word Checksum. Add 2001 to copyright notice.
41314
41315 * ali.adb: Undo some of previous changes, not needed.
41316 Keep the change for lower case letters in the checksum.
41317
41318 * ali.ads: Undo previous change not needed.
41319
41320 * bcheck.adb: Undo most of previous change, not needed.
41321 But do use Checksums_Match for checksum comparison.
41322
41323 * gnatls.adb: Undo most of previous change, not needed.
41324 But do use Checksums_Match for comparing checksums.
41325
41326 * lib-load.adb: Undo previous change, not needed.
41327
41328 * lib-writ.adb: Undo previous change, not needed.
41329
41330 * lib-writ.ads: Document that checksums use lower case,
41331 not upper case letters.
41332
41333 * scans.adb: Undo previous change, not needed
41334
41335 * scans.ads: Undo previous change, not needed.
41336
41337 * scn-nlit.adb: Undo previous changes, not needed.
41338
41339 * scn-slit.adb: Undo previous change, not needed. Fix header format.
41340
41341 * scn.adb:
41342 (Accumulate_Checksum): Use System.CRC32.
41343 (Initialize_Checksum): New procedure.
41344 Remove other changes of previous revision.
41345
41346 * sinput-p.adb: Undo previous change, not needed.
41347
41348 * sinput.adb: Undo previous change, not needed.
41349
41350 * sinput-l.adb: Undo previous change, not needed.
41351
41352 * sinput.ads: Undo previous change, not needed. Keep only comment
41353 on new checksum algorithm
41354
41355 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
41356 Also remove a-tags and a-stream from GNAT sources.
41357
41358 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
41359
41360 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
41361
41362 2001-10-11 Geert Bosch <bosch@gnat.com>
41363
41364 * einfo.h: Regenerate.
41365
41366 * nmake.ads: Regenerate.
41367
41368 * nmake.adb: Regenerate.
41369
41370 * sinfo.h: Regenerate.
41371
41372 * treeprs.adb: Regenerate.
41373
41374 2001-10-10 Geert Bosch <bosch@gnat.com>
41375
41376 * gnat-style.texi: New file describing coding guidelines for Ada.
41377
41378 2001-10-10 Ed Schonberg <schonber@gnat.com>
41379
41380 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
41381 is Flag174.
41382
41383 2001-10-10 Geert Bosch <bosch@gnat.com>
41384
41385 * snames.ads: Add new names for project facility.
41386
41387 * snames.adb: Update to reflect snames.ads changes.
41388
41389 * snames.h: Update to reflect snames.ads changes.
41390
41391 2001-10-10 Vincent Celier <celier@gnat.com>
41392
41393 * make.adb:
41394 (Add_Switches): reflect the changes for the switches attributes
41395 Default_Switches indexed by the programming language,
41396 Switches indexed by the file name.
41397 (Collect_Arguments_And_Compile): Idem.
41398 Reflect the attribute name changes.
41399
41400 * prj-attr.adb:
41401 (Initialisation_Data): Change the names of some packages and
41402 attributes.
41403 (Initialize): process case insensitive associative arrays.
41404
41405 * prj-attr.ads:
41406 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
41407
41408 * prj-dect.adb:
41409 (Parse_Attribute_Declaration): For case insensitive associative
41410 arrays, set the index string to lower case.
41411
41412 * prj-env.adb:
41413 Reflect the changes of the project attributes.
41414
41415 * prj-nmsc.adb:
41416 Replace Check_Naming_Scheme by Ada_Check and
41417 Language_Independent_Check.
41418
41419 * prj-nmsc.ads:
41420 Replaced Check_Naming_Scheme by 2 procedures:
41421 Ada_Check and Language_Independent_Check.
41422
41423 * prj-proc.adb:
41424 (Process_Declarative_Items): For case-insensitive associative
41425 arrays, set the index string to lower case.
41426 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
41427 Prj.Nmsc.Check_Naming_Scheme.
41428
41429 * prj-tree.adb:
41430 (Case_Insensitive): New function
41431 (Set_Case_Insensitive): New procedure
41432
41433 * prj-tree.ads:
41434 (Case_Insensitive): New function
41435 (Set_Case_Insensitive): New procedure
41436 (Project_Node_Record): New flag Case_Insensitive.
41437
41438 * prj-util.adb:
41439 (Value_Of): new function to get the string value of a single
41440 string variable or attribute.
41441
41442 * prj-util.ads:
41443 (Value_Of): new function to get the string value of a single
41444 string variable or attribute.
41445
41446 * prj.adb:
41447 (Ada_Default_Spec_Suffix): New function
41448 (Ada_Default_Impl_Suffix): New function
41449 Change definitions of several constants to reflect
41450 new components of record types.
41451
41452 * prj.ads:
41453 (Naming_Data): Change several components to reflect new
41454 elements of naming schemes.
41455 (Project_Data): New flags Sources_Present and
41456 Language_Independent_Checked.
41457 (Ada_Default_Spec_Suffix): New function.
41458 (Ada_Default_Impl_Suffix): New function.
41459
41460 * snames.ads:
41461 Modification of predefined names for project manager: added
41462 Implementation, Specification_Exceptions, Implementation_Exceptions,
41463 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
41464 Default_Switches, _Languages, Builder, Cross_Reference,
41465 Finder. Removed Body_Part, Specification_Append, Body_Append,
41466 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
41467 Gnatlink.
41468
41469 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41470 Add comments.
41471
41472 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
41473 not that it is Nil_Variable_Value.
41474
41475 * prj.ads: Add ??? for uncommented declarations
41476
41477 2001-10-10 Ed Schonberg <schonber@gnat.com>
41478
41479 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
41480 constant, do not indicate possible modification, so that gigi can
41481 treat it as a bona fide constant.
41482
41483 2001-10-10 Robert Dewar <dewar@gnat.com>
41484
41485 * sem_prag.adb: Add processing for pragma External.
41486
41487 * snames.ads: Add entry for pragma External.
41488
41489 * par-prag.adb: Add pragma External.
41490
41491 * snames.adb: Updated to match snames.ads.
41492
41493 2001-10-10 Ed Schonberg <schonber@gnat.com>
41494
41495 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
41496 a dynamic task if the allocator appears in an indexed assignment
41497 or selected component assignment.
41498
41499 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
41500 For a dynamic task in an assignment statement, use target of
41501 assignment to generate meaningful name.
41502
41503 2001-10-10 Ed Schonberg <schonber@gnat.com>
41504
41505 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
41506 a generic package.
41507
41508 * einfo.ads: Body_Entity is also defined for generic package.
41509 Documentation change only
41510
41511 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
41512 others_choice for a discriminated component initialization,
41513 convert discriminant references into the corresponding discriminals.
41514
41515 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
41516 only if original type is private and expression has to be wrapped
41517 in a conversion.
41518
41519 * checks.adb:
41520 (Apply_Constraint_Check): Do not perform length check
41521 if expression is an aggregate with only an others_choice.
41522 (Length_N_Cond): two references to the same in_parameter
41523 (typically the discriminal in an init_proc) denote the same value.
41524 Two useful optimization uncovered by bugfixes above.
41525
41526 2001-10-10 Robert Dewar <dewar@gnat.com>
41527
41528 * xeinfo.adb: Change int to char in translation of enumeration types.
41529 This fixes a problem in the C representation of component alignment.
41530 Add 2001 to copyright notice
41531
41532 2001-10-10 Richard Kenner <kenner@gnat.com>
41533
41534 * decl.c: (validate_size): Do check size of object of integral type
41535 if it is a packed array type.
41536
41537 2001-10-10 Richard Kenner <kenner@gnat.com>
41538
41539 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
41540 VAR_DECL for constant if not Is_Public but -O0.
41541
41542 2001-10-10 Richard Kenner <kenner@gnat.com>
41543
41544 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
41545
41546 2001-10-10 Geert Bosch <bosch@gnat.com>
41547
41548 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
41549 use '/' as switch character, allowing for absolute file names.
41550
41551 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
41552
41553 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
41554 FSF address.
41555
41556 2001-10-08 Geert Bosch <bosch@gnat.com>
41557
41558 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
41559 Automatically build utilities when files need to be regenerated.
41560
41561 2001-10-08 Geert Bosch <bosch@gnat.com>
41562
41563 * xsnames.adb: New utility for updating snames.ads and snames.adb
41564
41565 2001-10-08 Zack Weinberg <zack@codesourcery.com>
41566
41567 * Make-lang.in (ADAFLAGS): Add -W -Wall.
41568 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
41569 (gnat1): Also depend on attribs.o.
41570 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
41571 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
41572 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
41573 (ADAFLAGS): Add -W -Wall.
41574 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
41575 take out CFLAGS.
41576
41577 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
41578 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
41579 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
41580 Use $(ADAC), not $(CC), as compilation command.
41581
41582 (gnattools): Depend directly on tools to build, don't use
41583 recursive make.
41584 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
41585
41586 * einfo.h, sinfo.h: New files (autogenerated).
41587
41588 2001-10-08 Richard Henderson <rth@redhat.com>
41589
41590 * comperr.adb (Abort_In_Progress): New.
41591 (Compiler_Abort): Use it to prevent recursion.
41592
41593 2001-10-08 Robert Dewar <dewar@gnat.com>
41594
41595 * atree.adb: Set Error_Posted in Error node, helps error recovery.
41596
41597 * par-endh.adb (Output_End_Expected): We should also not test
41598 Error_Posted on the Error node, since now it is always set.
41599
41600 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
41601 to help error recovery. Part of general work on 9407-004.
41602
41603 * par.adb: Add ??? for misuse of error
41604
41605 * sem_res.adb:
41606 (Resolve): Defend against Error, fixes 9407-003.
41607 (Resolve_Discrete_Subtype_Indication): Defend against Error.
41608
41609 * sinfo.ads (N_Error): Now has Etype field (which will be set
41610 to Any_Type to help error recovery).
41611
41612 2001-10-08 Richard Kenner <kenner@gnat.com>
41613
41614 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
41615 Consistently set MEM attributes from expression; fixes
41616 bootstrap failure on x86.
41617
41618 2001-10-08 Geert Bosch <bosch@gnat.com>
41619
41620 * 5oosinte.adb: Add 2001 to copyright notice.
41621
41622 2001-10-08 Geert Bosch <bosch@gnat.com>
41623
41624 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
41625
41626 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
41627
41628 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
41629
41630 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
41631
41632 2001-10-05 Geert Bosch <bosch@gnat.com>
41633
41634 * adaint.h: Small formatting fix.
41635
41636 2001-10-04 Geert Bosch <bosch@gnat.com>
41637
41638 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
41639 Arg is int, not FILE *, in dummy version of functions.
41640
41641 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
41642 Arg is int, not FILE *.
41643
41644 2001-10-04 Geert Bosch <bosch@gnat.com>
41645
41646 * 3lsoccon.ads: Added file, missed with initial check ins.
41647
41648 * 4lintnam.ads: Fix header format.
41649 Change Linux to GNU/Linux.
41650
41651 * 5iosinte.adb: Change Linux to GNU/Linux.
41652
41653 * 5iosinte.ads: Change Linux to GNU/Linux.
41654
41655 * 5itaprop.adb: Change Linux to GNU/Linux.
41656
41657 * 5itaspri.ads: Change Linux to GNU/Linux.
41658 Update copyright notice.
41659
41660 * 5lintman.adb: Change Linux to GNU/Linux.
41661
41662 * 5lml-tgt.adb: Change Linux to GNU/Linux.
41663
41664 * 5losinte.ads: Change Linux to GNU/Linux.
41665
41666 * 5lsystem.ads: Change Linux to GNU/Linux.
41667
41668 * 5qosinte.adb: Change Linux to GNU/Linux.
41669
41670 * 5qosinte.ads: Change Linux to GNU/Linux.
41671
41672 * 5qparame.ads: Change Linux to GNU/Linux.
41673
41674 * 5qtaprop.adb: Change Linux to GNU/Linux.
41675
41676 * 5qtaspri.ads: Change Linux to GNU/Linux.
41677 Add 2001 to copyright notice.
41678
41679 * 5vintman.ads: Change Linux to GNU/Linux.
41680 Fix header format. Add 2001 to copyright notice.
41681
41682 * g-soccon.ads: Change Linux to GNU/Linux.
41683
41684 * g-trasym.ads: Change Linux to GNU/Linux.
41685 Add 2001 to copyright notice.
41686
41687 * memtrack.adb: Change Linux to GNU/Linux.
41688
41689 * s-intman.ads: Change Linux to GNU/Linux.
41690 Add 2001 to copyright notice. Fix header format.
41691
41692 * s-stache.adb: Change Linux to GNU/Linux.
41693
41694 * adaint.c: Change Linux to GNU/Linux.
41695
41696 * cio.c: Change Linux to GNU/Linux.
41697
41698 * cstreams.c: Change Linux to GNU/Linux.
41699
41700 * init.c: Change Linux to GNU/Linux.
41701
41702 * gmem.c: Change Linux to GNU/Linux.
41703
41704 * tracebak.c: Change Linux to GNU/Linux.
41705
41706
41707 2001-10-02 Geert Bosch <bosch@gnat.com>
41708
41709 * misc.c (insert_default_attributes): Add dummy version.