]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
utils2.c (fill_vms_descriptor): Use long_integer for comparison.
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
bdc33a55
AC
12008-08-04 Doug Rupp <rupp@adacore.com>
2
3 * gcc-interface/utils2.c:
4 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
5 in 32bit descriptor.
6
72008-08-04 Robert Dewar <dewar@adacore.com>
8
9 * par-ch10.adb: Minor reformatting
10
11 * i-cobol.adb: Minor reformatting.
12
132008-08-04 Ed Schonberg <schonberg@adacore.com>
14
15 * sem_ch3.adb (Access_Definition): Create an itype reference for an
16 anonymous access return type of a regular function that is not a
17 compilation unit.
18
192008-08-04 Vincent Celier <celier@adacore.com>
20
21 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
22
23 * snames.adb: New standard name Global_Compilation_Switches
24
25 * snames.ads: New standard name Global_Compilation_Switches
26
27 * make.adb: Correct spelling error in comment
28
292008-08-04 Arnaud Charlet <charlet@adacore.com>
30
31 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
32 target.
33
342008-08-04 Thomas Quinot <quinot@adacore.com>
35
36 * sem_ch10.adb: Minor comment fix.
37
fc1b906a
AC
382008-08-04 Robert Dewar <dewar@adacore.com>
39
40 * restrict.adb: Improved messages for restriction warnings
41
42 * restrict.ads: Improved messages for restriction messages
43
44 * s-rident.ads (Profile_Name): Add No_Profile
45
462008-08-04 Robert Dewar <dewar@adacore.com>
47
48 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
49
502008-08-04 Robert Dewar <dewar@adacore.com>
51
52 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
53
542008-08-04 Vincent Celier <celier@adacore.com>
55
56 * prj-proc.adb:
57 (Copy_Package_Declarations): When inheriting package Naming from a
58 project being extended, do not inherit source exception names.
59
602008-08-04 Ed Schonberg <schonberg@adacore.com>
61
62 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
63 list of declaration to find previous subprogram, do not go to the
64 original node of a generic unit.
65
d2143736
EB
662008-08-02 Eric Botcazou <ebotcazou@adacore.com>
67
68 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
69 New case. Convert BOOLEAN_TYPE operation to the default integer type.
70
a981c964
EB
712008-08-01 Eric Botcazou <ebotcazou@adacore.com>
72
73 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
74 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
75 and adjust for above renaming.
76 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
77 gnu_expr_alt_type parameter. Convert the expression to it instead
78 of changing its type in place.
79 (build_function_stub): Adjust call to above function.
80
8df2e902
EB
812008-08-01 Eric Botcazou <ebotcazou@adacore.com>
82
83 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
84 code. Do not get full definition of deferred constants with address
85 clause for a use. Do not ignore deferred constant definitions with
86 address clause. Ignore constant definitions already marked with the
87 error node.
88 <object>: Remove obsolete comment. For a deferred constant with
89 address clause, get the initializer from the full view.
90 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
91 Rework and remove obsolete comment.
92 <N_Object_Declaration>: For a deferred constant with address clause,
93 mark the full view with the error node.
94 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
95 formatting nits.
96
585df50b
AC
972008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
98
99 * rtsfind.ads: Add block IO versions of stream routines for Strings.
100
101 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
102 sem_prag.adb, snames.adb, snames.ads, snames.h,
103 par-prag.adb: Undo previous stream related changes.
104
105 * s-rident.ads: Add new restriction No_Stream_Optimizations.
106
107 * s-ststop.ads, s-ststop.adb: Comment reformatting.
108 Define enumeration type to designate different IO mechanisms.
109 Enchance generic package Stream_Ops_Internal to include an
110 implementation of Input and Output.
111
112 * exp_attr.adb (Find_Stream_Subprogram): If restriction
113 No_Stream_Optimization is active, choose the default byte IO
114 implementations of stream attributes for Strings.
115 Otherwise use the corresponding block IO version.
116
2eee5152
OH
1172008-08-01 Olivier Hainque <hainque@adacore.com>
118
585df50b
AC
119 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
120 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
121
1222008-08-01 Robert Dewar <dewar@adacore.com>
123
124 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
125 convert plain identifier into defining identifier.
2eee5152 126
2b747305
AC
1272008-08-01 Robert Dewar <dewar@adacore.com>
128
129 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
130 warnings
131
132 * lib-xref.adb: Add error defense.
133
1342008-08-01 Bob Duff <duff@adacore.com>
135
136 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
137
0c246603
AC
1382008-08-01 Gary Dismukes <dismukes@adacore.com>
139
140 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
141 correct accessibility levels. In the "when others" case, retrieve the
142 access level of the Etype of Prev rather than Prev_Orig, because the
143 original exression has not always been analyzed.
144
1452008-08-01 Robert Dewar <dewar@adacore.com>
146
147 * prj-nmsc.adb: Minor reformatting
148
149 * sem_ch4.adb: Minor reformatting
150 Minor code reorganization
151
152 * prj.ads: Minor reformatting
153
154 * s-os_lib.adb: Minor reformatting
155
156 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
157 half encodings
158
159 * scans.ads: Minor reformatting.
160
161 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
162 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
163
164 * sem_res.adb:
165 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
166
167 * sem_ch12.adb: Minor comment reformatting
168
169 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
170 keyword
171
1cb17b78
AC
1722008-08-01 Robert Dewar <dewar@adacore.com>
173
174 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
175 generating code
176
1772008-08-01 Ed Schonberg <schonberg@adacore.com>
178
179 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
180 converted is a real literal and the target type has static bounds,
181 perform the conversion exactly to prevent floating-point anomalies on
182 some targets.
183
1842008-08-01 Vincent Celier <celier@adacore.com>
185
186 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
187
188 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
189
190 * prj.adb (Object_Exist_For): Use Object_Generated, not
191 Objects_Generated that is removed and was never modified anyway.
192
193 * prj.ads:
194 (Path_Syntax_Kind): New enumeration type
195 (Language_Config): New component Path_Syntax, defaulted to Host.
196 Components PIC_Option and Objects_Generated removed, as they are not
197 used.
198
199 * snames.adb: New standard name Path_Syntax
200
201 * snames.ads: New standard name Path_Syntax
202
2032008-08-01 Vincent Celier <celier@adacore.com>
204
205 * mlib-utl.adb:
206 (Adalib_Path): New variable to store the path of the adalib directory
207 when procedure Specify_Adalib_Dir is called.
208 (Lib_Directory): If Adalib_Path is not null, return its value
209 (Specify_Adalib_Dir): New procedure
210
211 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
212
2132008-08-01 Ed Schonberg <schonberg@adacore.com>
214
215 * sem_prag.adb:
216 (Check_Precondition_Postcondition): If not generating code, analyze the
217 expression in a postcondition that appears in a subprogram body, so that
218 it is properly decorated for ASIS use.
219
2202008-08-01 Gary Dismukes <dismukes@adacore.com>
221
222 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
223 Orig_Prev to Prev in the case where the actual is N_Function_Call or
224 N_Identifier. This was interfering with other cases that are rewritten
225 as N_Identifier, such as allocators, resulting in passing of the wrong
226 accessibility level, and based on testing this code is apparently no
227 longer needed at all.
228
2292008-08-01 Ed Schonberg <schonberg@adacore.com>
230
231 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
232 procedure call whose prefix
233 is a parameterless function call that returns an access_to_procedure.
234
d1b4f87d
AC
2352008-08-01 Jose Ruiz <ruiz@adacore.com>
236
237 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
238 for RTX. Adding a suffix that is incremented at each iteration.
239
2402008-08-01 Robert Dewar <dewar@adacore.com>
241
242 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
243 Raise_Exception
244
2452008-08-01 Jerome Lambourg <lambourg@adacore.com>
246
247 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
248 paths, which are authorized by Windows but can lead to errors when used
249 elsewhere.
250
cfb02ad1
AC
2512008-08-01 Ed Schonberg <schonberg@adacore.com>
252
253 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
254 a pending instantiation for the body of a subprogram that is to be
255 inlined.
256
257 * sem_ch12.adb:
258 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
259
260 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
261 create a pending instance for its body, so that calls to the subprogram
262 can be inlined by the back-end.
263
2642008-08-01 Jose Ruiz <ruiz@adacore.com>
265
266 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
267 rts-rtx-w32).
268
e1bb4e71
AC
2692008-08-01 Robert Dewar <dewar@adacore.com>
270
271 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
272
2732008-08-01 Doug Rupp <rupp@adacore.com>
274
275 * gnat_rm.texi: Document new mechanism Short_Descriptor.
276
277 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
278 mechanism values.
279
280 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
281 mechanism and Short_Descriptor mechanism values.
282
283 * snames.adb (preset_names): Add short_descriptor entry.
284
285 * snames.ads: Add Name_Short_Descriptor.
286
287 * types.h: Add new By_Short_Descriptor mechanism values.
288
289 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
290 mechanism and Short_Descriptor mechanism values.
291
292 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
293 values.
294 (Descriptor_Codes): Modify range for new mechanism values.
295
296 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
297 mechanism values.
298
299 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
300 (gnat_to_gnu_param): Handle By_Short_Descriptor.
301
302 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
303 (build_vms_descriptor32): New prototype.
304 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
305
306 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
307 argument in call fill_vms_descriptor.
308
309 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
310 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
311 (build_vms_descriptor): Renamed from build_vms_descriptor64.
312 (convert_vms_descriptor32): New function.
313 (convert_vms_descriptor64): New function.
314 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
315 descriptors.
316
317 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
318 no longer needed.
319
3202008-08-01 Jose Ruiz <ruiz@adacore.com>
321
322 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
323 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
324 name.
325
bca3ab79
AC
3262008-08-01 Jose Ruiz <ruiz@adacore.com>
327
328 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
329 current directory so only fully qualified names are allowed.
330
3312008-08-01 Robert Dewar <dewar@adacore.com>
332
333 * gnat_ugn.texi:
334 Minor editing, remove uncomfortable use of semicolon
335
336 * s-ststop.adb: Add some ??? comments
337
338 * sem_ch10.adb: Minor reformatting
339
340 * snames.ads:
341 Minor comment fixes, some pragmas were not properly
342 categorized in the comments, documentation change only
343
344 * xref_lib.adb: Minor reformatting
345
346 * sinput.adb: Minor reformatting
347
348 * gnatchop.adb: Minor reformatting
349
350 * sem_util.ads: Minor reformatting.
351
352 * opt.ads: Minor documentation fix
353
354 * scng.adb: Minor reformatting
355
356 * prj-part.adb: Update comments
357
3582008-08-01 Ed Schonberg <schonberg@adacore.com>
359
360 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
361 tagged synchronized type, use corresponding record type.
362
3632008-08-01 Doug Rupp <rupp@adacore.com>
364
365 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
366 dummy transfer address for debugging.
367
368 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
369
370 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
371
4c5a0615
EB
3722008-07-31 Eric Botcazou <ebotcazou@adacore.com>
373
374 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
375 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
376
964771d9
AC
3772008-07-31 Pascal Obry <obry@adacore.com>
378
379 * prj-nmsc.adb: Keep Object and Exec directory casing.
380
3812008-07-31 Jose Ruiz <ruiz@adacore.com>
382
383 * system-rtx-rtss.ads
384 Change the default stack size. It is important to set the commit part.
385
386 * s-taprop-rtx.adb
387 (Initialize): Get the clock resolution.
388 (RT_Resolution): Return the clock resolution that is indicated by the
389 system.
390
391 * s-parame-vxworks.adb
392 Document that this body is used for RTX in RTSS (kernel) mode.
393
394 * gcc-interface/Makefile.in
395 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
396 s-parame-vxworks.adb body in order to have reasonable stack sizes in
397 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
398 cannot ask for too big values.
399
4002008-07-31 Robert Dewar <dewar@adacore.com>
401
402 * exp_aggr.adb: Minor reformatting
403
404 * makeutl.adb: Minor reformatting
405
406 * prj-env.adb: Minor reformatting
407
1e0f7ffb
AC
4082008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
409
410 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
411 tagged type is completed by a concurrent type.
412
4132008-07-31 Gary Dismukes <dismukes@adacore.com>
414
415 * sem_aggr.adb:
416 (Resolve_Record_Aggregate): Bypass error that a type without
417 components must have a "null record" aggregate when compiling for Ada
418 2005, since it's legal to give an aggregate of form (others => <>)
419 for such a type.
420
fa4bc5ab
AC
4212008-07-31 Javier Miranda <miranda@adacore.com>
422
423 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
424 handle synchronized types. Required to handle well the object.operation
425 notation applied to synchronized types.
426
4272008-07-31 Quentin Ochem <ochem@adacore.com>
428
429 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
430 anymore - just used internally.
431 Added handling of very small tasks - when the theoretical size is
432 already full at the point of the call.
433 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
434 not need to be added to the result.
435
4362008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
437
438 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
439 corresponding spec is a primitive wrapper. Update comment.
440
4412008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
442
443 * bindgen.adb Comment reformatting. Update the list of run-time globals.
444 (Gen_Adainit_Ada): Add the declaration, import and value set for
445 configuration flag Canonical_Streams.
446 (Gen_Adainit_C): Add the declaration and initial value of external
447 symbol __gl_canonical_streams.
448
449 * init.c: Update the list of global values computed by the binder.
450
451 * opt.ads: Add flag Canonical_Streams.
452
453 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
454 semantically handled pragmas.
455
456 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
457 (Analyze_Pragma): Add case for pragma Canonical_Streams.
458
459 * snames.adb: Add character value for name Canonical_Streams.
460
461 * snames.ads:
462 Add Name_Canonical_Streams to the list of configuration pragmas.
463 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
464
465 * snames.h: Add a definition for Pragma_Canonical_Streams.
466
467 * s-ststop.adb:
468 Add a flag and import to seize the value of external symbol
469 __gl_canonical_streams. Update comment and initial value of constant
470 Use_Block_IO.
471
472 * gnat_rm.texi: Add section of pragma Canonical_Streams.
473
474 * gnat_ugn.texi:
475 Add pragma Canonical_Streams to the list of configuration pragmas.
476
4772008-07-31 Ed Schonberg <schonberg@adacore.com>
478
479 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
480 has the form A.B.C and B is a unit renaming, analyze its compilation
481 unit and add a with_clause on A.b to the context.
482
f32b9cd1
AC
4832008-07-31 Vincent Celier <celier@adacore.com>
484
485 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
486 return the empty string, instead of raising Constraint_Error.
487
4882008-07-31 Gary Dismukes <dismukes@adacore.com>
489
490 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
491
492 * checks.adb (Apply_Accessibility_Check): Insert the check on
493 Insert_Node.
494
495 * exp_attr.adb:
496 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
497 to new parameter Insert_Node on call to Apply_Accessibility_Check.
498 Necessary to distinguish the insertion node because the dereferenced
499 formal may come from a rename, but the check must be inserted in
500 front of the attribute.
501
502 * exp_ch4.adb:
503 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
504 call to Apply_Accessibility_Check.
505 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
506 on call to Apply_Accessibility_Check.
507 Minor reformatting
508
5092008-07-31 Javier Miranda <miranda@adacore.com>
510
511 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
512 types when the candidate type is a synchronized type.
513
514 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
515 types, and complete management of synchronized types adding missing
516 code to handle formal that is a synchronized type.
517
518 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
519 are not available and cause the compiler to blowup. Found compiling
520 test with switch -gnatc
521
522 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
523 Has_Correct_Formal_Mode plus code cleanup.
524
e92c92b2
AC
5252008-07-31 Bob Duff <duff@adacore.com>
526
527 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
528 recognized as two end-of-lines, but it should be just one.
529
5302008-07-31 Thomas Quinot <quinot@adacore.com>
531
532 * exp_ch9.adb: Minor reformatting
533
534 * tbuild.ads: Fix several occurrences of incorrectly referring to
535 Name_Find as Find_Name.
536
5372008-07-31 Ed Schonberg <schonberg@adacore.com>
538
539 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
540 and the context is an object declaration with non-static bounds, treat
541 the aggregate as non-static.
542
5432008-07-31 Vincent Celier <celier@adacore.com>
544
545 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
546 Move back spec of Parse_Single_Project to body, as it is not called
547 outside of package Prj.Part.
548 (Project_Data): Remove components Linker_Name, Linker_Path and
549 Minimum_Linker_Options as they are no longer set.
550 Remove function There_Are_Ada_Sources from package Prj and move code
551 in the only place it was used, in Prj.Env.Set_Ada_Paths.
552
ee5d7272
AC
5532008-07-31 Arnaud Charlet <charlet@adacore.com>
554
555 * mlib-utl.ads: Fix typo.
556
5572008-07-31 Robert Dewar <dewar@adacore.com>
558
559 * sem_ch12.adb: Minor reformatting
560
5612008-07-31 Sergey Rybin <rybin@adacore.com>
562
563 * gnat_ugn.texi: Change the description of the
564 Overly_Nested_Control_Structures: now the rule always requires a
565 positive parameter for '+R' option
566
5672008-07-31 Thomas Quinot <quinot@adacore.com>
568
569 * g-pehage.adb: Minor reformatting
570
5712008-07-31 Pascal Obry <obry@adacore.com>
572
573 * s-finimp.ads: Minor reformatting.
574
5752008-07-31 Vincent Celier <celier@adacore.com>
576
577 * s-regexp.ads: Minor comment fix
578
5792008-07-31 Arnaud Charlet <charlet@adacore.com>
580
581 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
582 so that we can compile this file successfully with -gnatc.
583
5842008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
585
586 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
587 of the type when looking for stream subprograms for type String,
588 Wide_String and Wide_Wide_String.
589
590 * s-ststop.adb: Change the initialization expression of constant
591 Use_Block_IO.
592
5932008-07-31 Geert Bosch <bosch@adacore.com>
594
595 * arit64.c:
596 New file implementing __gnat_mulv64 signed integer multiplication with
597 overflow checking
598
599 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
600
601 * gcc-interface/gigi.h:
602 (standard_types): Add ADT_mulv64_decl
603 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
604
605 * gcc-interface/utils.c:
606 (init_gigi_decls): Add initialization of mulv64_decl
607
608 * gcc-interface/trans.c:
609 (build_unary_op_trapv): New function
610 (build_binary_op_trapv): New function
611 (gnat_to_gnu): Use the above functions instead of
612 build_{unary,binary}_op
613
614 * gcc-interface/Makefile.in
615 (LIBGNAT_SRCS): Add arit64.c
616 (LIBGNAT_OBJS): Add arit64.o
617
6182008-07-31 Vincent Celier <celier@adacore.com>
619
620 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
621 Linker'Default_Switches are declared. Warn if they are declared.
622
6232008-07-31 Ed Schonberg <schonberg@adacore.com>
624
625 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
626 Insert_Actions to place the pointer declaration in the code, rather
627 than Insert_Before_And_Analyze, so that insertions of temporaries are
628 kept in the proper order when transient scopes are present.
629
630
b38c3c9e
AC
6312008-07-31 Robert Dewar <dewar@adacore.com>
632
633 * einfo.adb (Spec_PPC): Now defined for generic subprograms
634
635 * einfo.ads (Spec_PPC): Now defined for generic subprograms
636
637 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
638 subprogram case
639
6402008-07-31 Vincent Celier <celier@adacore.com>
641
642 * s-os_lib.adb: Minor comment fix
643
6442008-07-31 Ed Schonberg <schonberg@adacore.com>
645
646 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
647 transfer pre/postconditions from generic copy to original tree, so that
648 they will appear in each instance.
649 (Process_PPCs): Do not transform postconditions into a procedure in a
650 generic context, to prevent double expansion of check pragmas.
651
652 * sem_attr.adb: In an instance, the prefix of the 'result attribute
653 can be the renaming of the
654 current instance, so check validity of the name accordingly.
655
024238a2
AC
6562008-07-31 Robert Dewar <dewar@adacore.com>
657
658 * mlib-utl.ads: Minor reformatting
659
6602008-07-31 Ed Schonberg <schonberg@adacore.com>
661
662 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
663 from context. This attribute must be usable in Ada95 mode.
664 The attribute can appear in the body of a function marked
665 Inline_Always, but in this case the postocondition is not enforced.
666
667 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
668 of an inlined call pre- and postconditions are legal
669
6702008-07-31 Vincent Celier <celier@adacore.com>
671
672 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
673 were for gprmake only
674
6752008-07-31 Robert Dewar <dewar@adacore.com>
676
677 * gnat_ugn.texi: Update -gnatN documentation.
678
679 * gnat_rm.texi: Add note about pre/postcondition
680 pragmas not checked in conjunction with front-end inlining.
681
035b2a77
AC
6822008-07-31 Robert Dewar <dewar@adacore.com>
683
684 * g-pehage.adb, g-pehage.ads: Minor reformatting
685
6862008-07-31 Arnaud Charlet <charlet@adacore.com>
687
688 * mlib-utl.ads, prj-makr.ads: Add comments.
689
636b71b9
AL
6902008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
691
692 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
693 [WINDOWS]: Add s-winext.o.
694
01ddebf2
EB
6952008-07-30 Eric Botcazou <ebotcazou@adacore.com>
696
697 PR ada/36554
698 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
699 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
700 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
701 Set precision to 1 for subtype of BOOLEAN_TYPE.
702 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
703 (make_type_from_size): Deal with BOOLEAN_TYPE.
704 * gcc-interface/misc.c (gnat_print_type): Likewise.
705 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
706 Set boolean_type_node as its translation in the table, as well
707 as boolean_false_node for False and boolean_true_node for True.
708 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
709 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
710 (create_param_decl): Deal with BOOLEAN_TYPE.
711 (build_vms_descriptor): Likewise.
712 (build_vms_descriptor64): Likewise.
713 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
714
2a9cc4de
AC
7152008-07-30 Robert Dewar <dewar@adacore.com>
716
717 * exp_ch9.adb: Minor reformatting
718
719 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
720 if no primitive operation is found.
721
722 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
723
724 * sem_ch8.adb: Minor reformatting
725
7262008-07-30 Laurent Pautet <pautet@adacore.com>
727
728 * g-pehage.adb:
729 Remove a limitation on the length of the words handled by the minimal
730 perfect hash function generator.
731
732 * g-pehage.ads:
733 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
734 Fix some typos.
735
5cc6fa41
AC
7362008-07-30 Robert Dewar <dewar@adacore.com>
737
738 * gnatlink.adb: Minor reformatting
739
7402008-07-30 Thomas Quinot <quinot@adacore.com>
741
742 * rtsfind.adb (Check_RPC): Check version consistency even when not
743 generating RCI stubs. Provide more detailed error message in case of
744 mismatch.
745
7462008-07-30 Ed Schonberg <schonberg@adacore.com>
747
748 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
749 as a actual in an instance, check for a missing attribute to prevent
750 program_error on an illegal program.
751
752 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
753 error if primitive is not found, so that exception can be handled
754 elsewhere on illegal programs.
755
7562008-07-30 Robert Dewar <dewar@adacore.com>
757
758 * uintp.adb (UI_GCD): Fix potential overflow
759
7602008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
761
762 * einfo.adb: Flag245 is now used.
763 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
764 check to include functions.
765 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
766 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
767 include functions.
768 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
769 to the list of displayed flags.
770
771 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
772 Wrapped_Entity. These two flags are now present in functions.
773 New flag Is_Private_Primitive.
774 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
775
776 * exp_ch9.adb:
777 (Build_Wrapper_Bodies): New subprogram.
778 (Build_Wrapper_Body): The spec and body have been moved to in
779 Build_Wrapper_ Bodies. Code cleanup.
780 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
781 Wrappers are now generated for primitives declared between the private
782 and full view of a concurrent type that implements an interface.
783 (Build_Wrapper_Specs): New subprogram.
784 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
785 creation mechanism with a call to Build_Wrapper_Bodies.
786 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
787 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
788 (Expand_N_Task_Body): Replace the wrapper body creation
789 mechanism with a call to Build_Wrapper_Bodies.
790 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
791 creation mechanism with a call to Build_Wrapper_Specs.
792 (Is_Private_Primitive_Subprogram): New subprogram.
793 (Overriding_Possible): Code cleanup.
794 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
795
796 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
797
798 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
799 (Process_Full_View): Build wrapper specs for all primitives
800 that belong to a private view completed by a concurrent type
801 implementing an interface.
802
803 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
804 is a primitive of a
805 concurrent type with a private view that implements an interface, try to
806 find the proper spec.
807 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
808 primitive if the type of its first parameter is a non-generic tagged
809 private type.
810 (Analyze_Subprogram_Specification): Code reformatting.
811 (Disambiguate_Spec): New routine.
812 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
813 (Is_Private_Concurrent_Primitive): New routine.
814
815 * sem_ch6.ads:
816 (Find_Corresponding_Spec): Add a formal to control the output of errors.
817
6ca2b0a0
DR
8182008-07-30 Doug Rupp <rupp@adacore.com>
819
820 * gigi.h (build_vms_descriptor64): New function prototype.
821 (fill_vms_descriptor): Modified function prototype.
822
823 * utils.c (build_vms_descriptor64): New function.
824
825 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
826
827 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
828 argument.
829
830 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
831 64bit and 32bit descriptor and save the 64bit version as an alternate
832 TREE_TYPE in the parameter.
833 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
834 thin pointer.
835
836 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
837
002b2ad6
AC
8382008-07-30 Robert Dewar <dewar@adacore.com>
839
840 * make.adb: Minor reformatting
841
842 * mlib-utl.adb: Minor reformatting
843
844 * osint.ads: Minor reformatting
845
8462008-07-30 Jose Ruiz <ruiz@adacore.com>
847
848 * adaint.c
849 (__gnat_file_exists): Do not use __gnat_stat for RTX.
850 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
851 avoid the use of this symbol from libgcc.a in RTX kernel mode.
852
853 * cio.c
854 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
855 the function RtPrintf for console output.
856
857 * argv.c Do not use the environ variable for RTX.
858
859 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
860 been moved before the call to Osint.Add_Default_Search_Dirs in order
861 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
862 from the appropriate run time.
863
864 * targparm.ads
865 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
866 target is a RTSS module for RTX.
867
868 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
869 RTX_RTSS_Kernel_Module
870 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
871
872 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
873 exception handling mechanism for Windows and RTX in Win32 mode, but
874 not for RTX in kernel mode (RTSS).
875 (LIBGNAT_SRCS): Remove ada.h
876
00afcaa0
PB
8772008-07-30 Paolo Bonzini <bonzini@gnu.org>
878
879 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
880 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
881 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
882 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
883 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
884 ALL_ADA_CFLAGS): Remove.
885 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
886 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
887 (GCC_CFLAGS): Remove X_CFLAGS.
888 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
889 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
890 (ADA_CFLAGS): Substitute.
891
a7dafa20
LG
8922008-07-30 Laurent Guerby <laurent@guerby.net>
893
894 PR ada/5911
895 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
896 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
897 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
898 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
899 by stamp-gnatlib2-rts.
900
70b1e376
RW
9012008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
902
903 PR documentation/15479
904 * gnat-style.texi: Remove AdaCore copyright statement and GPL
905 statement for GNAT. Add @copying stanza, use it. Update to
906 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
907 title as Front-Cover Text.
908 * gnat_rm.texi: Likewise.
909 * gnat_ugn.texi: Likewise.
910
343eba42
JH
9112008-07-29 Jan Hubicka <jh@suse.cz>
912
913 * trans.c (process_inlined_subprograms): Remove tree_really_inline
914 check.
915
ebf5ba04
AC
9162008-07-29 Arnaud Charlet <charlet@adacore.com>
917
918 * gcc-interface: New directory.
919
920 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
921 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
922 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
923 to gcc-interface subdirectory.
924
46897370
AL
9252008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
926
927 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
928
e90acd93
JH
9292008-07-28 Jan Hubicka <jh@suse.cz>
930
931 * misc.c (gnat_post_options): Do not set flag_no_inline.
932
726a989a
RB
9332008-07-28 Richard Guenther <rguenther@suse.de>
934
935 Merge from gimple-tuples-branch.
936
937 2008-07-22 Olivier Hainque <hainque@adacore.com>
938
939 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
940 this is called for an elab proc to be discarded if empty.
941 * utils.c (end_subprog_body): Honor ELAB_P.
942 (build_function_stub): Adjust call to end_subprog_body.
943 * trans.c (Subprogram_Body_to_gnu): Likewise.
944 (gigi): Reorganize processing of elab procs to prevent
945 gimplifying twice, using the new end_subprog_body argument.
946
947 2008-07-19 Richard Guenther <rguenther@suse.de>
948
949 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
950 (utils.o): Likewise.
951 * trans.c: Include tree-iterator.h.
952 (gnat_gimplify_expr): Adjust prototype. Fix typo.
953 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
954 (set_expr_location_from_node): Likewise.
955 (gigi): Tuplify.
956 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
957 of GENERIC_NEXT.
958 * utils.c: Include tree-iterator.h.
959 * gigi.h (gnat_gimplify_expr): Adjust prototype.
960
961 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
962
963 * trans.c: Include gimple.h instead of tree-gimple.h.
964 * utils.c: Same.
965
966 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
967
968 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
969
8ae3959e 9702008-07-25 Jan Hubicka <jh@suse.cz>
7e8b322a 971
8ae3959e
EB
972 * utils.c (end_subprog_body): Remove inline trees check.
973 * misc.c (gnat_post_options): Do not set flag_inline_trees.
7e8b322a 974
4a7bb85b
RO
9752008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
976
977 * raise-gcc.c: Move tsystem.h before tm.h.
978
ec45d105
AC
9792008-07-20 Arnaud Charlet <charlet@adacore.com>
980
981 * gnathtml.pl: New file.
982
95331614 9832008-07-19 Olivier Hainque <hainque@adacore.com>
8ae3959e 984
95331614
OH
985 * targtyps.c (get_target_default_allocator_alignment): Use
986 MALLOC_ABI_ALIGNMENT.
987
dd7ac716
OH
9882008-07-17 Olivier Hainque <hainque@adacore.com>
989
990 * adaint.c (__MINGW32__ section): Include ctype.h and define
991 a fallback ISALPHA if IN_RTS.
992 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
993
a7a46bb2
OH
9942008-07-17 Olivier Hainque <hainque@adacore.com>
995
996 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
997 argument, to apply to references in addition to definitions. Prevent
998 setting TREE_STATIC on externals.
999 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
1000
66bfd481
RW
10012008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1002
1003 PR documentation/15479
1004 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
1005 Replace backets around optional parameters with @ovar
1006 where possible, use @r{[}, @r{]} otherwise.
1007 Replace some @r, @i, and @emph with @var where appropriate.
1008
7a803dd8
EB
10092008-07-02 Eric Botcazou <ebotcazou@adacore.com>
1010
1011 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
1012
7d71283c
KG
10132008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1014
1015 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
1016 -Wc++-compat warnings.
1017 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
1018 __gnat_locate_exec_on_path): Likewise.
1019 * decl.c (annotate_value): Likewise.
1020 * misc.c (gnat_handle_option): Likewise.
1021 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
1022 post_error_ne_tree): Likewise.
1023
d9338c67
EB
10242008-06-27 Eric Botcazou <ebotcazou@adacore.com>
1025
1026 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
1027 version of its type, attempt to first convert its elements.
1028
b4b010ad
CP
10292008-06-26 Chris Proctor <chrisp_42@bigpond.com>
1030
1031 * Makefile.in: Fix *86 kfreebsd target specific pairs.
1032
0ee61065
ST
10332008-06-25 Samuel Tardieu <sam@rfc1149.net>
1034
1035 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
1036
324ed5a6
EB
10372008-06-24 Eric Botcazou <ebotcazou@adacore.com>
1038
1039 * utils2.c (known_alignment): Derive the alignment from pointed-to
1040 types only if it is otherwise unknown.
1041 <INTEGER_CST>: Tidy.
1042 <MULT_EXPR>: Likewise.
1043 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
1044 that of the base.
1045
2d31e498
JDA
10462008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1047
1048 PR ada/36573
1049 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
1050
6ccde948
RW
10512008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1052
1053 * gnat_rm.texi (Implementation Defined Characteristics)
1054 (Standard Library Routines): Use @smallexample for indented
1055 text. Drop Indentation outside examples.
1056 * gnat_ugn.texi: Likewise.
1057
d8612af2
OH
10582008-06-13 Olivier Hainque <hainque@adacore.com>
1059
1060 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
1061 if undefined.
1062 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
1063 realignment with force_align_arg_pointer attribute on foreign
1064 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1065
ca789c7f
OH
10662008-06-13 Olivier Hainque <hainque@adacore.com>
1067
1068 * utils.c (rest_of_record_type_compilation): When computing
1069 encodings for the components of a variable size type, early
1070 strip conversions on the current position expression to make
1071 sure it's shape is visible. Use remove_conversions for this
1072 purpose.
1073
1dd4a3e6
EB
10742008-06-12 Eric Botcazou <ebotcazou@adacore.com>
1075
1076 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
1077 constrained subtype of a discriminated type, discard the fields that
1078 are beyond its limits according to its size.
1079
12ae9b26
OH
10802008-06-10 Olivier Hainque <hainque@adacore.com>
1081
1082 * utils.c (create_subprog_decl): If this is for the 'main' entry
1083 point according to the asm name, redirect main_identifier_node.
1084
912cb442
EB
10852008-06-09 Eric Botcazou <ebotcazou@adacore.com>
1086
1087 * decl.c (components_to_record): Adjust the packedness for the
1088 qualified union as well.
1089
4a598c32
AC
10902008-06-09 Arnaud Charlet <charlet@adacore.com>
1091
1092 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
1093 checks non fatal.
1094
4b92fd3c
ST
10952008-06-07 Samuel Tardieu <sam@rfc1149.net>
1096
1097 * sem_res.adb (Large_Storage_Type): A type is large if it
1098 requires as many bits as Positive to store its values and its
1099 bounds are known at compile time.
1100 * sem_ch13.adb (Minimum_Size): Note that this function returns
1101 0 if the size is not known at compile time.
1102
968c8001
OH
11032008-06-06 Nicolas Setton <setton@adacore.com>
1104 Olivier Hainque <hainque@adacore.com>
1105
1106 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
1107 attribute, parallel descriptive type attached to another
1108 type for debug info generation purposes.
1109 * utils.c (add_parallel_type): New function, register
1110 parallel type to be attached to a type.
1111 (get_parallel_type): New function, fetch a registered
1112 parallel type, if any.
1113 (rest_of_record_type_compilation): Register the parallel
1114 type we make for variable size records.
1115 * gigi.h (add_parallel_type, get_parallel_type): Declare.
1116 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
1117 parallel debug types we make.
1118 * trans.c (extract_encoding, decode_name): New functions.
1119 (gigi): If the DWARF attribute extensions are available, setup
1120 to use them.
1121 * lang.opt: Register language specific processing request
1122 for -gdwarf+.
1123 * misc.c (gnat_dwarf_extensions): New global variable. How much
1124 do we want of our DWARF extensions. 0 by default.
1125 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
1126 (gnat_post_options): Map gnat_dwarf_extensions to the
1127 commonuse_gnu_debug_info_extensions for later processing.
1128
b30199b8
ST
11292008-06-04 Samuel Tardieu <sam@rfc1149.net>
1130
1131 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
1132
30783513
RW
11332008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1134
1135 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
1136 * gnat_ugn.texi (Style Checking)
1137 (Adding the Results of Compiler Checks to gnatcheck Output)
1138 (Example of Binder Output File): Fix typos.
1139 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
1140 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
1141 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
1142 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
1143 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
1144 sinfo.ads, utils.c: Fix typos in comments.
1145 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
1146
fb8368fd
AC
11472008-05-29 Thomas Quinot <quinot@adacore.com>
1148
1149 * sem_eval.adb: Minor reformatting
1150
11512008-05-29 Ed Schonberg <schonberg@adacore.com>
1152
1153 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
1154 is abstract, do not apply abstractness check on subprogram if this is
1155 a renaming declaration.
1156
11572008-05-29 Arnaud Charlet <charlet@adacore.com>
1158
1159 PR ada/864
1160 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
1161 allow recognition of program suffix in addition to prefix.
1162
1163 * gnatchop.adb (Locate_Executable): Add support for prefix.
1164
1165 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
1166 mlib-utl.adb: Adjust calls to Program_Name.
1167
fff3f472
AC
11682008-05-29 Robert Dewar <dewar@adacore.com>
1169
1170 * sem_ch3.adb: Minor reformatting
1171 * sem_prag.adb: Minor reformatting
1172 * sem_res.adb: Minor reformatting
1173 * sinput-p.ads: Minor reformatting
1174
11752008-05-29 Javier Miranda <miranda@adacore.com>
1176
1177 * sem_util.adb:
1178 (Abstract_Interface_List): Add missing support for full type-declaration
1179 associated with synchronized types.
1180
11812008-05-29 Robert Dewar <dewar@adacore.com>
1182
1183 * sem_eval.adb (Is_Same_Value): Take care of several more cases
1184
acca98c0
AC
11852008-05-28 Ed Schonberg <schonberg@adacore.com>
1186
1187 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
1188 access type, wrap the expression in a conversion to force an
1189 accessibility check.
1190
1191 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
1192 accessibility checks even when expansion is disabled in order to
1193 generate messages in the presence of previous errors or in
1194 semantics-only mode.
1195
11962008-05-28 Eric Botcazou <ebotcazou@adacore.com>
1197
1198 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
1199 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
1200
12012008-05-28 Vincent Celier <celier@adacore.com>
1202
1203 PR ada/34446
1204 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
1205 preprocessing expressions
1206
12072008-05-28 Vincent Celier <celier@adacore.com>
1208
1209 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
1210 for preprocessing
1211
1212 * sinput-p.ads: Minor comment update and reformatting
1213
12142008-05-28 Ed Schonberg <schonberg@adacore.com>
1215
1216 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
1217 type has a deeper level than any master only when it is the type of an
1218 access parameter.
1219
8250171b
AC
12202008-05-28 Javier Miranda <miranda@adacore.com>
1221
1222 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
1223
12242008-05-28 Javier Miranda <miranda@adacore.com>
1225
1226 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
1227 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
1228 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
1229 Add code that was previously located in
1230 Find_Overridden_Synchronized_Primitive because it is only used here.
1231
12322008-05-28 Sergey Rybin <rybin@adacore.com>
1233
1234 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
1235 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
1236
00ea9517
RD
12372008-05-28 Robert Dewar <dewar@adacore.com>
1238
1239 * restrict.ads:
1240 Add missing restrictions, and properly label all GNAT defined ones
1241
1242 * rtsfind.ads:
1243 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
1244 Add entry for Ada.Task_Termination.Set_Specific_Handler
1245 Add entry for Ada.Task_Termination.Specific_Handler
1246
1247 * s-rident.ads:
1248 Add missing restrictions and properly mark all gnat defined ones
1249
1250 * sem_ch3.adb:
1251 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
1252
1253 * sem_res.adb:
1254 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1255
1256 * gnat_rm.texi: Add missing restrictions, and properly label all
1257 GNAT defined ones
1258
12592008-05-28 Robert Dewar <dewar@adacore.com>
1260
1261 * restrict.adb:
1262 (Check_Restriction): violation of restriction No_Finalization is
1263 treated as a serious error to stop expansion
1264
12652008-05-28 Robert Dewar <dewar@adacore.com>
1266
1267 * exp_util.adb: Minor reformatting
1268 * exp_util.ads: Minor reformatting.
1269
0b795892
AC
12702008-05-28 Arnaud Charlet <charlet@adacore.com>
1271
1272 * Make-lang.in: Remove gprmake.
1273
1274 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
1275
5840819a
AC
12762008-05-28 Ed Schonberg <schonberg@adacore.com>
1277
1278 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
1279 improper progenitor names, and avoid cascaded errors.
1280
12812008-05-28 Robert Dewar <dewar@adacore.com>
1282
1283 * gnat_rm.texi: Add note on Old giving warning when applied to constant
1284
1285 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
1286 a constant
1287
12882008-05-28 Robert Dewar <dewar@adacore.com>
1289
1290 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
1291 size
1292
12932008-05-28 Robert Dewar <dewar@adacore.com>
1294
1295 * exp_ch5.adb:
1296 (Expand_Simple_Function_Return): Copy unaligned result into temporary
1297
8c3dd7a8
JM
12982008-05-28 Javier Miranda <miranda@adacore.com>
1299
1300 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
1301 for user-defined predefined primitives.
1302
1303 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
1304 (Find_Overridden_Synchronized_Primitive): Ditto.
1305
1306 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
1307
35b80405
AC
13082008-05-27 Arnaud Charlet <charlet@adacore.com>
1309
1310 * a-ststio.adb, s-direio.adb:
1311 Further code clean up of previous change.
1312 Update comments.
1313
13142008-05-27 Vincent Celier <celier@adacore.com>
1315
1316 * prj-nmsc.adb: Minor reformatting
1317
13182008-05-27 Bob Duff <duff@adacore.com>
1319
1320 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
1321 untagged private type with a tagged full type, where the full type has
1322 a self reference, create the corresponding class-wide type early, in
1323 case the self reference is "access T'Class".
1324
13252008-05-27 Ed Schonberg <schonberg@adacore.com>
1326
1327 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
1328 tasks and context is an object declaration. create master entity before
1329 expansion.
1330
13312008-05-27 Robert Dewar <dewar@adacore.com>
1332
1333 * mlib-prj.adb: Minor reformatting
1334
1335 * prj-part.adb: Minor reformatting
1336
1337 * prj.ads: Minor reformatting
1338
1339 * exp_ch3.adb: Minor reformatting.
1340
1341 * sem_ch3.ads: Minor reformatting
1342
1343 * sem_eval.adb: Minor reformatting
1344
d5c998a9
AC
13452008-05-27 Vincent Celier <celier@adacore.com>
1346
1347 * gnatcmd.adb:
1348 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
1349
13502008-05-27 Ed Schonberg <schonberg@adacore.com>
1351
1352 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
1353 tasks, create an activation chain now, before the expansion into
1354 assignments and build-in-place calls that require the presence of an
1355 activation chain.
1356 (Backend_Processing_Possible): If the component type is inherently
1357 limited, the aggregate must be expanded into individual built-in-place
1358 assignments.
1359
1360 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
1361 determine whether an allocation extra parameter must be built, to
1362 handle case of a private type whose full type is a discriminated type
1363 with defaults.
1364
13652008-05-27 Bob Duff <duff@adacore.com>
1366
1367 * gnat_rm.texi:
1368 Document the new behavior regarding trampolines.
1369
13702008-05-27 Arnaud Charlet <charlet@adacore.com>
1371
1372 * a-direio.adb, a-sequio.adb: Replace address clause by
1373 unrestricted_access, simpler and compatible with .NET.
1374
13752008-05-27 Vincent Celier <celier@adacore.com>
1376
1377 * prj-part.adb:
1378 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
1379 a project file, so that symbolic links are not resolved.
1380
13812008-05-27 Arnaud Charlet <charlet@adacore.com>
1382
1383 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
1384 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
1385 portable across GNAT targets, since this kind of address clause is not
1386 supported by VM back-ends (.NET/JGNAT).
1387
79d2a727
AC
13882008-05-27 Arnaud Charlet <charlet@adacore.com>
1389
1390 * bindgen.adb: Update comments.
1391
1392 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
1393
13942008-05-27 Vincent Celier <celier@adacore.com>
1395
1396 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
1397 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
1398 mlib-tgt.adb, prj-env.adb, prj-env.ads:
1399 (Path_Information): New record type
1400 Use component of type Path_Information when there are two paths, one in
1401 canonical format and one in display format.
1402 Update the project manager to these new components.
1403
0f99f391
AC
14042008-05-27 Robert Dewar <dewar@adacore.com>
1405
1406 * makeutl.adb: Minor reformatting
1407 * prj-nmsc.adb: Minor reformatting
1408 * s-stausa.adb: Minor reformatting
1409 * s-stausa.ads: Minor reformatting
1410 * sem_ch6.adb: Minor reformatting
1411
14122008-05-27 Thomas Quinot <quinot@adacore.com>
1413
1414 * sem_res.adb: Minor comment fixes
1415
d18af35f
AC
14162008-05-27 Thomas Quinot <quinot@adacore.com>
1417
1418 * makeutl.adb: Minor code reorganization
1419
1420 * exp_aggr.adb: Add ??? comment
1421 Fix typo
1422
1423 * exp_ch6.adb: Minor reformatting
1424
14252008-05-27 Quentin Ochem <ochem@adacore.com>
1426
1427 * s-stausa.adb (Initialize): Updated result initialization, and
1428 initialization of environment stack.
1429 (Fill_Stack): Improved computation of the pattern zone, taking into
1430 account already filled at the calling point.
1431 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
1432 Measure and Overflow_Guard.
1433 (Report_Result): Fixed computation of the result using new fields of
1434 Stack_Analyzer.
1435
1436 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
1437 params by more explicit Stack_Size / Max_Pattern_Size params.
1438 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
1439 Added Stack_Used_When_Filling field.
1440 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
1441 Min_Measure and Max_Measure fields.
1442
1443 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
1444
14452008-05-27 Vincent Celier <celier@adacore.com>
1446
1447 * prj-nmsc.adb:
1448 (Check_File): Make sure that a unit that replaces the same unit in a
1449 project being extended is properly processed.
1450
14512008-05-27 Ed Schonberg <schonberg@adacore.com>
1452
1453 * sem_ch3.adb:
1454 (Get_Discr_Value): Remove obsolete code that failed to find the value
1455 of a discriminant for an inherited task component appearing in a type
1456 extension.
1457
14582008-05-27 Thomas Quinot <quinot@adacore.com>
1459
1460 (System.File_IO.{Close, Delete, Reset}):
1461 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
1462
1463 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
1464 Pass File parameter by reference.
1465
aeff280b
AC
14662008-05-27 Vincent Celier <celier@adacore.com>
1467
1468 * prj-nmsc.adb:
1469 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
1470 sources of the same project that have the same object file name.
1471 (Find_Explicit_Sources): Always remove a source exception that was not
1472 found.
1473
14742008-05-27 Thomas Quinot <quinot@adacore.com>
1475
1476 * sem_ch3.adb: Minor reformatting
1477
14782008-05-27 Ed Schonberg <schonberg@adacore.com>
1479
1480 * sem_ch6.adb:
1481 (Is_Interface_Conformant): Handle properly a primitive operation that
1482 overrides an interface function with a controlling access result.
1483 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
1484 inherited and overriding operations, omit as well the conformance check
1485 on result types, to prevent spurious errors.
1486
14872008-05-27 Vincent Celier <celier@adacore.com>
1488
1489 * makeutl.ads, makeutl.adb:
1490 (Set_Location): New procedure
1491 (Get_Location): New function
1492 (Update_Main): New procedure
1493
7bf402c1
AC
14942008-05-27 Vincent Celier <celier@adacore.com>
1495
1496 * prj-nmsc.adb:
1497 (Check_Library): Allow standard project to be extended as a static
1498 library project.
1499 (Get_Mains): Do not inherit attribute Main in an extending library
1500 project.
1501
15022008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1503
1504 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
1505 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
1506 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
1507 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
1508 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
1509 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
1510 * system-mingw.ads (Always_Compatible_Rep): Likewise.
1511 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
1512 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
1513 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
1514
52268145
AC
15152008-05-27 Ed Schonberg <schonberg@adacore.com>
1516
1517 * sem_attr.adb: add guard to previous patch.
1518
15192008-05-27 Ed Schonberg <schonberg@adacore.com>
1520
1521 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
1522 a synchronized tagged type, do not attempt to build dispatch table for
1523 full view. The table is built for the corresponding record type, which
1524 has its own declaration.
1525
15262008-05-27 Gary Dismukes <dismukes@adacore.com>
1527
1528 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
1529 to the known type entity E, rather than setting it to Any_Type. Fixes
1530 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
1531 for objects whose type had an illegal constraint.
1532
15332008-05-27 Vincent Celier <celier@adacore.com>
1534
1535 * gnat_ugn.texi:
1536 Add succinct documentation for attribute Excluded_Source_List_File
1537
15382008-05-27 Vincent Celier <celier@adacore.com>
1539
1540 * prj-attr.adb: Add new project level attribute Map_File_Option
1541
1542 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
1543
1544 * prj.ads: Minor reformatting and comment update
1545 (Project_Configuration): New component Map_File_Option
1546
1547 * snames.adb: New standard name Map_File_Option
1548
1549 * snames.ads: New standard name Map_File_Option
1550
15512008-05-27 Vincent Celier <celier@adacore.com>
1552
1553 * xsnames.adb: Remove unused variable Oname
1554
15552008-05-27 Doug Rupp <rupp@adacore.com>
1556
1557 * exp_ch6.adb:
1558 (Expand_N_Function_Call): Fix comments. Minor reformatting.
1559
1560 * exp_vfpt.ads:
1561 (Expand_Vax_Foreign_Return): Fix comments.
1562
15632008-05-27 Thomas Quinot <quinot@adacore.com>
1564
1565 * exp_dist.adb: Minor reformating
1566
094d7cfa
AC
15672008-05-26 Gary Dismukes <dismukes@adacore.com>
1568
1569 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
1570 No_Default_Initialization, which is now delayed until the freeze point
1571 of the object. Add a comment about deferral of the check.
1572
1573 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
1574 on objects is moved here.
1575
15762008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1577
1578 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
1579 (Compare_Array_S16): Adjust for above change.
1580 * s-casi32.adb (Uword): Likewise.
1581 (Compare_Array_S32): Likewise.
1582 * s-casi64.adb (Uword): Likewise.
1583 (Compare_Array_S64): Likewise.
1584 * s-caun16.adb (Uhalf): Likewise.
1585 (Compare_Array_U16): Likewise.
1586 * s-caun32.adb (Uword): Likewise.
1587 (Compare_Array_U32): Likewise.
1588 * s-caun64.adb (Uword): Likewise.
1589 (Compare_Array_U64): Likewise.
1590
15912008-05-26 Robert Dewar <dewar@adacore.com>
1592
1593 * exp_ch6.adb: Add ??? comment for previous change
1594
1595 * exp_vfpt.adb: Minor reformatting
1596
1597 * exp_vfpt.ads: Add ??? comment for last change
1598
1599 * sem_attr.adb: Add some ??? comments for previous change
1600
1601 * s-vaflop.ads: Add comments for previous change
1602
16032008-05-26 Doug Rupp <rupp@adacore.com>
1604
1605 * s-vaflop-vms-alpha.adb:
1606 Remove System.IO use clause, to prevent spurious ambiguities when
1607 package is access through rtsfind.
1608
16092008-05-26 Sergey Rybin <rybin@adacore.com>
1610
1611 * tree_io.ads (ASIS_Version_Number): Update because of the changes
1612 made in front-end
1613
9019f3fc
AC
16142008-05-26 Ed Schonberg <schonberg@adacore.com>
1615
1616 * sem_attr.adb:
1617 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
1618 converted to S (A)'address only if A .. B is known to be a non-null
1619 range.
1620
16212008-05-26 Doug Rupp <rupp@adacore.com>
1622
1623 * s-vaflop.adb:
1624 (Return_D, Return_F, Return_G): New functions.
1625
1626 * s-vaflop.ads:
1627 (Return_D, Return_F, Return_G): New functions.
1628
1629 * exp_vfpt.adb:
1630 (Expand_Vax_Foreign_Return): New procedure
1631
1632 * exp_vfpt.ads:
1633 (Expand_Vax_Foreign_Return): New procedure
1634
1635 * rtsfind.ads:
1636 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
1637 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
1638
1639 * exp_ch6.adb:
1640 Import Exp_Vfpt
1641 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
1642
1643 * s-vaflop-vms-alpha.adb:
1644 (Return_D, Return_F, Return_G): New functions.
1645
16462008-05-26 Gary Dismukes <dismukes@adacore.com>
1647
1648 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
1649 init proc entity when there is actual default initialization associated
1650 with the component type, to avoid spurious errors on objects of scalar
1651 array types that are marked Is_Public when No_Default_Initialization
1652 applies.
1653
d693e39d
TQ
16542008-05-26 Thomas Quinot <quinot@adacore.com>
1655
1656 * rtsfind.ads, rtsfind.adb:
1657 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
1658 (Check_RPC): Support per-PCS-kind API versioning.
1659
1660 exp_dist.ads, exp_dist.adb:
1661 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
1662 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
1663 library function Get_RACW.
1664 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
1665 library function Get_Reference.
1666 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
1667 through an intermediate Any.
1668 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
1669 going through an intermediate Any.
1670
1671 * sem_dist.adb: Minor reformatting.
1672
ad89bc8d
AC
16732008-05-26 Javier Miranda <miranda@adacore.com>
1674
1675 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
1676 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1677 (Is_Internal): Adding documentation on internal entities that have
1678 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
1679
1680 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
1681 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
1682 Added assertion to force entities with this attribute to have
1683 attribute Is_Internal set to True.
1684 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
1685
1686 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
1687 renamed as Derive_Progenitor_Subprograms. In addition, its code is
1688 a new implementation.
1689 (Add_Interface_Tag_Components): Remove special management of
1690 synchronized interfaces.
1691 (Analyze_Interface_Declaration): Minor reformating
1692 (Build_Derived_Record_Type): Minor reformating
1693 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
1694 predefined primitive inherited from interface type because the body of
1695 internally generated predefined primitives of tagged types are generated
1696 later by Freeze_Type
1697 (Derive_Subprogram): Avoid generating an internal name if the parent
1698 subprogram overrides an interface primitive.
1699 (Derive_Subprograms): New implementation that keeps separate the
1700 management of tagged types not implementing interfaces, from tagged
1701 types that implement interfaces.
1702 (Is_Progenitor): New implementation.
1703 (Process_Full_View): Add documentation
1704 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
1705 by call to Derive_Progenitor_Subprograms.
1706
1707 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
1708 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1709 Skip_Controlling_Formals.
1710
1711 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
1712 (Check_Conventions): New implementation. Remove local subprogram
1713 Skip_Check. Remove formal Search_From of routine Check_Convention.
1714 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
1715 Skip_Controlling_Formals.
1716 (New_Overloaded_Entity): Enable addition of predefined dispatching
1717 operations.
1718
1719 * sem_disp.ads
1720 (Find_Primitive_Covering_Interface): New subprogram.
1721
1722 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
1723 the task body procedure as a primitive of the corresponding tagged
1724 type.
1725 (Check_Operation_From_Private_Type): Avoid adding twice an entity
1726 to the list of primitives.
1727 (Find_Primitive_Covering_Interface): New subprogram.
1728 (Override_Dispatching_Operation): Add documentation.
1729
1730 * sem_type.adb (Covers): Minor reformatings
1731
1732 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
1733 Collect_Interfaces.
1734 Rename formal.
1735 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
1736 (Implements_Interface): New subprogram.
1737 (Is_Parent): Removed.
1738 (Primitive_Names_Match): New subprogram.
1739 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1740 (Ultimate_Alias): New subprogram.
1741
1742 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
1743 Collect_Interfaces.
1744 Remove special management for synchronized types. Rename formal. Remove
1745 internal subprograms Interface_Present_In_Parent and Add_Interface.
1746 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
1747 on non-record types by code to return false in such case.
1748 (Implements_Interface): New subprogram.
1749 (Is_Parent): Removed. No special management is now required for
1750 synchronized types covering interfaces.
1751 (Primitive_Names_Match): New subprogram.
1752 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
1753 (Ultimate_Alias): New subprogram.
1754
1755 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
1756 Add internal entities associated with secondary dispatch tables to
1757 the list of tagged type primitives that are not interfaces.
1758 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
1759 (Make_Predefined_Primitive_Specs): Code reorganization to improve
1760 the management of predefined equality operator. In addition, if
1761 the type has an equality function corresponding with a primitive
1762 defined in an interface type, the inherited equality is abstract
1763 as well, and no body can be created for it.
1764
1765 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
1766 exp_util to exp_disp.
1767 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
1768 an entity corresponds with one of the predefined primitives required
1769 to implement interfaces.
1770 Update copyright notice.
1771
1772 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
1773 final check on abstract subprograms all the primitives associated with
1774 interface primitives because they must be visible in the public and
1775 private part.
1776 (Write_DT): Use Find_Dispatching_Type to locate the name of the
1777 interface type. This allows the use of this routine, for debugging
1778 purposes, when the tagged type is not fully decorated.
1779 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
1780 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
1781 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
1782 entity corresponds with one of the predefined primitives required to
1783 implement interfaces.
1784
1785 * exp_util.adb (Find_Interface_ADT): New implementation
1786 (Find_Interface): Removed.
1787
1788 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
1789 list of interfaces associated with nodes
1790 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
1791
17922008-05-26 Thomas Quinot <quinot@adacore.com>
1793
1794 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
1795 condition for assignment to temporary.
1796
c878b2ef
AC
17972008-05-26 Ed Schonberg <schonberg@adacore.com>
1798
1799 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
1800 checks on the upper bound if the index type is a modular type, to
1801 prevent wrap-around computations when size is close to upper bound of
1802 type.
1803
18042008-05-26 Robert Dewar <dewar@adacore.com>
1805
1806 * sem_ch3.adb: Minor reformatting
1807
39281edf
AC
18082008-05-26 Ed Schonberg <schonberg@adacore.com>
1809
1810 * sem_ch12.adb (Remove_Parent): Use specification of instance
1811 to retrieve generic parent,
1812 to handle properly the case where the instance is a child unit.
1813 Add guard to handle properly wrapper packages.
1814 Minor reformatting
1815
18162008-05-26 Thomas Quinot <quinot@adacore.com>
1817
1818 * sinfo.ads: Minor reformatting
1819
18202008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1821
1822 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
1823 Generate a tag check when the result subtype of a function, defined by
1824 an access definition, designates a specific tagged type.
1825 (Make_Tag_Check): New routine.
1826
d6ca724c
AC
18272008-05-26 Arnaud Charlet <charlet@adacore.com>
1828
1829 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
1830
c654b659
EB
18312008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
1834 (builtin_decl_for): Likewise.
1835 * trans.c (gigi): Likewise.
1836 * utils.c (def_builtin_1): Fix formatting.
1837
1c331d2d
AC
18382008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
1839
1840 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
1841 Create the statements which map a string name to protected or task
1842 entry indix.
1843
1844 * exp_ch9.adb: Add with and use clause for Stringt.
1845 Minor code reformatting.
1846 (Build_Entry_Names): New routine.
1847 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
1848 for flag Build_Entry_Names which controls the allocation of the data
1849 structure for the string names of entries.
1850
1851 * exp_ch9.ads (Build_Entry_Names): New subprogram.
1852
1853 * exp_util.adb (Entry_Names_OK): New function.
1854
1855 * exp_util.ads (Entry_Names_OK): New function.
1856
1857 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
1858 enumerations RE_Id and RE_Unit_Table.
1859
1860 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
1861 (Free_Entry_Names_Array): New routine.
1862
1863 * s-taskin.ads: Comment reformatting.
1864 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
1865 Add component Entry_Names to record Ada_Task_Control_Block.
1866 (Free_Entry_Names_Array): New routine.
1867
1868 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
1869 dynamically allocate an array
1870 of string pointers. This structure holds string entry names.
1871 (Free_Entry_Names): New routine.
1872 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
1873 (Set_Entry_Names): New routine.
1874
1875 * s-tassta.ads:
1876 (Create_Task): Add formal Build_Entry_Names. The flag is used to
1877 control the allocation of the data structure which stores entry names.
1878 (Set_Entry_Name): New routine.
1879
1880 * s-tpoben.adb:
1881 Add with and use clause for Ada.Unchecked_Conversion.
1882 (Finalize): Deallocate the entry names array.
1883 (Free_Entry_Names): New routine.
1884 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
1885 create an array of string pointers to hold the entry names.
1886 (Set_Entry_Name): New routine.
1887
1888 * s-tpoben.ads:
1889 Add field Entry_Names to record Protection_Entries.
1890 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
1891 (Set_Entry_Name): New routine.
1892
18932008-05-26 Vincent Celier <celier@adacore.com>
1894
1895 * prj-nmsc.adb:
1896 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
1897
1898 * prj.ads:
1899 (Project_Configuration): New component Shared_Lib_Driver
1900
19012008-05-26 Ed Schonberg <schonberg@adacore.com>
1902
1903 * inline.adb:
1904 (Cleanup_Scopes): For a protected operation, transfer finalization list
1905 to protected body subprogram, to force cleanup actions when needed.
1906
19072008-05-26 Robert Dewar <dewar@adacore.com>
1908
1909 * sem_cat.adb: Minor reformatting
1910
1911 * gnatname.adb: Minor reformatting
1912
1913 * osint.ads: Minor reformatting
1914
1915 * s-carun8.ads: Minor reformatting
1916
1917 * g-heasor.ads: Minor comment fix (unit is now pure)
1918
19192008-05-26 Robert Dewar <dewar@adacore.com>
1920
1921 * exp_ch2.adb:
1922 (Expand_Current_Value): Properly type generated integer literal
1923
19242008-05-26 Sergey Rybin <rybin@adacore.com>
1925
1926 * gnat_ugn.texi: Add description for the new gnatcheck rule -
1927 Separate_Numeric_Error_Handlers.
1928
19292008-05-26 Pascal Obry <obry@adacore.com>
1930
1931 * sem_aggr.adb: Minor reformatting.
1932
19332008-05-26 Jose Ruiz <ruiz@adacore.com>
1934
1935 * s-osinte-aix.adb:
1936 (To_Target_Priority): Setting the time slice value to 0 or greater sets
1937 the scheduling policy to FIFO within priorities or round-robin
1938 respectively.
1939 Hence, the priority must be set in this case to the one selected by the
1940 user.
1941
19422008-05-26 Ed Schonberg <schonberg@adacore.com>
1943
1944 * sem_ch12.adb:
1945 (Remove_Parent): If the enclosing scope is an instance whose generic
1946 parent is declared within some parent scope of the just completed
1947 instance, make full views of the entities in that parent visible, when
1948 applicable.
1949
a28e8f45
KT
19502008-05-26 Kai Tietz <kai.tietz@onevision.com>
1951
1952 * mingw32.h (STD_MINGW): Set to true for target w64.
1953
3651f7ad
EB
19542008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1955
1956 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
1957 instead of TREE_STATIC on the ADDR_EXPR.
1958
58272d79
EB
19592008-05-24 Eric Botcazou <ebotcazou@adacore.com>
1960
1961 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
1962 (Sloc_to_locus): Do not overwrite known GCC locations when translating
1963 GNAT standard locations.
1964
4c8125f4
EB
19652008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1966
1967 * gigi.h (mark_visited): Declare.
1968 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
1969 only the topmost node of expressions.
b86c6d94 1970 (elaborate_expression_1): Look deeper for read-only variables.
4c8125f4
EB
1971 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
1972 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
1973 (mark_visited_r): New function.
1974
d1ba4e42
AC
19752008-05-23 Vincent Celier <celier@adacore.com>
1976
b86c6d94 1977 * snames.adb: New standard name Excluded_Source_List_File.
d1ba4e42 1978
b86c6d94 1979 * snames.ads: New standard name Excluded_Source_List_File.
d1ba4e42 1980
b86c6d94 1981 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
d1ba4e42 1982
b86c6d94 1983 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
d1ba4e42
AC
1984 Get excluded sources from
1985 file indicated by attribute Excluded_Source_List_File, when present and
1986 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
1987
19882008-05-23 Robert Dewar <dewar@adacore.com>
1989
1990 * exp_dist.adb: Minor reformatting
1991
19922008-05-23 Ed Schonberg <schonberg@adacore.com>
1993
1994 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
1995 slice, convert it to an indexed component, which is equivalent, more
1996 efficient, and usable even if the slice itself is not addressable.
1997
19982008-05-23 Olivier Hainque <hainque@adacore.com>
1999
2000 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
2001 convention also allows access to named compiler built-in subprograms
2002 such as the GCC __builtin family.
2003
ffd0dd6c
AC
20042008-05-23 Vincent Celier <celier@adacore.com>
2005
2006 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
2007 sep. If there are several possibilities, choose the one with the
2008 longer prefix.
2009
20102008-05-23 Vincent Celier <celier@adacore.com>
2011
2012 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
2013 back end switches when executable specified with --GCC= is same as
2014 default, even if there are additional options.
2015
2016 * gnat_ugn.texi:
2017 Document when the back end switches from the ALI file are taken into
2018 account when gnatlink is invoked with --GCC=
2019
20202008-05-23 Thomas Quinot <quinot@adacore.com>
2021
2022 * s-os_lib.adb:
2023 (copy_File): Do not open destination file if source file is unreadable.
2024
3fda3252
EB
20252008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2026
2027 * utils.c (handle_type_generic_attribute): Adjust to accept
2028 fixed arguments before an elipsis.
2029
92c708d2
TQ
20302008-05-21 Thomas Quinot <quinot@adacore.com>
2031
2032 * g-sothco.ads, g-sothco.adb: New files.
2033
93a7c573
AC
20342008-05-20 Thomas Quinot <quinot@adacore.com>
2035
2036 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
2037
2038 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
2039 Add missing "with" of Ada.Unchecked_Conversion
2040
2041 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
2042 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
2043 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
2044 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
2045 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
2046 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
2047 Move common code out of GNAT.Sockets.Thin implementations and into
2048 Thin_Common.
2049 New constant SIZEOF_fd_set
2050 New flag Has_Sockaddr_Len
2051 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2052
2053 * g-stsifd-sockets.adb
2054 (Create): Remove call to Set_Length; use Set_Family to set the family
2055 and (on appropriate platforms) length fields in struct sockaddr.
2056
2057 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
2058 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
2059 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
2060 Move common code out of GNAT.Sockets.Thin implementations and into
2061 Thin_Common.
2062
2063 * g-socket.ads, g-socket.adb:
2064 Move common code out of GNAT.Sockets.Thin implementations and into
2065 Thin_Common.
2066 (Connect_Socket, Accept_Socket): Provide new versions of these two
2067 routines that operate with a user specified timeout.
2068 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
2069 this is now handled automatically by Set_Family on platforms that
2070 require it.
2071
2072 * gen-soccon.c:
2073 Move common code out of GNAT.Sockets.Thin implementations and into
2074 Thin_Common.
2075 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
2076 this constant to 0 (not -1) because we use it to initialize an
2077 unsigned_char value.
2078 Align values for numeric constants only.
2079 Handle the case of systems that do not support AF_INET6.
2080 New constant SIZEOF_fd_set
2081 New flag Has_Sockaddr_Len
2082 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2083
2084 * gsocket.h: New flag Has_Sockaddr_Len
2085 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
2086
20872008-05-20 Santiago Uruena <uruena@adacore.com>
2088
2089 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
2090
20912008-05-20 Arnaud Charlet <charlet@adacore.com>
2092
2093 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
2094 the underlying issue with malloc/free has been fixed. Remove associated
2095 comments.
2096 Minor reformatting.
2097 Related to PR ada/24533
2098
20992008-05-20 Robert Dewar <dewar@adacore.com>
2100
2101 * ali.adb: Correct casing of ASCII.NUL
2102
2103 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
2104 properly.
2105
21062008-05-20 Robert Dewar <dewar@adacore.com>
2107 Gary Dismukes <dismukes@adacore.com>
2108
2109 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
2110 overflow if result converted to wider integer type.
2111 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
2112 discriminated types when discriminant checks are suppressed.
2113
21142008-05-20 Vincent Celier <celier@adacore.com>
2115
2116 * cstand.adb (Print_Standard): Issue the correct Size clause for type
2117 Wide_Wide_Character.
2118
21192008-05-20 Tristan Gingold <gingold@adacore.com>
2120
2121 * decl.c: Do not emit a variable for a object that has an address
2122 representation clause whose value is known at compile time.
2123 When a variable has an address clause whose value is known at compile
2124 time, refer to this variable by using directly the address instead of
2125 dereferencing a pointer.
2126
21272008-05-20 Robert Dewar <dewar@adacore.com>
2128
2129 PR ada/30740
2130 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
2131 subtypes, always False for non-modular types.
2132 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
2133 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
2134 for Shared_Storage package.
2135 (Is_RACW_Stub_Type): New entity flag.
2136
2137 * exp_ch4.adb
2138 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
2139 case where we have a modular type with a non-binary modules.
2140 Comments reformattings.
2141
2142 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
2143 all types.
2144
21452008-05-20 Javier Miranda <miranda@adacore.com>
2146
2147 * exp_aggr.adb
2148 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
2149 tests did not covered the case in which the type of the aggregate has
2150 no progenitors but some its parents has progenitors.
2151
21522008-05-20 Gary Dismukes <dismukes@adacore.com>
2153 Hristian Kirtchev <kirtchev@adacore.com>
2154
2155 * exp_ch3.adb
2156 (Expand_N_Object_Declaration): Correct the condition which triggers the
2157 generation of a call to Displace when initializing a class-wide object.
2158 (Build_Dcheck_Functions): Build discriminant-checking for null variants
2159 when Frontend_Layout_On_Target is true to ensure that they're available
2160 for calling when a record variant size function is built in Layout.
2161
21622008-05-20 Ed Schonberg <schonberg@adacore.com>
2163
2164 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2165 procedure for a derived type retrieve the discriminant values from the
2166 parent using the corresponding discriminant.
2167 (Expand_N_Assignment_Statement): Skip generation of implicit
2168 if-statement associated with controlled types if we are
2169 compiling with restriction No_Finalization.
2170
21712008-05-20 Vincent Celier <celier@adacore.com>
2172
2173 * prj.adb (Hash (Project_Id)): New function
2174 (Project_Empty): Add new component Interfaces_Defined
2175
2176 * prj.ads (Source_Data): New component Object_Linked
2177 (Language_Config): New components Object_Generated and Objects_Linked
2178 (Hash (Project_Id)): New function
2179 (Source_Data): New Boolean components In_Interfaces and
2180 Declared_In_Interfaces.
2181 (Project_Data): New Boolean component Interfaces_Defined
2182
2183 * prj-attr.adb:
2184 New project level attribute Object_Generated and Objects_Linked
2185 Add new project level attribute Interfaces
2186
2187 * prj-dect.adb: Use functions Present and No throughout
2188 (Parse_Variable_Declaration): If a string type is specified as a simple
2189 name and is not found in the current project, look for it also in the
2190 ancestors of the project.
2191
2192 * prj-makr.adb:
2193 Replace procedure Make with procedures Initialize, Process and Finalize
2194 to implement H414-023: process different directories with different
2195 patterns.
2196 Use functions Present and No throughout
2197
2198 * prj-makr.ads:
2199 Replace procedure Make with procedures Initialize, Process and Finalize
2200
2201 * prj-nmsc.adb
2202 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
2203 the language configuration.
2204 (Process_Project_Level_Array_Attributes): Process new attributes
2205 Object_Generated and Object_Linked.
2206 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
2207 False, to indicate that the erreor/warning is a continuation.
2208 (Check): Call Report_No_Sources with Contnuation = True after the first
2209 call.
2210 (Error_Msg): Process successively contnuation character and warning
2211 character.
2212 (Find_Explicit_Sources): Check that all declared sources have been found
2213 (Check_File): Indicate in hash table Source_Names when a declared source
2214 is found.
2215 (Check_File): Set Other_Part when found
2216 (Find_Explicit_Sources): In multi language mode, check if all exceptions
2217 to the naming scheme have been found. For Ada, report an error if an
2218 exception has not been found. Otherwise, disregard the exception.
2219 (Check_Interfaces): New procedure
2220 (Add_Source): When Other_Part is defined, set mutual pointers in spec
2221 and body.
2222 (Check): In multi-language mode, call Check_Interfaces
2223 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
2224 for an excluded source.
2225 (Remove_Source): A source replacing a source in the interfaces is also
2226 in the interfaces.
2227
2228 * prj-pars.adb: Use function Present
2229
2230 * prj-part.adb: Use functions Present and No throughout
2231 (Parse_Single_Project): Set the parent project for child projects
2232 (Create_Virtual_Extending_Project): Register project with no qualifier
2233 (Parse_Single_Project): Allow an abstract project to be extend several
2234 times. Do not allow an abstract project to extend a non abstract
2235 project.
2236
2237 * prj-pp.adb: Use functions Present and No throughout
2238 (Print): Take into account the full associative array attribute
2239 declarations.
2240
2241 * prj-proc.adb: Use functions Present and No throughout
2242 (Expression): Call itself with the same From_Project_Node for the
2243 default value of an external reference.
2244
2245 * prj-strt.adb: Use functions Present and No throughout
2246 (Parse_Variable_Reference): If a variable is specified as a simple name
2247 and is not found in the current project, look for it also in the
2248 ancestors of the project.
2249
2250 * prj-tree.ads, prj-tree.adb (Present): New function
2251 (No): New function
2252 Use functions Present and No throughout
2253 (Parent_Project_Of): New function
2254 (Set_Parent_Project_Of): New procedure
2255
2256 * snames.ads, snames.adb:
2257 Add new standard names Object_Generated and Objects_Linked
2258
22592008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2260
2261 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
2262 and the derived type are of the same kind.
2263 (Expand_Call): Generate type conversions for actuals of
2264 record or array types when the parent and the derived types differ in
2265 size and/or packed status.
2266
22672008-05-20 Javier Miranda <miranda@adacore.com>
2268 Ed Schonberg <schonberg@adacore.com>
2269
2270 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
2271 generating dispatch tables of locally defined tagged types statically.
2272 Remove implicit if-statement that is no longer required.
2273 (Expand_Dispatching_Call): If this is a call to an instance of the
2274 generic dispatching constructor, the type of the first argument may be
2275 a subtype of Tag, so always use the base type to recognize this case.
2276
22772008-05-20 Thomas Quinot <quinot@adacore.com>
2278
2279 * exp_dist.adb
2280 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
2281 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
2282 assigning NULL into the result, to avoid a spurious warning.
2283 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
2284 is not frozen.
2285 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
2286 type.
2287 (Build_From_Any_Function, Build_To_Any_Function,
2288 Build_TypeCode_Function): For a type that has user-specified stream
2289 attributes, use an opaque sequence of octets as the representation.
2290
22912008-05-20 Kevin Pouget <pouget@adacore.com>
2292
2293 * exp_smem.ads, exp_smem.adb: Construction of access and assign
2294 routines has been replaced by an instantiation of
2295 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
2296 shared variable declaration.
2297 Calls to access and assign routines have been replaced by calls to
2298 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
2299 instantiated package.
2300
2301 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
2302 It identifies the new generic package added in s-shasto.
2303
2304 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
2305 is instantiated for each shared passive variable. It provides
2306 supporting procedures called upon each read or write access by the
2307 expanded code.
2308
2309 * sem_attr.adb:
2310 For this runtime unit (always compiled in GNAT mode), we allow
2311 stream attributes references for limited types for the case where
2312 shared passive objects are implemented using stream attributes,
2313 which is the default in GNAT's persistent storage implementation.
2314
23152008-05-20 Ed Schonberg <schonberg@adacore.com>
2316
2317 * freeze.adb
2318 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
2319 convention from its base type, do not set the type to that of integer,
2320 because it may inherit a size clause.
2321 Warn on a size clause with a size different
2322 from that of Integer, if the type has convention C.
2323
23242008-05-20 Vincent Celier <celier@adacore.com>
2325
2326 * gnatname.adb
2327 (Scan_Args): Rewrite to take into account new switch --and to separate
2328 arguments into sections.
2329 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
2330 section, then Finalize.
2331
23322008-05-20 Tristan Gingold <gingold@adacore.com>
2333
2334 * init.c: Enable stack probing on ppc-linux.
2335
2336 * tracebak.c: Add symbolic traceback for ppc-linux.
2337
2338 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
2339
23402008-05-20 Arnaud Charlet <charlet@adacore.com>
2341
2342 * Makefile.in
2343 (common-tools): New rule, to avoid parallel build failure on gnat tools.
2344 Reenable parallel builds on this Makefile.
2345
2346 * Make-lang.in: Update dependencies.
2347
23482008-05-20 Robert Dewar <dewar@adacore.com>
2349
2350 * opt.ads (Treat_Restrictions_As_Warnings): New switch
2351
2352 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
2353 Treat_Restrictions_As_Warnings.
2354
2355 * switch-c.adb: Recognize new switch -gnatr
2356
2357 * usage.adb: Add line for -gnatr
2358
23592008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2360
2361 * par-ch3.adb
2362 (P_Access_Definition): Change the error message when parsing "access
2363 all" in Ada 95 mode. The message no longer forces the user to recompile
2364 in 05 mode only to discover that anonymous access types are not allowed
2365 to have "all".
2366
23672008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
2368
2369 * par-ch9.adb
2370 (P_Protected): Update the error message on missing "-gnat05" switch when
2371 using interfaces in conjunction with protected types. Remove the
2372 incorrect error message associated with the presence of "private" after
2373 a "with".
2374
23752008-05-20 Ed Schonberg <schonberg@adacore.com>
2376
2377 * sem_aggr.adb: Update comments.
2378 Improve previous change for PR ada/17985
2379
23802008-05-20 Thomas Quinot <quinot@adacore.com>
2381
2382 * sem_cat.adb
2383 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
2384 the visible part of the spec of a remote types unit.
2385 (Validate_Remote_Access_Object_Type_Declaration):
2386 New local subprogram Is_Valid_Remote_Object_Type, replaces
2387 Is_Recursively_Limited_Private.
2388 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
2389 non-controlling formals (and the return type, even though this is not
2390 explicit in the standard) must support external streaming.
2391 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
2392 as above for of RAS types and RCI subprograms. (The return type is not
2393 checked yet).
2394 Update comments related to RACWs designating limited interfaces per
2395 ARG ruling on AI05-060.
2396
2397 * sem_util.ads, sem_util.adb
2398 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
2399 Is_Remote_Call_Interface to identify RACW types in a stable and
2400 consistent way. We used to rely in this predicate on the privateness of
2401 the designated type and its ancestors, but depending on the currently
2402 visible private parts, this caused false negatives. We now uniformly
2403 rely on checks made at the point where the RACW type is declared.
2404 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
2405
24062008-05-20 Javier Miranda <miranda@adacore.com>
2407 Ed Schonberg <schonberg@adacore.com>
2408 Hristian Kirtchev <kirtchev@adacore.com>
2409
2410 * sem_ch3.adb
2411 (Analyze_Object_Declaration): Fix over-conservative condition
2412 restricting use of predefined assignment with tagged types that have
2413 convention CPP.
2414 (Analyze_Object_Declaration): Relax the check regarding deferred
2415 constants declared in scopes other than packages since they can be
2416 completed with pragma Import.
2417 Add missing escaping of all-caps word 'CPP' in error messages.
2418 (Build_Discriminated_Subtype): Do not inherit representation clauses
2419 from parent type if subtype already carries them, because they are
2420 inherited earlier during derivation and already include those that may
2421 come from a partial view.
2422
2423 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
2424 Check the declarations of a subprogram body for proper deferred
2425 constant completion.
2426
2427 * sem_ch7.ads, sem_ch7.adb
2428 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
2429
24302008-05-20 Ed Schonberg <schonberg@adacore.com>
2431 Thomas Quinot <quinot@adacore.com>
2432
2433 * sem_ch4.adb
2434 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
2435 F is a parameterless function that returns an array, and S is a subtype
2436 mark.
2437 (Analyze_Call): Insert dereference when the prefix is a parameterless
2438 function that returns an access to subprogram and the call has
2439 parameters.
2440 Reject a non-overloaded call whose name resolves to denote
2441 a primitive operation of the stub type generated to support a remote
2442 access-to-class-wide type.
2443
24442008-05-20 Ed Schonberg <schonberg@adacore.com>
2445
2446 * sem_ch8.adb
2447 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
2448 when there is a use clause for the same entity in the context.
2449 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
2450 created for a stream attribute of an abstract type or interface type.
2451
24522008-05-20 Thomas Quinot <quinot@adacore.com>
2453
2454 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
2455 subprogram.
2456
2457 * sem_type.adb
2458 (Add_One_Interp): Ignore any interpretation that is a primitive
2459 operation of an RACW stub type (these primitives are only executed
2460 through dispatching, never through static calls).
2461 (Collect_Interps): When only one interpretation has been found, set N's
2462 Entity and Etype to that interpretation, otherwise Entity and Etype may
2463 still refer to an interpretation that was ignored by Add_One_Interp,
2464 in which case would end up with being marked as not overloaded but with
2465 an Entity attribute not pointing to its (unique) correct interpretation.
2466
24672008-05-20 Ed Schonberg <schonberg@adacore.com>
2468
2469 * sem_eval.adb
2470 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
2471 denotes the whole array of its prefix.
2472
24732008-05-20 Robert Dewar <dewar@adacore.com>
2474
2475 * sem_res.adb (Resolve_Op_Not): Warn on double negation
2476
24772008-05-20 Ed Schonberg <schonberg@adacore.com>
2478
2479 * sprint.adb
2480 (Print_Itype): Do not modify the sloc of the component type of a
2481 (packed) array itype, because it is an unrelated type whose source
2482 location is independent of the point of creation of the itype itself.
2483
24842008-05-20 Thomas Quinot <quinot@adacore.com>
2485
2486 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
2487 Append.
2488
24892008-05-20 Robert Dewar <dewar@adacore.com>
2490 Vincent Celier <celier@adacore.com>
2491
2492 * vms_data.ads: Add entry for -gnatr
2493 Put GNAT SYNC section in proper alpha order
2494 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
2495
2496 * gnat_ugn.texi: Add documentation for new gnatname switch --and
2497 Update the style checks section
2498 Add documentation of -gnatr
2499 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
2500 subsection the explanation how compiler checks should be disabled for
2501 gnatcheck.
2502 Update the list of Ada 95 reserved words used by in the project language
2503 Add documentation for project qualifiers.
2504 Document that abstract projects may be extended by different projects in
2505 the same project tree.
2506 Add documentation for gnatmake switch -d
2507
2508 * ug_words: Add -gnatyy VMS equivalence string.
2509 Add entry for -gnatr
2510
25112008-05-20 Bob Duff <duff@adacore.com>
2512
2513 * a-rttiev.adb
2514 (Set_Handler): Remove code from both of these that implements
2515 RM-D.15(15/2), because it causes a race condition and potential
2516 deadlock.
2517 (Process_Queued_Events): Add comment explaining "exception when others
2518 => null". Add clarifying ".all", even though implicit .all is legal
2519 here.
2520
25212008-05-20 Arnaud Charlet <charlet@adacore.com>
2522
2523 * s-winext.ads: Replace representation clause by pragma Pack. Gives
2524 equivalent representation, but has the advantage of allowing
2525 compilation of this file under 64 bits platforms.
2526
2527 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
2528
2529 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
2530
2531 * adaint.c:
2532 Don't define dummy implementation of convert_addresses on ppc-linux.
2533
25342008-05-20 Ed Schonberg <schonberg@adacore.com>
2535
2536 * exp_ch7.adb
2537 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
2538 if expression is aggregate component.
2539
25402008-05-20 Robert Dewar <dewar@adacore.com>
2541
2542 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
2543 sem_ch12.adb: Update comments. Minor reformatting.
2544
2545 * exp_ch2.adb: Typo
2546
2547 * s-unstyp.ads: Fixed some typos in comments.
2548
1b686dc4
AC
25492008-05-20 Arnaud Charlet <charlet@adacore.com>
2550
2551 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
2552 type/constant.
2553
2554 * g-socthi-vxworks.ads: Update to latest socket changes.
2555
2556 * a-caldel-vms.adb: Resync with a-caldel spec.
2557
6357e162
AC
2558 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
2559 Update comments.
2560
74c11a6c
EB
25612008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2562
2563 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
2564 for dummy types pointed to by the converted pointer types.
2565
f730e42f
EB
25662008-05-15 Eric Botcazou <ebotcazou@adacore.com>
2567
2568 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
2569 of records and unions.
2570 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
2571
eaa2f8c7
ST
25722008-05-14 Samuel Tardieu <sam@rfc1149.net>
2573 Robert Dewar <dewar@adacore.com>
2574
2575 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
2576 restrictions to the prefix of 'Old.
2577 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
2578 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
2579 variables.
2580
f80cddcb
EB
25812008-05-13 Eric Botcazou <ebotcazou@adacore.com>
2582
2583 PR ada/24880
2584 PR ada/26635
2585 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
2586 expression to an integral type with lower precision, use NOP_EXPR
2587 directly in a couple of special cases.
2588
ea0a7f39
ST
25892008-05-12 Samuel Tardieu <sam@rfc1149.net>
2590 Ed Schonberg <schonberg@adacore.com>
2591
2592 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
2593 constraint expressions.
2594
751d1520
TB
25952008-05-12 Tomas Bily <tbily@suse.cz>
2596
ea0a7f39
ST
2597 * utils2.c (known_alignment, contains_save_expr_p)
2598 (gnat_mark_addressable): Use CASE_CONVERT.
2599 * decl.c (annotate_value): Likewise.
2600 * trans.c (maybe_stabilize_reference): Likewise.
2601 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
2602 * utils.c (rest_of_record_type_compilation): Likewise.
2603 * trans.c (protect_multiple_eval, Attribute_to_gnu)
2604 (protect_multiple_eval): Likewise.
751d1520 2605
a1b66071
AS
26062008-05-08 Andreas Schwab <schwab@suse.de>
2607
2608 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
2609 DECL_IS_PURE to DECL_PURE_P.
2610
bba74577
EB
26112008-05-05 Eric Botcazou <ebotcazou@adacore.com>
2612
2613 * decl.c (maybe_pad_type): Add ??? comment.
2614
8f85525e
EB
26152008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2616
2617 * decl.c (components_to_record): Zero the alignment of the qualified
2618 union built for the variant part upon creating it.
2619
88f36b7e
EB
26202008-05-03 Eric Botcazou <ebotcazou@adacore.com>
2621
2622 * decl.c (maybe_pad_type): Try to get a form of the type with integral
2623 mode even if the alignment is not a factor of the original size. But
2624 make sure to create the inner field with the original size. Reorder.
2625 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
2626 record as always addressable.
2627 * utils.c (convert): Deal specially with conversions between original
2628 and packable versions of a record type.
2629 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
2630 recognizing an assignment between padded objects.
2631
8665c7ca
EB
26322008-05-01 Eric Botcazou <ebotcazou@adacore.com>
2633
2634 * decl.c (make_packable_type): Resize the last component to its RM size
2635 only if it is of an aggregate type.
2636 * trans.c (call_to_gnu): Fix nit in comment.
2637 (gnat_to_gnu): Likewise.
2638
ea342909
ST
26392008-04-30 Samuel Tardieu <sam@rfc1149.net>
2640
2641 * Makefile.in: Adapt sh4-linux target.
2642
af4133b2
ST
26432008-04-29 Ed Schonberg <schonberg@adacore.com>
2644
2645 PR ada/35792
2646 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
2647 tagged type by an untagged protected or task type.
2648
805100b5
EB
26492008-04-28 Eric Botcazou <ebotcazou@adacore.com>
2650 Tristan Gingold <gingold@adacore.com>
2651
2652 PR ada/36007
2653 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
2654 of aliased objects with an unconstrained nominal subtype.
2655 Cap the promotion to the effective alignment of the word mode.
2656
99c2eec1
RW
26572008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2658
2659 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
2660 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
2661 Use '&&' instead of ';'.
2662
22a81267
OH
26632008-04-24 Olivier Hainque <hainque@adacore.com>
2664
2665 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
2666 doesn't require signed arithmetic anymore.
2667
51eed280
PB
26682008-04-23 Paolo Bonzini <bonzini@gnu.org>
2669
2670 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
2671 (call_to_gnu): Don't set TREE_INVARIANT.
2672 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
2673
d9126ef8
JS
26742008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
2675
2676 * s-osinte-rtems.adb: Add sigalstack function.
2677 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
2678 function. Add Alternate_Stack and Alternate_Stack_Size.
2679 Add missing process_shared field to pthread_condattr_t
2680 and change ss_low_priority to int from timespec.
2681
0a58c87e
ST
26822008-04-22 Samuel Tardieu <sam@rfc1149.net>
2683
2684 * i-forbla.adb: Link against -llapack and -lblas by default
2685 instead of the private -lgnalasup.
2686
009890be
OH
26872008-04-21 Olivier Hainque <hainque@adacore.com>
2688
2689 Access to most C builtins from Ada
2690 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
2691 (handle_pure_attribute, handle_novops_attribute,
2692 handle_nonnull_attribute, handle_sentinel_attribute,
2693 handle_noreturn_attribute, handle_malloc_attribute,
2694 handle_type_generic_attribute): New attribute handlers, from C fe.
2695 (gnat_internal_attribute_table): Map the new handlers.
2696 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
2697 (init_gigi_decls): ... here.
2698 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
2699 Move to a section dedicated to builtins processing.
2700 (build_void_list_node, builtin_type_for_size): New functions.
2701 (def_fn_type, get_nonnull_operand): Likewise.
2702 (install_builtin_elementary_type, install_builtin_function_types,
2703 install_builtin_attributes): Likewise.
2704 (fake_attribute_handler): Fake handler for attributes we don't
2705 support in Ada.
2706 (def_builtin_1): New function, worker for DEF_BUILTIN.
2707 (install_builtin_functions): New function.
2708 (gnat_install_builtins): Move to the builtins processing section.
2709 Now calling the newly introduced installers.
2710
e871a873
EB
27112008-04-20 Eric Botcazou <ebotcazou@adacore.com>
2712
2713 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
2714 constant objects, but not exceptions.
2715 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
2716 compatibility test.
2717 * utils.c (create_var_decl_1): Likewise.
2718 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
2719 the type when copying to padded object and the source is a constructor.
2720
98ae7998
EB
27212008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2722
2723 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
2724 alignment, reset it to zero if it would end up not being greater
2725 than that of the type.
2726
3569056b
EB
27272008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2728
2729 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
2730 the padded type has a variable size.
2731
9a089d8b
EB
27322008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2733
2734 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
2735 target pointer mechanism as soon as the size is not constant.
2736
0cb5c2a7
EB
27372008-04-18 Eric Botcazou <ebotcazou@adacore.com>
2738
2739 * gigi.h (create_var_decl_1): Declare.
2740 (create_var_decl): Turn into a macro invoking create_var_decl_1.
2741 (create_true_var_decl): Likewise.
2742 * utils.c (create_var_decl_1): Make global and reorder parameters.
2743 (create_var_decl): Delete.
2744 (create_true_var_decl): Likewise.
2745
90d6701e
EB
27462008-04-17 Eric Botcazou <ebotcazou@adacore.com>
2747
2748 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
2749 objects by default.
2750 * fe.h (Debug_Flag_Dot_A): Delete.
2751 * debug.adb (-gnatd.a): Update documentation.
2752
35485e12
ST
27532008-04-17 Samuel Tardieu <sam@rfc1149.net>
2754
2755 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
2756 "not null" parameter.
2757
111c1cd9
ST
27582008-04-17 Samuel Tardieu <sam@rfc1149.net>
2759
2760 * g-socket.adb: Add a message "IPv6 not supported" to the
2761 Socket_Error exception.
2762
35c91e05
ST
27632008-04-16 Samuel Tardieu <sam@rfc1149.net>
2764
2765 PR ada/29015
2766 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
2767 the type is known instead of the underlying type.
2768
b48a6531
ST
27692008-04-15 Ed Schonberg <schonberg@adacore.com>
2770
2771 PR ada/22387
2772 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
2773 procedure for a derived type retrieve the discriminant values from
2774 the parent using the corresponding discriminant.
2775
462c31ef
ST
27762008-04-15 Samuel Tardieu <sam@rfc1149.net>
2777 Gary Dismukes <dismukes@adacore.com>
2778
2779 PR ada/28733
2780 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
2781 which is not an entity (and hence not a package).
2782 (End_Use_Package): Ditto.
2783
8abe457a
ST
27842008-04-15 Ed Schonberg <schonberg@adacore.com>
2785
2786 PR ada/16086
2787 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
2788 protected operation that matches the signature, not only an entry, a
2789 regular subprogram or a literal.
2790
29f4754f
EB
27912008-04-15 Eric Botcazou <ebotcazou@adacore.com>
2792
2793 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
2794 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
2795 if a size or alignment is specified. Do not take into account
2796 alignment promotions for the computation of the object's size.
2797 <type>: Call maybe_pad_type only if a size or alignment is specified.
2798 (maybe_pad_type): Really reuse the RM_Size of the original type if
2799 requested.
2800 * trans.c (Attribute_to_gnu): Fix a couple of nits.
2801 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
2802 statements. Use the padded view of the type when copying between
2803 padded objects of the same underlying type.
2804
f3d0f304
RW
28052008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2806
2807 * vms_data.ads: Fix typo in constant.
2808 * gen-soccon.c: Fix typo in error string.
2809 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
2810 Fix typos.
2811 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
2812 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
2813 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
2814 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
2815 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
2816 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
2817 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
2818 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
2819 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
2820 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
2821 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
2822 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
2823 sinfo.ads: Fix typos in comments.
2824
2efcad9f
RD
28252008-04-14 Robert Dewar <dewar@adacore.com>
2826
2827 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
2828 to every non-object and change error message.
2829
8f3723e0
RD
28302008-04-14 Robert Dewar <dewar@adacore.com>
2831
2832 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
2833 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
2834 directly.
2835
32f7efe1
ST
28362008-04-14 Samuel Tardieu <sam@rfc1149.net>
2837
2838 PR ada/18680
2839 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
2840 apply pragma Linker_Section on type.
2841
b039b10e
ST
28422008-04-14 Samuel Tardieu <sam@rfc1149.net>
2843
2844 PR ada/16098
2845 * sem_prag.adb (Error_Pragma_Ref): New.
2846 (Process_Convention): Specialized message for non-local
2847 subprogram renaming. Detect the problem in homonyms as well.
2848
cb572b75
ST
28492008-04-14 Samuel Tardieu <sam@rfc1149.net>
2850
2851 PR ada/15915
2852 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
2853 * sem_ch12.adb (Instantiate_Object): Use it.
2854 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
2855 storage pool denotes a variable as per RM 13.11(15).
2856
17972da7
ST
28572008-04-14 Samuel Tardieu <sam@rfc1149.net>
2858
2859 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
2860 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
2861
57f80aa9
RE
28622008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
2863
2864 PR ada/20822
2865 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
2866 line endings even on non-Unix platforms.
2867
9ff231e2
ST
28682008-04-14 Samuel Tardieu <sam@rfc1149.net>
2869
2870 PR ada/35050
2871 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
2872 renaming information.
2873
92d4508a
ST
28742008-04-13 Samuel Tardieu <sam@rfc1149.net>
2875
2876 PR ada/17985
2877 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
2878 itself.
2879
12a13f01
RW
28802008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2881
3354f96d
RW
2882 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
2883 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
2884 snames.ads, sprint.adb, stand.ads, stringt.ads,
2885 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
2886 switch.ads, sysdep.c, table.adb, table.ads,
2887 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
2888 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
2889 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
2890 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
2891 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
2892 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
2893 Fix comment typos.
2894
f3d57416
RW
2895 * sem_ch10.adb, sem_ch10.ads,
2896 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
2897 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
2898 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
2899 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
2900 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
2901 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
2902 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
2903 sem_warn.ads: Fix comment typos.
2904
12a13f01
RW
2905 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
2906 s-soflin.ads, s-stalib.ads, s-stausa.adb,
2907 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
2908 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
2909 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
2910 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
2911 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
2912 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
2913 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
2914 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
2915 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
2916 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
2917 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
2918 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
2919 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
2920 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
2921 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
2922 sem_cat.adb, sem_cat.ads: Fix comment typos.
2923
2b699ab1
JS
29242008-04-12 Joel Sherrill <joel@oarcorp.com>
2925
2926 PR ada/35825
2927 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
2928
1e273538
AC
29292008-04-12 Arnaud Charlet <charlet@adacore.com>
2930
2931 * s-linux-hppa.ads: Fix syntax errors.
2932
276e95ca
RW
29332008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2934
2935 * gnat_ugn.texi: Fix typos.
2936 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
2937 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
2938 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
2939 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
2940 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
2941 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
2942 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
2943 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
2944 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
2945 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
2946 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
2947 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
2948 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
2949 s-osinte-darwin.ads, s-osinte-freebsd.ads,
2950 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
2951 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
2952 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
2953 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
2954 s-parame-hpux.ads, s-parame-vms-alpha.ads,
2955 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
2956 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
2957 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
2958 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
2959 s-rident.ads: Fix comment typos.
2960
ce4e59c4
ST
29612008-04-09 Samuel Tardieu <sam@rfc1149.net>
2962
2963 PR ada/28305
2964 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
2965 environment if generic instance is a top-level one.
2966
6d21c8af
DR
29672008-04-09 Doug Rupp <rupp@adacore.com>
2968
2969 * decl.c (validate_size): Set minimum size for fat pointers same as
2970 access types. Code clean ups.
2971
2972 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
2973 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
2974
2975 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
2976
2977 * s-crtl.ads (malloc32) New function, alias for malloc
2978 (realloc32) New function, alias for realloc
2979
2980 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
2981
2982 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
2983 allocator size is 32 and default pointer size is 64.
2984 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
2985 lhs type if smaller, whatever the modes.
2986
2987 * gigi.h (malloc32_decl): New macro definition
2988
2989 * utils.c (init_gigi_decls): New malloc32_decl
2990 Various code clean ups.
2991
2992 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
2993 Task_Address vice System.Address.
2994
2995 * s-taspri-vms.ads: Import System.Aux_DEC
2996 (Task_Address): New subtype of System.Aux_DEC.Short_Address
2997 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
2998
2999 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
3000 Task_Address vice System.Address.
3001
3002 * s-inmaop-vms.adb: Import System.Task_Primitives
3003 (To_Address): Unchecked convert to Task_Address vice System.Address
3004
3005 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
3006 expires now.
3007 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
3008 (To_Address) Unchecked convert to Task_Address vice System.Address
3009
3010 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
3011
3012 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
3013
581edf92
EB
30142008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3015
3016 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
3017 (fdesc_type_node): Define.
3018 (null_fdesc_node): Likewise.
3019 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
3020 uses descriptors for vtables and the type comes from a dispatch table,
3021 return the descriptor type.
3022 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
3023 uses descriptors for vtables and the type comes from a dispatch table,
3024 build a descriptor in the static case and copy the existing one in the
3025 non-static case.
3026 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
3027 the type is a pointer-to-subprogram coming from a dispatch table,
3028 return the null descriptor.
3029 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
3030 vtables, the source type is the descriptor type and the target type
3031 is a pointer type, first build the pointer.
3032 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
3033 build the descriptor type and the null descriptor.
3034
e1da2b17
EB
30352008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3036
3037 * decl.c (prepend_attributes): Fix typo.
3038 * trans.c (Pragma_to_gnu): Likewise.
3039 * utils.c (gnat_genericize): Likewise.
3040
2b3dffa6
EB
30412008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3042 Richard Kenner <kenner@adacore.com>
3043
3044 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
3045 * decl.c (gnat_to_gnu_entity): Adjust for above change.
3046 <E_Record_Type>: Try to get a better form of the component for
3047 packing, even if it has an integral mode.
3048 <E_Record_Subtype>: Likewise.
3049 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
3050 exception suppressing the final conversion between record types.
3051
ba3f46d0
EB
30522008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3053
3054 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
3055 alignment for space, promote the alignment of non-scalar variables with
3056 no size and alignment.
3057 * gigi.h (gnat_types_compatible_p): Declare.
3058 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
3059 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
3060 * utils.c (gnat_types_compatible_p) : New predicate.
3061 (convert): Use it throughout to test for cases where a mere view
3062 conversion is sufficient.
3063 * utils2.c (build_binary_op): Minor tweaks.
3064 (build_unary_op): Likewise.
3065
373140ef
EB
30662008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3067
3068 * decl.c (adjust_packed): Expand comment.
3069
ea081ad7
AC
30702008-04-08 Arnaud Charlet <charlet@adacore.com>
3071
3072 * s-tasuti.ads: Use Task_Address instead of System.Address.
3073
3074 * makeutl.adb (Path_Or_File_Name): New function
3075
3076 * nlists.ads, itypes.ads: Update comments.
3077
3078 * s-crtl.ads (malloc32, realloc32): New functions.
3079
3080 * s-auxdec.ads (Short_Address_Size): New constant.
3081
3082 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
3083
3084 * s-ststop.ads, s-ststop.adb: New file.
3085
3086 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
3087 Minor reformatting.
3088
d563d3f0
AC
30892008-04-08 Pascal Obry <obry@adacore.com>
3090
3091 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
3092 (Stop_Bits_Number): New type.
3093 (Parity_Check): Likewise.
3094 (Set): Add parameter to set the number of stop bits and
3095 the parity. Parameter timeout is now a duration instead
3096 of a plain integer.
3097
3098 * g-sercom-linux.adb:
3099 Implement the stop bits and parity support for GNU/Linux.
3100 Fix handling of timeout, it must be given in tenth of seconds.
3101
3102 * g-sercom-mingw.adb:
3103 Implement the stop bits and parity support for Windows.
3104 Use new s-win32.ads unit instead of declaring Win32 services
3105 directly into this body.
3106 Update handling of timeout as now a duration.
3107
3108 * s-win32.ads, s-winext.ads: New files.
3109
31102008-04-08 Eric Botcazou <ebotcazou@adacore.com>
3111 Arnaud Charlet <charlet@adacore.com>
3112
3113 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
3114
3115 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
3116 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
3117
3118 * s-osinte-lynxos-3.ads,
3119 (Alternate_Stack): Remove when not needed. Simplify declaration
3120 otherwise.
3121 (Alternate_Stack_Size): New constant.
3122
3123 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
3124 'Unrestricted_Access.
3125
3126 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
3127 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
3128 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
3129 s-osinte-solaris.ads, s-osinte-vms.ads
3130 (SA_ONSTACK): New constant.
3131 (stack_t): New record type.
3132 (sigaltstack): New imported function.
3133 (Alternate_Stack): New imported variable.
3134 (Alternate_Stack_Size): New constant.
3135
3136 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
3137
3138 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
ea081ad7
AC
3139 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
3140 s-taspri-vms.ads (Task_Address): New subtype of System.Address
d563d3f0
AC
3141 (Task_Address_Size): New constant size of System.Address
3142 (Alternate_Stack_Size): New constant.
3143
3144 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
3145 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
3146 Establish the alternate stack if the platform makes use of n alternate
3147 signal stack for stack overflows.
3148 (Create_Task): Take into account the alternate stack in the stack size.
3149 (Initialize): Save the address of the alternate stack into the ATCB for
3150 the environment task.
3151 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
3152
ea081ad7 3153 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
d563d3f0
AC
3154
3155 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
3156
3157 * s-intman-posix.adb:
3158 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
3159 alternate signal stack for stack overflows.
3160
3161 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
3162 x86-64, adjust the saved value of the stack pointer if the signal was
3163 raised by a stack checking probe.
3164 (HP-UX section): Use global __gnat_alternate_stack as signal handler
3165 stack and only for SIGSEGV.
3166 (Linux section): Likewise on x86 and x86-64.
3167 [VxWorks section]
3168 (__gnat_map_signal): Now static.
3169 (__gnat_error_handler): Not static any more.
3170 (__gnat_adjust_context_for_raise): New function. Signal context
3171 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
3172 propagation circuitry.
3173 (__gnat_error_handler): Second argument of a sigaction handler is a
3174 pointer, not an int, and is unused.
3175 Adjust signal context before mapping to exception.
3176 Install signal handlers for LynxOS case.
3177
3178 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
3179 (Task_Id): Set size to Task_Address_Size
3180 (To_Task_id): Unchecked convert from Task_Address vice System.Address
3181 (To_Address): Unchecked convert to Task_Address vice System.Address
3182
3183 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
3184 address into the ATCB if the platform makes use of an alternate signal
3185 stack for stack overflows.
3186 (Free_Task): Add call to Finalize_Attributes_Link.
3187 Add argument Relative_Deadline to pass the value specified for
3188 the task. This is not yet used for any target.
3189
3190 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
3191 the value specified for the task.
3192
31932008-04-08 Arnaud Charlet <charlet@adacore.com>
3194
3195 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
3196 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
3197 s-vxwext-rtp.adb): New files.
3198
3199 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
3200 Minor updates to accomodate changes above.
3201
32022008-04-08 Pascal Obry <obry@adacore.com>
3203
3204 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
3205 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
3206 Use new s-win32.ads unit instead of declaration
3207 from s-osinte-mingw.ads.
3208
3209 * s-osinte-mingw.ads:
3210 Move all non tasking based interface to s-win32.ads.
3211
3212 * s-osprim-mingw.adb:
3213 Remove duplicated declarations and use s-win32.ads
3214 unit instead.
3215
32162008-04-08 Vincent Celier <celier@adacore.com>
3217 Arnaud Charlet <charlet@adacore.com>
3218
3219 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
3220 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
3221 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
3222 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3223 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
3224
3225 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
3226 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
3227 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
3228 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
3229 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
3230 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
3231 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
3232 mlib-tgt-specific-mingw.adb: New names.
3233
3234 * Makefile.in:
3235 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
3236 Get rid of gnatbl.
3237 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
3238 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
3239 Minor updates for VMS
3240
ea081ad7
AC
3241 * gnatbl.c: Removed.
3242
d563d3f0
AC
32432008-04-08 Thomas Quinot <quinot@adacore.com>
3244
3245 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
3246 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
3247 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
3248 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
3249 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
3250 ASCII.NUL throughout.
3251
32522008-04-08 Arnaud Charlet <charlet@adacore.com>
3253 Matthew Heaney <heaney@adacore.com>
3254
3255 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
3256 renaming.
3257
3258 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
3259 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
3260 to convention for non-RM specs.
3261 Add descriptive header, and documented each operation
3262 document each operation
3263
32642008-04-08 Robert Dewar <dewar@adacore.com>
3265 Bob Duff <duff@adacore.com>
3266 Gary Dismukes <dismukes@adacore.com>
3267 Ed Schonberg <schonberg@adacore.com>
3268
3269 * alloc.ads: Add entries for Obsolescent_Warnings table
3270
3271 * einfo.ads, einfo.adb: Minor reformatting.
3272 (Is_Discriminal): New subprogram.
3273 (Is_Prival): New subprogram.
3274 (Is_Protected_Component): New subprogram.
3275 (Is_Protected_Private): Removed.
3276 (Object_Ref, Set_Object_Ref): Removed.
3277 (Prival, Set_Prival): Change assertion.
3278 (Privals_Chain, Set_Privals_Chain): Removed.
3279 (Prival_Link, Set_Prival_Link): New subprogram.
3280 (Protected_Operation, Set_Protected_Operation): Removed.
3281 (Protection_Object, Set_Protection_Object): New subprogram.
3282 (Write_Field17_Name): Remove case for Object_Ref.
3283 (Write_Field20_Name): Add case for Prival_Link.
3284 (Write_Field22_Name): Remove case for Protected_Operation,
3285 Privals_Chain.
3286 Add case for Protection_Object.
3287 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
3288 so clients
3289 (Overlays_Constant): New flag
3290 (Is_Constant_Object): New predicate
3291 (Is_Standard_Character_Type): New predicate
3292 (Optimize_Alignment_Space): New flag
3293 (Optimize_Alignment_Time): New flag
3294 (Has_Postconditions): New flag
3295 (Obsolescent_Warrning): Field removed
3296 (Spec_PPC_List): New field
3297 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
3298 subprograms to get and set the relative deadline associated to a task.
3299
3300 * exp_attr.adb (May_Be_External_Call): Account for the case where the
3301 Access attribute is part of a named parameter association.
3302 (Expand_Access_To_Protected_Op): Test for the attribute occurring
3303 within an init proc and use that directly as the scope rather than
3304 traversing up to the protected operation's enclosing scope. Only apply
3305 assertion on Is_Open_Scopes in the case the scope traversal is done.
3306 For the init proc case use the address of the first formal (_init) as
3307 the protected object reference.
3308 Implement Invalid_Value attribute
3309 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
3310 contents of the dispatch table there is no need to duplicate the
3311 itypes associated with record types (i.e. the implicit full view
3312 of private types).
3313 Implement Enum_Val attribute
3314 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
3315 within _Postconditions procedure
3316 (Expand_N_Attribute_Reference, case Result): Implement new attribute
3317
3318 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
3319 a return statement calls a function that is not available in
3320 configurable runtime.
3321 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
3322 (Expand_Non_Function_Return): Generate call to _Postconditions proc
3323 (Expand_Simple_Function_Return): Ditto
3324
3325 * frontend.adb: Add call to Sem_Aux.Initialize
3326
3327 * sem_aux.ads, sem_aux.adb: New file.
3328
3329 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
3330 Add new Pragma_Relative_Deadline.
3331 Add support for pragmas Check and Check_Policy
3332
3333 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
3334 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
3335 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
3336 missing check because they are not allowed in CPP tagged types.
3337 Add Sure parameter to Note_Possible_Modification calls
3338 Add implementation of Invalid_Value attribute
3339 Implement new attribute Has_Tagged_Values
3340 Implement Enum_Val attribute
3341 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
3342 generated attributes.
3343 (Analyze_Attribute, case Result): If prefix of the attribute is
3344 overloaded, it always resolves to the enclosing function.
3345 (Analyze_Attribute, case Result): Properly deal with analysis when
3346 Postconditions are not active.
3347 (Resolve_Attribute, case Result): Properly deal with appearence during
3348 preanalysis in spec.
3349 Add processing for attribute Result
3350
3351 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
3352 for operators.
3353 (Analyze_Subprogram_Body): Install private_with_clauses when the body
3354 acts as a spec.
3355 (Check_Inline_Pragma): recognize an inline pragma that appears within
3356 the subprogram body to which it applies.
3357 (Analyze_Function_Return): Check that type of the expression of a return
3358 statement in a function with a class-wide result is not declared at a
3359 deeper level than the function.
3360 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
3361 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
3362 user- defined operators.
3363 (Install_Formals): Moved to spec to allow use from Sem_Prag for
3364 analysis of precondition/postcondition pragmas.
3365 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
3366 Last_Formal, along with lots of comments on what this is about
3367 (Analyze_Subprogram_Body): Fix case where we move entities from the
3368 spec to the body when there are no body entities (now possible with
3369 precondition and postcondition pragmas).
3370 (Process_PPCs): New procedure
3371 (Analyze_Subprogram_Body): Add call to Process_PPCs
3372
3373 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
3374 clause.
3375 (Pop_Scope): Restore Check_Policy_List on scope exit
3376 (Push_Scope): Save Check_Policy_List on scope entry
3377 Change name In_Default_Expression => In_Spec_Expression
3378 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3379 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3380 (Analyze_Object_Renaming): Allow 'Reference as object
3381 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
3382 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
3383 of restriction identifier.
3384 Add Sure parameter to Note_Possible_Modication calls
3385
3386 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
3387 Don't check for primitive operations when calling Rep_Item_Too_Late.
3388 (Process_Import_Or_Interface): Do not place flag on formal
3389 subprograms.
3390 (Analyze_Pragma, case Export): If the entity is a deferred constant,
3391 propagate information to full view, which is the one elaborated by the
3392 back-end.
3393 (Make_Inline): the pragma is effective if it applies to an internally
3394 generated subprogram declaration for a body that carries the pragma.
3395 (Analyze_Pragma, case Optimize_Alignment): Set new flag
3396 Optimize_Alignment_Local.
3397 (Analyze_PPC_In_Decl_Part): New procedure
3398 (Get_Pragma_Arg): Moved to outer level
3399 (Check_Precondition_Postcondition): Change to allow new visibility
3400 rules for package spec
3401 (Analyze_Pragma, case Check_Policy): Change placement rules to be
3402 same as pragma Suppress/Unsuppress.
3403 Change name In_Default_Expression => In_Spec_Expression
3404 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3405 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3406 (Check_Precondition_Postcondition): Do proper visibility preanalysis
3407 for the case of these pragmas appearing in the spec.
3408 (Check_Enabled): New function
3409 (Initialize): New procedure
3410 (Tree_Read): New procedure
3411 (Tree_Write): New procedure
3412 (Check_Precondition_Postcondition): New procedure
3413 Implement pragmas Check and Check_Policy
3414 Merge Assert processing with Check
3415
3416 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
3417 New warning flag -gnatw.e
3418
3419 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
3420 returning whether a task (or main procedure) has a pragma
3421 Relative_Deadline.
3422 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
3423 (or main procedure) has a pragma Relative_Deadline.
3424 Add Next_Pragma field to N_Pragma node
3425 (PPC_Enabled): New flag
3426 (Next_Pragma): Now used for Pre/Postcondition processing
3427
3428 * snames.h, snames.ads, snames.adb: New standard name
3429 Inherit_Source_Path
3430 Add entry for 'Invalid_Value attribute
3431 Add entry for new attribute Has_Tagged_Values
3432 Add entry for Enum_Val attribute
3433 Add new standard names Aggregate, Configuration and Library.
3434 Add _Postconditions
3435 Add _Result
3436 Add Pragma_Precondition
3437 Add Pragma_Postcondition
3438 Add Attribute_Result
3439 New standard name Archive_Builder_Append_Option
3440 (Preset_Names): Add _relative_deadline and relative_deadline definitions
3441 There was also a missing non_preemptive_within_priorities.
3442 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
3443 Relative_Deadline.
3444 Add support for pragmas Check and Check_Policy
3445
3446 * tree_gen.adb: Call Sem_Aux.Tree_Write
3447
3448 * tree_in.adb: Call Sem_Aux.Tree_Read
3449
3450 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
3451 sequence
3452
3453 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
3454 sequence
3455
3456 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
3457 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
3458 Relative_Deadline.
3459 (Expand_Pragma_Check): New procedure
3460
3461 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
3462 buffer.
3463
3464 * sinfo.adb (PPC_Enabled): New flag
3465
34662008-04-08 Robert Dewar <dewar@adacore.com>
3467 Gary Dismukes <dismukes@adacore.com>
3468 Javier Miranda <miranda@adacore.com>
3469 Ed Schonberg <schonberg@adacore.com>
3470
3471 * fe.h: Remove global Optimize_Alignment flag, no longer used
3472
3473 * layout.adb: Test Optimize_Alignment flags rather than global switch
3474
3475 * lib.ads, lib.adb: New OA_Setting field in library record
3476
3477 * lib-load.adb: New OA_Setting field in library record
3478
3479 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
3480 units mentioned in limited_with_ clauses in the ali file, with an
3481 'Y' marker.
3482 New Ox fields in U line
3483
3484 * opt.adb: New flag Optimize_Alignment_Local
3485 (Check_Policy_List[_Config]): New flags
3486
3487 * opt.ads (Invalid_Value_Used): New flag
3488 New switch Optimize_Alignment_Local
3489 (Warn_On_Parameter_Order): New flag
3490 (Check_Policy_List[_Config]): New flags
3491
3492 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
3493 limited_with clauses.
3494 New data structures for Optimize_Alignment
3495
3496 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
3497 New procedure
3498 (Check_Consistent_Optimize_Alignment): Rework for new structure
3499 (Check_Consistent_Restrictions): Fix incorrect error message
3500
3501 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
3502 created class-wide type (to the Parent field of the specific type).
3503 (Install_Siblings): Handle properly private_with_clauses on subprogram
3504 bodies and on generic units.
3505 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
3506 illegal limited_with_clause that names a non-existent package.
3507 (Check_Body_Required): Determine whether a unit named a limited_with
3508 clause needs a body.
3509 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
3510 Capture Optimize_Alignment settings to set new OA_Setting field in
3511 library record.
3512 (Build_Limited_Views): Include task and protected type declarations.
3513
3514 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
3515 case of a possible constant redeclaration where the current object is
3516 an entry index constant.
3517 (Analyze_Object_Declaration): Generate an error in case of CPP
3518 class-wide object initialization.
3519 (Analyze_Object_Declaration): Add extra information on warnings for
3520 declaration of unconstrained objects.
3521 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
3522 conflicts with the setting of Stored_Constraint in the case where the
3523 access type entity has already been created as an E_Incomplete_Type due
3524 to a limited with clause.
3525 Use new Is_Standard_Character_Type predicate
3526 (Analyze_Object_Declaration): Apply access_constant check only after
3527 expression has been resolved, given that it may be overloaded with
3528 several access types.
3529 (Constant_Redeclaration): Additional legality checks for deferred
3530 constant declarations tha involve anonymous access types and/or null
3531 exclusion indicators.
3532 (Analyze_Type_Declaration): Set Optimize_Alignment flags
3533 (Analyze_Subtype_Declaration): Ditto
3534 (Analyze_Object_Declaration): Ditto
3535 (Analyze_Object_Declaration): Don't count tasks in generics
3536 Change name In_Default_Expression => In_Spec_Expression
3537 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3538 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3539 (Process_Discriminants): Additional check for illegal use of default
3540 expressions in access discriminant specifications in a type that is not
3541 explicitly limited.
3542 (Check_Abstract_Overriding): If an inherited function dispaches on an
3543 access result, it must be overridden, even if the type is a null
3544 extension.
3545 (Derive_Subprogram): The formals of the derived subprogram have the
3546 names and defaults of the parent subprogram, even if the type is
3547 obtained from the actual subprogram.
3548 (Derive_Subprogram): In the presence of interfaces, a formal of an
3549 inherited operation has the derived type not only if it descends from
3550 the type of the formal of the parent operation, but also if it
3551 implements it. This is relevant for the renamings created for the
3552 primitive operations of the actual for a formal derived type.
3553 (Is_Progenitor): New predicate, to determine whether the type of a
3554 formal in the parent operation must be replaced by the derived type.
3555
3556 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
3557 predicate recursive to handle components that have a user-defined
3558 Initialize procedure. Handle controlled derived types whose ancestor
3559 has a user-defined Initialize procedured.
3560 (Note_Possible_Modification): Add Sure parameter, generate warning if
3561 sure modification of constant
3562 Use new Is_Standard_Character_Type predicate
3563 (Find_Parameter_Type): when determining whether a protected operation
3564 implements an interface operation, retrieve the type of the formal from
3565 the entity when the formal is an access parameter or an
3566 anonymous-access-to-subprogram.
3567 Move Copy_Parameter_List to sem_util, for use when building stubbed
3568 subprogram bodies.
3569 (Has_Access_Values): Tagged types now return False
3570 (Within_HSS_Or_If): New procedure
3571 (Set_Optimize_Alignment_Flags): New procedure
3572 Change name In_Default_Expression => In_Spec_Expression
3573 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
3574 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
3575
35762008-04-08 Tristan Gingold <gingold@adacore.com>
3577
3578 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
3579
35802008-04-08 Tristan Gingold <gingold@adacore.com>
3581
3582PR ada/10768
3583
3584 * cuintp.c: Fix 16 bits issue for AVR.
3585 On AVR, integer is 16 bits, so it can't be used to do math with
3586 Base (=32768).
3587 So use long_integer instead.
3588
35892008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3590
3591 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
3592 System.OS_Primitives.
3593 Change type of various constants, parameters and local variables from
3594 Time to representation type OS_Time.
3595 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
3596 Remove the declaration of constant Mili_F from several routines. New
3597 body for internal package Conversions_Operations.
3598 (Time_Of): Add default parameters for several formals.
3599
3600 * a-caldel.adb: Minor reformatting
3601
3602 * a-calend.ads, a-calend.adb: New body for internal package
3603 Conversions_Operations.
3604 (Time_Of): Add default parameters for several formals.
3605
3606 * Makefile.rtl: Add a-ststop
3607 Add Ada.Calendar.Conversions to the list of runtime files.
3608 Add g-timsta
3609
3610 * a-calcon.adb, a-calcon.ads: New files.
3611
36122008-04-08 Jose Ruiz <ruiz@adacore.com>
3613 Tristan Gingold <gingold@adacore.com>
3614
3615 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
3616 (Install_Restricted_Handlers): New procedure
3617 which is a simplified version of Install_Handlers that does not store
3618 previously installed.
3619
3620 * s-interr-vxworks.adb: Fix ACATS cxc3001
3621 On VxWorks interrupts can't be detached.
3622 (Install_Restricted_Handlers): New procedure.
3623
3624 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
3625 procedure.
3626
36272008-04-08 Olivier Hainque <hainque@adacore.com>
3628
3629 * s-intman-vxworks.ads, s-intman-vxworks.adb
3630 (Map_And_Raise_Exception): Remove. Was an import of only part of the
3631 required services already implemented elsewhere.
3632 (Notify_Exception): Delete body, import __gnat_error_handler instead.
3633 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
3634 argument passed to the handler, which we need for ZCX propagation
3635 purposes.
3636
36372008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3638
3639 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
3640
3641 * g-timsta.adb, g-timsta.ads: New files.
3642
36432008-04-08 Robert Dewar <dewar@adacore.com>
3644
3645 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
3646 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
3647 (Raise_Exception_Always): Fix documentation accordingly
3648
36492008-04-08 Robert Dewar <dewar@adacore.com>
3650
3651 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
3652 Stream_Convert)
3653
3654 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
3655 FOnly
3656
36572008-04-08 Javier Miranda <miranda@adacore.com>
3658 Robert Dewar <dewar@adacore.com>
3659 Ed Schonberg <schonberg@adacore.com>
3660
3661 * a-tags.adb (Register_Interface_Offset): New subprogram.
3662 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
3663 (To_Predef_Prims_Table_Ptr): Removed.
3664 (Acc_Size): Removed.
3665 (To_Acc_Size): Removed.
3666 (Parent_Size): Modified to the call the subprogram returning the size of
3667 the parent by means of the new TSD component Size_Func.
3668
3669 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
3670 (DT_Offset_To_Top_Offset): New constant value that is used to generate
3671 code referencing the Offset_To_Top component of the dispatch table's
3672 prologue.
3673 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
3674 use of 'address to initialize dispatch table slots.
3675 (Size_Func): New component of the TSD. Used by the run-time to call the
3676 size primitive of the tagged type.
3677
3678 * checks.adb (Apply_Access_Check): Avoid check when accessing the
3679 Offset_To_Top component of a dispatch table.
3680 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
3681 deferred constant declaration. do not add a null expression, to prevent
3682 spurious errors when full declaration is analyzed.
3683 (Apply_Discriminant_Check): If both discriminant constraints share a
3684 node which is not static but has no side effects, do not generate a
3685 check for that discriminant.
3686 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
3687 subexpr, since the prefix of an attribute is a name.
3688
3689 * checks.ads: Fix nit in comment.
3690
3691 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
3692 and body of predefined primitives in case of CPP tagged type
3693 derivations.
3694 (Freeze_Type): Deal properly with no storage pool case
3695 (Make_Predefined_Primitive_Specs): Generate specification of abstract
3696 primitive Deep_Adjust if a nonlimited interface is derived from a
3697 limited interface.
3698 (Build_Dcheck_Functions): Create discriminant-checking functions only
3699 for variants that have some component(s).
3700 (Build_Slice_Assignment): In expanded code for slice assignment, handle
3701 properly the case where the slice bounds extend to the last value of the
3702 underlying representation.
3703 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
3704 (Is_Variable_Size_Record): An array component has a static size if
3705 index bounds are enumeration literals.
3706
3707 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
3708 an external tag has been specified for the type.
3709 (Building_Static_DT): Add missing support for private types.
3710 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
3711 to the entity associated with the parent of Typ. This is done to
3712 avoid wrong access when the parent is a private type.
3713 (Expand_Interface_Conversion): Improve error message when the
3714 configurable runtime has no support for dynamic interface conversion.
3715 (Expand_Interface_Thunk): Add missing support to interface types in
3716 configurable runtime.
3717 (Expand_Dispatching_Call): remove obsolete code.
3718 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
3719 ensure that all subtypes and aggregates associated with dispatch
3720 tables have the attribute Is_Dispatch_Table_Entity set to true.
3721 (Register_Primitive): Rename one variable to improve code reading.
3722 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
3723 of the pointer to the 'size primitive in the TSD.
3724
3725 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
3726 (RE_Offset_To_Top_Ptr): New entity.
3727 (RE_Register_Interface_Offset): New entity.
3728 (RE_Set_Dynamic_Offset_To_Top): New entity.
3729 (RE_Set_Offset_To_Top): Removed entity.
3730 (RE_Prim_Ptr): New entity
3731 (RE_Size_Func): New entity
3732 (RE_Size_Ptr): New entity
3733 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
3734 (Ada_Dispatching_Child): Define this new subrange.
3735 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
3736 RE_Time_Span, and RE_Time_Span_Zero).
3737 (RE_Unit_Table): Add new required run-time calls
3738
3739 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
3740 children.
3741
3742 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
3743 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
3744 initializes the Offset_To_Top component of a dispatch table.
3745 (Build_Predef_Prims): Removed.
3746 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
3747 its actual code.
3748 (Build_Set_Size_Function): New subprogram.
3749
3750 * exp_ch13.adb: Do not generate storage variable for storage_size zero
3751 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
3752
37532008-04-08 Robert Dewar <dewar@adacore.com>
3754
3755 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
3756 computing Fore when Exp > 0
3757
37582008-04-08 Robert Dewar <dewar@adacore.com>
3759
3760 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
3761
3762 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
3763 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
3764
3765 * fmap.adb: Remove Big_String declarations (now in Types)
3766 (No_Mapping_File): New Boolean global variable
3767 (Initialize): When mapping file cannot be read, set No_Mapping_File to
3768 False.
3769 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
3770 tables were empty before adding entries, open the mapping file
3771 with Truncate = True, instead of delete/re-create.
3772
3773 * fname-sf.adb: Remove Big_String declarations (now in Types)
3774
3775 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
3776 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
3777 big pointer types
3778
3779 * table.ads: Add for Table_Ptr'Storage_Size use 0
3780
3781 * types.ads: Add Big_String declarations
3782 Add Size_Clause of zero for big pointer types
3783
37842008-04-08 Vincent Celier <celier@adacore.com>
3785
3786 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
3787 (Usage): Add line for switch --subdirs=
3788 Add new switch -eL, to follow symbolic links when processing project
3789 files.
3790
3791 * gnatcmd.adb: Process switches -eL and --subdirs=
3792 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
3793 Program_Name to get proper tool names when AAMP_On_Target is set.
3794 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
3795 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
3796 Osint.Program_Name).
3797
3798 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
3799 (Usage): Add lines for switches -eL and --subdirs=
3800
3801 * makeusg.adb: Add line for switch --subdirs=
3802
3803 * prj.ads:
3804 (Source_Data): New Boolean component Compiled, defaulted to True
3805 (Empty_File_Name: New global variable in private part, initialized in
3806 procedure Initialize.
3807 (Subdirs_Option): New constant string
3808 (Subdirs): New String_Ptr global variable
3809 (Language_Config): New component Include_Compatible_Languages
3810 (Project_Qualifier): New type for project qualifiers
3811 (Project_Data): New component Qualifier
3812 (Project_Configuration): New component Archive_Builder_Append_Option
3813
3814 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
3815 another imported project indicate the name of this imported project.
3816 (Check_File): When a unit is in two project files, indicate the project
3817 names and the paths of the source files for each project.
3818 (Add_Source): Set Compiled to False if compiler driver is empty. Only
3819 set object, dependency and switches file names if Compiled is True.
3820 (Process_Compiler): Allow the empty string for value of attribute Driver
3821 (Get_Directories): When Subdirs is not null and Object_Dir is not
3822 specified, locate and create if necessary the actual object dir.
3823 (Locate_Directory): When Subdirs is not empty and Create is not the
3824 empty string, locate and create if necessary the actual directory
3825 as a subdirectory of directory Name.
3826 (Check_Library_Attributes.Check_Library): Allow a project where the only
3827 "sources" are header files of file based languages to be imported by
3828 library projects, in multi-language mode (gprbuild).
3829 (Check_Library_Attributes.Check_Library): In multi-language mode
3830 (gprbuild), allow a library project to import a project with no
3831 sources, even when this is not declared explicitly.
3832 (Check_If_Externally_Built): A virtual project extending an externally
3833 built project is also externally built.
3834 (Check_Library_Attributes): For a virtual project extending a library
3835 project, inherit the library directory.
3836 (Process_Project_Level_Array_Attributes): Process new attribute
3837 Inherit_Source_Path.
3838 For projects with specified qualifiers "standard", "library" or
3839 "abstract", check that the project conforms to the qualifier.
3840 (Process_Project_Level_Simple_Attributes): Process new attribute
3841 Archive_Builder_Append_Option.
3842
3843 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
3844 (Normalize_Compiler_Switches): Only keep compiler switches that are
3845 passed to gnat1 by the gcc driver and that are stored in the ALI file
3846 by gnat1.
3847 Do not take into account switc -save-temps
3848
3849 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
3850 gprmake is called with -eL.
3851 (Scan_Arg): Recognize switch -eL
3852 (Usage): Add line for switch -eL
3853
3854 * prj.adb (Initialize): Initialize Empty_File_Name
3855 (Project_Empty): New component Qualifier
3856
3857 * prj-attr.ads, prj-attr.adb: New project level attribute
3858 Inherit_Source_Path.
3859 New project level attribute Archive_Builder_Append_Option
3860
3861 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
3862
3863 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
3864 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
3865 upward compatibility.
3866
3867 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
3868 each Trying ..." on different lines.
3869 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
3870 is "configuration" when not in configuration. Fail when in configuration
3871 when a specified qualifier is other than "configuration".
3872
3873 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
3874 full associative array together.
3875 (Recursive_Process): Put the project qualifier in the project data
3876
3877 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
3878 (Set_Project_Qualifier_Of): New procedure
3879
38802008-04-08 Robert Dewar <dewar@adacore.com>
3881
3882 * errout.ads: Update comments for new handling of info: messages
3883
3884 * erroutc.adb (Matches): New procedure
3885 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
3886 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
3887 info messages as well as style messages.
3888
3889 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
3890
3891 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
3892 subprograms.
3893 (Check_A_Call): Special "info: " warnings now have ? in the text
3894 (Elab_Warning): Use info message in static case
3895
38962008-04-08 Ed Schonberg <schonberg@adacore.com>
3897
3898 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
3899 whether an array aggregate with static bounds and scalar components
3900 should be expanded into a static constant.
3901
39022008-04-08 Gary Dismukes <dismukes@adacore.com>
3903 Ed Schonberg <schonberg@adacore.com>
3904 Robert Dewar <dewar@adacore.com>
3905
3906 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
3907 Has_Stream_Attribute_ Definition when checking for available stream
3908 attributes on parameters of a limited type in Ada 2005. Necessary for
3909 proper recognition of visible stream attribute clauses.
3910 (Has_Stream_Attribute_Definition): If the type is derived from a
3911 private type, then use the derived type's underlying type for checking
3912 whether it has stream attributes.
3913 (Validate_Object_Declaration): The check for a user-defined Initialize
3914 procedure applies also to types with controlled components or a
3915 controlled ancestor.
3916 Reject an object declaration in a preelaborated unit if the type is a
3917 controlled type with an overriding Initialize procedure.
3918 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
3919 checking when the parent of a dereference is a selected component and
3920 the name has not been analyzed.
3921
3922 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
3923 prefixes that are invalid explicit dereferences of remote
3924 access-to-class-wide values, first checking whether the selected
3925 component is a prefixed form of call to a tagged operation.
3926 (Analyze_Call): Remove code that issues an error for limited function
3927 calls in illegal contexts, as we now support all of the contexts that
3928 were forbidden here.
3929 Allow a function call that returns a task.and appears as the
3930 prefix of a selected component.
3931 (Analyze_Reference): Give error message if we try to make a 'Reference
3932 for an object that is atomic/aliased without its type having the
3933 corresponding attribute.
3934 (Analyze_Call): Remove condition checking for attributes to allow
3935 calls to functions with inherently limited results as prefixes of
3936 attributes. Remove related comment about Class attributes.
3937 (Analyze_Selected_Component): If the prefix is a remote type, check
3938 whether this is a prefixed call before reporting an error.
3939 (Complete_Object_Operation): If the controlling formal is an access to
3940 variable reject an actual that is a constant or an access to one.
3941 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
3942 primitive operations from base type.
3943
3944 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
3945 build-in-place
3946 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3947 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
3948 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
3949 (Expand_N_Slice): Test for prefix that is a build-in-place function call
3950 and call Make_Build_In_Place_Call_In_Anonymous_Context.
3951 (Analyze_Call): Remove code that issues an error for limited function
3952 calls in illegal contexts, as we now support all of the contexts that
3953 were forbidden here.
3954 New calling sequence for Get_Simple_Init_Val
3955 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
3956 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
3957
39582008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
3959 Ed Schonberg <schonberg@adacore.com>
3960 Robert Dewar <dewar@adacore.com>
3961
3962 * exp_ch2.adb: Minor reformatting.
3963 (Expand_Entry_Index_Parameter): Set the type of the identifier.
3964 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
3965 (Expand_Protected_Component): New routine.
3966 (Expand_Protected_Private): Removed.
3967 Add Sure parameter to Note_Possible_Modification calls
3968
3969 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
3970 generated subprogram declaration must inherit the overriding indicator
3971 from the instantiation node.
3972 (Validate_Access_Type_Instance): If the designated type of the actual is
3973 a limited view, use the available view in all cases, not only if the
3974 type is an incomplete type.
3975 (Instantiate_Object): Actual is illegal if the formal is null-excluding
3976 and the actual subtype does not exclude null.
3977 (Process_Default): Handle properly abstract formal subprograms.
3978 (Check_Formal_Package_Instance): Handle properly defaulted formal
3979 subprograms in a partially parameterized formal package.
3980 Add Sure parameter to Note_Possible_Modification calls
3981 (Validate_Derived_Type_Instance): if the formal is non-limited, the
3982 actual cannot be limited.
3983 (Collect_Previous_Instances): Generate instance bodies for subprograms
3984 as well.
3985
3986 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
3987 try to set RM_Size.
3988 Add Sure parameter to Note_Possible_Modification calls
3989 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
3990 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
3991 constant overlaid by variable and issue warning.
3992 Use new Is_Standard_Character_Type predicate
3993 (Analyze_Record_Representation_Clause): Check that the specified
3994 Last_Bit is not less than First_Bit - 1.
3995 (Analyze_Attribute_Definition_Clause, case Address): Check for
3996 self-referential address clause
3997
3998 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
3999 detection mechanism when the lhs is a prival.
4000 (Analyze_Assignment): Call Check_Unprotected_Access to detect
4001 assignment of a pointer to protected data, to an object declared
4002 outside of the protected object.
4003 (Analyze_Loop_Statement): Check for unreachable code after loop
4004 Add Sure parameter to Note_Possible_Modication calls
4005 Protect analysis from previous syntax error such as a scope mismatch
4006 or a missing begin.
4007 (Analyze_Assignment_Statement): The assignment is illegal if the
4008 left-hand is an interface.
4009
ea081ad7
AC
4010 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
4011 violation of restriction No_Implicit_Conditionals
d563d3f0
AC
4012 Add Sure parameter to Note_Possible_Modication calls
4013 Use new Is_Standard_Character_Type predicate
4014 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
4015 call as operator. Fixes problems (e.g. validity checking) which
4016 come from the result looking as though it does not come from source).
4017 (Resolve_Call): Check case of name in named parameter if style checks
4018 are enabled.
4019 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
4020 from the checking that such calls should not occur from an entry body.
4021 (Resolve_Call): If the return type of an Inline_Always function
4022 requires the secondary stack, create a transient scope for the call
4023 if the body of the function is not available for inlining.
4024 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
4025 that are actuals for in-out formals.
4026 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
4027 primitive operations from base type.
4028 (Analyze_Selected_Component): If the context is a call to a protected
4029 operation the parent may be an indexed component prior to expansion.
4030 (Resolve_Actuals): If an actual is of a protected subtype, use its
4031 base type to determine whether a conversion to the corresponding record
4032 is needed.
4033 (Resolve_Short_Circuit): Handle pragma Check
4034
4035 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
4036 Use new Is_Standard_Character_Type predicate
4037 (Eval_Relational_Op): Catch more cases of string comparison
4038
40392008-04-08 Robert Dewar <dewar@adacore.com>
4040 Gary Dismukes <dismukes@adacore.com>
4041
4042 * s-rident.ads: Add No_Default_Initialization restriction
4043
4044 * exp_tss.adb:
4045 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
4046 (Set_TSS): Handle No_Default_Initialization case
4047
4048 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
4049 No_Default_Initialization
4050 (Expand_N_Subprogram_Body): Remove redundant initialization of out
4051 parameters when Normalize_Scalars is active.
4052 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
4053 Fix casing error in formal parameter name in call
4054 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
4055 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4056 dispatching call on VM targets.
4057
40582008-04-08 Gary Dismukes <dismukes@adacore.com>
4059 Thomas Quinot <quinot@adacore.com>
4060
4061 * exp_ch7.adb (Find_Final_List): Change the test for generating a
4062 selected component from an access type's Associated_Final_Chain to
4063 check for the presence of that field, rather than assuming it exists
4064 for all named access types.
4065 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
4066 procedure to call at the end of the generated cleanup procedure.
4067 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
4068 and an At_End_Proc already exists in the handled sequence of statements
4069 for which cleanup actions are being expanded, the original cleanup
4070 action must be preserved.
4071
40722008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4073 Ed Schonberg <schonberg@adacore.com>
4074 Robert Dewar <dewar@adacore.com>
4075 Gary Dismukes <dismukes@adacore.com>
4076
4077 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
4078 Build_Unprotected_Subprogram_Body): Generate debug info for
4079 declarations related to the handling of private data in task and
4080 protected types.
4081 (Debug_Private_Data_Declarations): New subprogram.
4082 (Install_Private_Data_Declarations): Remove all debug info flagging.
4083 This is now done by Debug_Private_Data_Declarations at the correct
4084 stage of expansion.
4085 (Build_Simple_Entry_Call): If the task name is a function call, expand
4086 the prefix into an object declaration, and make the surrounding block a
4087 task master.
4088 (Build_Master_Entity): An internal block is a master if it wraps a call.
4089 Code reformatting, update comments. Code clean up.
4090 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
4091 (Replicate_Entry_Formals): If the formal is an access parameter or
4092 anonymous access to subprogram, copy the original tree to create new
4093 entities for the formals of the subprogram.
4094 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
4095 for tasks to store the value passed using pragma Relative_Deadline.
4096 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
4097 run-time call to create a task.
4098 (Build_Wrapper_Spec): If the controlling argument of the interface
4099 operation is an access parameter with a non-null indicator, use the
4100 non-null indicator on the wrapper.
4101
4102 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
4103 present, which it may not be in the case where the type entity is an
4104 incomplete view brought in by a limited with.
4105 (Analyze_Task_Type): Only retrieve the full view when present, which it
4106 may not be in the case where the type entity is an incomplete view brought
4107 in by a limited with.
4108 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
4109 private components of a protected type, to prevent the generation of freeze
4110 nodes for which there is no proper scope of elaboration.
4111
4112 * exp_util.ads, exp_util.adb
4113 (Remove_Side_Effects): If the expression is a function call that returns a
4114 task, expand into a declaration to invoke the build_in_place machinery.
4115 (Find_Protection_Object): New routine.
4116 (Remove_Side_Effects): Also make a copy of the value
4117 for attributes whose result is of an elementary type.
4118 (Silly_Boolean_Array_Not_Test): New procedure
4119 (Silly_Boolean_Array_Xor_Test): New procedure
4120 (Is_Volatile_Reference): New function
4121 (Remove_Side_Effects): Use Is_Volatile_Reference
4122 (Possible_Bit_Aligned_Component): Handle slice case properly
4123
4124 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
4125 case test to Exp_Util
4126 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
4127
41282008-04-08 Thomas Quinot <quinot@adacore.com>
4129
4130 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
4131 in call
4132 (Add_RACW_Features): When processing an RACW in another unit than the
4133 main unit, set Body_Decls to No_List to indicate that the bodies of
4134 the type's TSS must not be generated.
4135 (GARLIC_Support.Add_RACW_Read_Attribute,
4136 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
4137 Body_Decls is No_List.
4138 (PolyORB_Support.Add_RACW_Read_Attribute,
4139 PolyORB_Support.Add_RACW_Write_Attribute,
4140 PolyORB_Support.Add_RACW_From_Any,
4141 PolyORB_Support.Add_RACW_To_Any,
4142 PolyORB_Support.Add_RACW_TypeCode): Same.
4143 (Transmit_As_Unconstrained): New function.
4144 (Build_Ordered_Parameters_List): Use the above to order parameters.
4145 (GARLIC_Support.Build_General_Calling_Stubs):
4146 Use the above to determine which parameters to unmarshall using 'Input
4147 at the point where their temporary is declared (as opposed to later on
4148 with a 'Read call).
4149 (PolyORB_Support.Build_General_Calling_Stubs):
4150 Use the above to determine which parameters to unmarshall using From_Any
4151 at the point where their temporary is declared (as opposed to later on
4152 with an assignment).
4153
41542008-04-08 Ed Schonberg <schonberg@adacore.com>
4155
4156 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
4157 an Input function for an access type, do not perform default
4158 initialization on the local variable that receives the value, to
4159 prevent spurious warnings when the type is null-excluding.
4160
41612008-04-08 Robert Dewar <dewar@adacore.com>
4162 Ed Schonberg <schonberg@adacore.com>
4163
4164 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
4165 units.
4166 (Size_Known): Generic formal scalar types have known at compile
4167 time size, so remove check.
4168 Fix casing error in formal parameter name in call
4169 (Freeze_Subprogram): If the subprogram is a user-defined operator,
4170 recheck its overriding indication.
4171
41722008-04-08 Vincent Celier <celier@adacore.com>
4173
4174 * gnat1drv.adb: Send all messages indicating an error to standard error
4175
41762008-04-08 Robert Dewar <dewar@adacore.com>
4177
4178 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
4179 (List_Applicable_Restrictions): Do not list existing restrictions
4180
41812008-04-08 Thomas Quinot <quinot@adacore.com>
4182
4183 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
4184 add a pointer to generic sockets literature
4185 do not mention that the given example is "typical" usage.
4186 Remove obsolete comment about multicast not being supported on Windows.
4187 (Connect_Socket): Make Server mode IN rather than IN OUT
4188 since this formal is never modified.
4189
41902008-04-08 Robert Dewar <dewar@adacore.com>
4191
4192 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
4193 the declaration for some different entity.
4194 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
4195 list is precent (following the parent subtype indication), display
4196 appropriate "and" keyword.
4197
4198 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
4199 Remove unnecessary calls to Init_Size_Align and Init_Esize.
4200 Add notes on use of Parent field of an Itype
4201
42022008-04-08 Ed Schonberg <schonberg@adacore.com>
4203 Robert Dewar <dewar@adacore.com>
4204 Gary Dismukes <dismukes@adacore.com>
4205
4206 * lib-xref.adb (Is_On_LHS): Remove dead code
4207 (Output_Overriden_Op): If the overridden operation is itself inherited,
4208 list the ancestor operation, which is the one whose body or absstract
4209 specification is actually being overridden. For source navigation
4210 purposes.
4211
4212 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
4213 operation is primitive for the type.
4214 (Declare_Inherited_Private_Subprograms): If the new operation overrides
4215 an inherited private subprogram, set properly the Overridden_Operation
4216 attribute, for better cross-reference information.
4217 (Analyze_Package_Specification): Do late analysis of spec PPCs
4218 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
4219 properly the full view and underlying full views of a private type in a
4220 child unit, whose full view is derived from a private type in a parent
4221 unit, and whose own full view becomes visible in the child body.
4222
4223 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
4224 primitive operation after the type has been frozen, add an explicit
4225 reference to the type and the operation, because other primitive
4226 references have been emitted already.
4227 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
4228 dispatching call on VM targets.
4229
42302008-04-08 Vincent Celier <celier@adacore.com>
4231 Thomas Quinot <quinot@adacore.com>
4232
4233 * make.adb: (Gnatmake_Called): Remove, no longer necessary
4234 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
4235 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
4236 (Insert_Project_Sources): Take into account index in multi-unit source
4237 files.
4238 After building a library project, delete all temporary files.
4239 (Initialize): Reset current output after parsing project file.
4240 (Collect_Arguments_And_Compile): Never insert in the queue the sources
4241 of library projects that are externally built.
4242 Put file name in error and inform messages if -df is used
4243 (Display): If invoked with -d7, do not display path names, but only
4244 file names.
4245
4246 * makeutl.ads (Path_Or_File_Name): New function
4247 (Path_Or_File_Name): New function
4248
42492008-04-08 Arnaud Charlet <charlet@adacore.com>
4250
4251 * Make-lang.in: Disable warnings during first stage of bootstrap
4252 Get rid of gnatbl.
4253 Update dependencies.
4254
42552008-04-08 Vincent Celier <celier@adacore.com>
4256
4257 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
4258 case to decide if ALI object file is included in library.
4259 (Build_Library): Never attempt to build a library if the project is
4260 externally built.
4261
42622008-04-08 Thomas Quinot <quinot@adacore.com>
4263
4264 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
4265 (No_List) is defined to return Empty.
4266
42672008-04-08 Jose Ruiz <ruiz@adacore.com>
4268
4269 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
4270 documentation.
4271 Update comments.
4272 (Read_Default_Search_Dirs): Do not consider spaces as path separators
4273 because spaces may be part of legal paths.
4274
42752008-04-08 Robert Dewar <dewar@adacore.com>
4276
4277 * par-ch11.adb (P_Exception_Handler): Check indentation level for
4278 handler
4279
42802008-04-08 Ed Schonberg <schonberg@adacore.com>
4281
4282 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
4283 in a type declaration, if this is not an interface declaration or
4284 private type extension.
4285
42862008-04-08 Vincent Celier <celier@adacore.com>
4287
4288 * prj-util.adb (Executable_Of): New String parameter Language. When
4289 Ada_Main is False and Language is not empty, attempt to remove the body
4290 suffix or the spec suffix of the language to get the base of the
4291 executable file name.
4292 (Put): New Boolean parameter Lower_Case, defauilted to False. When
4293 Lower_Case is True, put the value in lower case in the name list.
4294 (Executable_Of): If there is no executable suffix in the configuration,
4295 then do not modify Executable_Extension_On_Target.
4296
4297 * prj-util.ads (Executable_Of): New String parameter Language,
4298 defaulted to the empty string.
4299 (Put): New Boolean parameter Lower_Case, defauilted to False
4300
43012008-04-08 Robert Dewar <dewar@adacore.com>
4302
4303 * scng.adb (Scan_Identifier): Handle case of identifier starting with
4304 wide character using UTF-8 encoding.
4305
43062008-04-08 Javier Miranda <miranda@adacore.com>
4307
4308 * sem.adb (Analyze): Consider case in which we analyze an empty node
4309 that was generated by a call to a runtime function that is not
4310 available under the configurable runtime.
4311
4312 * sem.ads (Inside_Freezing_Actions): New flag.
4313 (Save_Check_Policy_List): New field in scope stack entry
4314
43152008-04-08 Ed Schonberg <schonberg@adacore.com>
4316 Robert Dewar <dewar@adacore.com>
4317
4318 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
4319 the ancestor part of an extension aggregate for a limited type.
4320 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
4321 enumeration index bounds.
4322 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
4323 when array is too short.
4324 (Check_Expr_OK_In_Limited_Aggregate): Move function
4325 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
4326 change name).
4327 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
4328 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
4329 component associations.
4330 (Check_Non_Limited_Type): Moved to outer level and renamed.
4331 (Resolve_Record_Aggregate): In an extension aggregate, an association
4332 with a box initialization can only designate a component of the
4333 extension, not a component inherited from the given ancestor
4334
4335 * sem_case.adb: Use new Is_Standard_Character_Type predicate
4336
43372008-04-08 Robert Dewar <dewar@adacore.com>
4338
4339 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
4340 negative scale
4341 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
4342 Properly handle case where Aft > Scale and input number is less than
4343 one.
4344
43452008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4346
4347 * s-stoele.ads, s-soflin.ads: Move the location of
4348 Dummy_Communication_Block from System.Storage_Elements to
4349 System.Soft_Links.
4350
4351 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
4352 emulate Communication_Block in certain scenarios.
4353
43542008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
4355
4356 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
4357 subprogram.
4358 Add new subtype S_WWC, unchecked conversion routines From_WWC and
4359 To_WWC.
4360 (I_WWC, O_WWC): New routines for input and output of
4361 Wide_Wide_Character.
4362
43632008-04-08 Robert Dewar <dewar@adacore.com>
4364
4365 * stringt.adb (Write_String_Table_Entry): Handle wide characters
4366 properly
4367
43682008-04-08 Robert Dewar <dewar@adacore.com>
4369
4370 * styleg.adb (Check_Comment): Allow special char after -- in
4371 non-end-of-line case
4372
43732008-04-08 Robert Dewar <dewar@adacore.com>
4374
4375 * stylesw.adb: Implement -gnaty + - y options
4376 (Set_GNAT_Style_Check_Options): Includ I in style check string
4377
4378 * stylesw.ads: Add comments for new style switch options
4379
43802008-04-08 Sergey Rybin <rybin@adacore.com>
4381
4382 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
4383 to the set of the GNAT components needed by ASIS.
4384
43852008-04-08 Bob Duff <duff@adacore.com>
4386
4387 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
4388
43892008-04-08 Tristan Gingold <gingold@adacore.com>
4390
4391 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
4392 Improve error message generation.
4393
43942008-04-08 Vincent Celier <celier@adacore.com>
4395
4396 * a-direct.adb (Start_Search): Check for Name_Error before checking for
4397 Use_Error, as specified in the RM. Check if directory is open and raise
4398 Use_Error if it is not.
4399
44002008-04-08 Vincent Celier <celier@adacore.com>
4401 Robert Dewar <dewar@adacore.com>
4402
4403 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
4404 AAMP_On_Target is set.
4405
4406 * vms_data.ads: Add NOxxx to style check switch list
4407 Add entry COMPONENTS for -gnatVe
4408 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
4409 (/SUBDIRS=).
4410 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
4411 Add qualifiers for gnatmetric coupling options
4412 Add note that -gnata enables all checks
4413 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
4414 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
4415 New warning flag -gnatw.e
4416
4417 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
4418 Add entry for -gnatyN (forgotten before)
4419 Line for new warning switch -gnatw.p
4420 New warning flag -gnatw.e
4421
4422 * gnat_ugn.texi: Add documentation fpr project file switch -aP
4423 Document -gnaty - + y
4424 Replace occurences of "package specification" with "package spec"
4425 Define preprocessing symbols in documentation of gnatprep
4426 Clarify reason for distinguishing overflow checking
4427 Add documentation for project-aware tool switches -eL and --subdirs=
4428 Complete list of configuration pragmas
4429 Specify that, even when gnatmake switch -x is used, mains on the command
4430 line need to be sources of project files.
4431 Editing of gnatcheck/gnatmetric doc.
4432 Add documentation for -gnatw.p/-gnatw.P
4433 Add missing documentation for -fno-inline-functions.
4434 Add documentation for -gnatw.e
4435
4436 * gnat_rm.texi: Add documentation for No_Default_Initialization
4437 Replace occurences of "package specification" with "package spec"
4438 Document use of * in Warnings Off string
4439 Update documentation of alignment/component clauses.
4440 Add documentation for Invalid_Value
4441 Document new consistency rule for Optimize_Alignment
4442 Add documentation for Precondition and Postcondition pragmas
4443 Add documentation for Check and Check_Policy pragmas
4444 Document new Enum_Val attribute
4445 Remove requirement for static string in pragma Assert
4446 Add documentation on GNAT.Time_Stamp
4447
4448 * ug_words: add entry for -gnatVe
4449 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
4450 Add entry for -gnatw.e
4451
4452 * debug.adb: Add missing documentation for d.a flag
4453 Document new -gnatd.a switch.
4454 Add documentation for new gnatmake debug switch -df
4455
44562008-04-08 Thomas Quinot <quinot@adacore.com>
4457
4458 * gen-soccon.c: Bump year in copyright notices.
4459
4460 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
4461
44622008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4463
4464 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
4465 Minor reformatting.
4466
44672008-04-08 Robert Dewar <dewar@adacore.com>
4468 Bob Duff <duff@adacore.com>
4469
4470 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
4471 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
4472
4473 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
4474
4475 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
4476
4477 * g-trasym.ads: Minor comment improvements
4478
4479 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
4480
4481 * a-sequio.ads, a-direio.ads: improve message for tagged type
4482
4483 * a-strunb.ads: Minor reformatting
4484
4485 * a-tifiio.adb: Minor reformatting
4486
4487 * atree.adb (Fix_Parents): Use clearer names for formals
4488 Cleanup and simplify code
4489 Use named notation in calls
4490
4491 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
4492 confusing calls
4493
4494 * uintp.adb: Used named notation for some confusing calls
4495
4496 * bindusg.adb: Minor change in one line of output
4497
4498 * cstand.adb: Minor reformatting of src representation of Standard
4499
4500 * a-assert.ads: Add comment.
4501
4502 * g-decstr.adb: Fix bad indentation
4503
4504 * expander.ads, expander.adb: Code clean up.
4505
4506 * sem_dist.ads: Minor comment improvement
4507
4508 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
4509 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
4510
4511 * i-cstrin.adb: Fix casing error in formal parameter name in call
4512
45132008-04-08 Ed Schonberg <schonberg@adacore.com>
4514
4515 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
4516 mentioned in limited_with_clauses to do create semantic dependencies
4517 even though they appear in the ali file.
4518
45192008-04-08 Emmanuel Briot <briot@adacore.com>
4520
4521 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
4522 statement.
4523 (Get_Configuration): New subprogram.
4524
4525 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
4526 These optional parameters help preserve the casing of the project's name
4527 when pretty-printing.
4528
45292008-04-08 Jerome Lambourg <lambourg@adacore.com>
4530 Arnaud Charlet <charlet@adacore.com>
4531
4532 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
4533 then use __gnat_set_exit_status to report the returned status code.
4534
4535 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
4536 messages on .NET, since some constructs of the language are not
4537 properly supported.
4538
4539 * gnatlink.adb (Gnatlink): In case the command line is too long for the
4540 .NET linker, gnatlink now concatenate all .il files and pass this to
4541 ilasm.
4542
d8ec5bf2
AJ
45432008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4544 Xavier Grave <grave@ipno.in2p3.fr>
4545
4546 * Makefile.in: Add make ifeq define for mips/mipsel support.
4547 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
4548 system-linux-mips.ads: New files.
4549
7437c8d4
AJ
45502008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4551
4552 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
4553 detect systems using GNU libc.
4554 * gsocket.h: ditto.
4555 * socket.c: ditto.
4556 * adaint.c: ditto.
4557 * link.c: ditto.
4558
1dab7b35
AJ
45592008-04-07 Aurelien Jarno <aurelien@aurel32.net>
4560
4561 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
4562 constant constant for sysconf call.
4563 (bit_field): New packed boolean type used by cpu_set_t.
4564 (cpu_set_t): New type corresponding to the C type with
4565 the same name. Note that on the Ada side we use a bit
4566 field array for the affinity mask. There is not need
4567 for the C macro for setting individual bit.
4568 (pthread_setaffinity_np): New imported routine.
4569 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
4570 on GNU/kFreeBSD.
4571
39fcde8f
EB
45722008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4573
4574 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
4575
9dd9bf80
EB
45762008-04-07 Eric Botcazou <ebotcazou@adacore.com>
4577
4578 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
4579 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
4580 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
4581 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
4582 Return by Depressed Stack Pointer.
4583
2d091b12
EB
45842008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4585
4586 * decl.c (is_variable_size): Do not unconditionally return false
4587 on non-strict alignment platforms.
4588
1bde5bc4
EB
45892008-04-06 Eric Botcazou <ebotcazou@adacore.com>
4590
4591 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
4592 used to process all the variants of the specified type.
4593 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
4594 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
4595 (rest_of_type_decl_compilation): Likewise.
4596 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
4597
9ff420f1
PB
45982008-04-03 Paolo Bonzini <bonzini@gnu.org>
4599
1bde5bc4
EB
4600 * gigi.h (insert_block): Kill.
4601 * utils.c (insert_block): Kill.
9ff420f1 4602
bf1e48d1
EB
46032008-04-02 Eric Botcazou <ebotcazou@adacore.com>
4604
4605 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
4606 type has self-referential size, get the size from the initializing
4607 expression directly if it is also a constant whose nominal type
4608 has self-referential size.
4609
a6a0635e
JDA
46102008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4611
51e5c7b5
JDA
4612 PR ada/33688
4613 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
4614
a6a0635e
JDA
4615 PR ada/33857
4616 * env.c: Always include crt_externs.h if __APPLE__ is defined.
4617 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
4618
4d22f5b1
AJ
46192008-04-01 Andreas Jaeger <aj@suse.de>
4620
4621 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
4622 IP_PKTINFO.
4623
dec55d76
RW
46242008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4625
4626 * g-table.adb, g-tasloc.adb, g-traceb.ads,
4627 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
4628 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
4629 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
4630 gnatlink.adb, gnatmem.adb, gprep.adb,
4631 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
4632 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
4633 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
4634 lib-xref.ads, lib.adb, link.c, live.ads,
4635 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
4636 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
4637 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
4638 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
4639 namet.adb, namet.h, nlists.adb, nlists.ads,
4640 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
4641 osint-c.ads, osint.adb, osint.ads, output.ads,
4642 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
4643 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
4644 par-endh.adb, par-labl.adb, par-prag.adb,
4645 par-sync.adb, par-tchk.adb, par-util.adb,
4646 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
4647 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
4648 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
4649 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
4650
5a864002
EB
46512008-03-31 Eric Botcazou <ebotcazou@adacore.com>
4652
4653 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
4654 size if it has overflowed.
4655
2566855a 46562008-03-31 Olivier Hainque <hainque@adacore.com>
5a864002 4657 Eric Botcazou <ebotcazou@adacore.com>
2566855a
OH
4658
4659 * utils2.c (find_common_type): Document assumption on t1/t2 vs
4660 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
4661
e14c931f
RW
46622008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4663
4664 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
4665 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
4666 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
4667 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
4668 exp_tss.ads, exp_util.adb, exp_util.ads,
4669 exp_vfpt.adb, freeze.adb, freeze.ads,
4670 frontend.adb, g-alleve.adb, g-altcon.adb,
4671 g-altive.ads, g-alveop.ads, g-alvevi.ads,
4672 g-arrspl.adb, g-busorg.ads, g-calend.adb,
4673 g-calend.ads, g-casuti.ads, g-cgideb.adb,
4674 g-comlin.adb, g-comlin.ads, g-curexc.ads,
4675 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
4676 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
4677 g-dyntab.adb, g-encstr.ads, g-excact.ads,
4678 g-except.ads, g-expect.ads, g-heasor.adb,
4679 g-hesora.adb, g-hesorg.adb, g-htable.ads,
4680 g-locfil.ads, g-md5.adb, g-md5.ads,
4681 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
4682 g-pehage.adb, g-pehage.ads, g-regexp.adb,
4683 g-regexp.ads, g-regpat.adb, g-regpat.ads,
4684 g-soccon-aix.ads, g-soccon-darwin.ads,
4685 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
4686 g-soccon-hpux.ads, g-soccon-irix.ads,
4687 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
4688 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
4689 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
4690 g-soccon-solaris.ads, g-soccon-tru64.ads,
4691 g-soccon-vms.ads, g-soccon-vxworks.ads,
4692 g-soccon.ads, g-socket.adb, g-socket.ads,
4693 g-socthi-mingw.adb, g-socthi-vms.adb,
4694 g-socthi-vxworks.adb, g-soliop-mingw.ads,
4695 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
4696 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
4697 typos.
4698
2bc894d9
EB
46992008-03-27 Eric Botcazou <ebotcazou@adacore.com>
4700
4701 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
4702 if the procedure is imported.
4703
640bd0bf
AC
47042008-03-26 Arnaud Charlet <charlet@adacore.com>
4705
4706 * adaint.c: Fix warnings.
4707
0afae63b
AC
47082008-03-26 Arnaud Charlet <charlet@adacore.com>
4709
4710 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
4711
afc5f979
AC
47122008-03-26 Arnaud Charlet <charlet@adacore.com>
4713
4714 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
4715 Fix problem of status check for null file
4716
c5d31169
AC
47172008-03-26 Arnaud Charlet <charlet@adacore.com>
4718
4719 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
4720 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
4721 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
4722 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
4723 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
4724 comments.
4725
b501b251
AC
47262008-03-26 Thomas Quinot <quinot@adacore.com>
4727
2bc894d9 4728 PR ada/33688
b501b251
AC
4729 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
4730 Get_Socket_Option): Add support for Receive_Packet_Info.
4731
4732 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
4733 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
4734 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
4735 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
4736 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
4737 new constants SO_REUSEPORT and IP_PKTINFO
4738
47392008-03-26 Robert Dewar <dewar@adacore.com>
4740
4741 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
4742 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
4743 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
4744 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
4745 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
4746 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
4747 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
4748 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4749 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
4750 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
4751 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
4752 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
4753 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
4754 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
4755 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
4756 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
4757 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
4758 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
4759 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
4760 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
4761 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
4762 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
4763 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
4764 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
4765 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
4766 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
4767 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
4768 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
4769 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
4770 s-tasloc.adb: Minor reformatting.
4771 Update comments.
4772 Remove "used for" sections from comments.
4773
47742008-03-26 Robert Dewar <dewar@adacore.com>
4775
4776 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
4777 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
4778 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
4779 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
4780 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
4781 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4782 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4783 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
4784 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
4785 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
4786 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
4787 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
4788 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
4789 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
4790 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
4791 double spaced if it fits on one line and otherwise single spaced.
4792
47932008-03-26 Arnaud Charlet <charlet@adacore.com>
4794
4795 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
4796 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4797 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
4798 or task info if the thread could not be created.
4799
48002008-03-26 Arnaud Charlet <charlet@adacore.com>
4801
4802 * gnatvsn.ads (Library_Version): Bump to 4.4.
4803 (Current_Year): Bump to 2008.
4804
48052008-03-26 Robert Dewar <dewar@adacore.com>
4806
4807 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
4808
4809 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
4810
4811 * debug.adb: Add debug flags d.r and d.v
4812 Add debug flag .T (Optimize_Alignment (Time))
4813 Add debug flag .S (Optimize_Alignment (Space))
4814
4815 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
4816 depending on setting of relevant debug flags.
4817 Replace use of Warnings_Off by Has_Warnings_Off
4818 (Freeze_Entity): In circuit for warning on suspicious convention
4819 actuals, do not give warning if subprogram has same entity as formal
4820 type, or if subprogram does not come from source.
4821 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
4822 if Optimize_Alignment set to Space.
4823
4824 * frontend.adb: Add call to Sem_Warn.Initialize
4825 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
4826 Reset Optimize_Alignment mode from debug switches .S and .T
4827
4828 * layout.adb (Layout_Composite_Object): Rewritten for
4829 Optimize_Aligment pragma.
4830
4831 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
4832 mode.
4833
4834 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
4835
4836 * par-prag.adb (N_Pragma): Chars field removed, use Chars
4837 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
4838 this change. Add entry for pragma Optimize_Alignment
4839
4840 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
4841 (Pragma_Identifier (..
4842 instead, adjustments throughout to accomodate this change.
4843 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
4844 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
4845 Add implementation of pragma Optimize_Alignment
4846
48472008-03-26 Vincent Celier <celier@adacore.com>
4848
4849 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
4850 Improve memory usage to avoid use of stack.
4851
48522008-03-26 Robert Dewar <dewar@adacore.com>
4853
4854 * a-teioed.ads: Correct value of Default_Fill
4855
4856 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
4857
48582008-03-26 Robert Dewar <dewar@adacore.com>
4859
4860 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
4861 with Current_Output (introduce Self).
4862
48632008-03-26 Robert Dewar <dewar@adacore.com>
4864
4865 * checks.adb (Ensure_Valid): Capture valid status if possible
4866 (eliminate checks)
4867
48682008-03-26 Robert Dewar <dewar@adacore.com>
4869
4870 * stand.ads: Deal with reordering of package standard declarations
4871
4872 * cstand.adb: Put package Standard declarations in proper order
4873
48742008-03-26 Robert Dewar <dewar@adacore.com>
4875
4876 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
4877 (Pragma_Identifier (.. instead.
4878 (OK_To_Reorder_Components): New flag
4879 (Has_Entries): Code cleanup.
4880 (Warnings_Off_Used): New flag
4881 (Warnings_Off_Used_Unmodified): New flag
4882 (Warnings_Off_Used_Unreferenced): New flag
4883 (Has_Warnings_Off): New function
4884 (Has_Unmodified): New function
4885 (Has_Unreferenced): New function
4886 (Is_Trivial_Subprogram): New flag
4887 (Is_Static_Dispatch_Table_Entity): New attribute.
4888 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
4889 (more consistent with other similar names)
4890 (Access_Subprogram_Type): New classification function
4891
48922008-03-26 Robert Dewar <dewar@adacore.com>
4893
4894 * errout.ads: Document new !! insertion sequence
4895
4896 * errout.adb (N_Pragma): Chars field removed, use Chars
4897 (Pragma_Identifier (.. instead.
4898 Replace use of Warnings_Off by Has_Warnings_Off
4899 (Error_Msg_Internal): Don't delete warning ending in !!
4900
49012008-03-26 Robert Dewar <dewar@adacore.com>
4902
4903 * par.adb (Check_No_Right_Paren): Removed no longer used
4904
4905 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
4906 (Pragma_Identifier (.. instead.
4907
4908 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
4909
4910 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
4911 par-ch4.adb: Minor improvements in error recovery and messages.
4912
4913 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
4914 non-serious
4915
4916 * par-ch9.adb: Minor improvements in error recovery and messages
4917 (P_Protected): Better error recovery for "protected type x;"
4918
4919 * par-util.adb: Minor improvements in error recovery and messages
4920 (Check_No_Right_Paren): Removed no longer used
4921
49222008-03-26 Ed Schonberg <schonberg@adacore.com>
4923
4924 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
4925 that the prefix of an attribute is the type of the aggregate being
4926 expanded.
4927
49282008-03-26 Javier Miranda <miranda@adacore.com>
4929 Robert Dewar <dewar@adacore.com>
4930
4931 * exp_attr.adb (N_Pragma): Chars field removed.
4932 (Expand_N_Attribute_Reference): If the designated type associated with
4933 attribute 'Unrestricted_Access is a subprogram entity then replace it
4934 by an E_Subprogram_Type itype.
4935 Implement attribute Old
4936
4937 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
4938
4939 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
4940 Replace call to
4941 New_Internal_Entity by call to Create_Itype to centralize calls
4942 building itypes, ad propagate the convention of the designated
4943 subprogram. In addition, disable the machinery cleaning constant
4944 indications from all entities in current scope when 'Unrestricted_Access
4945 corresponds with a node initializing a dispatch table slot.
4946 (Analyze_Attribute): Parameterless attributes returning a string or a
4947 type will not be called with improper arguments, so we can remove junk
4948 code that was dealing with this case.
4949 Implement attribute Old
4950
4951 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
4952 Add entry for pragma Optimize_Alignment
4953 New standard names Sync and Synchronize
4954
49552008-03-26 Robert Dewar <dewar@adacore.com>
4956 Arnaud Charlet <charlet@adacore.com>
4957
4958 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
4959 stmt.
4960 (No_Exception_Propagation_Active): New function.
4961 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4962 Update comments, and review all uses of No_Exception_Propagation, which
4963 are now correct and in sync with what gigi expects.
4964
4965 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
4966 function.
4967 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
4968 Update comments, and review all uses of No_Exception_Propagation, which
4969 are now correct and in sync with what gigi expects.
4970
49712008-03-26 Ed Schonberg <schonberg@adacore.com>
4972
4973 * sem_ch3.adb (Access_Definition): If the access type is the return
4974 result of a protected function, create an itype reference for it
4975 because usage will be in an inner scope from the point of declaration.
4976 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
4977 OK_To_Reorder_Components.
4978 (Make_Index): If an overloaded range includes a universal integer
4979 interpretation, resolve to Standard.Integer.
4980 (Analyze_Subtype_Indication): Copy Convention to subtype
4981 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
4982 limited an synchronized progenitors in type declaration and private
4983 extension declarations.
4984
4985 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
4986 protected subprogram body, determine proper scope from subprogram
4987 declaration.
4988
49892008-03-26 Robert Dewar <dewar@adacore.com>
4990
4991 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
4992 No_Run_Time_Mode
4993
49942008-03-26 Gary Dismukes <dismukes@adacore.com>
4995
4996 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
4997 of a heap allocator for a limited unconstrained function return when
4998 resstriction No_Allocators is active.
4999 (Analyze_Allocator): The restriction No_Allocators is now only checked
5000 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5001
5002 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
5003 of a heap allocator for a limited unconstrained function return when
5004 resstriction No_Allocators is active.
5005 (Analyze_Allocator): The restriction No_Allocators is now only checked
5006 on allocators that have Comes_From_Source set, as per RM-H.4(7).
5007 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
5008 operands are fixed-point types, the universal_fixed predefined operation
5009 is used, regardless of whether the operand type (s) have a primitive
5010 operation of the same name.
5011
50122008-03-26 Javier Miranda <miranda@adacore.com>
5013
5014 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
5015 Is_Static_Dispatch_Table
5016 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
5017 to Exchange_Declarations to exchange the private and full-view. Bug
5018 found working in this issue.
5019 (Expand_Dispatching_Call): Propagate the convention of the subprogram
5020 to the subprogram pointer type.
5021 (Make_Secondary_DT): Replace generation of Prim'Address by
5022 Address (Prim'Unrestricted_Access)
5023 (Make_DT): Replace generation of Prim'Address by
5024 Address (Prim'Unrestricted_Access)
5025 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
5026 simple call form for single entry.
5027 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
5028 tables of predefined primitives).
5029 (Make_Secondary_DT): Add support to handle access to dispatch tables of
5030 predefined primitives.
5031 (Make_Tags): Add entities to Access_Dispatch_Table associated with
5032 access to dispatch tables containing predefined primitives.
5033
5034 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
5035 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
5036 this change.
5037 (Register_Predefined_DT_Entry): Updated to handle the new contents
5038 of attribute Access_Disp_Table (pointers to dispatch tables containing
5039 predefined primitives).
5040
5041 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
5042 subprogram.
5043 (Find_Interface_ADT): Updated to skip the new contents of attribute
5044 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5045 primitives).
5046
5047 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
5048 concurrent types.
5049 (Set_Convention): Use new function Is_Access_Subprogram_Type
5050 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
5051 Access_Dispatch_Table (pointers to dispatch tables containing predefined
5052 primitives).
5053
5054 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
5055 expanded code avoiding calls to Build_Predef_Prims.
5056 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
5057 call to Build_Get_Predefined_Prim_Op_Address.
5058
50592008-03-26 Javier Miranda <miranda@adacore.com>
5060
5061 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
5062 subprogram Corresponding_Runtime_Package to know the runtime package
5063 that will provide support to a given protected type.
5064
5065 * exp_ch9.adb (Add_Private_Declarations,
5066 Build_Protected_Subprogram_Call,
5067 Build_Protected_Entry, Build_Simple_Entry_Call,
5068 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
5069 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
5070 cleanup using the new centralized subprogram Corresponding_Runtime
5071 Package to know the runtime package that provides support to
5072 a given protected type.
5073
50742008-03-26 Ed Schonberg <schonberg@adacore.com>
5075
5076 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
5077 assignment is within the initialization procedure for a packed array,
5078 and Initialize_Scalars is enabled, compile right-hand side with checks
5079 off, because the value is purposely out of range.
5080
50812008-03-26 Vincent Celier <celier@adacore.com>
5082
5083 * gnatcmd.adb: Add processing for GNAT SYNC
5084
5085 * vms_conv.ads: (Command_Type): Add command Sync
5086
5087 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
5088
5089 * vms_data.ads: Add entries for -gnatw.w
5090 Add qualifier for gnatstub --header-file option
5091 Add switches for GNAT SYNC
5092
5093 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
5094 (Add_Package_Name): New procedure
5095 (Package_Name_List): New function
5096 (Initialize): Add known package names to the list
5097 (Register_New_Package): Add the new package name to the list
5098
50992008-03-26 Robert Dewar <dewar@adacore.com>
5100
5101 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
5102 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
5103 Raise_Exception by "raise with" construct.
5104
51052008-03-26 Pascal Obry <obry@adacore.com>
5106
5107 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
5108 supported platforms.
5109
5110 * Makefile.rtl: Add g-sercom.o.
5111
5112 * impunit.adb: Add g-sercom.adb.
5113
5114 * s-crtl.ads (open): New routine.
5115 (close): Likewise.
5116 (write): Likewise.
5117
5118 * s-osinte-mingw.ads (BYTE): New type.
5119 (CHAR): Likewise.
5120 (OVERLAPPED): Likewise.
5121 (GENERIC_READ): New constant.
5122 (GENERIC_WRITE): Likewise.
5123 (OPEN_EXISTING): Likewise.
5124 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
5125 type instead.
5126 (CreateFile): New routine.
5127 (WriteFile): Likewise.
5128 (ReadFile): Likewise.
5129 (CloseHandle): Move next to the other file oriented routines.
5130
5131 * g-sercom.ads: New unit.
5132
5133 * g-sercom.adb: Default implementation, calls to this unit will raise
5134 a program error exception.
5135
5136 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
5137 GNU/Linux implementations.
5138
51392008-03-26 Robert Dewar <dewar@adacore.com>
5140
5141 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
5142
5143 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
5144 unchecked conversion for different conventions only for subprogram
5145 pointers or on VMS.
5146
51472008-03-26 Vincent Celier <celier@adacore.com>
5148
5149 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
5150 to check if the specified object file is correct.
5151
51522008-03-26 Thomas Quinot <quinot@adacore.com>
5153
5154 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
5155 Comes_From_Source to exclude primitives from being checked. We want to
5156 exclude predefined primitives only, so use the appropriate specific
5157 predicate. Also, flag a formal parameter of an anonymous
5158 access-to-subprogram type as illegal for a primitive operation of a
5159 remote access to class-wide type.
5160
51612008-03-26 Vincent Celier <celier@adacore.com>
5162
5163 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
5164 known, check if it may be a missspelling of a known package name. In
5165 not verbose, not mode, issue warnings only if the package name is a
5166 possible misspelling.
5167 In verbose mode, always issue a warning for a not known package name,
5168 plus a warning if the name is a misspelling of a known package name.
5169
5170 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
5171 limited withs or limited withs are parse during one call.
5172 (Parse_Single_Project): Post parse context clause in two passes: non
5173 limited withs before current project and limited withs after current
5174 project.
5175
5176 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
5177 project with the name With_Name, even if it is only extended indirectly.
5178 (Recursive_Process): Process projects in order: first single withs, then
5179 current project, then limited withs.
5180
5181 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
5182 project with the name With_Name, even if it is only extended indirectly.
5183
51842008-03-26 Robert Dewar <dewar@adacore.com>
5185
5186 * scn.adb (Initialize_Scanner): Format messages belong on standard error
5187
51882008-03-26 Ed Schonberg <schonberg@adacore.com>
5189
5190 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
5191 a generic subprogram that is imported, do not attempt to compile
5192 non-existent body.
5193
5194 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
5195 imported, do not generate a raise_program_error for the non-existent
5196 body.
5197 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
5198 perform minimal name resolution on the generic to avoid spurious
5199 warnings.
5200 (Find_Actual_Type): the designated type of the actual in a child unit
5201 may be declared in a parent unit without being an actual.
5202
52032008-03-26 Robert Dewar <dewar@adacore.com>
5204
5205 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
5206 * sinfo.ads, sinfo.adb (From_At_End): New flag
5207
52082008-03-26 Ed Schonberg <schonberg@adacore.com>
5209
5210 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
5211 operations that have an interface parameter.
5212 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
5213 Don't treat No_Return call as raise.
5214
5215 * sem_disp.adb (Check_Dispatching_Operations): apply check for
5216 non-primitive interface primitives to access parameters, not to all
5217 parameters of an access type.
5218
52192008-03-26 Ed Schonberg <schonberg@adacore.com>
5220
5221 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
5222 declarations of a parent unit are made visible when compiling a child
5223 instance, the parent is not a hidden open scope, even though it may
5224 contain other pending instance.
5225
5226 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
5227 hidden open scope for some child instance, it does affect the
5228 visibility status of other stach entries.
5229 (Analyze_Object_Renaming): Check that a class-wide object cannot be
5230 renamed as an object of a specific type.
5231
52322008-03-26 Robert Dewar <dewar@adacore.com>
5233
5234 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
5235 recursion and raise SE directly.
5236 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
5237 set for formal type for IN mode parameter.
5238
52392008-03-26 Robert Dewar <dewar@adacore.com>
5240
5241 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
5242 (Initialize): New procedure
5243 (Output_Warnings_Off_Warnings): New procedure
5244 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
5245 (Output_Non_Modifed_In_Out_Warnings): Ditto
5246 (Warn_On_Unreferenced_Entity): Ditto
5247
52482008-03-26 Vincent Celier <celier@adacore.com>
5249
5250 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
5251 readable.
5252
52532008-03-26 Matthew Heaney <heaney@adacore.com>
5254
5255 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
5256 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
5257 Marked with clauses as private, and controlled operations as overriding
5258
52592008-03-26 Robert Dewar <dewar@adacore.com>
5260
5261 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
5262
52632008-03-26 Robert Dewar <dewar@adacore.com>
5264
5265 * back_end.adb, back_end.ads: Minor reformatting
5266
5267 * bindgen.adb: Minor clarification of comments
5268
5269 * fname.ads: Minor comment fixes
5270
5271 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
5272 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
5273
5274 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
5275 xsnames.adb: Remove warnings off pragma no longer needed
5276
5277 * a-catizo.ads, a-calari.ads, a-calfor.adb,
5278 a-calfor.ads: Fix header.
5279
52802008-03-26 Tristan Gingold <gingold@adacore.com>
5281
5282 * init.c: Do not adjust pc for HPARITH on alpha/vms.
5283
52842008-03-26 Robert Dewar <dewar@adacore.com>
5285
5286 * lib-xref.adb: (OK_To_Set_Reference): New function
5287 (Generate_Reference): Don't set referenced from occurrence in Warnings,
5288 Unmodified, or Unreferenced pragma
5289
52902008-03-26 Robert Dewar <dewar@adacore.com>
5291
5292 * alloc.ads: Add entries for Warnings_Off_Pragmas table
5293
52942008-03-26 GNAT Script <nobody@adacore.com>
5295
5296 * Make-lang.in: Makefile automatically updated
5297
52982008-03-26 Robert Dewar <dewar@adacore.com>
5299
5300 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
5301 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
5302 removed, use Chars (Pragma_Identifier (.. instead, adjustments
5303 throughout to accomodate this change.
5304
5305 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
5306
5307 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
5308 Einfo.Set_Needs_Debug_Info)
5309
53102008-03-26 Robert Dewar <dewar@adacore.com>
5311
5312 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
5313 Add description for the new gnatstub option '--header-file'
5314 clarification of -gnatwz/-gnatwZ
5315 Add a "Irix-Specific Considerations" section to document the need to
5316 set LD_LIBRARY_PATH when using the default shared runtime library.
5317 Added documentation for both gcov and gprof.
5318
5319 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
5320 messages that are not suppressed when clients are compiled.
5321 Add documentation of s-pooglo s-pooloc
5322 Document the new GNAT.Serial_Communications API.
5323 Add documentation for 'Old attribute
5324 Add description of pragma Optimize_Alignment
5325
5326 * ug_words: Add entries for -gnatw.w -gnatw.W
5327
5328 * usage.adb: Add line for -gnatw.w (warn on warnings off)
5329
3a9634be
EB
53302008-03-25 Eric Botcazou <ebotcazou@adacore.com>
5331
5332 Revert
5333 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5334 PR ada/35186
5335 * decl.c (maybe_pad_type): Avoid padding an integral type when
5336 bumping its alignment is sufficient.
5337
53b308f6
AC
53382008-03-25 Arnaud Charlet <charlet@adacore.com>
5339
5340 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
5341 Fix wrong formatting (lines too long)
5342
8fc789c8
RW
53432008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5344
5345 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
5346 a-calend-vms.adb, a-calend.adb, a-calend.ads,
5347 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
5348 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
5349 a-cohama.ads, a-comlin.ads, a-coorse.adb,
5350 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
5351 a-except-2005.ads, a-except.adb, a-except.ads,
5352 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
5353 a-exextr.adb, a-filico.ads, a-finali.ads,
5354 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
5355 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
5356 a-sequio.ads, a-strbou.ads, a-strfix.adb,
5357 checks.adb, exp_ch3.adb, exp_ch4.adb,
5358 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
5359 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
5360 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
5361 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
5362 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
5363
15f6d6e7
RD
53642008-03-24 Robert Dewar <dewar@adacore.com>
5365
5366 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
5367 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
5368 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
5369 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
5370 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
5371 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
5372 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
5373 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
5374 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
5375 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
5376 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
5377 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
5378 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
5379 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
5380 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
5381 double spaced if it fits on one line and otherwise single spaced.
5382
b2e74434
RW
53832008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5384
5385 PR documentation/15479
5386 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
5387 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
5388 (doc/gnat_ugn.info): Renamed from ...
5389 (doc/gnat_ugn_unw.info): ... this.
5390 (doc/gnat_ugn.dvi): Renamed from ...
5391 (doc/gnat_ugn_unw.dvi): ... this.
5392 (doc/gnat_ugn.pdf): Renamed from ...
5393 (doc/gnat_ugn_unw.pdf): ... this.
5394 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
5395 Adjusted.
5396 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
5397 unconditionally to gnat_ugn.info. Fix cross references to the
5398 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
5399 and GNU make manuals to be proper texinfo links.
5400 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
5401
f4351641
OH
54022008-03-21 Olivier Hainque <hainque@adacore.com>
5403
5404 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
5405 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
5406
10c5d1a0
EB
54072008-03-21 Eric Botcazou <ebotcazou@adacore.com>
5408
5409 * trans.c (addressable_p): Add notes on addressability issues.
5410
457b629a
OH
54112008-03-21 Olivier Hainque <hainque@adacore.com>
5412 Ed Schonberg <schonberg@adacore.com>
5413
5414 * trans.c (addressable_p): Accept COND_EXPR when both arms
5415 are addressable.
5416 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
5417 (call_to_gnu): Do not use name reference in the error message
5418 for a misaligned by_reference_parameter. The actual may be a
5419 general expression.
5420
ac5dc795
PB
54212008-03-18 Paolo Bonzini <bonzini@gnu.org>
5422
e1da2b17
EB
5423 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5424
79f34d07
RW
54252008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5426
5427 * gnat_rm.texi (Implementation Defined Characteristics)
5428 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
5429 appropriate.
5430 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
5431 (Switches for gnatchop, Installing a library): Likewise.
5432
e1e7141c
EB
54332008-03-10 Eric Botcazou <ebotcazou@adacore.com>
5434
5435 * trans.c (emit_range_check): Do not emit the check if the base type
5436 of the expression is the type against which its range must be checked.
5437
892f6e65
EB
54382008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5439
5440 * decl.c (maybe_pad_type): Use value_factor_p.
5441
7934d781
EB
54422008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5443
5444 * lang.opt (nostdlib): Move around.
5445 * misc.c (gnat_handle_option): Fix formatting.
5446 (gnat_dwarf_name): Move around.
5447 * trans.c (Case_Statement_to_gnu): Fix formatting.
5448 (gnat_to_gnu): Likewise.
5449 * utils.c (aggregate_type_contains_array_p): Likewise.
5450 (create_subprog_decl): Likewise.
5451
8f5893ab
EB
54522008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5453
5454 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
5455 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
5456
ba436c3b
EB
54572008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5458
5459 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
5460 BIGGEST_ALIGNMENT when capping the alignment of records with
5461 strict alignment and size clause.
5462
6ab36dac
EB
54632008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5464
5465 * lang-specs.h: Pass -gnatwa if -Wall is passed.
5466 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
5467 and -Wuninitialized.
5468 (gnat_post_options): Clear warn_unused_parameter.
5469
8853cb0b
EB
54702008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5471
5472 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
5473 aligned bit-fields, bumping the alignment of the record type if deemed
5474 profitable.
5475 (value_factor_p): Return false instead of 0.
5476
66abe22c
EB
54772008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5478
5479 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
5480 for scalar types with small alignment.
5481
563569be
EB
54822008-03-08 Eric Botcazou <ebotcazou@adacore.com>
5483
5484 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
5485 from that of the front-end's end label.
5486 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
5487 from that of the loop label.
5488
b49a1a1e
EB
54892008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5490
5491 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
5492 comment for the packed array type case.
5493 * utils.c (build_template): Use a loop to strip padding or
5494 containing records for justified modular types.
5495
fd5c81e9
EB
54962008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5497
5498 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
5499 large alignments specified for types.
5500 (validate_alignment): Minor cleanup.
5501
7f42aa36
EB
55022008-03-07 Eric Botcazou <ebotcazou@adacore.com>
5503
5504 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
5505 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
5506 the component for packing, if possible, as well as if a component
5507 size clause is specified.
5508 <E_Record_Subtype>: For an array type used to implement a packed
5509 array, get the component type from the original array type.
5510 Try to get a smaller form of the component for packing, if possible,
5511 as well as if a component size clause is specified.
5512 (round_up_to_align): New function.
5513 (make_packable_type): Add in_record parameter.
5514 For a padding record, preserve the size. If not in_record and the
5515 size is too large for an integral mode, attempt to shrink the size
5516 by lowering the alignment.
5517 Ditch the padding bits of the last component.
5518 Compute sizes and mode manually, and propagate the RM size.
5519 Return a BLKmode record type if its size has shrunk.
5520 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
5521 Use Original_Array_Type to retrieve the type in case of an error.
5522 Adjust call to make_packable_type.
5523 (gnat_to_gnu_field): Likewise.
5524 (concat_id_with_name): Minor tweak.
5525 * trans.c (larger_record_type_p): New predicate.
5526 (call_to_gnu): Compute the nominal type of the object only if the
5527 parameter is by-reference. Do the conversion actual type -> nominal
5528 type if the nominal type is a larger record.
5529 (gnat_to_gnu): Do not require integral modes on the source type to
5530 avoid the conversion for types with identical names.
5531 (addressable_p): Add gnu_type parameter. If it is specified, do not
5532 return true if the expression is not addressable in gnu_type.
5533 Adjust recursive calls.
5534 * utils.c (finish_record_type): Remove dead code.
5535
2f76571e
EB
55362008-03-05 Eric Botcazou <ebotcazou@adacore.com>
5537
5538 PR ada/35186
5539 * decl.c (maybe_pad_type): Avoid padding an integral type when
5540 bumping its alignment is sufficient.
5541
4d0e4612
RW
55422008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5543
ad6b5b00
RW
5544 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
5545 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
5546 statement.
5547 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
5548 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
5549 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
5550 code output strings.
5551 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
5552 system-vms_64.ads: Fix typos in ada source code comments.
5553 * sinfo-cn.adb: Remove incomplete sentence.
5554
4d0e4612
RW
5555 PR documentation/15479
5556 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
5557
acf6b7ab
ST
55582008-02-27 Samuel Tardieu <sam@rfc1149.net>
5559
5560 PR ada/22255
5561 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
5562
f5c064ab
ST
55632008-02-27 Samuel Tardieu <sam@rfc1149.net>
5564
5565 PR ada/34799
5566 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
5567 that underlying type is present.
5568
2d593c86
TT
55692008-02-26 Tom Tromey <tromey@redhat.com>
5570
5571 * misc.c (internal_error_function): Remove test of
5572 USE_MAPPED_LOCATION.
5573 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
5574 (Sloc_to_locus): Remove old location code.
5575
443b3472
RW
55762008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5577
8dd07840
RW
5578 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
5579 `i.e.' by adding comma or `@:' as appropriate.
5580 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
5581 plain characters `C', use `@samp{C}'.
5582 * gnat_ugn.texi (File Naming Rules, About gnatkr)
5583 (Krunching Method): Likewise.
5584
443b3472
RW
5585 * gnat_ugn.texi (Conventions): List environment variables and
5586 metasyntactic variables.
5587 (Compiling Programs): Fix notation of metasyntactic variables.
5588 Add @file where appropriate. Use @file for file extensions,
5589 @samp for strings.
5590 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
5591 instead of @file, @env instead of @code.
5592
9538dfb9
RW
55932008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5594
d488f6ea
RW
5595 PR documentation/15479
5596 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
5597 and `...' with `@dots{}' or `@enddots{}'.
5598
1992bbd9
RW
5599 PR documentation/15479
5600 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
5601 use @command instead of @code, @option instead of @samp or @code,
5602 @code instead of @var, @samp instead of @file.
5603
9538dfb9
RW
5604 PR documentation/15479
5605 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
5606 in Makefile rules, by using `&&' rather than `;'.
5607
e69044cb
RW
56082008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5609
5610 PR documentation/15479
5611 * gnat_ugn.texi: In non-code, avoid space before colon.
5612 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
5613 (Examples of gnatxref Usage): Use @command{vi} instead of
5614 @file{vi}.
5615 (Character Set Control): Do not use @code for UTF-8.
5616 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
5617 use @code for IEEE.
5618 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
5619 sample.
5620 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
5621
9e94c78f 56222008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
6a333ca0
JS
5623
5624 PR ada/35143
5625 * env.c: Add __rtems__ to if defined.
5626 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
5627 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
5628 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
5629 pragma Convention as required.
5630 * gsocket.h: Make compile in and out of RTS.
5631 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
5632 Use g-soccon-rtems.ads.
5633 * g-soccon-rtems.ads, system-rtems.ads: New files.
5634
72fb133f
KG
56352008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5636
5637 PR other/35107
5638 * Make-lang.in (gnat1): Add $(GMPLIBS).
5639
8fa07a56
EB
56402008-01-26 Eric Botcazou <ebotcazou@adacore.com>
5641
5642 * decl.c (components_to_record): Improve comment.
5643
0bf38239
EB
56442008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5645
5646 * decl.c (components_to_record): Do not reuse the empty union type
5647 if there is a representation clause on the record.
5648 * trans.c (addressable_p): Return true for INTEGER_CST.
5649
461d6eb3
EB
56502008-01-21 Eric Botcazou <ebotcazou@adacore.com>
5651
5652 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
5653 in pointer arithmetics.
5654 * utils2.c (build_allocator): Likewise.
5655
9328dd57
EB
56562008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5657
5658 * utils.c (build_function_stub): Properly build the call expression.
5659
052cec9b
EB
56602008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5661
5662 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
5663 before converting the expression to the type of the object.
5664 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
5665 Stabilize constructors for special wrapping types.
5666
08ffbdad
EB
56672008-01-13 Eric Botcazou <ebotcazou@adacore.com>
5668
9e94c78f 5669 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
6bf4cbe8 5670 when necessary. Merge some conditional statements. Update comments.
08ffbdad
EB
5671 Rename unchecked_convert_p local variable to suppress_type_conversion.
5672 Do not suppress conversions in the In case.
5673 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
5674 into account on non strict-alignment platforms.
5675
7219c2c7
EB
56762008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5677
5678 * utils.c (aggregate_type_contains_array_p): New predicate.
5679 (create_field_decl): In a packed record, force byte alignment
5680 for fields without specified position that contain an array.
5681
52ef2874
EB
56822008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5683
5684 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
5685
3fa87ef8
JDA
56862008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
5687
5688 PR ada/34466
5689 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
5690 sysconf call.
5691 (bit_field): New packed boolean type used by cpu_set_t.
5692 (cpu_set_t): New type corresponding to the C type with
5693 the same name. Note that on the Ada side we use a bit
5694 field array for the affinity mask. There is not need
5695 for the C macro for setting individual bit.
5696 (pthread_setaffinity_np): New imported routine.
5697
9e94c78f 56982008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
e0658eda
TK
5699
5700 PR ada/34647
5701 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5702 on OpenBSD as is done on other BSD systems.
5703
5704 PR ada/34645
5705 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
5706 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
5707 I/O.
5708
5709 PR ada/34644
5710 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
5711 clearenv().
5712
5713 PR ada/34646
5714 * init.c (__gnat_error_handler, __gnat_install_handler,
5715 __gnat_init_float): Define for OpenBSD.
5716
5717 * initialize.c (__gnat_initialize): Define for OpenBSD.
5718
18bc9cca
ST
57192007-12-27 Samuel Tardieu <sam@rfc1149.net>
5720
5721 PR ada/34553
5722 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
5723 instead of mktemp() or tmpnam() on NetBSD.
5724
f0bf503e
EB
57252007-12-23 Eric Botcazou <ebotcazou@adacore.com>
5726
5727 * trans.c (call_to_gnu): Make the temporary for non-addressable
5728 In parameters passed by reference.
5729 (addressable_p): Return true for STRING_CST and CALL_EXPR.
5730
7469b7bc
AC
57312007-12-19 Robert Dewar <dewar@adacore.com>
5732
5733 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
5734 Add pragma Warnings (Off) for unassigned IN OUT arguments
5735
5736 * sem_warn.adb (Output_Reference): Suppress messages for internal names
5737 (Check_References): Extensive changes to tune up warnings
5738 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
5739 (Has_Pragma_Unmodifed_Check_Spec): New function
5740 (Check_References): Implement pragma Unmodified
5741 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
5742
5743 * par-prag.adb: Dummy entry for pragma Unmodified
5744
5745 * sem_prag.adb: Implement pragma Unmodified
5746
5747 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
5748 (Proc_Next_Component_Or_Discriminant): Fix typo.
5749 Update comments.
5750
5751 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
5752 Unmodified.
5753 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
5754 because the former already takes care of discarding the result.
5755 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
5756 Add comment.
5757
5758 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
5759
57602007-12-19 Eric Botcazou <ebotcazou@adacore.com>
5761
5762 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
5763 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
5764 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
5765 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
5766 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
5767 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
5768 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
5769 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
5770 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
5771 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
5772 (Dynamic_Trampolines_Used): Delete.
5773
5774 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
5775 Turn on stack probing mechanism on LynxOS.
5776
57772007-12-19 Bob Duff <duff@adacore.com>
5778
5779 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
5780 the resulting tail recursion by hand. This prevents running out of
5781 memory on deeply nested concatenations, since Field2 is where the left
5782 operand of concatenations is stored.
5783 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
5784 clarify that it can only return OK or Abandon.
5785
5786 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
5787 operand by iteration, in order to avoid running out of memory on
5788 deeply-nested concatenations. Use the Parent pointer to get back up the
5789 tree.
5790 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
5791 Resolve_Op_Concat_Rest): New procedures split out of
5792 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
5793 clearer.
5794
5795 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
5796 Traverse_Func, because the former already takes care of discarding the
5797 result.
5798
5799 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
5800 because the former already takes care of discarding the result.
5801 (Remove_Warning_Messages): Use appropriate subtype for Status and
5802 Discard
5803
58042007-12-19 Ed Schonberg <schonberg@adacore.com>
5805
5806 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
5807 discriminants forces expansion of the aggregate into assignments.
5808 (Init_Record_Controller): If the type of the aggregate is untagged and
5809 is not inherently limited, the record controller is not limited either.
5810
58112007-12-19 Robert Dewar <dewar@adacore.com>
5812
5813 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
5814 handling compile time known size of record or array (case of front end
5815 layout active, e.g. in GNAAMP).
5816
58172007-12-19 Javier Miranda <miranda@adacore.com>
5818
5819 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
5820 that forces the construction of static dispatch tables in case of
5821 record subtypes.
5822
58232007-12-19 Robert Dewar <dewar@adacore.com>
5824
5825 * exp_ch9.adb (Null_Statements): Moved to library level
5826 (Trivial_Accept_OK): New function
5827 (Expand_Accept_Declaration): Use Trivial_Accept_OK
5828 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
5829
58302007-12-19 Robert Dewar <dewar@adacore.com>
5831
5832 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
5833 in complex case where array is Volatile.
5834
58352007-12-19 Ed Schonberg <schonberg@adacore.com>
5836
5837 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
5838 properly the Ada2005 rules concerning when the current instance of a
5839 record type is aliased.
5840
58412007-12-19 Ed Schonberg <schonberg@adacore.com>
5842
5843 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
5844 mangled declaration
5845 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
5846 declarations.
5847 (P_Variant_Part): Cleaner patch for parenthesized discriminant
5848
58492007-12-19 Vincent Celier <celier@adacore.com>
5850
5851 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
5852 package is not known
5853
5854 * prj-attr.ads (Unknown_Package): New constant
5855 Do not crash when an unknown package is in several projects
5856
5857 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
5858 ignored
5859
5860 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
5861 existing package Language_Processing.
5862
58632007-12-19 Ed Schonberg <schonberg@adacore.com>
5864 Gary Dismukes <dismukes@adacore.com>
44914a04 5865 Samuel Tardieu <sam@rfc1149.net>
7469b7bc
AC
5866
5867 PR ada/15803, ada/15805
5868 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
5869 illegal access subtypes when there is a constrained partial view.
5870 (Check_For_Premature_Usage): New procedure inside
5871 Access_Subprogram_Declaration for checking that an access-to-subprogram
5872 type doesn't reference its own name within any formal parameters or
5873 result type (including within nested anonymous access types).
5874 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
5875 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
5876 context is an access_to_variable, the expression cannot be an
5877 access_to_constant.
5878
58792007-12-19 Bob Duff <duff@adacore.com>
5880
5881 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
5882 (Analyze_Concatenation): Use iteration instead of recursion in order
5883 to avoid running out of stack space for deeply nested concatenations.
5884
58852007-12-19 Ed Schonberg <schonberg@adacore.com>
5886 Gary Dismukes <dismukes@adacore.com>
5887
5888 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
5889 whose renamed entity is a subprogram that requires overriding.
5890 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
5891 issuing an error for premature usage and issue a message that says
5892 'type' rather than 'object'.
5893
58942007-12-19 Gary Dismukes <dismukes@adacore.com>
5895
5896 PR ada/34149
5897 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
5898 presence of a statically tagged operand (Present (Static_Tag)) with
5899 test for Indeterm_Ancestor_Call when determining whether to propagate
5900 the static tag to tag-indeterminate operands (which forces dispatching
5901 on such calls).
5902 (Check_Controlling_Formals): Ada2005, access parameters can have
5903 defaults.
5904 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
5905 not insert subprogram in list of primitive operations if already there.
5906
59072007-12-19 Tristan Gingold <gingold@adacore.com>
5908
5909 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
5910 global variable.
5911
59122007-12-19 Thomas Quinot <quinot@adacore.com>
5913
5914 Part of PR ada/33688
5915 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
5916 datagram info on Linux.
5917
59182007-12-19 Vincent Celier <celier@adacore.com>
5919
5920 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
5921 that the source path name is always found in the dependencies.
5922
59232007-12-19 Robert Dewar <dewar@adacore.com>
5924
5925 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
5926 Fix name of Wide_Wide_Latin_1/9 file names
5927 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
5928 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
5929 Add missing documentation for Ada.Command_Line.Response_File
5930 Update list of warning letters for Warnings pragma
5931 Add documentation for pragma Unmodified
5932
43779dea
ST
59332007-12-19 Samuel Tardieu <sam@rfc1149.net>
5934
5935 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
5936
5287c2bc
AC
59372007-12-17 Arnaud Charlet <charlet@adacore.com>
5938
5939 * s-vxwork-alpha.ads: Removed, no longer used.
5940
6343804d
JJ
59412007-12-15 Jakub Jelinek <jakub@redhat.com>
5942
5943 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
5944
3958c9c8
ST
59452007-12-13 Samuel Tardieu <sam@rfc1149.net>
5946
5947 PR ada/34360
5948 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
5949 mlib-tgt-specific.adb.
5950
78185974
BD
59512007-12-13 Bob Duff <duff@adacore.com>
5952
5953 * trans.c (Attribute_to_gnu): Check for violations of the
5954 No_Implicit_Dynamic_Code restriction. This checking used to be done in
5955 the front end, but is moved here so we can make it more accurate.
5956
e9b54d64
AC
59572007-12-13 Pascal Obry <obry@adacore.com>
5958
5959 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
5960 version is provided for older GNU/Linux distribution not
5961 supporting thread affinity sets.
5962
5963 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
5964 call.
5965 (bit_field): New packed boolean type used by cpu_set_t.
5966 (cpu_set_t): New type corresponding to the C type with
5967 the same name. Note that on the Ada side we use a bit
5968 field array for the affinity mask. There is not need
5969 for the C macro for setting individual bit.
5970 (pthread_setaffinity_np): New imported routine.
5971
5972 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
5973 no null.
5974 (Create_Task): Set the processor affinity mask if information
5975 is present.
5976
5977 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
5978
59792007-12-13 Robert Dewar <dewar@adacore.com>
5980
5981 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
5982 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
5983 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
5984 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
5985 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
5986 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
5987 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
5988 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
5989 for subprogram pointers.
5990
5991 * g-ctrl_c.adb: New file.
5992
5993 * g-ctrl_c.ads (Install_Handler): New body.
5994
5995 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
5996 instead of obsolete function Is_Always_Inlined.
5997 (Freeze_Entity): check for tagged type in imported C subprogram
5998 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
5999 (Freeze_Entity): check for convention Ada subprogram pointer in
6000 imported C subprogram.
6001 (Freeze_Fixed_Point_Type): In the case of a base type where the low
6002 bound would be chopped off and go from negative to zero, force
6003 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
6004 bound) so that the size computation for the base type will take
6005 negative values into account.
6006
60072007-12-13 Eric Botcazou <ebotcazou@adacore.com>
6008 Bob Duff <duff@adacore.com>
6009 Tristan Gingold <gingold@adacore.com>
6010
6011 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
6012 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
6013 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6014 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6015 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
6016 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6017 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
6018 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
6019 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6020 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
6021 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
6022 (Always_Compatible_Rep): New flag to control trampolines globally.
6023 (Dynamic_Trampolines_Used): New flag for implementing the
6024 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
6025 and not yet set correctly for some targets).
6026
6027 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
6028 Simply indirectly call s-stchop when a task is created.
6029
6030 * ali.ads:
6031 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
6032 appears as an argument (entries A) in an ALI file.
6033
6034 * fe.h (Stack_Check_Limits): Declare new target parameter.
6035 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
6036
6037 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
6038 This variable is declared in C to be sure not subject to elaboration
6039 code.
6040 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
6041 Storage_Error.
6042
6043 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
6044 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
6045
6046 * s-stchop.ads: Add comments.
6047
6048 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
6049 limit method of stack checking.
6050
6051 * s-stchop-limit.ads: New file.
6052
60532007-12-13 Robert Dewar <dewar@adacore.com>
6054
6055 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
6056 a-cihama.adb, g-awk.adb,
6057 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
6058 warnings
6059
6060 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
6061
6062 * sem.adb: Update handling of assigned value/unreferenced warnings
6063
6064 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
6065
6066 * lib-xref.ads: Improve documentation for k xref type
6067
6068 * lib-xref.adb:
6069 Update handling of assigned value/unreferenced warnings
6070 (Generate_Reference): Warning for reference to entity for which a
6071 pragma Unreferenced has been given should be unconditional.
6072 If the entity is a discriminal, mark the original
6073 discriminant as referenced.
6074
6075 * sem_warn.ads, sem_warn.adb
6076 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
6077 no entities referenced in package
6078 (Check_One_Unit): Don't give message about no entities referenced in
6079 a package if a pragma Unreferenced has appeared.
6080 Handle new warning flag -gnatw.a/-gnatw.A
6081 Update handling of assigned value/unreferenced warnings
6082
6083 * atree.h: Add flags up to Flag247
6084 (Flag231): New macro.
6085
60862007-12-13 Jose Ruiz <ruiz@adacore.com>
6087
6088 * adaint.h: (__gnat_plist_init): Not defined for RTX.
6089
6090 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
6091 RTX systems.
6092
6093 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
6094 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
6095 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
6096 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
6097
6098 * mingw32.h:
6099 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
6100
6101 * sysdep.c (winflush_function for RTX): Procedure that does nothing
6102 since we only have problems with Windows 95/98, which are not
6103 supported by RTX.
6104 (__gnat_ttyname): Return the empty string on Nucleus, just as
6105 done on vxworks.
6106
61072007-12-13 Robert Dewar <dewar@adacore.com>
6108
6109 * a-textio.adb, a-textio.ads:
6110 Extensive changes to private part for wide character encoding
6111
6112 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
6113 (Look_Ahead): Fix mishandling of encoded sequences
6114 Move declaration of Wch_Con to private part (should not be visible)
6115
6116 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
6117 UTF-8. Probably this is never used, but if it is, brackets is
6118 clearly correct.
6119
6120 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
6121 setting wide character encoding for no main program case and when
6122 encoding is specified using -W?
6123 Initialize stack limit of environment task if stack limit method of
6124 stack checking is enabled.
6125 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
6126 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
6127 (Get_Main_Unit_Name): New function.
6128 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
6129 (Gen_Output_File): Set Bind_Main_Program to True for .NET
6130
6131 * bindusg.adb: Add line for -Wx switch
6132
6133 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
6134 Add comments
6135 Add new useful constant WC_Longest_Sequences
6136
6137 * switch-b.adb: Clean up handling of -Wx switch
6138 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6139
6140 * switch-c.adb: -gnatg activates warning on assertion errors
6141 For -gnatWx, set Wide_Character_Encoding_Method_Specified
6142
6143 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
6144
61452007-12-13 Robert Dewar <dewar@adacore.com>
6146 Ed Schonberg <schonberg@adacore.com>
6147
6148 * a-ngcoty.adb: New pragma Fast_Math
6149
6150 * opt.adb: New pragma Fast_Math
6151
6152 * par-prag.adb:
6153 Add Implemented_By_Entry to the list of pragmas which do not require any
6154 special processing.
6155 (Favor_Top_Level): New pragma.
6156 New pragma Fast_Math
6157
6158 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
6159 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6160 Expand_Allocator_Expression): Take into account VM_Target
6161 (Expand_Attribute, case 'Identity): Handle properly the case where
6162 the prefix is a task interface.
6163 New pragma Fast_Math
6164
6165 * par.adb (Next_Token_Is): New function
6166 (P_Pragma): Add Skipping parameter
6167 (U_Left_Paren): New procedure
6168 (U_Right_Paren): New procedure
6169 New pragma Fast_Math
6170
6171 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
6172 subunit
6173 New pragma Fast_Math
6174
6175 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
6176 Implemented_By_Entry.
6177 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
6178 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
6179 items, since it can apply to more than one overloadable entity. Set
6180 new flag Has_Pragma_Inline_Always for Inline_Always case.
6181 (Analyze_Pragma, case Complex_Representation): Improve error message.
6182 (Analyze_Pragma, case Assert): When assertions are disabled build the
6183 rewritten code with Sloc of expression rather than pragma, so new
6184 warning about failing is not deleted.
6185 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
6186 protected types and update error message to reflect that. Test whether
6187 the protected type is allowed for the pragma (an error is issued if the
6188 type has any entries, or components that do not have preelaborable
6189 initialization).
6190 New pragma Fast_Math
6191 (Analyze_Pragma, case No_Return): Handle generic instance
6192
6193 * snames.h, snames.ads, snames.adb:
6194 Add new predefined name for interface primitive _Disp_Requeue.
6195 New pragma Fast_Math
6196
6197 * a-tags.ads, a-tags.adb: New calling sequence for
6198 String_To_Wide_[Wide_]String
6199 (Secondary_Tag): New subprogram.
6200
6201 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
6202 from Exp_Attr
6203 New calling sequence for String_To_Wide_[Wide_]String
6204 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
6205 the use of the secondary stack for image routines.
6206
6207 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
6208 calling sequence for String_To_Wide_[Wide_]String
6209
6210 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
6211 Ada 95 mode
6212 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
6213 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6214
6215 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
6216 (P_Formal_Part): Use Skipping parameter in P_Pragma call
6217 to improve error recovery
6218
6219 * par-util.adb (Next_Token_Is): New function
6220 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
6221
6222 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
6223 semicolon if missing
6224 (P_Pragma): Implement new Skipping parameter
6225 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6226 Fix location of flag for unrecognized pragma message
6227
6228 * par-tchk.adb (U_Left_Paren): New procedure
6229 (U_Right_Paren): New procedure
6230
62312007-12-13 Geert Bosch <bosch@adacore.com>
6232
6233 * a-tifiio.adb:
6234 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
6235 the second or later Scaled_Divide would omit leading zeroes,
6236 resulting in too few digits produced and a Layout_Error as result.
6237 (Put): Initialize Pos.
6238
62392007-12-13 Robert Dewar <dewar@adacore.com>
6240
6241 atree.ads, atree.adb (Flag231..Flag247): New functions
6242 (Set_Flag231..Set_Flag247): New procedures
6243 (Basic_Set_Convention): Rename Set_Convention to be
6244 Basic_Set_Convention
6245 (Nkind_In): New functions
6246 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6247
6248 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
6249 instead
6250 of obsolete function Is_Always_Inlined
6251 (Register_Predefined_DT_Entry): Initialize slots of the second
6252 secondary dispatch table.
6253 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6254 (Expand_N_Function_Call): Remove special provision for stack checking.
6255
6256 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
6257 Include _Disp_Requeue in the list of predefined operations.
6258 (Find_Interface_ADT): Modified to fulfill the new specification.
6259 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6260
6261 * par-ch4.adb, nlists.ads, nlists.adb:
6262 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
6263
6264 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
6265 Fix location of flag for unrecognized pragma message
6266
6267 * sem_ch7.adb: Use Nkind_In
6268
62692007-12-13 Vincent Celier <celier@adacore.com>
6270
6271 * opt.ads:
6272 Indicate what flags are used by the Project Manager, gprbuild and
6273 gprclean.
6274 (Opt.Follow_Links_For_Dirs): New flag
6275 (Warn_On_Assertion_Failure): New flag
6276 (Wide_Character_Encoding_Method_Specified): New flag
6277 (Suppress_All_Inlining): New switch set by -fno-inline
6278 (Real_VMS_Target): New flag
6279 New pragma Fast_Math
6280
62812007-12-13 Robert Dewar <dewar@adacore.com>
6282
6283 * back_end.adb: Recognize -fno-inline
6284
62852007-12-13 Robert Dewar <dewar@adacore.com>
6286
6287 * checks.adb: Fix optimization problem with short-circuited form
6288
62892007-12-13 Bob Duff <duff@adacore.com>
6290
6291 * clean.adb (Usage): Add line for -aP
6292 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
6293 with a parameter "procedure Usage", instead of passing a pointer to a
6294 procedure. This is to eliminate trampolines (since the Usage procedure
6295 is often nested in a main procedure, and it would be inconvenient to
6296 unnest it).
6297
6298 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
6299 to be generic, with a parameter "procedure Callback (...)", instead of
6300 passing a pointer to a procedure. This is to eliminate trampolines
6301 (since the Callback procedure is usually nested).
6302
6303 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
6304 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
6305 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
6306
6307 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
6308 Use the generic Heap_Sort_G instead of Heap_Sort_A.
6309
63102007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6311
6312 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
6313 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
6314 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
6315 (Renamed_In_Spec): New flag
6316 (Has_Pragma_Inline_Always): New flag
6317 Add missing doc for pragma Obsolescent_Warning
6318 Add missing doc for 17 additional unused flags (230-247)
6319 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
6320 Alphabetize with clauses.
6321 Separate Is_Thunk and Has_Thunks flags
6322 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
6323 (Related_Interface): Renamed to Related_Type.
6324 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
6325 (Set_Is_Flag): Restrict the assertion.
6326
63272007-12-13 Vincent Celier <celier@adacore.com>
6328
6329 * errout.adb (Output_Source_Line): Do not keep a trailing space after
6330 the source line number if the source line is empty.
6331
63322007-12-13 Geert Bosch <bosch@adacore.com>
6333
6334 * eval_fat.adb (Decompose_Int): Handle argument of zero.
6335 (Compose): Remove special casing of zero.
6336 (Exponent): Likewise.
6337 (Fraction): Likewise.
6338 (Machine): Likewise.
6339 (Decompose): Update comment.
6340
63412007-12-13 Ed Schonberg <schonberg@adacore.com>
6342
6343 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
6344 limited ancestor part, initialize controllers of enclosing record
6345 before expanding ancestor aggregate.
6346 (Gen_Assign): If a component of the aggregate is box-initialized, add
6347 code to call Initialize if the component is controlled, and explicit
6348 assignment of null if the component is an access type.
6349
6350 Handle properly aggregates for limited types that appear in object
6351 declarations when the aggregate contains controlled values such as
6352 protected types.
6353 When expanding limited aggregates into individual components, do not
6354 call Adjust on controlled components that are limited.
6355
63562007-12-13 Ed Schonberg <schonberg@adacore.com>
6357
6358 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
6359
63602007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6361
6362 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
6363 predefined primitive _Disp_Requeue.
6364 (Make_Predefined_Primitive_Specs): Create the spec for predefined
6365 primitive _Disp_Requeue.
6366 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
6367 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
6368 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
6369 an interface type. In case of limited interfaces we now declare all the
6370 predefined primitives associated with synchronized interfaces as
6371 abstract.
6372 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
6373 declarations.
6374 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
6375 tagged type is an interface type and there is no user-defined equality
6376 function.
6377 Add also bodies of predefined primitives associated with synchronized
6378 interfaces.
6379 (Freeze_Record_Type): Do not build bodies of predefined primitives of
6380 interface types because they are now defined abstract.
6381 Add missing documentation.
6382 (Expand_Record_Controller): Update occurrence of Related_Interface
6383 to Related_Type.
6384 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
6385 (Expand_N_Object_Declaration): Take into account VM_Target when handling
6386 class wide interface object declaration.
6387 (Expand_Previous_Access_Type): Do not create a duplicate master entity
6388 if the access type already has one.
6389 (Expand_N_Object_Declaration): Defend against attempt to validity check
6390 generic types. Noticed for -gnatVcf specified with previous errors.
6391
63922007-12-13 Arnaud Charlet <charlet@adacore.com>
6393
6394 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
6395 Expand_Allocator_Expression): Take into account VM_Target
6396
6397 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
6398 secondary stack when VM_Target /= No_VM
6399
64002007-12-13 Javier Miranda <miranda@adacore.com>
6401 Ed Schonberg <schonberg@adacore.com>
6402
6403 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
6404 Is_Complation_Unit by Is_Library_Level_Entity in the code
6405 that decides if the static dispatch tables need to be built.
6406 (Wrap_Transient_Declaration): Do not generate a finalization call if
6407 this is a renaming declaration and the renamed object is a component
6408 of a controlled type.
6409
64102007-12-13 Gary Dismukes <dismukes@adacore.com>
6411
6412 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
6413 In the case where the renamed subprogram is a dereference, call
6414 Force_Evaluation on the prefix.
6415
64162007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6417 Ed Schonberg <schonberg@adacore.com>
6418
6419 * exp_ch9.adb (Expand_N_Asynchronous_Select,
6420 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
6421 comment reformatting.
6422 (Set_Privals): Inherit aliased flag from formal. From code reading.
6423 (Build_Simple_Entry_Call): Out parameters of an access type are passed
6424 by copy and initialized from the actual. This includes entry parameters.
6425 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
6426 and Ada 2005 models of requeue.
6427 (Null_Statements): Still connsider do-end block null if it contains
6428 Unreferenced and Warnings pragmas.
6429 (Expand_N_Accept_Statement): Do not optimize away null do end if
6430 dispatching policy is other than defaulted.
6431 (Expand_N_Timed_Entry_Call): When the triggering statement is a
6432 dispatching call, manually analyze the delay statement.
6433 (Find_Parameter_Type): Move subprogram to Sem_Util.
6434
64352007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6436 Javier Miranda <miranda@adacore.com>
6437
6438 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
6439 _Disp_Requeue occupies dispatch table slot number 15. Move
6440 _Disp_Timed_Select to slot 16.
6441 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
6442 generate the spec and body of _Disp_Reqeueue.
6443 (Make_DT): Build and initialize the second dispatch table.
6444 Handle initialization of RC_Offset when the parent
6445 is a private type with variable size components.
6446 (Make_Secondary_DT): Complete documentation. Add support to
6447 initialize the second dispatch table.
6448 (Make_Tags): Generate the tag of the second dispatch table.
6449 (Register_Primitive): Add support to register primitives in the
6450 second dispatch table.
6451
64522007-12-13 Pascal Obry <obry@adacore.com>
6453
6454 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
6455 Windows. This signal is used by gnatmake to kill child processes for
6456 example.
6457
64582007-12-13 Javier Miranda <miranda@adacore.com>
6459
6460 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
6461 support for generic dispatching constructor calls in which we need to
6462 locate the tag of a secondary dispatch table associated with an
6463 interface type to properly dispatch the call.
6464 (Expand_N_Attribute_Reference [case Address],
6465 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
6466 handling of VM targets.
6467
64682007-12-13 Robert Dewar <dewar@adacore.com>
6469 Ed Schonberg <schonberg@adacore.com>
6470
6471 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
6472 assert fail
6473
6474 * ug_words: Add entries for -gnatw.a -gnatw.A
6475
6476 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
6477 literal is a subtype with non-static constraints, use the base type of
6478 the context as the base of the string subtype, to prevent type
6479 mismatches in gigi.
6480 (Resolve_Actuals): If the actual is an entity name, generate a
6481 reference before the actual is resolved and expanded, to prevent
6482 spurious warnings on formals of enclosing protected operations.
6483 (Analyze_Overloaded_Selected_Component): If type of prefix if
6484 class-wide, use visible components of base type.
6485 (Resolve_Selected_Component): Ditto.
6486 (Resolve_Short_Circuit): Detect case of pragma Assert argument
6487 evaluating to False, and issue warning message.
6488
6489 * usage.adb: Add lines for -gnatw.a and -gnatw.A
6490
64912007-12-13 Emmanuel Briot <briot@adacore.com>
6492
6493 * g-calend.ads (No_Time): New constant, to represent an uninitialized
6494 time value
6495
6496 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
6497 formats.
6498 (Month_Name_To_Number): New subprogram
6499
6500 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
6501 letter to upper-case.
6502
65032007-12-13 Robert Dewar <dewar@adacore.com>
6504 Ed Schonberg <schonberg@adacore.com>
6505
6506 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
6507
6508 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
6509 context is a limited view, use non-limited view when available. If the
6510 non-limited view is an unconstrained array, this enforces consistency
6511 requirements in 3.10.2 (27).
6512 (Layout_Type): For an access type whose designated type is a limited
6513 view, examine its declaration to determine if it is an unconstrained
6514 array, and size the access type accordingly.
6515 (Layout_Type): Do not force 32-bits for convention c subprogram
6516 pointers in -gnatdm mode, only if real vms target.
6517
6518 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
6519 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6520 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
6521 violations of the No_Implicit_Dynamic_Code restriction.
6522 (Resolve_Attribute, case 'Access): If designated type of context is a
6523 limited view, use non-limited view when available. If the non-limited
6524 view is an unconstrained array, this enforces consistency requirements
6525 in 3.10.2 (27).
6526 (Layout_Type): For an access type whose designated type is a limited
6527 view, examine its declaration to determine if it is an unconstrained
6528 array, and size the access type accordingly.
6529
65302007-12-13 Vincent Celier <celier@adacore.com>
6531
6532 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
6533 object directory of main project does not exist.
6534 On VMS, correctly set then environment variable for the source
6535 directories.
6536
65372007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
6538
6539 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
6540 set to True this procedure will create the value of type REG_EXPAND_SZ.
6541 It was only possible to create REG_SZ values before.
6542
65432007-12-13 Robert Dewar <dewar@adacore.com>
6544
6545 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
6546 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
6547 namet-sp.adb, namet-sp.ads: New files.
6548
6549 * g-speche.adb: Use generic routine in g-spchge
6550
6551 * s-wchcnv.ads, s-wchcnv.adb:
6552 Minor code cleanup (make formal type consistent with spec)
6553
6554 * namet.adb: Update comments.
6555
6556 * par-endh.adb (Evaluate_End_Entry): Use new
6557 Namet.Sp.Is_Bad_Spelling_Of function
6558
6559 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
6560
6561 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
6562 ancestor is an access type initialized with a box, set its type
6563 explicitly, for use in subsequent expansion.
6564 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
6565 function
6566
65672007-12-13 Robert Dewar <dewar@adacore.com>
6568
6569 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
6570 access Vstring)
6571
65722007-12-13 Robert Dewar <dewar@adacore.com>
6573
6574 * inline.adb (Back_End_Cannot_Inline): Use new flag
6575 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
6576
6577 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
6578 Has_Pragma_Inline_Always instead.
6579 of obsolete function Is_Always_Inlined
6580 (Build_Body_To_Inline): Same change
6581 (Cannot_Inline): Same change
6582 Do not give warning on exception raise in No_Return function
6583
6584 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
6585 component has two inconsistent component clauses in the same record
6586 representation clause, favor the message that complains about
6587 duplication rather than inconsistency.
6588 Update comments.
6589 (Record_Representation_Clause): Do not warn on missing component
6590 clauses for inherited components of a type extension.
6591 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
6592 an overloadable item if it is a pragma that can apply to multiple
6593 overloadable entities (e.g. Inline) because a pragma cannot be on
6594 more than one chain at a time.
6595 (Validate_Unchecked_Conversion): Add code to warn on unchecked
6596 conversion where one of the operands is Ada.Calendar.Time.
6597 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
6598 For now, ignore Component_Size clause on VM targets, as done for
6599 pragma Pack.
6600
66012007-12-13 Emmanuel Briot <briot@adacore.com>
6602 Vincent Celier <celier@adacore.com>
6603
6604 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
6605 string
6606 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
6607 prj.ads
6608 (Hash): Move instantiation of System.HTable.Hash from spec to body
6609 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
6610 systems, since we do not need to recompute the Name_Id for the canonical
6611 file name.
6612 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6613 as a parameter. This parameter is in fact always "ada" in all calls, and
6614 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
6615 while loading a project with 40000 files
6616
6617 * prj-attr.adb: Fix name of attribute Dependency_Driver
6618 Change the kind of indexing for attribute Root
6619
6620 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
6621 variables already declared, in case constructions.
6622
6623 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
6624 Current_Object_Path_File to No_Path.
6625
6626 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
6627 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
6628
6629 * prj-makr.adb: new parameter Current_Dir
6630
6631 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
6632 Ada sources when language is not Ada.
6633 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6634 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
6635 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
6636 (Locate_Directory): Always resolve links when computing Canonical_Path
6637 (Look_For_Sources): Make sure that Name_Buffer contains the file name
6638 in Source_Files before checking for the presence of a directory
6639 separator.
6640 Optimize calls to Name_Find when on case sensitive systems.
6641 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
6642 as a parameter.
6643 (Prj.Nmsc.Check): new parameter Current_Dir
6644 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
6645 cannot be empty and the spec suffix cannot be the same as the body or
6646 separate suffix.
6647 (Get_Unit): When a file name can be of several unit kinds (spec, body or
6648 subunit), always consider the longest suffix.
6649 (Check_Configuration): Do not issue an error if there is no compiler
6650 for a language. Just issue a warning and ignore the sources for the
6651 language.
6652 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
6653 not empty.
6654 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
6655 (Unit_Exceptions): New hash table
6656 (Check_Naming_Schemes): Check if a file that could be a unit because of
6657 the naming scheme is not in fact a source because there is an exception
6658 for the unit.
6659 (Look_For_Sources): Put the unit exceptions in hash table
6660 Unit_Exceptions
6661 (Get_Unit_Exceptions): Give initial value No_Source to local variable
6662 Other_Part to avoid exception when code is compiled with validity
6663 checking.
6664 (Get_Sources_From_File): Check that there is no directory information
6665 in the file names.
6666 (Look_For_Sources): Check that there is no directory information in the
6667 list of file names in Source_Files.
6668 (Look_For_Sources): In multi-language mode, do not allow exception file
6669 names that are excluded.
6670 (Excluded_Sources_Htable): New hash table
6671 (Search_Directories.Check_File): New procedure to simplify
6672 Search_Directories.
6673 (Search_Directories): Do not consider excluded sources
6674 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
6675 Search_Directories.
6676 (Get_Exceptions): Set component Lang_Kind of Source_Data
6677 (Get_Unit_Exceptions): Ditto
6678 (Search_Directories): Ditto
6679
6680 * prj-pars.adb: new parameter Current_Dir
6681
6682 * prj-part.ads, prj-part.adb:
6683 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
6684 (Opt.Follow_Links_For_Dirs): New flag
6685 (Project_Path_Name_Of): Cache information returned by this routine as
6686 Locate_Regular_File is a costly routine. The code to output a log
6687 information and the effective call to Locate_Regular_File is now
6688 factorized into a routine (code clean-up).
6689 (Parse, Parse_Single_Project): new parameter Current_Dir
6690 When main project file cannot be found, indicate in the error
6691 message the project path that was used to do the search.
6692
6693 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
6694 (Prj.Proc.Process*): new parameter Current_Dir
6695
6696 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
6697
66982007-12-13 Bob Duff <duff@adacore.com>
6699
6700 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
6701 procedure to be called from the back end to check the
6702 No_Implicit_Dynamic_Code restriction.
6703
67042007-12-13 Arnaud Charlet <charlet@adacore.com>
6705
6706 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
6707 Fixes another case where RTE_Available_Call was ignored instead of being
6708 taken into account.
6709 (Load_Fail): Ditto.
6710
6711 * rtsfind.ads: Add new entries.
6712
67132007-12-13 Robert Dewar <dewar@adacore.com>
6714
6715 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
6716 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
6717
6718 * scn.adb: Implement BOM recognition
6719
67202007-12-13 Thomas Quinot <quinot@adacore.com>
6721 Ed Schonberg <schonberg@adacore.com>
6722
6723 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
6724 subprogram body that acts as its own spec may not have a non-private
6725 WITH clause on a private sibling.
6726 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
6727 child unit is a renaming, create an implicit with_clause on that
6728 parent, and not on the unit it renames, to prevent visibility errors
6729 in the current unit.
6730
67312007-12-13 Ed Schonberg <schonberg@adacore.com>
6732
6733 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
6734 renaming declaration, use the Slocs of the formal parameters from the
6735 declaration of the formal subprogram when creating the formal parameter
6736 entities in the renaming declaration.
6737 (Analyze_Formal_Type_Declaration): Change the placement of the error
6738 message concerning illegal known discriminants. It is now posted on the
6739 type rather than on the first discriminant. This change ensures early
6740 error report.
6741 (Freeze_Subprogram_Body): If the generic subprogram is nested within
6742 the package body that contains the instance, do not generate an
6743 out-of-place freeze node for the enclosing package.
6744 (Collect_Previous_Instantiations): Ignore internal instantiations
6745 generated for formal packages.
6746 (Validate_Derived_Type_Instance): Add a check that when a formal
6747 derived type is Known_To_Have_Preelab_Init then the actual type must
6748 have preelaborable initialization, and issue an error when this
6749 condition is violated.
6750
67512007-12-13 Robert Dewar <dewar@adacore.com>
6752
6753 * s-imenne.adb, s-imenne.ads: New files.
6754
6755 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
6756 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
6757 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
6758 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
6759 s-imgwch.ads: New calling sequence for Image routines to avoid sec
6760 stack usage.
6761
67622007-12-13 Javier Miranda <miranda@adacore.com>
6763 Ed Schonberg <schonberg@adacore.com>
6764
6765 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
6766 generation of spurious error if parent is an interface type; caused
6767 because predefined primitive bodies will be generated later by
6768 Freeze_Record_Type.
6769 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
6770 flag.
6771 (Derive_Subprograms): Handle derivations of predefined primitives
6772 after all the user-defined primitives to ensure that they are
6773 found in proper order in instantiations.
6774 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
6775 of Related_Interface to Related_Type.
6776 (Record_Type_Declaration): Minor reordering of calls to decorate the
6777 Tag component because the entity must have set its Ekind attribute
6778 before setting its Is_Tag attribute.
6779 (Analyze_Subtype_Declaration): In the case of subtypes with
6780 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
6781
67822007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6783 Ed Schonberg <schonberg@adacore.com>
6784
6785 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
6786 statement to the list of contexts where a selected component with a
6787 concurrent tagged type prefix should yield a primitive operation.
6788 (Find_Primitive_Operation): Handle case of class-wide types.
6789 (Analyze_Overloaded_Selected_Component): If type of prefix is
6790 class-wide, use visible components of base type.
6791 (Resolve_Selected_Component): Ditto.
6792 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
6793 formal of a generic subprogram. find candidate interpretations by
6794 scanning the list of generic formal declarations.:
6795 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
6796 type from a limited_with_clause, and the full view is available, use it
6797 for subsequent semantic checks.
6798 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
6799 (Find_Primitive_Operation): New function.
6800 (Analyze_Overloaded_Selected_Component): insert explicit dereference
6801 only once if several interpretations of the prefix yield an access type.
6802 (Try_Object_Operation): Code and comment cleanup.
6803 (Analyze_Selected_Component): Reorder local variables. Minot comment and
6804 code reformatting. When the type of the prefix is tagged concurrent, a
6805 correct interpretation might be available in the primitive and
6806 class-wide operations of the type.
6807
68082007-12-13 Robert Dewar <dewar@adacore.com>
6809 Ed Schonberg <schonberg@adacore.com>
6810
6811 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
6812 renaming entry as subprogram using rename-as-body if subprogram spec
6813 frozen.
6814 (Use_One_Type): The clause is legal on an access type whose designated
6815 type has a limited view.
6816 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6817 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
6818 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
6819 operation denoted by a selected component.
6820 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
6821 it can be an expression, possibly overloaded, that returns a task or
6822 an access to one.
6823
68242007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6825 Gary Dismukes <dismukes@adacore.com>
6826
6827 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
6828 requeue statement is dispatching. Do not emit an error when the name is
6829 not an entry and the context is a dispatching select. Add code to
6830 perform subtype conformance between the formals of the current entry
6831 and those of the target interface primitive.
6832 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
6833 Timed_Entry_Call): Analyze the triggering statement as the first step of
6834 the processing. If this is a dispatching select, postpone the analysis
6835 of all select statements until the Expander transforms the select. This
6836 approach avoids generating duplicate identifiers after the Expander has
6837 replicated some of the select statements. In case the Expander is
6838 disabled, perform regular analysis.
6839 (Check_Triggering_Statement): New routine.
6840 (Analyze_Requeue): Exclude any interpretations that are not entries when
6841 checking overloaded names in a requeue. Also test type conformance for
6842 matching interpretations rather than requiring subtype conformance at
6843 that point to conform with the RM's resolution rule for requeues.
6844
68452007-12-13 Ed Schonberg <schonberg@adacore.com>
6846
6847 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
6848 inherited operation is a defaulted tag-indeterminate call, and there is
6849 a statically tagged actual, use the static tag as a controlling actual
6850 for the defaulted actual.
6851
68522007-12-13 Geert Bosch <bosch@adacore.com>
6853
6854 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
6855 context, so do not call Check_Non_Static_Context.
6856
68572007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
6858
6859 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
6860 whether formal E is an entity which may have parameters.
6861
68622007-12-13 Bob Duff <duff@adacore.com>
6863 Javier Miranda <miranda@adacore.com>
6864 Robert Dewar <dewar@adacore.com>
6865
6866 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
6867 (Set_Convention): New procedure to set the Convention flag, and in
6868 addition make sure the Favor_Top_Level flag is kept in sync (all
6869 foreign-language conventions require Favor_Top_Level = True).
6870 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
6871 to Related_Type.
6872 (Collect_Interfaces_Info): Minor update to handle the two secondary
6873 dispatch tables. Update occurrence of Related_Interface to Related_Type.
6874 (Generate_Parent_Ref): Add parameter to specify entity to check
6875 (Is_Preelaborable_Expression): Allow the name of a discriminant to
6876 initialize a component of a type with preelaborable initialization.
6877 This includes the case of a discriminal used in such a context.
6878 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
6879 latest Ada 2005 rules about renaming and 'Access of
6880 discriminant-dependent components.
6881 (Check_Nested_Access): Add handling when there are no enclosing
6882 subprograms (e.g. case of a package body).
6883 (Find_Parameter_Type): Factor routine from several other compiler files.
6884 Remove routine from Find_Overridden_Synchronized_Primitive.
6885
68862007-12-13 Thomas Quinot <quinot@adacore.com>
6887
6888 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
6889 an invalid access to an uninitialized slot in the
6890 Source_File_Index_Table.
6891
68922007-12-13 Thomas Quinot <quinot@adacore.com>
6893
6894 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
6895
68962007-12-13 Bob Duff <duff@adacore.com>
6897
6898 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
6899 access-to-subprogram types in this package.
6900
69012007-12-13 Olivier Hainque <hainque@adacore.com>
6902
6903 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
6904 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
6905 Stack_Overlay_Address and document that we are using an internal
6906 abstraction.
6907 (Byte_Size, Unsigned_32_Size): Remove, now useless.
6908 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
6909 consistently throughout the various implementation pieces.
6910
6911 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
6912 overlay we are using to fill the stack area with patterns.
6913 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
6914 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
6915 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
6916
69172007-12-13 Robert Dewar <dewar@adacore.com>
6918
6919 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
6920
69212007-12-13 Arnaud Charlet <charlet@adacore.com>
6922
6923 * s-tassta.adb:
6924 (Create_Task): Take into account tasks created by foreign threads.
6925 Code clean up: use constants instead of hard coded values.
6926
69272007-12-13 Robert Dewar <dewar@adacore.com>
6928
6929 * styleg.adb (Check_Comment): More liberal rules for comment placement
6930
69312007-12-13 Olivier Hainque <hainque@adacore.com>
6932
6933 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
6934 of Procedure Value instead of Frame Pointer as the invocation
6935 identifier associated with the instruction pointer in each traceback
6936 entry.
6937
6938 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
6939 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
6940 Pointer as the invocation identifier passed to tbk$symbolize.
6941
6942 * s-traent-vms.ads, s-traent-vms.adb
6943 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
6944 Procedure Value instead of Frame Pointer as the invocation identifier
6945 passed to tbk$symbolize.
6946
69472007-12-13 Robert Dewar <dewar@adacore.com>
6948
6949 * tbuild.ads, tbuild.adb:
6950 Fix location of flag for unrecognized pragma message
6951
69522007-12-13 Robert Dewar <dewar@adacore.com>
6953
6954 * treepr.ads, treepr.adb: (pl): implement use of positive value
6955 shorthands
6956
69572007-12-13 Robert Dewar <dewar@adacore.com>
6958
6959 * xeinfo.adb: Remove warnings
6960 * xnmake.adb: Remove warnings
6961 * xsinfo.adb: Remove warnings
6962 * xtreeprs.adb: Remove warnings
6963 * xsnames.adb: Remove warnings
6964
6965 * a-ngcoar.adb: Fix typo.
6966 * s-interr.adb: Minor reformatting
6967 * env.c: Minor reformatting.
6968 * g-bytswa.adb: Minor reformatting.
6969 * g-rannum.ads: Minor documentation improvements
6970 * s-tasinf-mingw.adb: Minor header fix
6971 * a-clrefi.adb: Minor reformatting
6972 * g-sttsne.ads: Minor documentation improvement
6973 * g-sttsne-locking.ads: Minor documentation improvement
6974 * g-soliop-solaris.ads: Minor documentation improvement
6975 * g-soliop-mingw.ads: Minor documentation improvement
6976 * g-soliop.ads: Minor documentation improvement
6977 * exp_aggr.ads: Minor reformatting
6978 * debug.adb: Add documentation for the gprbuild debug flags
6979 * exp_ch2.adb: Use Nkind_In to simplify code throughout
6980 * exp_pakd.adb: Minor reformatting
6981
6982 * g-altive.ads, g-alleve.adb: Remove assertions.
6983 Add comment about minor differences between targets regarding
6984 floating-point operations.
6985
6986 * g-thread.adb: Remove pragma unreferenced.
6987 * lib.ads: Minor reformatting
6988 * par-ch9.adb: Minor reformatting of error messages
6989 * sem_case.adb: Minor reformatting
6990 * s-fileio.adb: Minor reformattinng
6991 * s-vmexta.ads: Minor typo
6992 * vxaddr2line.adb:
6993 Take into account 'Success' value as per new GNAT warning.
6994
69952007-12-13 Vincent Celier <celier@adacore.com>
6996
6997 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
6998 even on Windows
6999
70002007-12-13 Robert Dewar <dewar@adacore.com>
7001 Bob Duff <duff@adacore.com>
7002
7003 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
7004 Document that suffixes may be terminations of each others
7005 Add doc for -gnatw.a and -gnatw.A
7006 Document gnatbind -Wx switch
7007 Document BOM recognition
7008 Document pragma Implemented_By_Entry.
7009 Document new units.
7010
7011 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
7012 Add doc for pragma Unreferenced suppressing no entities referenced msg
7013 Add documentation of GNAT.Directory_Operations.Iteration
7014 Add documentation of GNAT.Random_Numbers
7015 Add documentation for pragma Shared.
7016 Correct documentation for Bit_Order
7017 Add documentation for the Pool_Address attribute.
7018 Fix and improve documentation of pragma machine_attribute.
7019 New pragma Fast_Math
7020 Document BOM recognition
7021
7022 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
7023 Add /Wide_Character_Encoding for binder
7024 Add qualifier for the new gnatpp option --no-separate-loop-then
7025
70262007-12-13 Matthew Heaney <heaney@adacore.com>
7027
7028 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
7029 which generic formal operations are called for each operation.
7030
70312007-12-13 Olivier Hainque <hainque@adacore.com>
7032
7033 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
7034 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
7035
70362007-12-13 Emmanuel Briot <briot@adacore.com>
7037
7038 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
7039 Reference_Dir unless we actually need it.
7040
70412007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
7042 Tristan Gingold <gingold@adacore.com>
7043
7044 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
7045
7046 * s-osprim-vms.adb,
7047 a-calend-vms.adb: Remove pragma warning off and add pragma
7048 unreferenced.
7049
70502007-12-13 Robert Dewar <dewar@adacore.com>
7051
7052 * impunit.adb: Add entries for missing units
7053
7054 * Makefile.rtl: Add new run-time units.
7055
7056 * Make-lang.in: Update dependencies.
7057
70582007-12-13 Bob Duff <duff@adacore.com>
7059
7060 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
7061 types, set Can_Use_Internal_Rep appropriately, based on
7062 Always_Compatible_Rep_On_Target.
7063
70642007-12-13 Gary Dismukes <dismukes@adacore.com>
7065 Arnaud Charlet <charlet@adacore.com>
7066
7067 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
7068 it to the front end and setting the aamp_target environment variable
7069 to the switch's argument to ensure that gnaampbind and gnaamplink will
7070 take the specified library into account.
7071 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
7072 target, since the CIL compiler supports an "object" file (.il files).
7073
70742007-12-13 Vincent Celier <celier@adacore.com>
7075
7076 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
7077 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
7078
70792007-12-13 Geert Bosch <bosch@adacore.com>
7080
7081 * s-parame-vxworks.adb:
7082 Update comments to reflect usage of this package by Nucleus.
7083
70842007-12-13 Arnaud Charlet <charlet@adacore.com>
7085
7086 * i-vxwork.ads: Kill new warning on Convention C, since changing the
7087 spec would break code.
7088
7089 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
7090
7091 * system-vxworks-alpha.ads: Removed.
7092
e74a122e
EB
70932007-12-10 Eric Botcazou <ebotcazou@adacore.com>
7094
7095 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
7096
5320014a
ST
70972007-12-09 Samuel Tardieu <sam@rfc1149.net>
7098
7099 PR ada/34366
7100 * sem_ch3.adb (Designates_T): New function.
7101 (Mentions_T): Factor reusable part of the logic into Designates_T.
7102 Consider non-access parameters and access and non-access result.
7103 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
7104 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
7105
7106 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
7107
da746f77
LB
71082007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
7109
9d651736 7110 PR ada/34361
da746f77
LB
7111 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
7112 the new implementation of target-specific calls.
7113
ebe0660b
OH
71142007-12-07 Olivier Hainque <hainque@adacore.com>
7115
7116 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
7117 the designated full view, only follow a second level Full_View link
7118 for Non_Limited_Views of from_limited_with references.
7119
2eb160f2
ST
71202007-12-07 Samuel Tardieu <sam@rfc1149.net>
7121
7122 PR ada/15805
7123 * sem_ch6.adb (Process_Formals): Prevent an access type formal
7124 to be initialized with an access to constant object.
7125
9cc11b58
ST
7126 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
7127 when an access to constant is used to initialize an access
7128 value.
7129
72f69ddf
ST
7130 PR ada/21346
7131 * a-direct.adb (Compose): Containing_Directory can be an empty string.
7132
5a2fe31a
OH
71332007-12-07 Olivier Hainque <hainque@adacore.com>
7134
7135 PR ada/34173
7136 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
7137 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
7138 this is from an alignment clause on the GNAT entity.
7139 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
7140 to distinguish the case where we set it from the type's alignment.
7141 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
7142 whether this alignment was set from an explicit alignment clause.
7143
4039fb35
EB
71442007-12-06 Eric Botcazou <ebotcazou@adacore.com>
7145
7146 * decl.c (make_packable_type): Revert last change.
7147 (gnat_to_gnu_field): Avoid setting size and position multiple times.
7148 * utils.c (finish_record_type): Retrieve the real name of the type.
7149
0ec479dc
EB
71502007-12-05 Eric Botcazou <ebotcazou@adacore.com>
7151
7152 * trans.c (lvalue_required_p): Take base node directly instead
7153 of its parent. Rename second parameter to 'gnu_type'.
7154 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
7155 <N_Slice>: Likewise.
7156 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
7157 Adjust calls to lvalue_required_p.
7158
07c7262e
ST
71592007-12-05 Samuel Tardieu <sam@rfc1149.net>
7160
7161 PR ada/21489
7162 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
7163 parameters of an entry call.
7164
9e94c78f 71652007-12-03 Robert Dewar <dewar@adacore.com>
403fd939
RD
7166 Samuel Tardieu <sam@rfc1149.net>
7167
7168 PR ada/34287
7169 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
7170 of variables declared in a library-level package.
7171
0bcb4d2a
ST
71722007-12-02 Samuel Tardieu <sam@rfc1149.net>
7173
7174 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
7175 of Empty_String'Unchecked_Access.
7176
dd9c642a
ST
7177 * Makefile.in: Add support for sh4-linux.
7178
7179 * system-linux-sh4.ads: New file.
7180
35330114
KB
71812007-12-01 Kostik Belousov <kostikbel@ukr.net>
7182
7183 PR ada/33722
7184 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
7185 and its argument must not be free()ed.
7186
a6dcb051
EB
71872007-11-29 Eric Botcazou <ebotcazou@adacore.com>
7188
7189 * decl.c (make_packable_type): Retrieve the real name of the type.
7190 (maybe_pad_type): Simplify similar code.
7191
39a97416
ST
71922007-11-28 Samuel Tardieu <sam@rfc1149.net>
7193
a6968b8b 7194 PR ada/15804
39a97416
ST
7195 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
7196 than an identifier is used after "case" in a variant_part.
7197
b99dfeb3 7198 PR ada/17318
9c5a3a8d
ST
7199 * par-ch4.adb (Is_Parameterless_Attribute): New map.
7200 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
7201 attribute name or not depending on the new map.
7202
7203 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
7204 returning a string or a type will not be called with improper
7205 arguments.
7206
7207 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
7208
7209 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
7210
5a218498
ST
7211 PR ada/32792
7212 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
7213 Signal an error when attribute argument is a fixed-point value of
7214 an unknown type.
7215
7bde4677
ST
7216 PR ada/22559
7217 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
7218 a derived ordinary fixed point type.
7219
7220 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
7221 RM_Size when a Small clause is found.
7222
182e0d71
AK
72232007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
7224
7225 PR 34081/C++
7226 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
7227 Pass 'false' for the new allocate_struct_function parameter.
7228 * utils.c (build_function_stub): Likewise.
7229
87caf699
RG
72302007-11-25 Richard Guenther <rguenther@suse.de>
7231
4039fb35 7232 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
87caf699
RG
7233 (gnat_poplevel): Likewise.
7234
f1c8c7ee
EB
72352007-11-25 Eric Botcazou <ebotcazou@adacore.com>
7236
7237 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
7238 strict alignment, no alignment clause and a known static size, cap
7239 the type alignment to the greatest power of 2 factor of the size.
7240 (gnat_to_gnu_field): If the field has a component clause, is aliased
7241 or of a type with strict alignment, require that its size be equal to
7242 that of the type.
7243 (validate_size): Use the type size as the minimum size for a type with
7244 strict alignment.
7245
bb1f5840
ST
72462007-11-23 Samuel Tardieu <sam@rfc1149.net>
7247
7248 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
7249 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
7250 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
7251 Use 'Access instead of 'Unchecked_Access in second and third
7252 arguments of pthread_sigmask.
7253
5102fac5
EB
72542007-11-23 Eric Botcazou <ebotcazou@adacore.com>
7255
7256 * decl.c (ceil_alignment): New function.
7257 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
7258 (make_packable_type): Likewise.
7259
1fa4dfc6
OH
72602007-11-22 Olivier Hainque <hainque@adacore.com>
7261
7262 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
7263 to fit in 80 columns.
7264
9e94c78f 72652007-11-21 Aurelien Jarno <aurelien@aurel32.net>
5f45b299
AJ
7266
7267 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
7268 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
7269
7634135a
EB
72702007-11-19 Eric Botcazou <ebotcazou@adacore.com>
7271
7272 PR ada/34098
7273 * misc.c (gnat_adjust_rli): Delete.
7274 (gnat_init): Do not initialize the translation code here.
7275 Do not call set_lang_adjust_rli.
7276 * trans.c (init_code_table): Make static.
7277 (gnat_init_stmt_group): Delete.
7278 (gigi): Initialize the translation code entirely here.
7279 Emit debug info for the common types here instead of...
7280 * utils.c (gnat_init_decl_processing): ...here.
7281 * gigi.h (init_code_table): Delete.
7282 (gnat_init_stmt_group): Likewise.
7283
b2c3bcf4
OH
72842007-11-16 Olivier Hainque <hainque@adacore.com>
7285
7286 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
7287 retrieving an allocator return value from a super-aligned address from
7288 here to ...
7289 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
7290 expect a super-aligned address for a fat or thin pointer.
7291
a01e283f
EB
72922007-11-14 Eric Botcazou <ebotcazou@adacore.com>
7293
7294 * trans.c (call_to_gnu): Always set the source location on the call
7295 expression. If the function returns-by-target, also set it on the
7296 address expression.
7297
713c3145
ST
72982007-11-14 Samuel Tardieu <sam@rfc1149.net>
7299
356d8961 7300 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
713c3145
ST
7301 sections of non-supported Interix target.
7302
7303 * s-osinte-interix.ads: Removed.
7304
1e992e16
ST
7305 * i-cstrin.ads (chars_ptr): Make it a C convention type.
7306
0e506c4b
ST
73072007-11-13 Samuel Tardieu <sam@rfc1149.net>
7308
7309 * a-tasatt.adb: Add a comment at the beginning of the package
7310 explaining why in general 'Unchecked_Access must be used instead
7311 of 'Access.
7312
66beb09b
ST
7313 * sem_prag.adb (Process_Convention): Move the test for the
7314 entity on which the Convention pragma applies down to also
7315 forbid pragma Convention on enumeration literals reached
7316 through renamings.
7317
14678e46
ST
73182007-11-10 Samuel Tardieu <sam@rfc1149.net>
7319
7320 * a-tasatt.adb: Revert previous change for this file as it will
7321 generate an error when this package is instantiated from a
7322 local context.
7323
f9d806de
ST
73242007-11-07 Samuel Tardieu <sam@rfc1149.net>
7325
7326 * a-tasatt.adb: Type Wrapper should be declared in comment instead
7327 of already declared type Node_Access.
dcbd752d
ST
7328 Use 'Access instead of 'Unchecked_Access when applicable. Local
7329 lifetime is the one of the package.
7330 (Set_Value): W is allocated on the heap.
7331
7332 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
7333 applicable.
7334 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
7335 access type.
7336 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
7337 access type.
7338
7339 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
7340 applicable.
7341 (elaboration code): Timer_Queue lifetime is the one of the
7342 package.
f9d806de 7343
bc01690e
ST
7344 * tracebak.c (i386 alternative): Remove useless comparaison
7345 which is always false; LOWEST_ADDRESS is 0 and is never greater
7346 than an unsigned integer.
7347
d9c1dc68
ST
7348 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
7349 embedded check for "Ada_Version >= Ada_05".
7350
cb88a3ea
OH
73512007-11-07 Olivier Hainque <hainque@adacore.com>
7352
7353 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
7354 craft and expand comment.
7355
233a722b
EB
73562007-11-01 Eric Botcazou <ebotcazou@adacore.com>
7357
7358 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
7359
6d1e8bff
EB
73602007-10-23 Eric Botcazou <ebotcazou@adacore.com>
7361
7362 * misc.c (gnat_handle_option): Replace call to abort with
7363 call to gcc_unreachable.
7364 (gnat_init): Likewise.
7365 (gnat_expand_expr): Likewise.
7366 (fp_prec_to_size): Likewise.
7367 (fp_size_to_prec): Likewise.
7368
262e7125
RG
73692007-10-23 Richard Guenther <rguenther@suse.de>
7370
7371 PR bootstrap/33608
7372 * tracebak.c: #undef abort after including system.h.
7373
9e94c78f 73742007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
c8f499a9
DS
7375
7376 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
7377 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
7378 for win32 targets.
7379 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
7380
f0e1e807
AC
73812007-10-15 Eric Botcazou <ebotcazou@adacore.com>
7382
7383 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
7384 Set the protection status of the guard page based on the value of On.
7385
7386 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
7387
7388 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
7389 (Exit_Task): Pass False to Hide_Yellow_Zone.
7390
73912007-10-15 Robert Dewar <dewar@adacore.com>
7392
7393 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7394 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
7395 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
7396 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
7397 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
7398 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
7399 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
7400 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
7401 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
7402 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
7403 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
7404 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
7405 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
7406 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
7407 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
7408 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
7409 Minor reformatting.
7410 Add Unreferenced and Warnings (Off) pragmas for cases of
7411 variables modified calls where they are IN OUT or OUT parameters and
7412 the resulting values are not subsequently referenced. In a few cases,
7413 we also remove redundant code found by the new warnings.
7414
7415 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
7416 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
7417 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
7418 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
7419 warning controlled by -gnatw.o that warns on cases of out parameter
7420 values being ignored.
7421
74222007-10-15 Geert Bosch <bosch@adacore.com>
7423
7424 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
7425
7426 * expect.c: Initial port to arm-mentor-nucleus.
7427 Use kill for __gnat_kill() on VMS.
7428
74292007-10-15 Emmanuel Briot <briot@adacore.com>
7430
7431 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
7432 value.
7433 (Xref_Record): Change type for Line, since in the case of a reference to
7434 a predefined entity (as happens for array index types), the line is set
7435 to 0.
7436 Add support for parsing multiple array index types info, or
7437 multiple inherited interfaces info. This information cannot be stored
7438 in Xref_Entity_Record, which only supports a single instance of Tref_*,
7439 and is therefore stored in the list of references instead. It has a
7440 special treatement later on in tools that use this information.
7441
74422007-10-15 Tristan Gingold <gingold@adacore.com>
7443
7444 * debug.adb: Document use of -gnatd.a and -gnatd.I
7445
7446 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
7447
74482007-10-15 Javier Miranda <miranda@adacore.com>
7449
7450 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
7451 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
7452 care of access to class-wide interface types plus removal of bizarre
7453 conversion of tagged object to access type (reported by Gary
7454 Dismukes). After this patch there is no need to perform any
7455 additional management on these nodes in Expand_Interface_Actuals.
7456
7457 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
7458 that handles use of 'Access and 'Unchecked_Access applied to
7459 actuals covering interface types. Such code is now
7460 centralized in Expand_N_Attribute_Reference.
7461
74622007-10-15 Ed Schonberg <schonberg@adacore.com>
7463
7464 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
7465 of tagged types whose ultimate ancestor is a CPP type.
7466 (Freeze_Array_Type): For a packed array type, generate an initialization
7467 procedure if the type is public, to handle properly a client that
7468 specifies Normalize_Scalars.
7469
74702007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7471
7472 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
7473 inside a generic body, retrieve the full view of the entry family
7474 discrete subtype if available.
7475
74762007-10-15 Thomas Quinot <quinot@adacore.com>
7477
7478 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
7479 attempt to generate stubs for hidden primitive operations.
7480
74812007-10-15 Vincent Celier <celier@adacore.com>
7482
7483 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
7484 returning None, used when there is no platform specific body for
7485 MLib.Tgt.Specific.
7486
74872007-10-15 Bob Duff <duff@adacore.com>
7488
7489 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
7490 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
7491 the generic Heap_Sort_G, in order to avoid trampolines.
7492
74932007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
7494 Jose Ruiz <ruiz@adacore.com>
7495
7496 * vx_stack_info.c: New file.
7497
7498 * i-forbla-unimplemented.ads: New file.
7499
7500 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
7501 for unsupported configurations; use it on VMS targets instead of the
7502 real one.
7503 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
7504 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
7505 used by VxWorks targets to have access to task-specific data and be
7506 able to extract the stack boundaries for stack checking.
7507 Use system-vms-ia64.ads on ivms.
7508
7509 * Make-lang.in: Update dependencies.
7510
7511 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
7512 (vx_stack_info.c).
7513
75142007-10-15 Vincent Celier <celier@adacore.com>
7515
7516 * snames.adb, snames.ads: Add new standard name runtime_library_dir
7517
7518 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
7519
7520 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
7521
7522 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
7523 the source is unknown.
7524
7525 * prj-ext.adb: Spelling error fix
7526
7527 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
7528 95 reserved word in its name.
7529 (Process_Project_Level_Array_Attributes): Process new attribute
7530 Runtime_Library_Dir.
7531
7532 * prj-part.adb (Parse_Single_Project): Do not check the name of the
7533 config project against the user project names.
7534
7535 * prj-proc.adb (Expression): In multi-language mode, indexes that do
7536 not include a dot are always case insensitive.
7537 (Process_Declarative_Items): Ditto
7538 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
7539 detected.
7540
7541 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
7542 True, compare both indexes in lower case.
7543
75442007-10-15 Robert Dewar <dewar@adacore.com>
7545
7546 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
7547
75482007-10-15 Gary Dismukes <dismukes@adacore.com>
7549
7550 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
7551 association for an access component, add an association with null as
7552 the expression. Remove testing for array subtypes and the setting in
7553 that case of Ctyp to the array component type, which prevented proper
7554 inclusion of an association for null-initialized arrays. Collapse
7555 condition that tests for array subtypes into just a test of
7556 Is_Partially_Initialized_Type (which already covers arrays anyway).
7557
75582007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7559
7560 * sem_ch12.adb: Minor code reformatting.
7561 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
7562 find the parent package which may have been hidden by local
7563 declarations.
7564
75652007-10-15 Gary Dismukes <dismukes@adacore.com>
7566
7567 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
7568 flag of derived concurrent types, taking into account the flag setting
7569 on the parent subtype and any new set of discriminants.
7570
75712007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
7572
7573 * sem_ch4.adb: Minor code and comment reformatting.
7574 (Analyze_Allocator): When the designated type of an unconstrained
7575 allocator is a record with unknown discriminants or an array with
7576 unknown range bounds, emit a detailed error message depending on the
7577 compilation mode and whether the designated type is limited.
7578
75792007-10-15 Tristan Gingold <gingold@adacore.com>
7580
7581 * system-vms-ia64.ads: New file.
7582
7583 * system-vms_64.ads: Minor comment fix.
7584
75852007-10-15 Ed Schonberg <schonberg@adacore.com>
7586
7587 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
7588 body generated for a function with a controlling result that is a null
7589 extension, discard the generated body in favor of the current explicit
7590 one.
7591
75922007-10-15 Ed Schonberg <schonberg@adacore.com>
7593
7594 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
7595 examining its original form, to handle properly operator calls that
7596 have been rewritten.
7597
75982007-10-15 Olivier Hainque <hainque@adacore.com>
7599
7600 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
7601 instead of a procedure value in each traceback entry.
7602
7603 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
7604 instead of procedure value to TBK$SYMBOLIZE.
7605
7606 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
7607 field.
7608 (TB_Entry_For): Account for the PV/FP renaming.
7609
7610 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
7611 add comment.
7612 (Null_TB_Entry): Account for change of component name.
7613 (PV_For): Rename as FP_For.
7614
76152007-10-15 Tristan Gingold <gingold@adacore.com>
7616
7617 * trans.c (gnat_to_gnu): Remove the padding structure more often.
7618 This optimize assignment to over-aligned record.
7619
76202007-10-15 Emmanuel Briot <briot@adacore.com>
7621
7622 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
7623 interfaces.
7624
7625 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
7626 type, for dispatching calls.
7627
76282007-10-15 Vincent Celier <celier@adacore.com>
7629 Robert Dewar <dewar@adacore.com>
7630
7631 * gnat_ugn.texi: Add documentation for switches --version and --help
7632 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
7633 gnatxref, gnatfind, gnatls, and gnatclean.
7634 Document -gnatw.o.
7635 Mention attribute Excluded_Source_Dirs
7636 Replace obsolescent attribute Locally_Removed_Files with attribute
7637 Excluded_Source_Files.
7638 Improve documentation of -u (gnatbind)
7639 Document how to do reliable stack checking for the environmental task
7640 on iVMS.
7641
7642 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
7643 Document attribute Excluded_Source_Files and indicate that attribute
7644 Locally_Removed_Files is obsolescent.
7645
76462007-10-15 Thomas Quinot <quinot@adacore.com>
7647
7648 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
7649
7650 * gen-soccon.c:
7651 Update documentation to note that OpenVMS 8.3 or later must be used
7652 to generate g-soccon-vms.ads.
7653
7654 * atree.adb: Add ??? comment
7655
7656 * exp_util.adb: Minor reformatting.
7657 Add ??? comment in Kill_Dead_Code.
7658
76592007-10-15 Robert Dewar <dewar@adacore.com>
7660
7661 * errout.ads: Comment clarification
7662
7663 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7664 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
7665
7666 * lib.ads: Comment update
7667
7668 * init.c: Minor reformatting.
7669
7670 * sem_attr.adb: Minor formatting
7671
7672 * osint-b.ads: Minor reformatting
7673
7674 * sem_ch9.adb: Implement -gnatd.I switch
7675
7676 * g-comlin.adb: (Start): Fix handling of empty command line.
7677
7678 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
7679 even when -rules follows the -cargs section.
7680
6524147c
OW
76812007-10-08 Ollie Wild <aaw@google.com>
7682
7683 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
7684 gnat_return_tree.
7685 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
7686 gnat_return_tree.
7687 (gnat_eh_runtime_type): Removed.
7688 (gnat_return_tree): New function.
7689
dff6abb2
BE
76902007-10-08 Ben Elliston <bje@au.ibm.com>
7691
7692 PR ada/33454
7693 Revert:
7694 2007-08-31 Ben Elliston <bje@au.ibm.com>
7695
7696 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
7697 when compiling for powerpc64-*-linux.
7698 * system-linux-ppc64.ads: New file.
7699
c3048783
EB
77002007-09-27 Eric Botcazou <ebotcazou@adacore.com>
7701
7702 Mapped location support
7703 * back_end.adb (Call_Back_End): Pass information about source
7704 files instead of units to gigi.
7705 * gigi.h (struct File_Info_Type): New.
7706 (gigi): Rename and change type of number_units parameter, change
7707 type of file_info_ptr parameter.
7708 * trans.c (number_files): New global variable.
7709 (gigi): Rename and change type of number_units parameter, change
7710 type of file_info_ptr parameter.
7711 If mapped location support is enabled, create the isomorphic mapping
7712 between source files and line maps.
7713 (Sloc_to_locus): If mapped location support is enabled, translate
7714 source location into mapped location.
7715 (annotate_with_node): Rename into set_expr_location_from_node.
7716 Call set_expr_location instead of annotate_with_locus.
7717 (Pragma_to_gnu): Adjust for above change.
7718 (Loop_Statement_to_gnu): Likewise.
7719 (call_to_gnu): Likewise.
7720 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7721 (gnat_to_gnu): Likewise.
7722 (add_stmt_with_node): Likewise.
7723 (add_cleanup): Likewise.
7724 * utils.c (gnat_init_decl_processing): Do not set input_line.
7725
68b72a44
AC
77262007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7727
7728 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
7729 (Applicable_Use): Emit a warning when a package tries to use itself.
7730 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
7731 is already in use or the package where it is declared is in use or is
7732 declared in the current package.
7733 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
7734
7735 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
7736 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
7737 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
7738
77392007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7740
7741 * a-calend-vms.adb, a-calend.adb:
7742 Add a section on leap seconds control along with two entities used to
7743 enable and disable leap seconds support. The array Leap_Second_Times is
7744 now constant and contains hard time values pre-generated. Remove
7745 all elaboration code used to populate the table of leap seconds.
7746
7747 * bindgen.adb:
7748 Add entity Leap_Seconds_Support to the list of global run-time variables
7749 along with a comment on its usage and values.
7750 (Gen_Adainit_Ada): Add code to generate the declaration and import of
7751 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
7752 or one (enabled) depending on the presence of binder switch "-y".
7753 (Gen_Adainit_C): Add code to generate the declaration of external int
7754 __gl_leap_seconds_support. Set is value to zero (disabled) or one
7755 (enabled) depending on the presence of binder switch "-y".
7756
7757 * init.c: Add __gl_leap_seconds_support to the list of global values
7758 computed by the binder.
7759
77602007-09-26 Jerome Guitton <guitton@adacore.com>
7761
7762 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
7763 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
7764 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
7765 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
7766
7767 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
7768
7769 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
7770 function which can be called by the debugger to interrupt the tasks of
7771 an Ada application asynchronously, as needed on VxWorks.
7772 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
7773
7774 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
7775 renamed from Stop_All_Tasks. Update comments.
7776 (Stop_All_tasks): New function declaration.
7777
77782007-09-26 Olivier Hainque <hainque@adacore.com>
7779
7780 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
7781 #include <utime.h> and #define GCC_RESOURCE_H before
7782 #include <sys/wait.h>.
7783 Add more protections in __gnat_translate_vms.
7784
7785 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
7786 #include <sys/wait.h>.
7787
77882007-09-26 Thomas Quinot <quinot@adacore.com>
7789 Sergey Rybin <rybin@adacore.com>
7790
7791 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
7792
7793 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7794 where it belongs.
7795
7796 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7797
7798 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
7799 where it belongs.
7800
7801 * sem_dist.ads: Minor comment fix
7802
7803 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
7804
78052007-09-26 Javier Miranda <miranda@adacore.com>
7806 Eric Botcazou <ebotcazou@adacore.com>
7807
7808 * a-tags.adb:
7809 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
7810 indirection added to the HT_Link component of the TSD. This is required
7811 to statically allocate the TSD.
7812
7813 * a-tags.ads:
7814 Minor reordering of the declarations in the private part. Required to
7815 add a level of indirection to the contents of the TSD component HT_Link.
7816 This is required to statically allocate the TSD.
7817
7818 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
7819 Is_Statically_Allocated set from constant objects.
7820 Do not make exported constants created by the compiler volatile.
7821 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
7822 as read-only.
7823
7824 * trans.c (Identifier_to_gnu): For constants, unshare initializers
7825 before returning them.
7826
7827 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
7828 public part of the package.
7829 (Make_DT): Move HT_Link component out of the TSD record. For this
7830 purpose Make_DT now declares a separate object that stores the
7831 HT_Link value, and initializes the TSD component with the address
7832 of this new object. The addition of this level of indirection is
7833 required to statically allocate the TSD because the TSD cannot
7834 have variable components.
7835 (Expand_Interface_Conversion): Improve the expanded code.
7836 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
7837
7838 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
7839 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
7840 if we are building static dispatch tables then we must not generate
7841 extra code to register the primitive because the dispatch table will
7842 be built at the end of the library package; otherwise we notify that
7843 we cannot build the static dispatch table.
7844
78452007-09-26 Robert Dewar <dewar@adacore.com>
7846
7847 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
7848 overlays.
7849
7850 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
7851 (Analyze_Record_Representation_Clause): Suppress junk warning for
7852 missing component clause.
7853 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
7854 tests for controlled type overlay to composites with controlled
7855 components.
7856 (Analyze_Record_Representation_Clause): Add reference for component name
7857
78582007-09-26 Javier Miranda <miranda@adacore.com>
7859 Gary Dismukes <dismukes@adacore.com>
7860
7861 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
7862 for thunks associated with interface types.
7863
7864 * einfo.ads: Improve documentatation of Is_Internal
7865 (Is_Thunk): New attribute applicable to subprograms. True for thunks
7866 associated with interface types.
7867 Extensive comment fixes regarding flags that appear in all entities. The
7868 documentation is now consistent for all such flags (there were a number
7869 of errors in the documentation in this regard).
7870
7871 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
7872
7873 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
7874 of these procedures are passed a function call that already has
7875 build-in-place actuals (testing new flag
7876 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
7877 the case where processing continues.
7878 (Expand_Call): If the call is generated from a thunk body then we
7879 propagate the extra actuals associated with the accessibility
7880 level of the access type actuals.
7881
7882 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
7883 of each extra formal of a protected operation to reference the
7884 corresponding extra formal of the subprogram denoted by the
7885 operation's Protected_Body_Subprogram.
7886
7887 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
7888 N_Function_Call nodes.
7889
78902007-09-26 Robert Dewar <dewar@adacore.com>
7891
7892 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
7893
7894 * debug.adb: Add d.s flag.
7895
78962007-09-26 Gary Dismukes <dismukes@adacore.com>
7897
7898 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
7899 debug variable so that it won't be initialized when pragma
7900 Initialize_Scalars is in effect.
7901
79022007-09-26 Gary Dismukes <dismukes@adacore.com>
7903
7904 * freeze.adb (Freeze_Entity): Remove check for preelaborable
7905 initialization of a full view. This is moved to
7906 Analyze_Package_Specification.
7907
7908 * sem_ch7.adb (Analyze_Package_Specification): Add check for
7909 preelaborable initialization of a full view in entity loop.
7910 (Uninstall_Declarations): If entity is a use-visible compilation unit,
7911 its child units are use-visible only if they are visible child units.
7912
7913 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
7914 whether an expression can be used within a type declaration that
7915 requires preelaborable init.
7916 (Check_Components): Replace inline code that does partial checking for
7917 preelaborable default expressions with call to
7918 Is_Preelaborable_Expression.
7919 (Has_Preelaborable_Initialization): In the case of a generic actual
7920 subtype, (that is, Is_Generic_Actual is True), return the result of
7921 applying Has_Preelaborable_Initialization to the generic actual's base
7922 type.
7923
79242007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
7925
7926 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
7927 call to Jan_1_Day _Of_Week to optimize its performance.
7928 (Is_Leap): Move the routine to the scope of Week_In_Year.
7929 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
7930 weekday on which January 1 falls of Year - 1 and Year + 1. This function
7931 avoids calling Time_Of and Split, thus making it more efficent.
7932 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
7933
7934 * g-calend.ads (Week_In_Year): Change comment to reflect new
7935 implementation.
7936
79372007-09-26 Emmanuel Briot <briot@adacore.com>
7938
7939 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
7940 Command_Line): New types
7941 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
7942 support for defining how switches can be grouped on a command line (as
7943 is the case for -gnatw... for GNAT), and how simple switches can be
7944 used as aliases for more complex switches (-gnatwa is same as
7945 -gnatwbcef...)
7946 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
7947 (Start, Current_*): New subprograms
7948 Added support for parsing an array of strings in addition to the real
7949 command line.
7950 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
7951 be moved from the body to the private part of the spec.
7952 (*): All subprograms now have an extra parameter with default value to
7953 specify which parser should be used. For backward compatibility, it
7954 defaults to parsing the command line of the application. They were also
7955 modified to properly handle cases where each of the argument does not
7956 start at index 1 (which is always true for Ada.Command_Line, but not
7957 when processing any Argument_List).
7958 (Free): New subprogram
7959 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
7960 Argument): New subprograms
7961 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
7962 special characters like ':', '=',... are now handled in a single place,
7963 which makes the code more extensible eventually.
7964 (Getopt, Full_Switch): When the switch was returned as part of the
7965 special character '*', make sure it is prepended by the switch character
7966 ('-' in general), so that the application knows whether "foo" or "-foo"
7967 was specified on the command line.
7968
79692007-09-26 Florian Villoing <villoing@adacore.com>
7970
7971 * g-dirope.adb (Remove_Dir): In case we are removing directories
7972 recursively, make sure that if an exception is raised during the
7973 processing, the current working directory is reset to its initial
7974 value before propagating the exception.
7975
79762007-09-26 Vincent Celier <celier@adacore.com>
7977
7978 * gnatbind.adb: If there are several ALI files specified and there is
7979 a main program to bind, the first ALI is expected to contain the main
7980 subprogram and the names of the binder generated files will be derived
7981 from the first ALI file name.
7982 (Gnatbind): Fix insertion character in invocation of Error_Msg
7983
79842007-09-26 Vincent Celier <celier@adacore.com>
7985
7986 * gnatcmd.adb (Check_Files): Do not include sources that have been
7987 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
7988
79892007-09-26 Ed Schonberg <schonberg@adacore.com>
7990
7991 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
7992 information about each of its index types, following the type
7993 reference for its component type.
7994
79952007-09-26 Vincent Celier <celier@adacore.com>
7996
7997 * make.adb: (Kill): New procedure (__gnat_kill imported)
7998 (Running_Compile, Outstanding_Compiles): Global variables that
7999 were previously local to procedure Compile_Sources.
8000 (Sigint_Intercepted): Send signal SIGINT to all outstanding
8001 compilation processes.
8002
8003 (Gnatmake): If project files are used, create the mapping of all the
8004 sources, so that the correct paths will be found.
8005
8006 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
8007
80082007-09-26 Vincent Celier <celier@adacore.com>
8009
8010 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
8011
8012 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
8013 Replace components Compiler_Min_Options and Binder_Min_Options with
8014 Compiler_Required_Switches and Binder_Required_Switches in record
8015 Language_Config.
8016 Remove components Default_Language and Config in Project_Tree_Data,
8017 no longer used.
8018
8019 * prj-attr.adb: New attributes Required_Switches (<language>) in
8020 packages Compiler and Binder.
8021
8022 * prj-nmsc.adb: Major rewrite of the processing of configuration
8023 attributes for gprbuild. No impact on GNAT tools.
8024
8025 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
8026 process configuration attributes: this is done in Prj.Nmsc.Check.
8027 (Recursive_Process): Make a full copy of packages inherited from project
8028 being extended, instead of a shallow copy.
8029 (Process_Project_Tree_Phase_1): New procedure
8030 (Process_Project_Tree_Phase_1): New procedure
8031 (Process): Implementation now uses the two new procedures
8032
8033 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
8034 from the project config, not the tree config that no longer exists.
8035
80362007-09-26 Vincent Celier <celier@adacore.com>
8037
8038 * Make-lang.in: Update dependencies..
8039
80402007-09-26 Vincent Celier <celier@adacore.com>
8041
8042 * osint.adb, osint.ads: Minor reformatting
8043
8044 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
8045
80462007-09-26 Gary Dismukes <dismukes@adacore.com>
8047
8048 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
8049 message to cite use of <> in aggregate component associations rather
8050 than wrongly indicating use of limited aggregates.
8051
80522007-09-26 Robert Dewar <dewar@adacore.com>
8053
8054 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
8055 Address_Taken.
8056
80572007-09-26 Ed Schonberg <schonberg@adacore.com>
8058
8059 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
8060 ancestor of the derived type, the operations are inherited from the
8061 primary dispatch table of the parent.
8062 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
8063 when the context is an explicit type conversion.
8064
80652007-09-26 Ed Schonberg <schonberg@adacore.com>
8066
8067 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
8068 rule for qualified expressions properly, to detect improper conversions
8069 and resolve some cases of overloading.
8070
80712007-09-26 Ed Schonberg <schonberg@adacore.com>
8072
8073 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
8074 proper kind of reference to the primitive operation, for better source
8075 navigation.
8076 (Valid_Conversion): A tagged conversion is legal if both operands are
8077 tagged.
8078
80792007-09-26 Robert Dewar <dewar@adacore.com>
8080
8081 * sem_warn.adb (Check_References): Catch more cases of unreferenced
8082 packages.
8083
80842007-09-26 Vincent Celier <celier@adacore.com>
8085
8086 * snames.adb, snames.ads: Change Include_Option to Include_Switches
8087
80882007-09-26 Robert Dewar <dewar@adacore.com>
8089
8090 * s-wchstw.adb: provide messages for run time unit exceptions
8091
8092 * a-witeio.adb: Minor reformatting
8093
8094 * exp_ch13.adb: Minor reformatting
8095
80962007-09-26 Sergey Rybin <rybin@adacore.com>
8097
8098 * vms_data.ads: Revise gnatmetric qualifiers.
8099 Add qualified for the new gnatbind option '-y'
8100
8101 * gnat_ugn.texi: Revise the gnatmetric section.
8102 Add entry for new gnatbind option '-y'.
8103
8104 * gnat_rm.texi: Minor spelling correction.
8105 Document restriction on overlaying controlled types
8106
81072007-09-26 Vincent Celier <celier@adacore.com>
8108
8109 * makegpr.adb (Link_Executables): Do not fail when the root project has
8110 no sources, but is an extending project.
8111
0a86bcc9
EB
81122007-09-25 Eric Botcazou <ebotcazou@adacore.com>
8113
8114 * trans.c: Fix misplaced #define.
8115
b235734c
EB
81162007-09-22 Eric Botcazou <ebotcazou@adacore.com>
8117
8118 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
8119 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
8120
97237784
OH
81212007-09-21 Olivier Hainque <hainque@adacore.com>
8122
8123 * utils.c (type_for_nonaliased_component_p): Return false for
8124 all AGGREGATE_TYPEs.
8125
2adde4ff
EB
81262007-09-17 Eric Botcazou <ebotcazou@adacore.com>
8127
8128 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
8129 object covered by 13.3(19) volatile.
8130
b693daa7
EB
81312007-09-12 Eric Botcazou <ebotcazou@adacore.com>
8132
8133 PR ada/26797
8134 PR ada/32407
8135 * utils.c (unchecked_convert): Use a subtype as the intermediate type
8136 in the special VIEW_CONVERT_EXPR case.
8137
82da9a90
AC
81382007-09-12 Robert Dewar <dewar@adacore.com>
8139
8140 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
8141
8142 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
8143 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
8144 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
8145 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
8146 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
8147 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
8148 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
160c5065 8149 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
82da9a90
AC
8150 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
8151 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
8152 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
8153 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
8154 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
8155 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
8156 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
8157 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
8158 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
8159 pragma Compiler_Unit and adds it to relevant library units.
8160
81612007-09-12 Ed Schonberg <schonberg@adacore.com>
8162
8163 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
8164 a box need not correspond to any component.
8165
81662007-09-12 Robert Dewar <dewar@adacore.com>
8167
8168 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
8169 the tasking version of the Ada run time when foreign threads are
8170 present and there are no explicit Ada tasks or tasking constructs.
8171
8172 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
8173
81742007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
8175
8176 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
8177 the usage of switch -y.
8178
8179 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
8180 when switch -y is present.
8181
8182 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
8183 leap seconds in Ada.Calendar and its children.
8184
81852007-09-12 Jose Ruiz <ruiz@adacore.com>
8186
8187 * a-extiti.ads (Timer): The discriminant is a "not null access
8188 constant" in the Reference Manual.
8189 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
8190
81912007-09-12 Robert Dewar <dewar@adacore.com>
8192
8193 * a-swuwha.adb: Remove junk RM header
8194
81952007-09-12 Vincent Celier <celier@adacore.com>
8196
8197 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
8198 indicator
8199
8200 * g-bytswa.ads: Minor reformatting
8201
82022007-09-12 Thomas Quinot <quinot@adacore.com>
8203
8204 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
8205 Add new constant Thread_Blocking_IO, always True by default, set False
8206 on a per-runtime basis.
8207 (Need_Netdb_Buffer): New constant.
8208
82092007-09-12 Arnaud Charlet <charlet@adacore.com>
8210
8211 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
8212 Added renames for corresponding functions in System.Partition_Interface.
8213
82142007-09-12 Doug Rupp <rupp@adacore.com>
8215
8216 * Makefile.in: Remove VMS specific System.CRTL packages which are no
8217 longer needed.
8218
8219 * s-crtl-vms64.ads: Removed.
8220
09528ed9
OH
82212007-09-12 Olivier Hainque <hainque@adacore.com>
8222
8223 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
8224 with discriminant constraints, generalize the code for BIT_FIELDs
8225 to PACKED fields of constant size and propagate DECL_PACKED.
8226
fa89b6ec
EB
82272007-09-11 Eric Botcazou <ebotcazou@adacore.com>
8228
8229 * decl.c (array_type_has_nonaliased_component): New predicate.
8230 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
8231 set the TYPE_NONALIASED_COMPONENT flag on the type.
8232 <E_Array_Subtype>: Likewise.
8233 * gigi.h (type_for_nonaliased_component_p): Declare.
8234 * utils.c (type_for_nonaliased_component_p): New predicate.
8235 (create_field_decl): Invoke the above predicate to set the
8236 DECL_NONADDRESSABLE_P flag on the field.
8237
e18d6a15
JM
82382007-09-11 Javier Miranda <miranda@adacore.com>
8239
8240 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
8241 in library level record type entities if we are generating statically
8242 allocated dispatch tables.
8243
8244 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
8245 importing/exporting the _tag declaration by new code
8246 importing/exporting the dispatch table wrapper. This change allows us
8247 to statically allocate of the TSD.
8248 (Make_DT.Export_DT): New procedure.
8249 (Build_Static_DT): New function.
8250 (Has_DT): New function.
8251
8252 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
8253 True_Constant and Current_Value. Required to statically
8254 allocate the dispatch tables.
8255 (Check_Allocator): Make function iterative instead of recursive.
8256 Also return inner allocator node, when present, so that we do not have
8257 to look for that node again in the caller.
8258
9e94c78f 82592007-09-11 Jan Hubicka <jh@suse.cz>
e89d6010
JH
8260
8261 * misc.c (gnat_expand_body): Kill.
8262 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
8263
281b604e
AC
82642007-09-10 Robert Dewar <dewar@adacore.com>
8265
8266 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
8267 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8268 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8269 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
8270 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
8271 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
8272 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
8273 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
8274 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
8275 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
8276 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
8277 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
8278 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
8279 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
8280 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8281 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
8282 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
8283 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8284 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
8285 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
8286 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8287 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
8288 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
8289 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
8290 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
8291 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8292 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
8293 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
8294 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
8295 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
8296 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
8297 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
8298 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
8299 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
8300 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
8301 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
8302 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8303 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
8304 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
8305 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
8306 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
8307 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
8308 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8309 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
8310 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
8311 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
8312 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
8313 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
8314 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
8315 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
8316 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
8317 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
8318 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
8319 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
8320 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
8321 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
8322 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
8323 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8324 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8325 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
8326 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8327 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8328 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
8329 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
8330 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
8331 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
8332 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
8333 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
8334 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
8335 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
8336 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8337 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
8338 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
8339 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
8340 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
8341 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
8342 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
8343 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
8344 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
8345 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
8346 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
8347 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
8348 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
8349
83502007-09-10 Emmanuel Briot <briot@adacore.com>
8351
8352 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
8353 classes ("[]").
8354
83552007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
8356
8357 * adaint.c (__gnat_translate_vms): new function.
8358
83592007-09-10 Gary Dismukes <dismukes@adacore.com>
8360 Thomas Quinot <quinot@adacore.com>
8361
8362 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
8363 create an abstract subprogram in the case of 'Input. For 'Output we now
8364 create a real spec/body when the type is abstract, since it can
8365 potentially be called.
8366 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
8367 body for 'Output when the type is abstract (only the creation of the
8368 body for 'Input is excluded when the type is abstract).
8369 (Stream_Operation_OK): Add an additional condition in the return
8370 statement, so that False will be returned for TTS_Stream_Input if the
8371 associated tagged type is an abstract extension. Add comments for
8372 return statement.
8373 (Expand_N_Object_Declaration): For the case of a shared passive
8374 variable, insert init proc call only after the shared variable
8375 procedures have been processed, because the IP call needs to undergo
8376 shared passive variable reference expansion, which requires these
8377 procedures to be available (and elaborated).
8378
83792007-09-10 Vincent Celier <celier@adacore.com>
8380
8381 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
8382 parameter Runtime_Project.
8383
83842007-09-10 Ed Schonberg <schonberg@adacore.com>
8385
8386 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
8387 given a box association, the type of the component is discriminated,
8388 and the value of the discriminant is the discriminant of the enclosing
8389 type, retrieve its value from the aggregate itself, where it must have
8390 been supplied.
8391
8392 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
8393 to remove other spurious ambiguities on arithmetic operations involving
8394 literals and addresses, on systems where Address is a visible integer
8395 type, when the operator is called in functional notation.
8396 (Try_Primitive_Operation): Within an instance, a call in prefixed form
8397 is legal when the types match, even if the operation is currently
8398 hidden.
8399
84002007-09-10 Ed Schonberg <schonberg@adacore.com>
8401
8402 * sem_ch12.adb (Build_Local_Package): A formal package with no
8403 associations is legal if all formals have defaults. It is not
8404 equivalent to a formal declared with a box.
8405
84062007-09-10 Sergey Rybin <rybin@adacore.com>
8407
8408 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
8409
84102007-09-10 Sergey Rybin <rybin@adacore.com>
8411
8412 * gnat_ugn.texi: Add description of the new '-lratio' option
8413 Update 7.3.1 section about availability of the feature.
8414
84152007-09-10 Thomas Quinot <quinot@adacore.com>
8416
8417 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
8418 inserted node.
8419
84202007-09-10 Olivier Hainque <hainque@adacore.com>
8421
8422 * Makefile.in: (mips-irix section): Activate build of libgmem.
8423
a56955b1
EB
84242007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8425
8426 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
8427 x87 registers.
8428
c03550f6
EB
84292007-09-10 Eric Botcazou <ebotcazou@adacore.com>
8430
8431 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
8432 a debug renaming declaration specially.
8433
79646678
EB
84342007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8435
8436 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
8437 which a constant renaming is treated as a normal object declaration.
8438 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
8439 the N_Indexed_Component case.
8440 <N_Indexed_Component>: Fall through to above case.
8441 <N_Object_Renaming_Declaration>: Return true for all composite types.
8442
d9e161ce
EB
84432007-09-08 Eric Botcazou <ebotcazou@adacore.com>
8444
8445 * decl.c (make_packable_type): If the new type has been given BLKmode,
8446 try again to get an integral mode for it.
8447
0ab29e91 84482007-09-07 Eric Botcazou <ebotcazou@adacore.com>
6ef9a246 8449
0ab29e91 8450 Re-apply accidentally reverted change:
6ef9a246 8451
0ab29e91 8452 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6ef9a246 8453
0ab29e91
EB
8454 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
8455 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8456 and _Unwind_SWord with _sleb128_t.
4b459ae4 8457
38f1f8cb
EB
84582007-09-06 Eric Botcazou <ebotcazou@adacore.com>
8459
8460 * trans.c (convert_with_check): Update call to real_2expN.
8461
db2960f4
SL
84622007-09-05 Sandra Loosemore <sandra@codesourcery.com>
8463
8464 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
8465 * utils.c (end_subprog_body): Likewise.
8466
d70c0bd6
NC
84672007-09-03 Nick Clifton <nickc@redhat.com>
8468
8469 * Make-lang.in: Change copyright header to refer to version 3 of
8470 the GNU General Public License and to point readers at the
8471 COPYING3 file and the FSF's license web page.
8472 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
8473 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
8474 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
8475 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
8476 Likewise.
8477
8a26ebb6
AC
84782007-08-31 Vincent Celier <celier@adacore.com>
8479
8480 PR ada/4720
8481
8482 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
8483 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
8484 (Check_Version_And_Help): New procedure in package Switch to process
8485 switches --version and --help.
8486 Use Check_Version_And_Help in GNAT tools
8487
8488 * make.adb: Ditto.
8489 (Compile_Sources): Make sure that sources that are "excluded" are not
8490 compiled.
8491 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
8492 project file is used.
8493 (Version_Switch): Remove, moved to Switch
8494 (Help_Switch): Remove, moved to Switch
8495 (Display_Version): Remove, moved to Switch
8496
8497 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
8498 package Switch to process switches --version and --help.
8499 (Display_Version): New procedure
8500
8501 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
8502
85032007-08-31 Javier Miranda <miranda@adacore.com>
8504
8505 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
8506 internal tags.
8507
85082007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8509
8510 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
8511 (Mark_Non_Null): If the node for which we just generated an access check
8512 is a reference to an *in* parameter and the reference appears in the
8513 declarative part of a subprogram body, mark the node as known non null.
8514
85152007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8516
8517 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
8518 structure of E_Exception to reflect the new flag.
8519 (Is_Raised, Set_Is_Raised): New inlined routines.
8520 Update the usage of available flag to reflect the addition of Is_Raised.
8521 (Is_Raised, Set_Is_Raised): Bodies of new routines.
8522 (Write_Entity_Flags): Write the status of flag Is_Raised.
8523 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
8524 spurious ambiguities when integer literals appear in the context of an
8525 address type that is a visible integer type.
8526
8527 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
8528 exceptions never being raised.
8529 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
8530 explicitly raised.
8531
85322007-08-31 Javier Miranda <miranda@adacore.com>
8533
8534 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
8535 statement when compiling under restriction No_Exceptions_Proparation.
8536
85372007-08-31 Ed Schonberg <schonberg@adacore.com>
8538
8539 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
8540 initialization aggregate for the type, generate itype references for
8541 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
8542
85432007-08-31 Gary Dismukes <dismukes@adacore.com>
8544
8545 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
8546 library-level package renaming, pass the declaration associated with
8547 the renaming's special debug variable to Qualify_Entity_Names to ensure
8548 that its encoded name is properly qualified.
8549
8550 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
8551 occurring in the list of entities to qualify, and do not attempt to
8552 traverse an entity list in that case. Variables associated with
8553` library-level package renamings can now occur in the table.
8554
8555 * exp_dbug.ads: Revise documentation of the encoding for renaming
8556 declarations.
8557
85582007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8559
8560 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
8561 access type points to an unconstrained array.
8562
85632007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
8564
8565 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
8566 conversion.
8567
8568 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
8569 simple redundant qualifications. The check is performed whenever the
8570 expression is a non-overloaded identifier.
8571 (Resolve_Type_Conversion): Enchance the redundant type conversion check
8572 to include loop parameters.
8573 (Valid_Conversion): Avoid generation of spurious error message.
8574
85752007-08-31 Bob Duff <duff@adacore.com>
8576
8577 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
8578 concatenations of string literals into a single literal, in order to
8579 avoid very deep recursion in the front end, which was causing stack
8580 overflow.
8581
8582 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
8583 string, and the right operand is a string literal (the case of "" &
8584 "..."), optimize by avoiding copying the right operand -- just use the
8585 value of the right operand directly.
8586
8587 * stringt.adb (Store_String_Chars): Optimize by growing the
8588 String_Chars table all at once, rather than appending characters one by
8589 one.
8590 (Write_String_Table_Entry): If the string to be printed is very long,
8591 just print the first few characters, followed by the length. Otherwise,
8592 doing "pn(n)" in the debugger can take an extremely long time.
8593
8594 * sem_prag.adb (Process_Interface_Name): Replace loop doing
8595 Store_String_Char with Store_String_Chars.
8596
85972007-08-31 Vincent Celier <celier@adacore.com>
8598
8599 * prj-attr.adb: Add new attribute Excluded_Source_Files
8600
8601 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
8602 Locally_Removed_Files.
8603
8604 * snames.ads, snames.adb: New standard name Excluded_Source_Files
8605
86062007-08-31 Ed Schonberg <schonberg@adacore.com>
8607
8608 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
8609 clauses of subunits, ignore limited_with_clauses that are illegal and
8610 have not been fully analyzed.
8611
86122007-08-31 Ed Schonberg <schonberg@adacore.com>
8613
8614 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
8615 flag, for effiency. It is called when analyzing arithmetic operators
8616 and also for actuals in calls that are universal_integers. The flag is
8617 set for the predefined type address, and for any type or subtype
8618 derived from it.
8619
8620 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
8621 Universal_Integer, when the formal is a descendent of address and the
8622 call appears in user code.
8623 (Analyze_Selected_Component): if the prefix is a private extension, the
8624 tag component is visible.
8625
8626 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
8627 entity flag.
8628
86292007-08-31 Robert Dewar <dewar@adacore.com>
8630
8631 * s-fileio.adb (Open): Normalize file name to lower case in non-case
8632 sensitive file name systems to avoid unexpected mismatch in Vista.
8633
86342007-08-31 Vincent Celier <celier@adacore.com>
8635
8636 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
8637
86382007-08-31 Vincent Celier <celier@adacore.com>
8639
8640 * symbols-vms.adb (Initialize): Read symbol files with continuation
8641 lines
8642 (Finalize): If symbol is long, split the line
8643
86442007-08-31 Vincent Celier <celier@adacore.com>
8645
8646 * fmap.ads: Minor comment updates
8647
86482007-08-31 GNAT Script <nobody@adacore.com>
8649
8650 * Make-lang.in: Makefile automatically updated
8651
86522007-08-31 Bob Duff <duff@adacore.com>
8653
8654 * sinfo.ads: Minor comment fix.
8655
86562007-08-31 Thomas Quinot <quinot@adacore.com>
8657
8658 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
8659 with implementation.
8660 Documentation cleanup only.
8661
86622007-08-31 Sergey Rybin <rybin@adacore.com>
8663
8664 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
8665 gnatpp '--separate-stmt-name' option.
8666 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
8667 option.
8668
8669 * gnat_ugn.texi: Add description for the new gnatpp
8670 '--separate-stmt-name' and '--use-on-new-line' options.
8671
22d2aa96
BE
86722007-08-31 Ben Elliston <bje@au.ibm.com>
8673
8674 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
8675 when compiling for powerpc64-*-linux.
8676 * system-linux-ppc64.ads: New file.
8677
51743df8
KW
86782007-08-22 Krister Walfridsson <cato@df.lth.se>
8679
8680 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
8681 NetBSD.
8682
ac7d7749
KG
86832007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8684
8685 * misc.c (gnat_type_max_size): Constify.
8686
833eddff
AC
86872007-08-16 Gary Dismukes <dismukes@adacore.com>
8688
8689 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
8690 associated with Standard_Debug_Renaming_Type, to be used as the type of
8691 the special variables whose names provide debugger encodings for
8692 renaming declarations.
8693
8694 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
8695 (Set_Debug_Renaming_Link): Change to set Node25.
8696 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
8697 (Write_Field25_Name): Add case for E_Variable to output
8698 "Debug_Renaming_Link".
8699 (Write_Field23_Name): Correct the output string for "Limited_View".
8700
8701 * exp_dbug.adb: Add with and use of Tbuild.
8702 (Debug_Renaming_Declaration): Replace creation of an enumeration type
8703 and literal with creation of a variable of type
8704 Standard_Debug_Renaming_Type whose name encodes both the renamed object
8705 and the entity of the renaming declaration.
8706 (Qualify_Entity_Name): Add the delayed qualification of the entity name
8707 part of the name of a variable that has a Debug_Renaming_Link.
8708
8709 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
8710 special type to be associated with variables that provide debugger
8711 encodings for renaming declarations.
8712
87132007-08-16 Gary Dismukes <dismukes@adacore.com>
8714 Ed Schonberg <schonberg@adacore.com>
8715 Javier Miranda <miranda@adacore.com>
8716
8717 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
8718 ancestor part given by an aggregate to test for an unchecked conversion,
8719 since this can occur in some cases when the ancestor part is a function
8720 call, and we don't want to fall into the recursive call to this
8721 procedure in that case.
8722
8723 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
8724 stream attributes on limited types to account for user-specified
8725 attributes as well as whether Input (resp. Output) becomes available
8726 due to Read (resp. Write) being available for the type. Change Boolean
8727 variable to the more accurate name
8728 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
8729 double-"not" predicate at beginning of return statement to more
8730 understandable form.
8731
8732 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
8733 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
8734 in a block statement and use that as the first statement of the
8735 expanded return rather than incorrectly using the handled sequence as
8736 the first statement.
8737
8738 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
8739 operation, generate an explicit freeze node for it rather than
8740 generating extra formals, to ensure that gigi has the proper order of
8741 elaboration for anonymous subtypes in the signature of the subprograms.
8742 (Build_In_Place_Formal): Move assertion to beginning of loop.
8743 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
8744 applied to a function call (occurs for some cases of 'Input).
8745 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
8746 applied to a function call (occurs for some cases of 'Input).
8747
8748 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
8749 2005, generate an extended return statement enclosing the result object
8750 and 'Read call.
8751
8752 * freeze.adb (Freeze_Record_Type): Extend the current management of
8753 components that are access type with an allocator as default value: add
8754 missing support to the use of qualified expressions of the
8755 allocator (which also cause freezing of the designated type!)
8756 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
8757 dispatching operation, since extra formals may be needed by calls to
8758 build-in-place functions (such as stream 'Input).
8759
8760 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
8761 formals for 'Constrained and accessibility level in the case of a
8762 predefined dispatching operation.
8763
8764 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
8765 point, no need to find the parent node.
8766
87672007-08-16 Javier Miranda <miranda@adacore.com>
8768
8769 * exp_attr.adb (Attribute_Priority): Add missing support for entries
8770 and entry barriers.
8771
87722007-08-16 Javier Miranda <miranda@adacore.com>
8773
8774 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
8775 is not really required and can introduce regression with the debugger.
8776 The original problem is fixed with the patch written for checks.adb.
8777
87782007-08-16 Thomas Quinot <quinot@adacore.com>
8779
8780 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
8781 Range_Check on Allocated_Table.
8782
87832007-08-16 Vincent Celier <celier@adacore.com>
8784
8785 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
8786 Including_Non_Switch set to False.
8787 (Gnatmake): For the compiler, call Test_If_Relative_Path with
8788 Including_Non_Switch set to False.
8789
8790 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
8791 parameter Including_Non_Switch, defaulted to True. When
8792 Including_Non_Switch is False, options that are not switches and
8793 appear as relative path are not converted to absolute paths.
8794
87952007-08-16 Nicolas Roche <roche@adacore.com>
8796
8797 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
8798 makefiles
8799
8800 * Make-lang.in: Update dependencies
8801
88022007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8803
8804 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
8805 currently inspected is a selected component, retrieve the entity of
8806 its selector.
8807 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
8808 from the immediate ancestor of Main_Unit_Entity.
8809 (Install_Limited_Withed_Unit): Do not install the limited view of
8810 package P if P is reachable through an ancestor chain from package C
8811 and C also has a with clause for P in its body.
8812 (Has_Limited_With_Clause): New routine.
8813 (Has_With_Clause): New routine.
8814
88152007-08-16 Ed Schonberg <schonberg@adacore.com>
8816
8817 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
8818 generic for an enclosing instance is a global reference, even though
8819 its scope is the enclosing instance.
8820
88212007-08-16 Gary Dismukes <dismukes@adacore.com>
8822 Javier Miranda <miranda@adacore.com>
8823
8824 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
8825 initialize a limited object.
8826 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
8827 13/2 and 14/2.
8828 Make sure Has_Complex_Representation is inherited by derived type.
8829
88302007-08-16 Robert Dewar <dewar@adacore.com>
8831
8832 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
8833 exception case
8834
88352007-08-16 Ed Schonberg <schonberg@adacore.com>
8836
8837 * sem_disp.adb (Check_Dispatching_Operation): If the operation
8838 implements an operation inherited from a progenitor interface, verify
8839 that they are subtype-conformant.
8840
88412007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
8842 Bob Duff <duff@adacore.com>
8843 Nicolas Setton <setton@adacore.com>
8844
8845 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
8846 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
8847 the statement which is being resolved comes from a predefined library
8848 unit, all non-predefined library interpretations are skipped.
8849 (Resolve_Op_Concat): If string concatenation was folded in the parser,
8850 but the "&" is user defined, give an error, because the folding would
8851 be wrong.
8852
8853 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
8854 the parser has folded a long sequence of concatenations of string
8855 literals.
8856
8857 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
8858 and "JMP_BUF" variables as artificial.
8859 (N_String_Literal): Do not use alloca for very long string literals. Use
8860 xmalloc/free instead. Otherwise the stack might overflow.
8861
8862 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
8863 compiler.
8864
88652007-08-16 Vincent Celier <celier@adacore.com>
8866
8867 * vms_conv.adb (Process_Argument): Ensure that project related options
8868 are not put in the -cargs section when using GNAT COMPILE.
8869
88702007-08-16 Robert Dewar <dewar@adacore.com>
8871
8872 * gnat_ugn.texi: Add note on preprocessing (output file not written)
8873
88742007-08-16 Thomas Quinot <quinot@adacore.com>
8875
8876 * a-tags.adb: Minor reformatting.
8877
88782007-08-16 Bob Duff <duff@adacore.com>
8879
8880 * sem_type.ads, sem_ch4.adb: Minor reformatting.
8881
ab6328d0
AC
88822007-08-14 Thomas Quinot <quinot@adacore.com>
8883
8884 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
8885 s-osinte-interix.ads, system-interix.ads: Removed.
8886
88872007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
8888
8889 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
8890 calls to Check_Within_Time_Bounds.
8891 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
8892 (Difference): Account for possible rounding of the resulting difference
8893
88942007-08-14 Robert Dewar <dewar@adacore.com>
8895
8896 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
8897 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
8898 s-osinte-solaris.adb, s-osinte-solaris.ads,
8899 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
8900
8901 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
8902 switch -gnatyS. Enable -gnatyS in GNAT style check mode
8903
89042007-08-14 Robert Dewar <dewar@adacore.com>
8905 Ed Schonberg <schonberg@adacore.com>
8906
8907 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
8908 Suppress unmodified in-out parameter warning in some cases
8909 This patch is a also fairly significant change to the way suppressible
8910 checks are handled.
8911
8912 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
8913 needed for access to concurrent record types generated by the expander.
8914 (Generate_Range_Check): When generating a temporary to capture the
8915 value of a conversion that requires a range check, set the type of the
8916 temporary before rewriting the node, so that the type is always
8917 properly placed for back-end use.
8918 (Apply_Float_Conversion_Check): Handle case where the conversion is
8919 truncating.
8920 (Get_Discriminal): Code reformatting. Climb the scope stack looking
8921 for a protected type in order to examine its discriminants.
8922
89232007-08-14 Robert Dewar <dewar@adacore.com>
8924 Gary Dismukes <dismukes@adacore.com>
8925 Ed Schonberg <schonberg@adacore.com>
8926 Thomas Quinot <quinot@adacore.com>
8927
8928 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
8929 a-stwisu.adb, a-strsup.adb: Fix warnings for range
8930 tests optimized out.
8931
8932 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
8933 (Get_Allocator_Final_List): For the case of an anonymous access type
8934 that has a specified Associated_Final_Chain, do not go up to the
8935 enclosing scope.
8936 (Expand_N_Type_Conversion): Test for the case of renamings of access
8937 parameters when deciding whether to apply a run-time accessibility
8938 check.
8939 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
8940 aggregate code before allocator, and ahead of declaration for
8941 temporary, to prevent access before elaboration when the allocator is
8942 an actual for an access parameter.
8943 (Expand_N_Type_Conversion): On an access type conversion involving an
8944 access parameter, do not apply an accessibility check when the
8945 operand's original node was an attribute other than 'Access. We now
8946 create access conversions for the expansion of 'Unchecked_Access and
8947 'Unrestricted_Access in certain cases and clearly accessibility should
8948 not be checked for those.
8949
8950 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
8951 includes a type conversion of a packed component that has been expanded,
8952 recover the original expression for the object, and use this expression
8953 in the post-call assignment statement, so that the assignment is made
8954 to the object and not to a back-end temporary.
8955 (Freeze_Subprogram): In case of primitives of tagged types not defined
8956 at the library level force generation of code to register the primitive
8957 in the dispatch table. In addition some code reorganization has been
8958 done to leave the implementation clear.
8959 (Expand_Call): When expanding an inherited implicit conversion,
8960 preserve the type of the inherited function after the intrinsic
8961 operation has been expanded.
8962
8963 * exp_ch2.ads, exp_ch2.adb
8964 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
8965 of an entry formal appearing in an assignment statement does not assign
8966 to the formal.
8967 (Expand_Current_Value): Instead of calling a routine to determine
8968 whether the prefix of an attribute reference should be optimized or
8969 not, prevent the optimization of such prefixes all together.
8970
8971 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
8972 component whose prefix is known to be of an access type is an implicit
8973 dereference and does not assign to the prefix.
8974
89752007-08-14 Ed Schonberg <schonberg@adacore.com>
8976 Robert Dewar <dewar@adacore.com>
8977
8978 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
8979 itype is visited, make an entry into table to link associated node and
8980 new itype.
8981 Add comments and correct harmless error in Build_NCT_Hash_Tables
8982 (Array_Aggr_Subtype): Associate each itype created for an index type to
8983 the corresponding range construct, and not to the aggregate itself. to
8984 maintain a one-to-one correspondence between itype and its associated
8985 node, to prevent errors when complex expression is copied.
8986 Fix mishandling of multiple levels of parens
8987
8988 * sem_aggr.adb: Create a limited view of an incomplete type, to make
8989 treatment of limited views uniform for all visible declarations in a
8990 limited_withed package.
8991 (New_Copy_Tree): If hash table is being used and itype is visited,
8992 make an entry into table to link associated node and new itype.
8993 (Resolve_Record_Aggregate): Do not add an others box association for a
8994 discriminated record component that has only discriminants, when there
8995 is a box association for the component itself.
8996
8997 * par-ch4.adb: Fix mishandling of multiple levels of parens
8998
89992007-08-14 Robert Dewar <dewar@adacore.com>
9000
9001 * comperr.adb: Fix problem with suppressing warning messages from gigi
9002
9003 * erroutc.ads, erroutc.adb, errout.ads,
9004 errout.adb (Write_Eol): Remove trailing spaces before writing the line
9005 (Write_Eol_Keep_Blanks): New procedure to write a line, including
9006 possible trailing spaces.
9007 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
9008 Fix problem with suppressing warning messages from back end
9009 Improve handling of deleted warnings
9010
9011 * gnat1drv.adb:
9012 Fix problem with suppressing warning messages from back end
9013 Handle setting of Static_Dispatch_Tables flag.
9014
9015 * prepcomp.adb:
9016 Fix problem with suppressing warning messages from back end
9017
9018 * exp_intr.adb: Improve handling of deleted warnings
9019
90202007-08-14 Robert Dewar <dewar@adacore.com>
9021
9022 * debug.adb: Improve -gnatdI to cover all cases of serialization
9023 Add documentation of dZ, d.t
9024
9025 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
9026 serialization.
9027 (Sprint_Node_Actual): Generate new output associated with implicit
9028 importation and implicit exportation of object declarations.
9029
90302007-08-14 Ed Schonberg <schonberg@adacore.com>
9031 Robert Dewar <dewar@adacore.com>
9032 Javier Miranda <miranda@adacore.com>
9033 Gary Dismukes <dismukes@adacore.com>
9034
9035 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
9036 to make treatment of limited views uniform for all visible declarations
9037 in a limited_withed package.
9038 Improve warnings for in out parameters
9039 (Set_Related_Interaface/Related_Interface): Allow the use of this
9040 attribute with constants.
9041 (Write_Field26_Name): Handle attribute Related_Interface in constants.
9042 Warn on duplicate pragma Preelaborable_Initialialization
9043
9044 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
9045 generation of a freezing node to ensure proper management of null
9046 excluding access types in the backend.
9047 (Create_Extra_Formals): Test base type of the formal when checking for
9048 the need to add an extra accessibility-level formal. Pass the entity E
9049 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
9050 originally being done in a couple of cases), to ensure that the
9051 Extra_Formals list gets set on the entity E when the first entity is
9052 added.
9053 (Conforming_Types): Add missing calls to Base_Type to the code that
9054 handles anonymous access types. This is required to handle the
9055 general case because Process_Formals builds internal subtype entities
9056 to handle null-excluding access types.
9057 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9058 functions that need it, even when not marked Requires_Overriding.
9059 Improve warnings for in out parameters
9060 (Analyze_Function_Return): Warn for disallowed null return
9061 Warn on return from procedure with unset out parameter
9062 Ensure consistent use of # in error messages
9063 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
9064 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
9065 the implicit conversion of the expression done for anonymous access
9066 types. This is required to generate the code of the null excluding
9067 check (if required).
9068
9069 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
9070 A formal parameter is never publicly referenceable outside of its body.
9071 (Check_References): For an unreferenced formal parameter in an accept
9072 statement, use the same warning circuitry as for subprogram formal
9073 parameters.
9074 (Warn_On_Unreferenced_Entity): New subprogram, taken from
9075 Output_Unreferenced_Messages, containing the part of that routine that
9076 is now reused for entry formals as described above.
9077 (Goto_Spec_Entity): New function
9078 (Check_References): Do not give IN OUT warning for dispatching operation
9079 Improve warnings for in out parameters
9080 (Test_Ref): Check that the entity is not undefinite before calling
9081 Scope_Within, in order to avoid infinite loops.
9082 Warn on return from procedure with unset out parameter
9083 Improved warnings for unused variables
9084
90852007-08-14 Robert Dewar <dewar@adacore.com>
9086 Javier Miranda <miranda@adacore.com>
9087 Gary Dismukes <dismukes@adacore.com>
9088
9089 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
9090 (Expand_N_Attribute_Reference): Further unify the handling of the
9091 three forms of access attributes, using common code now for all three
9092 cases. Add a test for the case of applying an access attribute to
9093 an explicit dereference when the context is an access-to-interface
9094 type. In that case we need to apply the conversion to the prefix
9095 of the explicit dereference rather than the prefix of the attribute.
9096 (Attribute_Version, UET_Address): Set entity as internal to ensure
9097 proper dg output of implicit importation.
9098 (Expand_Access_To_Type): Removed.
9099 (Expand_N_Attribute_Reference): Merge the code from the three cases
9100 of access attributes, since the processing is largely identical for
9101 these cases. The substantive fix here is to process the case of a
9102 type name prefix (current instance case) before handling the case
9103 of interface prefixes.
9104
91052007-08-14 Thomas Quinot <quinot@adacore.com>
9106 Ed Schonberg <schonberg@adacore.com>
9107 Javier Miranda <miranda@adacore.com>
9108 Robert Dewar <dewar@adacore.com>
9109
9110 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
9111 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
9112 type that is an anonymous access to controlled object, establish
9113 an associated finalization chain to avoid corrupting the global
9114 finalization list when a dynamically allocated object designated
9115 by such a component is deallocated.
9116 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
9117 functions that need it, even when not marked Requires_Overriding.
9118 (Initialize_Tag): Replace call to has_discriminants by call to
9119 Is_Variable_Size_Record in the circuitry that handles the
9120 initialization of secondary tags.
9121 (Is_Variable_Size_Record): New implementation.
9122 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
9123 Suppress_Initialization pragma for a derived type.
9124 (Is_Variable_Size_Record): New subprogram.
9125 (Build_Offset_To_Top_Functions): New implementation that simplifies the
9126 initial version of this routine and also fixes problems causing
9127 incomplete initialization of the table of interfaces.
9128 (Build_Init_Procedure): Improve the generation of code to initialize the
9129 the tag components of secondary dispatch tables.
9130 (Init_Secondary_Tags): New implementation that simplifies the previous
9131 version of this routine.
9132 (Make_DT): Add parameter to indicate when type has been frozen by an
9133 object declaration, for diagnostic purposes.
9134 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
9135 diagnose attemps to freeze a subprogram when some untagged type of its
9136 profile is a private type whose full view has not been analyzed yet.
9137 (Freeze_Array_Type): Generate init proc for packed array if either
9138 Initialize or Normalize_Scalars is set.
9139 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
9140 constructing the new profile, copy the null_exclusion indicator for each
9141 parameter, to ensure full conformance of the new body with the spec.
9142
9143 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
9144 Create wrappers for constructor functions that need it, even when not
9145 marked Requires_Overriding.
9146 (Covers): Handle properly designated types of anonymous access types,
9147 whose non-limited views are themselves incomplete types.
9148 (Add_Entry): Use an entity to store the abstract operation which hides
9149 an interpretation.
9150 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
9151 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
9152 initialization aggregate.
9153 (Function_Interp_May_Be_Hidden): Rename to
9154 Function_Interp_Has_Abstract_Op.
9155 (Has_Compatible_Type): Remove machinery that skips interpretations if
9156 they are labeled as potentially hidden by an abstract operator.
9157 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
9158 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
9159 (Write_Overloads): Output the abstract operator if present.
9160 (Add_Entry): Before inserting a new entry into the interpretation table
9161 for a node, determine whether the entry will be disabled by an abstract
9162 operator.
9163 (Binary_Op_Interp_May_Be_Hidden): New routine.
9164 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
9165 aggregate.
9166 (Function_Interp_May_Be_Hidden): New routine.
9167 (Has_Compatible_Type): Do not consider interpretations hidden by
9168 abstract operators when trying to determine whether two types are
9169 compatible.
9170 (Has_Hidden_Interp): New routine.
9171 (Set_May_Be_Hidden_Interp): New routine.
9172 (Write_Overloads): Write the status of flag May_Be_Hidden.
9173
91742007-08-14 Ed Schonberg <schonberg@adacore.com>
9175 Javier Miranda <miranda@adacore.com>
9176
9177 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
9178 types declared in the declarative part of a nested package body or in
9179 the proper body of a stub.
9180 (Set_All_DT_Position): Add missing check to avoid wrong assignation
9181 of the same dispatch table slot to renamed primitives.
9182 (Make_Select_Specific_Data_Table): Handle private types.
9183 (Tagged_Kind): Handle private types.
9184 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
9185 output of implicit importation and exportation.
9186 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
9187 first formal of the thunk is always associated with the controlling
9188 type. In addition perform the following code cleanup: remove formal
9189 Thunk_Alias which is no longer required, cleanup evaluation of the
9190 the controlling type, and update the documentation.
9191 Replace occurrence of Default_Prim_Op_Count by
9192 Max_Predef_Prims. Addition of compile-time check to verify
9193 that the value of Max_Predef_Prims is correct.
9194 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
9195 (Make_DT): Add parameter to indicate when type has been frozen by an
9196 object declaration, for diagnostic purposes.
9197 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
9198 construction of statically allocated dispatch tables.
9199 (Make_DT): In case of library-level tagged types export the declaration
9200 of the primary tag. Remove generation of tags (now done by Make_Tags).
9201 Additional modifications to handle non-static generation of dispatch
9202 tables. Take care of building tables for asynchronous interface types
9203 (Make_Tags): New subprogram that generates the entities associated with
9204 the primary and secondary tags of Typ and fills the contents of Access_
9205 Disp_Table. In case of library-level tagged types imports the forward
9206 declaration of the primary tag that will be declared later by Make_DT.
9207 (Expand_Interface_Conversion): In case of access types to interfaces
9208 replace an itype declaration by an explicit type declaration to avoid
9209 problems associated with the scope of such itype in transient blocks.
9210
92112007-08-14 Robert Dewar <dewar@adacore.com>
9212 Ed Schonberg <schonberg@adacore.com>
9213 Javier Miranda <miranda@adacore.com>
9214
9215 * exp_util.ads, exp_util.adb:
9216 This patch replaces a number of occurrences of explicit tests for N_Null
9217 with calls to Known_Null. This improves tracking of null values, since
9218 Known_Null also catches null constants, and variables currently known to
9219 be null, so we get better tracking.
9220 (Ensure_Defined): create an itype reference only in the scope of the
9221 itype.
9222 (Side_Effect_Free): A selected component of an access type that
9223 denotes a component with a rep clause must be treated as not
9224 side-effect free, because if it is part of a linked structure its
9225 value may be affected by a renaming.
9226 (Expand_Subtype_From_Expr): For limited objects initialized with build
9227 in place function calls, do nothing; otherwise we prematurely introduce
9228 an N_Reference node in the expression initializing the object, which
9229 breaks the circuitry that detects and adds the additional arguments to
9230 the called function. Bug found working in the new patch for statically
9231 allocated dispatch tables.
9232 (Is_Library_Level_Tagged_Type): New subprogram.
9233 (Remove_Side_Effects): If the expression of an elementary type is an
9234 operator treat as a function call.
9235 (Make_Literal_Range): If the index type of the array is not integer, use
9236 attributes properly to compute the constraint on the resulting aggregate
9237 which is a string.
9238
9239 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
9240 class-wide type whose base type is an incomplete private type, leave
9241 class-wide type unfrozen so that freeze nodes can be generated
9242 properly at a later point.
9243 (Freeze_Entity, array case): Handle case of pragma Pack and component
9244 size attributre clause for same array.
9245
92462007-08-14 Vincent Celier <celier@adacore.com>
9247
9248 * prj.ads, prj.adb: Update Project Manager to new attribute names for
9249 gprbuild.
9250 Allow all valid declarations in configuration project files
9251 (Reset): Initialize all tables and hash tables in the project tree data
9252 Major update of the Project Manager and of the project aware tools,
9253 including gprmake, so that the same sources in the GNAT repository
9254 can be used by gprbuild.
9255 (Slash_Id): Change type to be Path_Name_Type
9256 (Slash): Return a Path_Name_Type instead of a File_Name_Type
9257
9258 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
9259 gprbuild.
9260 Update Project Manager to new attribute names for ghprbuild
9261 Allow all valid declarations in configuration project files
9262 Major update of the Project Manager and of the project aware tools,
9263 including gprmake, so that the same sources in the GNAT repository
9264 can be used by gprbuild.
9265
9266 * prj-com.ads:
9267 Major update of the Project Manager and of the project aware tools,
9268 including gprmake, so that the same sources in the GNAT repository
9269 can be used by gprbuild.
9270
9271 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9272 insensitive flag for attributes with optional index.
9273 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9274 array attribute, put the index in lower case.
9275 Update Project Manager to new attribute names for ghprbuild
9276 Allow all valid declarations in configuration project files
9277 Major update of the Project Manager and of the project aware tools,
9278 including gprmake, so that the same sources in the GNAT repository
9279 can be used by gprbuild.
9280
9281 * prj-env.ads, prj-env.adb:
9282 Major update of the Project Manager and of the project aware tools,
9283 including gprmake, so that the same sources in the GNAT repository
9284 can be used by gprbuild.
9285 (Get_Reference): Change type of parameter Path to Path_Name_Type
9286
9287 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
9288 removing '-' from the path to start with the first character of the
9289 next directory.
9290 Major update of the Project Manager and of the project aware tools,
9291 including gprmake, so that the same sources in the GNAT repository
9292 can be used by gprbuild.
9293 Major update of the Project Manager and of the project aware tools,
9294 including gprmake, so that the same sources in the GNAT repository
9295 can be used by gprbuild.
9296
9297 * prj-nmsc.ads, prj-nmsc.adb:
9298 Update Project Manager to new attribute names for ghprbuild
9299 Allow all valid declarations in configuration project files
9300 (Search_Directories): Detect subunits that are specified with an
9301 attribute Body in package Naming. Do not replace a source/unit in the
9302 same project when the order of the source dirs are known. Detect
9303 duplicate sources/units in the same project when the order of the
9304 source dirs are not known.
9305 (Check_Ada_Name): Allow all identifiers that are not reserved words
9306 in Ada 95.
9307 Major update of the Project Manager and of the project aware tools,
9308 including gprmake, so that the same sources in the GNAT repository
9309 can be used by gprbuild.
9310 (Look_For_Sources): If the list of sources is empty, set the object
9311 directory of non extending project to nil.
9312 Change type of path name variables to be Path_Name_Type
9313 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
9314 otherwise creating missing directories will fail.
9315
9316 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
9317 prj-part.ads, prj-part.adb:
9318 Major update of the Project Manager and of the project aware tools,
9319 including gprmake, so that the same sources in the GNAT repository
9320 can be used by gprbuild.
9321
9322 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
9323 insensitive flag for attributes with optional index.
9324 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
9325 array attribute, put the index in lower case.
9326 (Parse_Variable_Reference): Allow the current project name to be used in
9327 the prefix of an attribute reference.
9328
9329 * prj-util.ads, prj-util.adb
9330 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
9331 defaulted to False. When True, always check against indexes in lower
9332 case.
9333
9334 * snames.ads, snames.h, snames.adb:
9335 Update Project Manager to new attribute names for gprbuild
9336 Allow all valid declarations in configuration project files
9337
93382007-08-14 Robert Dewar <dewar@adacore.com>
9339 Ed Schonberg <schonberg@adacore.com>
9340
9341 * opt.ads: Warning for non-local exception propagation now off by
9342 default
9343 New switch -gnatI to disable representation clauses
9344 Implement new pragma Implicit_Packing
9345
9346 * usage.adb:
9347 Warning for non-local exception propagation now off by default
9348 Add warning for unchecked conversion of pointers wi different
9349 conventions.
9350 New switch -gnatI to disable representation clauses
9351
9352 * usage.adb: new switch -gnatyS
9353
9354 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
9355 note that aggregates of anonymous array types are not flagged.
9356 -gnatwc now includes membership tests optimized away
9357 -gnatw.x warnings are now off by default
9358 Added conditional compilation Appendix
9359 Add documentation of -gnatI
9360 Add documentation for new -gnatyS style check
9361 Update documentation about SAL and auto-init on Windows.
9362
9363 * gnat_rm.texi:
9364 Add documentation for pragma Check_Name and 'Enabled attribute
9365 Document that Eliminate on dispatching operation is ignored
9366 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
9367 Document pragma Main
9368 Document pragma Implicit_Packing
9369
9370 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
9371 different conventions
9372 New switch -gnatI to disable representation clauses
9373
9374 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
9375 recognized, report the invalid characters including "-gnat" instead of
9376 just the first character in the switch.
9377 New switch -gnatI to disable representation clauses
9378 Set Warn_On_Object_Renames_Function true for -gnatg
9379
9380 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
9381 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
9382 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
9383 to switch -aP (add directory to project search dir).
9384
9385 * par-prag.adb: Implement new pragma Implicit_Packing
9386
9387 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
9388 type as having a non-standard representation, to force expansion on
9389 conversion to related types.
9390 (Analyze_Pragma): Warn on misspelled pragma
9391 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
9392 Ensure consistent use of # in error messages
9393 Implement pragma Implicit_Packing
9394
93952007-08-14 Olivier Hainque <hainque@adacore.com>
9396 Eric Botcazou <ebotcazou@adacore.com>
9397
9398 * targtyps.c (get_target_maximum_default_alignment): New function.
9399 Maximum alignment
9400 that the compiler might choose by default for a type or object.
9401 (get_target_default_allocator_alignment): New function. Alignment known
9402 to be honored by the target default allocator.
9403 (get_target_maximum_allowed_alignment): New function. Maximum alignment
9404 we might accept for any type or object on the target.
9405 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
9406
9407 * gigi.h (get_target_maximum_default_alignment): Declare new function.
9408 (get_target_default_allocator_alignment): Likewise.
9409 (get_target_maximum_allowed_alignment): Likewise.
9410
9411 PR ada/19037
9412 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
9413 result of a function call, first try to use a stabilized reference for
9414 a constant renaming too.
9415 (validate_alignment): Use target_maximum_allowed_alignment instead of
9416 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
9417 (gnat_to_gnu_entity): Use common nodes directly.
9418 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
9419 alignment and size for the object.
9420 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
9421 and N_Procedure_Call_Statement.
9422 (takes_address): Rename to lvalue_required_p, add third parameter
9423 'aliased' and adjust recursive calls.
9424 <N_Indexed_Component>: Update 'aliased' from the array type.
9425 <N_Selected_Component>: New case.
9426 <N_Object_Renaming_Declaration>: New Likewise.
9427 (Identifier_to_gnu): Adjust for above changes.
9428 (maybe_stabilize_reference) <CONST_DECL>: New case.
9429
9430 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
9431 between type variants.
9432 (build_simple_component_ref): Likewise.
9433 (build_call_alloc_dealloc): Use target_default_allocator_alignment
9434 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
9435 aligning type circuitry for allocations from the default storage pool.
9436 (build_allocator): Likewise.
9437 (build_simple_component_ref): Manually fold the reference for a
9438 constructor if the record type contains a template.
9439
9440 * utils.c (value_zerop): Delete.
9441 (gnat_init_decl_processing): Emit debug info for common types.
9442 (rest_of_record_type_compilation): If a union contains a field
9443 with a non-constant qualifier, treat it as variable-sized.
9444 (finish_record_type): Give the stub TYPE_DECL a name.
9445 (rest_of_record_type_compilation): Likewise.
9446 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
9447 types are equivalent array types.
9448 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
9449 even if the type is not passed by reference.
9450 (static_ctors, static_dtors): Delete.
9451 (end_subprog_body): Do not record constructors and destructors.
9452 (build_global_cdtor): Delete.
9453 (gnat_write_global_declarations): Do not call build_global_cdtor.
9454
0ab29e91 9455 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
ab6328d0
AC
9456 -fRTS=rtp is specified.
9457 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
9458 specified.
9459
9460 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
9461 of the personality function with SJLJ exceptions.
9462
9463 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
9464 the name of the personality function with SJLJ exceptions.
9465
94662007-08-14 Robert Dewar <dewar@adacore.com>
9467 Ed Schonberg <schonberg@adacore.com>
9468
9469 * par.ads, par.adb: Improve handling of extra right parens.
9470 (Par): Remove flag From_Limited_With_Clause.
9471
9472 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
9473 Improve handling of extra right parens.
9474
94752007-08-14 Robert Dewar <dewar@adacore.com>
9476
9477 * par-tchk.adb (TF_Semicolon): Improve error recovery
9478
94792007-08-14 Robert Dewar <dewar@adacore.com>
9480 Ed Schonberg <schonberg@adacore.com>
9481
9482 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
9483 enumeration type, mark all literals as referenced.
9484 (Eval_Attribute, case 'Image): If the argument is an enumeration
9485 literal and names are available, constant-fold but mark nevertheless as
9486 non-static.
9487 Clean up function names.
9488 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
9489 comment.
9490 (Requires_Simple_Name_Prefix): Removed.
9491
94922007-08-14 Robert Dewar <dewar@adacore.com>
9493 Ed Schonberg <schonberg@adacore.com>
9494
9495 * sem_ch11.adb: Improved warnings for unused variables
9496
9497 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
9498 is a synchronized interface, the derived type is limited.
9499 (Analyze_Object_Declaration): Mark the potential coextensions in the
9500 definition and expression of an object declaration node.
9501 (Build_Derived_Type): For the completion of a private type declaration
9502 with a derived type declaration, chain the parent type's representation
9503 items to the last representation item of the derived type (not the
9504 first one) if they are not present already.
9505 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
9506 object declaration of forward references to tags.
9507 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
9508 subprogram types can appear as access discriminants of synchronized
9509 types.
9510 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
9511 given in prefixed form as a selected component.
9512 (Process_Discriminants): If not all discriminants have defaults, place
9513 error message on a default that is present.
9514 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
9515 extend a synchronized tagged type.
9516 Improved warnings for unused variables
9517 (Is_Visible_Component): Fix a visibility hole on a component inherited
9518 by a private extension when parent is itself declared as a private
9519 extension, and the derivation is in a child unit.
9520 (Find_Hidden_Interface): Move spec from the package body.
9521
95222007-08-14 Robert Dewar <dewar@adacore.com>
9523 Ed Schonberg <schonberg@adacore.com>
9524
9525 * sem_ch5.adb: Improve warnings on redundant assignments
9526
9527 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
9528 parameter
9529 (Is_Synchronized_Tagged_Type): New subprogram that returns true
9530 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
9531 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
9532 is set to False. Improves handling of Known_[Not_]Null.
9533 (Wrong_Type): Special case address arithmetic attempt
9534 (Collect_Abstract_Interfaces): Add new formal to allow collecting
9535 abstract interfaces just using the partial view of private types.
9536 (Has_Abstract_Interfaces): Add new formal to allow checking types
9537 covering interfaces using the partial view of private types.
9538 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
9539 component still needs to be defined in this case, but is never
9540 initialized as VMs are using other dispatching mechanisms.
9541 (Abstract_Interface_List): For a protected type, use base type to get
9542 proper declaration.
9543 Improve warnings on redundant assignments
9544 (Is_Variable): Handle properly an implicit dereference of a prefixed
9545 function call.
9546 (Build_Actual_Subtype): If this is an actual subtype for an
9547 unconstrained formal parameter, use the sloc of the body for the new
9548 declaration, to prevent anomalises in the debugger.
9549
95502007-08-14 Robert Dewar <dewar@adacore.com>
9551
9552 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
9553 dispatching operation
9554
95552007-08-14 Ed Schonberg <schonberg@adacore.com>
9556 Gary Dismukes <dismukes@adacore.com>
9557
9558 * exp_aggr.ads,
9559 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
9560 expanded aggregate code before allocator, and ahead of declaration for
9561 temporary, to prevent access before elaboration when the allocator is
9562 an actual for an access parameter.
9563 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
9564 the TSD and the table of interfaces.
9565 (Convert_To_Assignments): Augment the test for delaying aggregate
9566 expansion for limited return statements to include the case of extended
9567 returns, to prevent creation of an unwanted transient scope.
9568 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
9569 (Expand_Array_Aggregate): Handle aggregates associated with
9570 statically allocated dispatch tables.
9571 (Expand_Record_Aggregate): Handle aggregates associated with
9572 statically allocated dispatch tables.
9573 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
9574 of anonymous access type.
9575
95762007-08-14 Ed Schonberg <schonberg@adacore.com>
9577
9578 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
9579 is a variable that renames a slice, use the variable itself in the
9580 expannsion when the renamed expression itself may be modified between
9581 the declaration of the renaming and the array assignment.
9582
95832007-08-14 Jerome Guitton <guitton@adacore.com>
9584
9585 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9586 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
9587 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
9588 New functions; dummy implementations.
9589
9590 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
9591 functions, used to implement the multi-tasks mode routines on VxWorks.
9592
9593 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
9594 New functions, thin
9595 binding to the VxWorks routines which have changed between VxWorks 5
9596 and 6.
9597 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
9598 which are not callable from a RTP.
9599
9600 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
9601 implemented for the multi-tasks mode on VxWorks 5 and 6.
9602
9603 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
9604
9605 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
9606 functions.
9607
96082007-08-14 Vincent Celier <celier@adacore.com>
9609
9610 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
9611 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
9612 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
9613 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9614 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9615 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
9616 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
9617 procedure.
9618 (Major_Id_Name): New function.
9619 mlib-tgt.ads/mlib.tgt.adb:
9620 (Library_Major_Minor_Id_Supported): New function, default returns True
9621 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
9622 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
9623 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
9624 Implementation of Library_Major_Minor_Id_Supported returns False
9625 clean.adb:
9626 (Clean_Library_Directory): If major/minor ids are supported, clean all
9627 library files.
9628 Major update of the Project Manager and of the project aware tools,
9629 including gprmake, so that the same sources in the GNAT repository
9630 can be used by gprbuild.
9631
96322007-08-14 Olivier Hainque <hainque@adacore.com>
9633
9634 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
9635 (GCC_ZCX_Support): Switch to True.
9636
9637 * s-intman-solaris.adb (Notify_Exception): Call
9638 Adjust_Context_For_Raise before raising, as expected for signal
9639 handlers in general.
9640
9641 * s-intman-posix.adb (Notify_Exception): Remove declaration of
9642 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
9643 to other implementation bodies.
9644
9645 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
9646 be visible by multiple implementation bodies.
9647
9648 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
9649 only for conditions coming from hardware.
9650 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
9651 adjustments to signal context prior to exception raise from signal
9652 handler.
9653 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
9654 mode.
9655 Solaris section: (__gnat_adjust_context_for_raise): New function.
9656 Implementation of the machine context adjustments to perform prior to
9657 raise from a signal handler. Version for both sparc and x86.
9658 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
9659 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
9660 prior to raising as expected for any handler, before possible nested
9661 faults to make sure all the contexts in a chain have been adjusted by
9662 the time we propagate.
9663
96642007-08-14 Pascal Obry <obry@adacore.com>
9665
9666 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
9667 (SYSTEM_INFO): New record.
9668 (SetThreadIdealProcessor): New imported routine needed for supporting
9669 task_info pragma on Windows.
9670
9671 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
9672 info can be applied to the current host.
9673 (Create_Task): Set the ideal processor if information is present.
9674
9675 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
9676 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
9677
96782007-08-14 Olivier Hainque <hainque@adacore.com>
9679
9680 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
9681 stack size and initial stack pointer value for a given task.
9682 (Enter_Task): Get the stack attributes of the task we are entering and
9683 let the stack checking engine know about them.
9684
9685 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
9686 Let the stack-checking engine know about the initial sp value and stack
9687 size associated with the current task.
9688 (Set_Stack_Info): If a stack base has been notified for the current
9689 task, honor it. Fallback to the previous less accurate method otherwise.
9690
9691 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
9692
96932007-08-14 Ed Schonberg <schonberg@adacore.com>
9694
9695 * sem_ch10.adb: Create a limited view of an incomplete type, to make
9696 treatment of limited views uniform for all visible declarations in a
9697 limited_withed package.
9698 Set flag indicating that a subprogram body for a child unit has a
9699 generated spec.
9700 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
9701 separate declaration, remove the unit name from visibility after
9702 compilation, so that environment is clean for subsequent compilations.
9703 (Install_Limited_Context_Clauses): Do not install a
9704 limited_private_with_clause unless the current unit is a body or a
9705 private child unit.
9706 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
9707 in the same fashion.
9708 (Install_Limited_Withed_Unit): Do not install a limited with clause if
9709 it applies to the declaration of the current package body.
9710 (Remove_Private_With_Clauses): If there is a regular with_clause for
9711 the unit, delete Private_With_Clause from context, to prevent improper
9712 hiding when processing subsequent nested packages and instantiations.
9713
97142007-08-14 Jose Ruiz <ruiz@adacore.com>
9715
9716 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
9717 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
9718 representing absolute path names.
9719 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
9720
9721 * cstreams.c (__gnat_full_name for VxWorks): Use
9722 __gnat_is_absolute_path to detect whether we need to add the current
9723 directory to normalize the path.
9724
97252007-08-14 Javier Miranda <miranda@adacore.com>
9726
9727 * a-tags.ads,
9728 a-tags.adb (Displace): Associate a message with the raised CE
9729 exception.
9730 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
9731 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
9732 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
9733 spec.
9734 (Default_Prim_Op_Count): Removed.
9735 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
9736 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
9737 Remove pragma Inline_Always.
9738
9739 * rtsfind.ads (Default_Prim_Op_Count): Removed
9740 (Max_Predef_Prims): New entity
9741 (RE_Expanded_Name): Removed
9742 (RE_HT_Link): Removed
9743 (RE_Iface_Tag): Remmoved
9744 (RE_Ifaces_Table): Removed
9745 (RE_Interfaces_Array): Removed
9746 (RE_Interface_Data_Element): Removed
9747 (RE_Nb_Ifaces): Removed
9748 (RE_RC_Offset): Removed
9749 (RE_Static_Offset_To_Top): Removed
9750
9751 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
9752 formal.
9753 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
9754 Prim_Op_Count by Max_Predef_Prims.
9755
97562007-08-14 Thomas Quinot <quinot@adacore.com>
9757 Vincent Celier <celier@adacore.com>
9758
9759 * binde.adb (Elab_All_Links): Remove unnecessary call to
9760 Generic_Separately_Compiled (if a unit satisfies this predicate, there
9761 won't be an associated Afile).
9762 (Elab_All_Links): Fail if a referenced unit cannot be found
9763
9764 * bindgen.adb:
9765 Fix comments in bindgen regarding consistency checks done in Bcheck:
9766 the checks are made across units within a partition, not across several
9767 partitions.
9768 Fix generation of C binder file for VxWorks.
9769
9770 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
9771 Generic_May_Lack_ALI, more descriptive of the current use of the
9772 predicate, and update documentation.
9773
9774 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
9775 reorganization and documentation update for the case of predefined
9776 library generics (for which we do not reference an Afile).
9777
97782007-08-14 Robert Dewar <dewar@adacore.com>
9779
9780 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
9781 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
9782 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
9783 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
9784 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
9785 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
9786 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
9787 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
9788 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
9789 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
9790 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
9791 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
9792 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
9793 g-altcon.adb: Minor reformatting
9794
9795 ada-tree.h: Delete empty line.
9796
9797 ali.ads: Minor reformatting
9798 Clarification of comments.
9799 Minor spelling correction
9800
9801 * exp_dbug.adb: Add Warnings Off to suppress new warning
9802
9803 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9804 formal
9805
9806 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
9807 value
9808
9809 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
9810
9811 * a-textio.ads: Reorder the standard input/output/error declarations
9812 for consistency.
9813
9814 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
9815
9816 * par-ch2.adb: Recognize RM specially in errout
9817 Change 'R'M to RM in all error messages
9818
9819 * scng.adb: Recognize RM specially in errout
9820
9821 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
9822 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
9823
9824 * s-direio.adb: Add missing routine header box.
9825
9826 * sem_attr.ads: Add ??? comments
9827
9828 * sem_eval.adb: Recognize RM specially in errout
9829 Change 'R'M to RM in all error messages
9830
9831 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
9832
9833 * s-tasinf.ads: Fix minor comment typo.
9834
9835 * a-cihama.adb: Minor comment addition
9836
9837 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
9838 formal
9839
9840 * s-tasinf-tru64.ads: Fix minor comment typo.
9841
9842 * itypes.ads: Comment update.
9843
9844 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
9845 anymore.
9846
9847 * argv.c: Added protection against null gnat_argv and gnat_envp.
9848
9849 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
9850 warning message when Tolerate_Consistency_Errors is True.
9851
9852 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
9853 Any_Id, as this subprogram is only applicable to *type* entities (it
9854 sets RM_Size). Instead initialize just Esize and Alignment.
9855
98562007-08-14 Bob Duff <duff@adacore.com>
9857
9858 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9859 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
9860 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
9861 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
9862 a-coorse.ads (Next): Applied pragma Inline.
9863 Make all Containers packages Remote_Types (unless they are already
9864 Pure).
9865 (Previous): applied pragma Inline
9866 (Elements_Type): is now a record instead of an array
9867
98682007-08-14 Thomas Quinot <quinot@adacore.com>
9869
9870 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
9871 of Set_Item.
9872 (Set_Item): When the new item is an element of the currently allocated
9873 table passed by reference, save a copy on the stack if we're going
9874 to reallocate. Also, in Table.Set_Item, make sure we test the proper
9875 variable to determine whether to call Set_Last.
9876
9877 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
9878 symbols-vms.adb, symbols-processing-vms-alpha.adb,
9879 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
9880 some occurrences of the pattern
9881 T.Increment_Last;
9882 T.Table (T.Last) := Value;
9883 with a cleaner call to
9884 T.Append (Value);
9885
98862007-08-14 Ed Schonberg <schonberg@adacore.com>
9887 Gary Dismukes <dismukes@adacore.com>
9888 Thomas Quinot <quinot@adacore.com>
9889
9890 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
9891 derived type with interface progenitors use the analyzed formal as the
9892 parent of the actual, to create renamings for all the inherited
9893 operations in Derive_Subprograms.
9894 (Collect_Previous_Instances): new procedure within of
9895 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
9896 unit being loaded, to ensure that the generation of global symbols is
9897 consistent in different compilation modes.
9898 (Is_Tagged_Ancestor): New function testing the ancestor relation that
9899 takes progenitor types into account.
9900 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
9901 traversing over the primitives of the formal and actual types to locate
9902 any abstract subprograms of the actual type that correspond to a
9903 nonabstract subprogram of the formal type's ancestor type(s), and issue
9904 an error if such is found.
9905 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
9906 Instantiate_Package_Body, Instantiate_Subprogram_Body):
9907 Remove bogus guard around calls to Inherit_Context.
9908 (Reset_Entity): If the entity is the selector of a selected component
9909 that denotes a named number, propagate constant-folding to the generic
9910 template only if the named number is global to the generic unit.
9911 (Set_Instance_Env): Only reset the compilation switches when compiling
9912 a predefined or internal unit.
9913
99142007-08-14 Ed Schonberg <schonberg@adacore.com>
9915
9916 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
9917 parameter to determine whether operation applies to the prefix.
9918 (Complete_Object_Operation): If actual has an access type and
9919 controlling formal is not an in_parameter, reject the actual if it is
9920 an access_to_constant type.
9921 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
9922 type, the candidate operations are found in the scope of declaration of
9923 the type, because the type has no primitive subprograms.
9924 (Analyze_Selected_Component): If prefix is class-wide, and root type is
9925 a private extension, only examine visible components before trying to
9926 analyze as a prefixed call.
9927 Change Entity_List to Type_To_Use, for better readability.
9928 (Has_Fixed_Op): Use base type when checking whether the type of an
9929 operator has a user-defined multiplication/division
9930 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
9931 user-defined operators are available for fixed-point types.
9932
99332007-08-14 Thomas Quinot <quinot@adacore.com>
9934 Ed Schonberg <schonberg@adacore.com>
9935
9936 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
9937 formal At_Any_Place indicating, when True, that we want to test for
9938 availability of the stream attribute at any place (as opposed to the
9939 current visibility context only).
9940 (Missing_Read_Write_Attributes): A stream attribute is missing for the
9941 purpose of enforcing E.2.2(8) only if it is not available at any place.
9942 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
9943 when checking the legality of an extension aggregate in a preelaborable
9944 package. Treat the literal null as a valid default expression in a
9945 component declaration for a type with preelaborable initialization.
9946 A limited interface is a legal progenitor for the designated type of a
9947 remote access to class-wide type.
9948
99492007-08-14 Thomas Quinot <quinot@adacore.com>
9950 Ed Schonberg <schonberg@adacore.com>
9951
9952 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
9953 reference): Use correct entity as denoted entity for the selector of
9954 the rewritten node.
9955 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
9956 setting the Referenced_As_LHS flag for entities that are implicitly
9957 dereferenced.
9958 (Find_Type): If the type is an internally generated incomplete type,
9959 mark the full view as referenced, to prevent spurious warnings.
9960 (Find_Selected_Component, Has_Components): Handle properly non-limited
9961 views that are themselves incomplete types.
9962 Handle interfaces visible through limited-with clauses.
9963 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
9964 subprogram generic actual for which we have generated a renaming.
9965 Warn when the renaming introduces a homonym of
9966 the renamed entity, and the renamed entity is directly visible.
9967
99682007-08-14 Ed Schonberg <schonberg@adacore.com>
9969 Hristian Kirtchev <kirtchev@adacore.com>
9970
9971 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
9972 appear in the subtree to the current allocator if it is not a static
9973 coextension.
9974 (Resolve_Allocator): Perform cleanup if resolution has determined that
9975 the allocator is not a coextension.
9976 (Resolve): Skip an interpretation hidden by an abstract operator only
9977 when the type of the interpretation matches that of the context.
9978 (Resolve): When looping through all possible interpretations of a node,
9979 do not consider those that are hidden by abstract operators.
9980 (Resolve_Actuals): When verifying that an access to class-wide object
9981 is an actual for a controlling formal, ignore anonymous access to
9982 subprograms whose return type is an access to class_wide type.
9983 (Resolve_Slice): If the prefix of the slice is a selected component
9984 whose type depends on discriminants, build its actual subtype before
9985 applying range checks on the bounds of the slice.
9986 (Valid_Conversion): In an instance or inlined body, compare root types,
9987 to prevent anomalies between private and public views.
9988 (Resolve): Improve error message for ambiguous fixed multiplication
9989 expressions that involve universal_fixed multiplying operations.
9990
99912007-08-14 Javier Miranda <miranda@adacore.com>
9992 Hristian Kirtchev <kirtchev@adacore.com>
9993
9994 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
9995 location to allow the correct generation of errors in case of
9996 restrictions applied to the expanded code.
9997 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
9998 function if the condition does not reference them.
9999 (Expand_Entry_Body_Declarations): Mark the index constant as having a
10000 valid value.
10001
100022007-08-14 Thomas Quinot <quinot@adacore.com>
8a57e48f 10003 Pablo Oliveira <oliveira@adacore.com>
ab6328d0
AC
10004
10005 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
10006 typecode parameters for a union (in a variant record), remove
10007 extraneous layer of Any wrapping for member label.
10008 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
10009 elabration statements, register the package with the name server
10010 at the beginning, not at the end, of the elaboration statements so
10011 that they can create remote access to subprogram values that designate
10012 remote subprograms from the package.
10013
100142007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10015
10016 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
10017 values to compute the number of seconds since the Unix Epoc in order to
10018 account for Daylight Savings Time. Perform special processing for dates
10019 that are earlier than the Unix Epoc to obtain a negative number.
10020
100212007-08-14 Emmanuel Briot <briot@adacore.com>
10022
10023 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
10024 switches.
10025
100262007-08-14 Eric Botcazou <ebotcazou@adacore.com>
10027
10028 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
10029 binder-generated file is not in Ada.
10030 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
10031 recorded in the ALI file.
10032 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
10033
100342007-08-14 Vincent Celier <celier@adacore.com>
10035
10036 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
10037 (Output_Source): Do nothing if parameter is No_Sdep_Id
10038
10039 * make.adb (Gnatmake): Do not rebuild an archive simply because a
10040 shared library it imports has a later time stamp.
10041 (Check): Resolve the symbolic links in the path name of the object
10042 directory.
10043 Check that the ALI file is in the correct object directory
10044 Check if a file name does not correspond to the mapping of units
10045 to file names.
10046 (Display_Version): New procedure
10047 (Initialize): Process switches --version and --help
10048 Use type Path_Name_Type for path name
10049
100502007-08-14 Paul Hilfinger <hilfinger@adacore.com>
10051
10052 * impunit.adb: Re-organize System.Random_Numbers and
10053 GNAT.Random_Numbers and add to builds.
10054
10055 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
10056
10057 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
10058
10059 * a-assert.ads, a-assert.adb: New files.
10060
100612007-08-14 Gary Dismukes <dismukes@adacore.com>
10062
10063 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
10064 if AAMP_On_Target is True, then the size of the type encompasses two
10065 addresses (a static link and a subprogram address), except in the case
10066 of library-level access types.
10067
100682007-08-14 Vincent Celier <celier@adacore.com>
10069
10070 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
10071 writing the line.
10072 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10073 possible trailing spaces.
10074 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10075
100762007-08-14 Javier Miranda <miranda@adacore.com>
10077
10078 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
10079 null-excluding access types.
10080
100812007-08-14 Javier Miranda <miranda@adacore.com>
10082
10083 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
10084 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
10085 of private types add missing check on matching interfaces in the
10086 partial and full declarations.
10087 (Analyze_Protected_Type): Code cleanup.
10088 (Analyze_Task_Type): Code cleanup.
10089
100902007-08-14 Javier Miranda <miranda@adacore.com>
10091
10092 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
10093 generated interface thunk.
10094
100952007-08-14 Ed Schonberg <schonberg@adacore.com>
10096
10097 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
10098 obsolescent warning on application of 'Class to an incomplete type.
10099
10100 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
10101 prevent obsolescent warning on application of 'Class to an incomplete
10102 type.
10103
101042007-08-14 Pascal Obry <obry@adacore.com>
10105
10106 * s-fileio.adb (Is_Open): Add check for usability of the underlying
10107 file stream.
10108
101092007-08-14 Cyrille Comar <comar@adacore.com>
10110
10111 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
10112 since it is potentially used in cases implying double finalization of
10113 the same object.
10114
101152007-08-14 Jose Ruiz <ruiz@adacore.com>
10116
10117 * s-tasini.adb (Get_Stack_Info): Move this function to
10118 System.Soft_Links.Tasking because it is common to the full and the
10119 restricted run times.
10120 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
10121 in SSL.Tasking.Init_Tasking_Soft_Links.
10122
10123 * s-solita.adb (Get_Stack_Info): Function moved from
10124 System.Tasking.Initialization because it is common to the full and the
10125 restricted run times.
10126 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
10127
101282007-08-14 Arnaud Charlet <charlet@adacore.com>
10129
10130 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
10131 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
10132 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
10133 parameter.
10134
10135 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
10136 guard to 12K.
10137
101382007-08-14 Gary Dismukes <dismukes@adacore.com>
10139
10140 * s-veboop.adb (SU): New named number initialized to
10141 System.Storage_Unit.
10142 (True_Val): The initialization expression is revised to use SU (=
10143 Storage_Unit) rather than assuming 8 for the component size of an
10144 unpacked Boolean array.
10145
101462007-08-14 Tristan Gingold <gingold@adacore.com>
10147
10148 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
10149
10150 * tb-ivms.c: New file.
10151
10152 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
10153
101542007-08-14 Geert Bosch <bosch@adacore.com>
10155
10156 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
10157 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
10158 Add required linker pragmas for automatically linking with the gnalasup
10159 linear algebra support library, and the systems math library.
10160 Rename cdot to cdotu and zdot to zdotu.
10161 Update header comment to describe purpose of package.
10162
101632007-08-14 Thomas Quinot <quinot@adacore.com>
10164
10165 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
10166 an explicitly specified Associated_Final_Chain, use that list.
10167 (Expand_N_Package_Body): Build dispatch tables of library level tagged
10168 types.
10169 (Expand_N_Package_Declaration): Build dispatch tables of library level
10170 tagged types. Minor code cleanup.
10171
101722007-08-14 Vincent Celier <celier@adacore.com>
10173
10174 * gnatchop.adb (Terminate_Program): Remove exception and use
10175 Types.Terminate_Program instead.
10176
10177 * osint.ads, osint.adb (Current_Exit_Status): New global variable
10178 (Find_Program_Name): Added protection against empty name.
10179 (OS_Exit_Through_Exception): New procedure
10180
10181 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
10182 (OS_Exit_Default): New procedure that contains the previous
10183 implementation of procedure OS_Exit.
10184 (Final_Value): Remove obsolete Interix stuff.
10185
101862007-08-14 Thomas Quinot <quinot@adacore.com>
10187
10188 * g-socket.ads: Reorganize example code so that it also works on
10189 Windows XP.
10190
101912007-08-14 Tristan Gingold <gingold@adacore.com>
10192
10193 * g-trasym.ads: AIX now supports symbolic backtraces.
10194
101952007-08-14 Ed Schonberg <schonberg@adacore.com>
10196
10197 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
10198 units being loaded to detect circularities. A circularity may be
10199 present even if the current chain of pending units to load starts from
10200 a limited_with_clause.
10201
10202 * lib-load.ads: Change profile of Load_Unit to use a with_clause
10203 rather than a boolean flag, in order to detect circularities in
10204 with_clauses.
10205
10206 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
10207 than propagating the From_Limited_With flag, in order to handle
10208 properly circularities involving with_clauses.
10209
102102007-08-14 Nicolas Setton <setton@adacore.com>
10211
10212 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
10213 warnings.
10214
102152007-08-14 Arnaud Charlet <charlet@adacore.com>
10216
10217 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
10218 to build for libgnala.
10219 libgnat: Add rules to build libgnala.a
10220 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
10221 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
10222 Add s-osinte-vxworks-kernel.adb to the target pairs of the
10223 kernel run-time lib for VxWorks 6, which would provide a different
10224 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
10225 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
10226 running ZCX by default.
10227 Add g-sttsne-locking to LynxOS version.
10228 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
10229 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
10230
10231 * system-darwin-x86.ads: New file.
10232
10233 * Make-lang.in: Delete files before copying onto them, so if they are
10234 read-only, the copy won't fail.
10235 Update dependencies
10236
102372007-08-14 Pascal Obry <obry@adacore.com>
10238
10239 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
10240 naming scheme.
10241
102422007-08-14 Vincent Celier <celier@adacore.com>
10243
10244 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
10245 (Gcc): Initialize Gcc_Name at the first call
10246
102472007-08-14 Ed Schonberg <schonberg@adacore.com>
10248
10249 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
10250 with_clauses of the enclosing unit when analyzing the package
10251 specification of a nested instance.
10252
102532007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10254
10255 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
10256 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
10257 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
10258 layout of N_Allocator.
10259
102602007-08-14 Thomas Quinot <quinot@adacore.com>
10261
10262 * rtsfind.adb (Check_RPC): Add PCS version check.
10263
10264 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
10265 (Gnat_Free_Software): New function.
10266
10267 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
10268 the PCS_Version value from s-parint, used to check that it is consistent
10269 with what exp_dist expects.
10270
10271 * s-parint.ads (PCS_Version): New entity for checking consistency
10272 between exp_dist and PCS.
10273
10274 * gen-soccon.c: (SO_REUSEPORT): New constant.
10275
102762007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10277
10278 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
10279 variable Sub_Second to Duration in order to accomodate a larger range
10280 of arithmetic operations.
10281
102822007-08-14 Bob Duff <duff@adacore.com>
10283
10284 * g-sttsne-locking.ads: Move comments from spec to body.
10285 * g-sttsne-locking.adb: Move comments from spec to body.
10286 * g-sttsne-vxworks.ads: Removed.
10287 * g-sttsne-vxworks.adb: Removed.
10288
4862826d
ILT
102892007-08-11 Ian Lance Taylor <iant@google.com>
10290
10291 * misc.c (gnat_get_alias_set): Change return type to
10292 alias_set_type.
10293
4d8a9bfe
KG
102942007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10295
10296 * decl.c, utils2.c: Fix whitespace in last change.
10297
39595763
KG
102982007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10299
10300 * decl.c (compare_field_bitpos): Constify.
10301 * utils2.c (compare_elmt_bitpos): Likewise.
10302
08e7e8cb
AJ
103032007-07-27 Aurelien Jarno <aurelien@aurel32.net>
10304
10305 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
10306 anonymous access type.
10307 (pthread_sigmask): Now take an access sigset_t.
10308
9e94c78f 103092007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
83983455
JS
10310
10311 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
10312
a8257e58
EB
103132007-06-21 Eric Botcazou <ebotcazou@adacore.com>
10314
10315 PR tree-optimization/25737
10316 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
10317
5be014d5
AP
103182007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
10319
10320 * trans.c (Attribute_to_gnu): When subtracting an
10321 offset from a pointer, use POINTER_PLUS_EXPR with
10322 NEGATE_EXPR instead of MINUS_EXPR.
10323 (gnat_to_gnu): Likewise.
10324 * utils.c (convert): When converting between
10325 thin pointers, use POINTER_PLUS_EXPR and sizetype
10326 for the offset.
10327 * utils2.c (known_alignment): POINTER_PLUS_EXPR
10328 have the same semantics as PLUS_EXPR for alignment.
10329 (build_binary_op): Add support for the semantics of
10330 POINTER_PLUS_EXPR's operands.
10331 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
10332
b0464c88
RE
103332007-06-11 Rafael Avila de Espindola <espindola@google.com>
10334
a472f546
EB
10335 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
10336 of get_signed_or_unsigned_type.
b0464c88
RE
10337 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
10338
93e17a25
BD
103392007-06-11 Bob Duff <duff@adacore.com>
10340 Thomas Quinot <quinot@adacore.com>
10341
10342 * g-stsifd-sockets.adb (Create): Work around strange behavior of
10343 'bind' on windows that causes 'connect' to fail intermittently, by
10344 retrying the 'bind'.
10345 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10346
1bbf8502
DS
103472007-06-10 Duncan Sands <baldrick@free.fr>
10348
10349 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
10350 than to void, for the fields when making a new fat pointer type.
10351 (gnat_substitute_in_type): Now substitute_in_type.
a472f546 10352 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
1bbf8502
DS
10353 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
10354 * utils.c (update_pointer_to): Update fat pointers by updating the
10355 dummy node pointers used for the fields.
10356
ec11296f
AC
103572007-06-06 Thomas Quinot <quinot@adacore.com>
10358 Bob Duff <duff@adacore.com>
10359
10360 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
10361 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
10362 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
10363 constant Thread_Blocking_IO, always True by default, set False
10364 on a per-runtime basis.
10365 (Need_Netdb_Buffer): New constant.
10366
10367 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
10368 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
10369 files.
10370
10371 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
10372 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
10373 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
10374 child package Task_Safe_NetDB
10375 (Host_Error_Messages): Add stub body.
10376 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10377
10378 * g-soccon-mingw.ads: Add Windows-specific constants.
10379 (Need_Netdb_Buffer): New constant.
10380 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
10381 wrapper and import inet_addr(3) from the standard sockets library
10382 directly instead.
10383 (In_Addr): Add alignment clause.
10384 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
10385
103862007-06-06 Robert Dewar <dewar@adacore.com>
10387
10388 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10389 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
10390 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
10391 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
10392 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
10393 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
10394 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
10395 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
10396 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
10397 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
10398 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
10399 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
10400 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
10401 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
10402 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
10403 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
10404 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
10405 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
10406 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
10407 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
10408 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
10409 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
10410 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
10411 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
10412 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
10413 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
10414 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
10415 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
10416 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
10417 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
10418 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
10419 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
10420 Unchecked_* by Ada.Unchecked_*
10421
104222007-06-06 Robert Dewar <dewar@adacore.com>
10423
10424 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
10425 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
10426 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
10427 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
10428 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
10429 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
10430
10431 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
10432 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
10433 s-tasloc.adb, s-tasloc.ads: New files.
10434
104352007-06-06 Bob Duff <duff@adacore.com>
10436
10437 * g-expect-vms.adb:
10438 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
10439 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
10440 (Send_Signal, Close): Raise Invalid_Process if the process id is
10441 invalid.
10442 (Pattern_Matcher_Access): Is now a general access type to be able to
10443 use aliased string.
10444
104452007-06-06 Thomas Quinot <quinot@adacore.com>
10446 Arnaud Charlet <charlet@adacore.com>
10447
a472f546
EB
10448 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
10449 (SIGEMT is now used instead of SIGTERM on AIX).
ec11296f
AC
10450
10451 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
10452 (Time_Slice_Supported): Set to True.
a472f546 10453 Use SIGEMT instead of SIGTERM as SIGADAABORT.
ec11296f
AC
10454
104552007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
10456
10457 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
10458 (Time, Time)): Use To_Relative_Time rather than manual calculation to
10459 express the bounds of Duration as Time. Raise Time_Error when the
10460 result is greater or equal to the higher bound of Duration (on the
10461 margin case).
10462 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
10463 Ada_High_And_Leaps.
10464 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
10465 Ada_High_And_Leaps.
10466 ("-" (Time, Time)): Reorder code.
10467 (All_Leap_Seconds): Removed.
10468 (Arithmetic_Operations.Add): Remove sign related kludge.
10469 (Arithmetic_Operations.Difference): Control the leaps seconds processing
10470 with flag Leap_Support.
10471 (Arithmetic_Operations.Subtract): Remove sign related kludge.
10472 (Check_Within_Time_Bounds): New procedure.
10473 (Clock): Control the leap seconds processing with flag Leap_Support.
10474 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
10475 (Formatting_Operations.Split): Control the leap seconds processing with
10476 flag Leap_Support.
10477 (Formatting_Operations.Time_Of): Control the leaps seconds processing
10478 with flag Leap_Support. Adjust the year, month and day (if applicable)
10479 when the value of day seconds designates a new day.
10480 (Split): Use parameter associations for better readability. Integrate
10481 flag Is_Ada_05.
10482 (Time_Of): Use parameter associations for better readability. Integrate
10483 flag Is_Ada_05.
10484
10485 * a-calfor.adb (Split): Use parameter associations for better
10486 readability. Integrate flag Is_Ada_05.
10487 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
10488 better readability. Integrate flag Is_Ada_05.
10489
104902007-06-06 Arnaud Charlet <charlet@adacore.com>
10491
10492 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
10493 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
10494 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
10495 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
10496 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
10497 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
10498 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
10499 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
10500 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
10501 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
10502 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
10503 time when entering this routine to detect a backward clock setting
10504 (manual setting or DST adjustment), to avoid waiting for a longer delay
10505 than needed.
10506 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
10507 Remove handling of deferred priority change, and replace by setting the
10508 task priority directly, as required by AI-188.
10509 Update comments.
10510 (Max_Task_Image_Length): New constant.
10511 Replace Warnings (Off) by Unreferenced pragma, cleaner.
10512 (Dynamic_Priority_Support): Removed, no longer needed.
10513 (Poll_Base_Priority_Change): Ditto.
10514 (Set_Ceiling): Add this procedure to change the ceiling priority
10515 associated to a lock. This is a dummy implementation because dynamic
10516 priority ceilings are not supported by the underlying system.
10517
10518 * a-dynpri.adb (Set_Priority): Take into account case where Target is
10519 accepting a RV with its priority boosted.
10520 Remove handling of deferred priority change, and replace by setting the
10521 task priority directly, as required by AI-188.
10522
10523 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
10524 Succeeded = True.
10525 Remove handling of deferred priority change, and replace by setting the
10526 task priority directly, as required by AI-188.
10527 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
10528 of Self_Id earlier.
10529
10530 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
10531 (Poll_Base_Priority_Change): Removed.
10532 Code clean up: use SSL.Current_Target_Exception.
10533
10534 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
10535 to run as this is a potentially dispatching point.
10536 (Call_Synchronous): Use Local_Defer_Abort.
10537 (Callable): Relax assertion.
10538 (Selective_Wait): Relax assertion in case abort is not allowed.
10539 Remove handling of deferred priority change, and replace by setting the
10540 task priority directly, as required by AI-188.
10541
10542 * s-tasuti.adb (Make_Passive): Adjust assertions.
10543 Remove handling of deferred priority change, and replace by setting the
10544 task priority directly, as required by AI-188.
10545
105462007-06-06 Arnaud Charlet <charlet@adacore.com>
10547
10548 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10549 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10550 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
10551 system-vxworks-mips.ads, system-vxworks-alpha.ads,
10552 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
10553 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
10554 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
10555 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
10556 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
10557 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
10558 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
10559 This patch changes the largest non-binary modulus from 2**31-1 to
10560 2**32-1.
10561 (Compiler_System_Version): Removed, no longer used.
10562 Clean up system files by removing flags only used on a single target.
10563 Also remove obsolete flags, only used during bootstrap from system.ads
10564 (Address): Add a pragma Preelaborable_Initialization.
10565
10566 * system-aix.ads: Ditto.
10567 (GCC_ZCX_Support): Set to true.
10568 Update priority range on AIX and map Ada priorities to target
10569 priorities appropriately for different scheduling policies.
10570
10571 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
10572
105732007-06-06 Vincent Celier <celier@adacore.com>
10574
10575 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
10576 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
10577
10578 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
10579 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
10580 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
10581 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10582 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
a472f546
EB
10583 MLib.Tgt, containing the default versions of the exported subprograms.
10584 For each platform, create a specific version of the body of new child
10585 package MLib.Tgt.Specific that contains only the body of subprograms
10586 that are different from the default.
10587 (Archive_Builder_Append_Options): New function.
ec11296f
AC
10588
105892007-06-06 Matthew Gingell <gingell@adacore.com>
10590
a472f546
EB
10591 * s-osinte-aix.adb: Map Ada priorities to target priorities
10592 appropriately for different scheduling policies.
ec11296f
AC
10593
105942007-06-06 Arnaud Charlet <charlet@adacore.com>
10595
10596 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
10597 its C counterpart.
10598 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
10599 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
10600
106012007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
10602
a472f546
EB
10603 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
10604 Noop on VMS, added for interface commonality.
ec11296f
AC
10605
106062007-06-06 Eric Botcazou <ebotcazou@adacore.com>
10607 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10608 Olivier Hainque <hainque@adacore.com>
10609
10610 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
10611 renamed expression of a full renaming at toplevel.
10612 (gnat_to_gnu_entity, case object): If not defining, do not look inside
10613 the values the constant is initialized to if it is an N_Allocator.
10614 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
10615 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
10616 (make_aligning_type): Accept an extra ROOM argument for storage to be
10617 made available before the aligned field, and an extra BASE_ALIGN
10618 argument for callers to pass the alignment guaranteed to be honored for
10619 the whole aligning object. Avoid call to finish_record_type, which only
10620 interferes with the sizes we want to set.
10621 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
10622 make_aligning_type for super-aligned objects on stack.
10623 (components_to_record): Pass the adjusted size of the type when creating
10624 fields in the qualified union for the variant part.
10625 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
10626 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
10627 packed array type.
10628 (maybe_pad_type): Set TYPE_USER_ALIGN.
10629 (make_aligning_type): Likewise.
10630 ALIGN argument is unsigned int.
10631 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
10632 (gnat_to_gnu_param): Likewise, for parameters.
10633 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
10634 if it is constant and stems from a function call.
10635 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
10636 of the record is specified. Adjust accordingly.
10637 (adjust_packed): New static function.
10638 (gnat_to_gnu_field): Use it to adjust the packedness setting.
10639 (components_to_record): Likewise.
10640 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
10641 side-effects if the object is deemed constant.
10642 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
10643 type instead of merely finalizing it. Tidy.
10644 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
10645 <E_Access_Type>: Likewise.
10646 (defer_debug_incomplete_list): Rename to defer_finalize_list.
10647 (defer_debug_level): Delete.
10648 (gnat_to_gnu_entity) <debug_deferred>: Likewise
10649 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
10650 type.
10651 <E_Record_Type>: Do not explicitly defer finalizing the type.
10652 Adjust for write_record_type_debug_info renaming.
10653 <E_Subprogram_Type>: Likewise.
10654 Finalize deferred types right after deferred incomplete types are
10655 expanded.
10656 (rest_of_type_decl_compilation): New global function.
10657 (components_to_record): Rename defer_debug parameter to do_not_finalize.
10658 (components_to_record): Propagate the packedness to the fields of the
10659 qualified union type if there is a variant part.
10660 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
10661 instead of inline code to adjust the XUT field offsets.
10662 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
10663 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
10664 and write the debug info if the type derives from a discriminated one.
10665 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
10666 <E_Array_Subtype>: Likewise.
10667 <E_String_Literal_Subtype>: Likewise.
10668 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
10669 an alignment clause.
10670 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
10671 before giving warning.
10672 (prepend_one_attribute_to): New function, helper to prepend an attribute
10673 to an attribute list.
10674 (gnat_to_gnu_entity) <E_Procedure>: Use it.
10675 (prepend_attributes): Likewise.
10676 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
10677 <E_Array_Type>: Declare the padding type for the element type, if any.
10678 <E_Array_Subtype>: Likewise.
10679 (defer_limited_with): New variable.
10680 (Gigi_Equivalent_Type): New function.
10681 (gnat_to_gnu_entity): Use it at start and use result throughout.
10682 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
10683 Gigi_Equivalent_Type, support Limited_With, allow two levels of
10684 indirection, precompute if unconstrained array to simplify logic, and
10685 use defer_limited_with to defer elaboration of some types from limited
10686 with.
10687 (finalize_from_with_types): New function.
10688
106892007-06-06 Gary Dismukes <dismukes@adacore.com>
10690 Eric Botcazou <ebotcazou@adacore.com>
10691 Tristan Gingold <gingold@adacore.com>
10692 Olivier Hainque <hainque@adacore.com>
10693
a472f546
EB
10694 * trans.c (Identifier_to_gnu): Change test for deferred constant by
10695 adding guard that the entity is an E_Constant before testing presence
10696 of Full_view (and remove unnecessary test that entity is not a type).
ec11296f
AC
10697 For a CONST_DECL used by reference, manually retrieve
10698 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
10699 (struct language_function): Move from utils.c to here.
10700 (struct parm_attr): New structure.
10701 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
10702 (f_parm_attr_cache): New macro.
10703 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
10704 expressions for the 'First, 'Last and 'Length attributes of the
10705 unconstrained array IN parameters.
10706 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
10707 Allocate the information structure for the function earlier, as well
10708 as the language-specific part.
10709 If the parameter attributes cache has been populated, evaluate the
10710 cached expressions on entry.
10711 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
10712 N_Procedure_Call_Statement and N_Indexed_Component.
10713 (Pragma_to_gnu): Translate inspection_point to an asm statement
10714 containaing a comment and a reference to the object (either its address
10715 for BLKmode or its value).
10716 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
10717 to go to DECL_INITIAL. Together with the size constraint relaxation
10718 in create_var_decl, enlarges the set of situations in which an
10719 identifier may be used as an initializer without implying elaboration
10720 code.
10721 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
10722 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
10723 node.
10724 (maybe_stabilize_reference): Remove lvalues_only parameter.
10725 (gnat_stabilize_reference): Adjust for above change.
10726 (gnat_to_gnu): Do not set location information on the result
10727 if it is a reference.
10728 (add_cleanup): Add gnat_node parameter and set the location of the
10729 cleanup to it.
10730 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
10731 (Exception_Handler_to_gnu_zcx): Likewise.
10732 (gigi): Remove the cgraph node if the elaboration procedure is empty.
10733 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
10734 the former right after the latter.
10735 (start_stmt_group): Make global.
10736 (end_stmt_group): Likewise.
10737 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
10738 vars.
10739 (gnu_program_error_label_stack): Likewise.
10740 (gigi): Initialize them.
10741 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
10742 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
10743 New cases.
10744 (push_exception_label_stack): New function.
10745 (takes_address): New function.
10746
10747 * utils.c (struct language_function): Move to trans.c from here.
10748 (unchecked_convert): Do not wrap up integer constants in
10749 VIEW_CONVERT_EXPRs.
10750 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
10751 the latter for aggregate types, unexpected by later passes, and relax an
10752 arbitrary size constraint on the former.
10753 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
10754 to compare the sizes.
10755 (convert_vms_descriptor): When converting to a fat pointer type, be
10756 prepared for a S descriptor at runtime in spite of a SB specification.
10757 (shift_unc_components_for_thin_pointers): New function.
10758 (write_record_type_debug_info): For variable-sized fields, cap the
10759 alignment of the pointer to the computed alignment.
10760 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
10761 If REP_LEVEL is 2, do not compute the sizes.
10762 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
10763 (build_unc_object_type): Likewise.
10764 (declare_debug_type): New function.
10765
10766 * ada-tree.def: USE_STMT: removed (not emitted anymore).
10767
10768 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
10769 no statement is expandable anymore.
10770 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
10771 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
10772 when the user requested it explicitely.
10773 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
10774 to 0 for Ada.
10775 (get_alias_set): Return alias set 0 for a type if
10776 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
10777
10778 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
10779 (DECL_FUNCTION_STUB): New accessor macro.
10780 (SET_DECL_FUNCTION_STUB): New setter macro.
10781
10782 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
10783
10784 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
10785 declarations.
10786
107872007-06-06 Jose Ruiz <ruiz@adacore.com>
10788
10789 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
10790 Rename to Abort_Task_Interrupt to be able to keep the same interface
10791 as the rest of the targets.
10792
10793 * s-osinte-vxworks.ads s-osinte-vxworks.adb
10794 (To_VxWorks_Priority): Remove explicit "in" mode indicator
10795
10796 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
10797 New files.
10798
107992007-06-06 Robert Dewar <dewar@adacore.com>
10800
10801 * a-chahan.ads: Remove obsolescent pragmas
10802
10803 * a-chlat1.ads: Minor reformatting
10804
108052007-06-06 Robert Dewar <dewar@adacore.com>
10806
10807 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
10808 for Errout
10809
10810 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
10811 implementation
10812
10813 * errout.ads (Finalize): Changed interface
10814 (Output_Messages): New procedure
10815 (Compilation_Errors): New Interface
10816
10817 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
10818 Finalize/Output_Messages interface for Errout
10819 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
10820 Errout.
10821
108222007-06-06 Thomas Quinot <quinot@adacore.com>
10823 Olivier Hainque <hainque@adacore.com>
10824 Robert Dewar <dewar@adacore.com>
10825
10826 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
10827 check.
10828 (Raise_Current_Excep): Call Debug_Raise_Exception just before
10829 propagation starts, to let debuggers know about the event in a reliable
10830 fashion.
10831 (Local_Raise): Moved to System.Exceptions
10832 More convenient to have this as a separate unit
10833
10834 * s-except.adb, s-except.ads: New files.
10835
10836 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
10837 Debug_Unhandled_Exception in System.Exceptions where it belongs
10838 together with a couple of other debug helpers.
10839 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
10840 the former Unhandled_Exception.
10841
10842 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
10843 (Warn_No_Exception_Propagation): New procedure
10844 (Warn_If_No_Propagation): Rewritten for new warning generation
10845 (Expand_Exception_Handlers): New warning generation
10846 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
10847 (Add_Exception_Label): Use Special_Exception_Package_Used for test
10848 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
10849 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
10850 even if restriction is set (makes life easier in Check_Returns)
10851 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
10852 checking exception identities.
10853 (Expand_Local_Exception_Handlers): Do not optimize when all others case
10854 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
10855 block for handler (used by Check_Returns)
10856 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
10857 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
10858 remove all exception handlers when optimizing local raise statements.
10859 (Find_Local_Handler): Use Get_Renamed_Entity
10860 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
10861 marked analyzed after expanding exception handlers, do not generate
10862 redundant cleanup actions, because they have been constructed already.
10863
108642007-06-06 Thomas Quinot <quinot@adacore.com>
10865
10866 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
10867 presence of this categorization pragma is mandated by the language.
10868 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
10869 for this type.
10870
108712007-06-06 Vincent Celier <celier@adacore.com>
10872 Robert Dewar <dewar@adacore.com>
10873
10874 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
10875 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10876 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
10877 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
10878 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
10879 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
10880 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
10881 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
10882 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
10883 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
10884 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
10885 ali.ads, ali.adb:
10886 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
10887 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
10888 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
10889 Use variables of types File_Name_Type and Unit_Name_Type in error
10890 messages.
10891 (Get_Name): Add parameter Ignore_Special, and set it reading file name
10892 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
10893 here.
10894 Define flags Flag217-Flag230 with associated subprograms
10895 (Flag_Word5): New record type.
10896 (Flag_Word5_Ptr): New access type.
10897 (To_Flag_Word5): New unchecked conversion.
10898 (To_Flag_Word5_Ptr): Likewise.
10899 (Flag216): New function.
10900 (Set_Flag216): New procedure.
10901
109022007-06-06 Arnaud Charlet <charlet@adacore.com>
10903
10904 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
10905 instead of 'Size.
10906
10907 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
10908
109092007-06-06 Javier Miranda <miranda@adacore.com>
10910
10911 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
10912 the package.
10913 (Object_Specific_Data_Array): This is now internal to the package.
10914 (Object_Specific_Data): This is now internal to the package.
10915 (Select_Specific_Data_Element): This is now internal to the package.
10916 (Select_Specific_Data_Array): This is now internal to the package.
10917 (Select_Specific_Data): This is now internal to the package.
10918 (Offset_To_Top_Function_Ptr): This is now public.
10919 (To_Offset_To_Top_Function_Ptr): Removed.
10920 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
10921 local to subprogram Offset_To_Top.
10922 (Predefined_DT): Removed.
10923 (Typeinfo_Ptr): Removed.
10924 (OSD): This function is now internal to this package.
10925 (SSD): This function is now internal to this package.
10926 (DT): New function that displaces the pointer to the table of primitives
10927 to get access to the enclosing wrapper record.
10928 (IW_Membership): Code cleanup.
10929 (Offset_To_Top): Code cleanup.
10930 (Predefined_DT): Removed.
10931 (Register_Interface_Tag): Removed.
10932 (Set_Interface_Table): Removed.
10933 (Set_Offset_Index): Removed.
10934 (Set_Offset_To_Top): Code cleanup.
10935 (Set_OSD): Removed.
10936 (Set_Signature): Removed.
10937 (Set_SSD): Removed.
10938 (Set_Tagged_Kind): Removed.
10939 (Typeinfo_Ptr): Removed.
10940 (TSD): Removed.
10941 (Displace): Add missing check on null actual.
10942
10943 * exp_disp.ads, exp_disp.adb
10944 (Select_Expansion_Utilities): Removed.
10945 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
10946 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
10947 the interface requires a new parameter.
10948 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
10949 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
10950 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
10951 Done to remove package Select_Expansion_Utilities.
10952 (Make_DT): New implementation for statically allocated dispatch tables.
10953 (Make_Secondary_DT): Moved to the scope of Make_DT.
10954 (Register_Primitive): Code cleanup plus incoporate the use of the new
10955 function DT_Address_Attribute.
10956 (Expand_Interface_Thunk): The profile of this subprogram has been
10957 changed to return the Thunk_Id and the corresponding code.
10958 (Fill_DT_Entry): Removed. Its functionality is now provided by
10959 subprogram Register_Primitive.
10960 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
10961 subprogram Register_Primitive.
10962 (Register_Primitive): New subprogram that incorporates the previous
10963 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
10964 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
10965 was only required to call Make_DT_Access_Action, which is now removed.
10966 (Ada_Actions): Removed
10967 (Action_Is_Proc): Removed
10968 (Action_Nb_Arg): Removed
10969 Replace all the calls to Make_DT_Access_Action by direct calls to
10970 Make_Procedure_Call_Statement or Make_Function_Call.
10971 (Set_DTC_Entity_Value): New subprogram.
10972 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
10973 (Expand_Interface_Thunk): Add missing support for primitives that are
10974 functions with a controlling result (case in which there is no need
10975 to generate the thunk).
10976
10977 * exp_atag.ads, exp_atag.adb
10978 (Build_DT): New subprogram that displaces the pointer to reference the
10979 base of the wrapper record.
10980 (Build_Typeinfo_Offset): Removed.
10981 (RTE_Tag_Node): Removed.
10982 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
10983 (Build_Get_RC_Offset): Removed.
10984 (Build_Inherit_Predefined_Prims): Removed.
10985 (Build_Inherit_TSD: Removed.
10986 (Build_New_TSD): Removed.
10987 (Build_Set_External_Tag): Removed.
10988 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
10989 (Build_Set_Prim_Op_Address): Add documentation.
10990 (Build_Set_TSD): Removed.
10991
10992 * rtsfind.ads, rtsfind.adb
10993 (Load_Fail): If load fails and we are not in configurable run-time
10994 mode, then raise Unrecoverable_Error.
10995 (Text_IO_Kludge): Generate an error message if a run-time library is
10996 not available in a given run-time (ie. zfp run-time).
10997 (RTE_Record_Component): Add code to check that the component we search
10998 for is not found in two records in the given run-time package.
10999 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
11000 (RE_DT_Predef_Prims_Offset): New entity
11001 (RE_Static_Offset_To_Top): New entity
11002 (RE_HT_Link): New entity.
11003 (System_Address_Image): Addition of this run-time package.
11004 (RE_Address_Image): New entity.
11005 (RE_Abstract_Interface): Removed.
11006 (RE_Default_Prim_Op_Count): Removed.
11007 (RE_DT_Entry_Size): Removed.
11008 (RE_DT_Min_Prologue_Size): Removed.
11009 (RE_DT_Prologue_Size): Removed.
11010 (RE_Ifaces_Table_Ptr): Removed.
11011 (RE_Interface_Data_Ptr): Removed.
11012 (RE_Type_Specific_Data): Removed.
11013 (RE_Primary_DT): Removed.
11014 (RE_Register_Interface_Tag): Removed.
11015 (RE_Set_Offset_Index): Removed.
11016 (RE_Set_OSD): Removed.
11017 (RE_Set_SSD): Removed.
11018 (RE_Set_Signature): Removed.
11019 (RE_Set_Tagged_Kind): Removed.
11020 (RE_Address_Array): New entity.
11021 (RE_DT): New entity.
11022 (RE_Iface_Tag): New entity.
11023 (RE_Interfaces_Table): New entity.
11024 (RE_No_Dispatch_Table): New entity.
11025 (RE_NDT_Prims_Ptr): New entity.
11026 (RE_NDT_TSD): New entity.
11027 (RE_Num_Prims): New entity.
11028 (RE_Offset_To_Top_Function_Ptr): New entity.
11029 (RE_OSD_Table): New entity.
11030 (RE_OSD_Num_Prims): New entity.
11031 (RE_Predef_Prims): New entity
11032 (RE_Predef_Prims_Table_Ptr): New entity.
11033 (RE_Primary_DT): New entity.
11034 (RE_Signature): New entity.
11035 (RE_SSD): New entity.
11036 (RE_TSD): New entity.
11037 (RE_Type_Specific_Data): New entity.
11038 (RE_Tag_Kind): New entity.
11039
110402007-06-06 Thomas Quinot <quinot@adacore.com>
11041
11042 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
11043 C imported variable.
11044 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
11045 on entry.
11046
110472007-06-06 Robert Dewar <dewar@adacore.com>
11048
11049 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
11050 character
11051
110522007-06-06 Vincent Celier <celier@adacore.com>
11053
11054 * a-tifiio.adb (Put, internal): For negative numbers, check that there
11055 is room for at least one digit and the minus sign.
11056 (Put.Put_Character): Never put a character outside of the range of
11057 string To.
11058
110592007-06-06 Olivier Hainque <hainque@adacore.com>
11060 Eric Botcazou <ebotcazou@adacore.com>
11061
11062 * utils2.c (build_allocator): Provide the extra arguments to
11063 make_aligning_type for super-aligned objects allocated from the default
11064 pool. Leave enough room for a pointer before the aligning field, and
11065 store the system's allocator return value there.
11066 (build_call_alloc_dealloc): When releasing a super-aligned object,
11067 retrieve the system's allocator return value from where build_allocator
11068 has stored it, just ahead of the adjusted address we are passed.
11069 (build_call_raise): Handle properly the generation of line numbers when
11070 the node is marked No_Location.
11071 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
11072 by using DECL_UID on ties.
11073 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
11074 main variant.
11075 (build_call_raise): Handle converting exception into goto; support new
11076 argument KIND.
11077 (build_component_ref): Add new arg to build_call_raise.
11078
110792007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11080
11081 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
11082 "." in the case of nnn.xxx when nnn terminates with an underscore.
11083 Parse the remaining "#" or ":" in the case of nnn#.xxx#
11084
110852007-06-06 Robert Dewar <dewar@adacore.com>
11086
11087 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
11088
110892007-06-06 Arnaud Charlet <charlet@adacore.com>
11090 Vincent Celier <celier@adacore.com>
11091 Robert Dewar <dewar@adacore.com>
11092
11093 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
11094 needed.
11095 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
11096 ((destructor)) for adafinal, even when switch -a is used.
11097 Do not issue pragma Linker_Destructor for adafinal when switch -a is
11098 used.
11099 (Gen_Object_Files_Options): Add formatting of Linker Options, when
11100 Output_Linker_Option_List is set. Suppress this formatting when
11101 Zero_Formatting is set.
11102 Add case for CLI_Target.
11103 (System_Restrictions_Used): New flag, used to avoid generating with of
11104 System_Restrictions and initialization of the data unless there is
11105 some use of System.Restrictions in the partition.
11106 (Check_System_Restrictions_Used): New procedure
11107
11108 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
11109 since we only with this unit in the binder file if it is used elsewhere
11110 in the partition.
11111
111122007-06-06 Vincent Celier <celier@adacore.com>
11113
11114 * bindusg.adb: Add line for @<response file>
11115 Add lines for new switches -R and -Z
11116
11117 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
11118 hierarchy in the list of files of the closure when -R is used
11119 (Gnatbind): Accept arguments starting with '@' to indicate response
11120 files and take the arguments from the response files.
11121 If List_Closure is set, display the referenced files
11122
111232007-06-06 Javier Miranda <miranda@adacore.com>
11124 Robert Dewar <dewar@adacore.com>
11125 Ed Schonberg <schonberg@adacore.com>
11126
11127 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
11128 which the address-clause is applied to in-mode actuals (allowed by
11129 13.1(22)).
11130 (Apply_Discriminant_Check): Do not generate a check if the type is
11131 constrained by a current instance.
11132 (Activate_Division_Check): New procedure
11133 (Activate_Overflow_Check): New procedure
11134 (Activate_Range_Check): New procedure
11135 Call these new Activate procedures instead of setting flags directly
11136 (Apply_Array_Size_Check): Removed, no longer needed.
11137 Code clean up: remove obsolete code related to GCC 2.
11138 (Get_E_Length): Protect against bomb in case scope is standard
11139 (Selected_Range_Checks): If the node to be checked is a conversion to
11140 an unconstrained array type, and the expression is a slice, use the
11141 bounds of the slice to construct the required constraint checks.
11142 Improve NOT NULL error messages
11143 (Apply_Constraint_Check): If the context is a null-excluding access
11144 type, diagnose properly the literal null.
11145
111462007-06-06 Pascal Obry <obry@adacore.com>
11147
11148 * clean.adb (Clean_Archive): Use untouched casing for the archive name
11149 and the corresponding .deps file.
11150 (Clean_Interface_Copy_Directory): Use untouched casing for the library
11151 src directory. Minor code-clean-up. Use untouched casing for files
11152 read into the library src dir.
11153 (Clean_Library_Directory): Idem.
11154 (Parse_Cmd_Line): Accept new switch -aP
11155
111562007-06-06 Javier Miranda <miranda@adacore.com>
11157 Ed Schonberg <schonberg@adacore.com>
11158 Robert Dewar <dewar@adacore.com>
11159 Eric Botcazou <ebotcazou@adacore.com>
11160 Arnaud Charlet <charlet@adacore.com>
11161
11162 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
11163 applicable to types that have the With_Type flag set. Returns the
11164 non-limited view of the type, if available, otherwise the type itself.
11165 For class-wide types, there is no direct link in the tree, so we have
11166 to retrieve the class-wide type of the non-limited view of the Etype.
11167 New attributes Static_Initialization and Static_Elaboration_Desired.
11168 Remove the pragma Thread_Body, and the associated flag
11169 Is_Thread_Body in entities, and all related code.
11170 (Suppress_Value_Tracking_On_Call): New flag
11171 E_Exception has Esize and Alignment fields
11172 (Universal_Aliasing): New function.
11173 (Set_Universal_Aliasing): New procedure.
11174 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
11175 (Check_Nested_Access): New procedure.
11176 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
11177 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11178 (Related_Interface): New attribute. Present in dispatch table pointer
11179 components of records. Set to point to the entity of the corresponding
11180 interface type.
11181 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
11182 (Original_Access_Type): Remove, not needed.
11183 (Root_Type): Handle properly subtypes of class-wide-types.
11184 Update comments.
11185
11186 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
11187 class-wide types visible through limited-with clauses.
11188 (Try_Primitive_Operation): When examining all primitive operations of a
11189 tagged type, do not consider subprograms labeled as hidden unless they
11190 belong to a private generic type with a tagged parent.
11191 (Try_Object_Operation): Extensive rewriting, to handle properly various
11192 overloading cases, when several ancestors may have class-wide operations
11193 that are possible candidates, and when the overloaded functions return
11194 array types and have defaulted parameters so that the call may be
11195 interpreted as an indexing.
11196 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
11197 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
11198 successive actuals before analyzing the call itself.
11199 (Try_Primitive_Operation): A primitive operation is compatible with the
11200 prefix if the prefix has a synchronized type and the type of the formal
11201 is its corresponding record, as can be the case when the primitive
11202 operation is declared outside of the body of the type.
11203 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
11204 perform homonym traversal, looking for class-wide operation matches
11205 (formerly done in statements of Try_Class_Wide_Operation). Matches on
11206 access parameters are now restricted to anonymous access types.
11207 (Mark_Allocator): An allocator with a discriminant association parent is
11208 a coextension.
11209 (Try_One_Prefix_Interpretation): If the type of the object is
11210 incomplete, as can be happen when it is a limited view obtained through
11211 a limited_with_clause, the selected component is not part of a prefixed
11212 call.
11213 (Complete_Object_Operation): Diagnose properly an object that is not
11214 aliased when the corresponding controlling formal is an access
11215 parameter.
11216 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
11217 ambiguous calls in prefixed notation, where two primitives differ only
11218 in that the controlling argument of one is an access parameter.
11219
11220 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
11221 whether a function that returns an unconstrained type can be inlined.
11222 (Process_Formals): Diagnose properly the illegal use of an incomplete
11223 type in the profile of an access_to_subprogram declaration.
11224 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
11225 operations are attached to the corresponding record.
11226 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
11227 When processing a primitive of a concurrent type which implements an
11228 interface change the type of all controlling formals to that of the
11229 corresponding record type.
11230 (Check_Synchronized_Overriding): Relax the conditional logic when trying
11231 to determine the tagged type to which a primitive belongs.
11232 (Check_Conventions): Capture condition to ignore a primitive operation
11233 (which is shared between the loop in Check_Conventions and the one in
11234 Check_Convention) in a new local function Skip_Check.
11235 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
11236 confusion with Check_Conventions' own Prim_Op local variable.
11237 (Create_Extra_Formals): Test for a tagged result type rather than a
11238 controlling result when determining whether to add a BIP_Alloc_Form
11239 formal and a BIP_Final_List formal to the function.
11240 (Check_Conformance); For parameters that are anonymous access types,
11241 subtype conformance requires that the not null and the constant
11242 indicators must match
11243 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
11244 to retrieve the appropriate type when processing a concurrent type
11245 declared within a generic. Minor comment reformatting. Change invocation
11246 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
11247 mitive.
11248 (Analyze_Subprogram_Body): If the return type of a function is an
11249 anonymous access to the limited view of a class-wide type, and the
11250 non-limited view of the type is available, update the type of the
11251 function so that code can be generated.
11252 (Process_Formals): In case of access-subtype itype whose designated
11253 type is also an itype (situation that happens now with access to
11254 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
11255 attribute to avoid backend problems.
11256 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
11257 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
11258 anonymous types' designated types are same before testing
11259 Subtypes_Statically_Match.
11260 (Create_Extra_Formals): Test for a named access parameter that is a
11261 controlling formal as an additional condition for adding an
11262 accessibility level formal. This can occur in the subp type created for
11263 dispatching calls in Expand_Dispatching_Call, and allows calling
11264 Create_Extra_Formals from that procedure rather than special-casing the
11265 extra formals there.
11266 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
11267 when the function has a controlling result.
11268 (Check_Returns): Add much more knowledge of the optimization of local
11269 raise statements to gotos, to retain proper warnings in this case.
11270 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
11271 nodes when looking for last statement.
11272
11273 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
11274 class-wide types visible through limited with clauses.
11275 (Add_One_Interp): If the operands are anonymous access types, the
11276 predefined operator on universal_access is immediately visibles
11277 (Find_Unique_Type): Handle anonymous access to subprogram types just as
11278 other anonymous access types.
11279 (Disambiguate): Take into account CIL convention.
11280 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
11281
112822007-06-06 Robert Dewar <dewar@adacore.com>
11283
11284 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
11285 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
11286 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
11287 Fix lower bound of tables.
11288 Add rep clauses.
11289
11290 * nlists.adb: Ditto.
11291 (Prev_Node, Next_Node): Change index type to Int so that it properly
11292 covers the range First_Node_Id - 1 up.
11293
112942007-06-06 Javier Miranda <miranda@adacore.com>
11295 Ed Schonberg <schonberg@adacore.com>
11296 Bob Duff <duff@adacore.com>
11297 Hristian Kirtchev <kirtchev@adacore.com>
11298
11299 * exp_aggr.ads, exp_aggr.adb:
11300 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
11301 in extension aggregates.
11302 (Flatten): Other conditions being met, an aggregate is static if the
11303 low bound given by component associations is different from the low
11304 bound of the base index type.
11305 (Packed_Array_Aggregate_Handled): If the component type is itself a
11306 packed array or record, the front-end must expand into assignments.
11307 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
11308 Init_Pr, instead of Ancestor_Is_Expression.
11309 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
11310 coextension chain root, either generate a list controller or use the
11311 already existing one.
11312 (Static_Array_Aggregate): New procedure to construct a positional
11313 aggregate that can be handled by the backend, when all bounds and
11314 components are compile-time known constants.
11315 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
11316 types covering interface types into assignments.
11317 (Replace_Type): move to Build_Record_Aggr_Code.
11318 (Expand_Record_Aggr_Code): if the target of the aggregate is an
11319 interface type, convert to the definite type of the aggregate itself,
11320 so that needed components are visible.
11321 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
11322 components and the context is an extended return statement do not
11323 create a transient block for it, to prevent premature finalization
11324 before the return is executed.
11325 (Gen_Assign): Do not generate a call to deep adjust routine if the
11326 component type is itself an array of controlled (sub)-components
11327 initialized with an inner aggregate.
11328 (Component_Check): New name for Static_Check. This name is now more
11329 appropriate, and documentation is added which was missing.
11330 (Component_Check): Add test for bit aligned component value
11331 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
11332 Tagged_Comps, name is more appropriate given added function below.
11333 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
11334
113352007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11336 Javier Miranda <miranda@adacore.com>
11337 Robert Dewar <dewar@adacore.com>
11338
11339 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
11340 Terminated: Add unchecked type conversion from System.Address to
11341 System.Tasking.Task_Id when calling the predefined primitive
11342 _disp_get_task_id.
11343 Disable new Ada 05 accessibility check for JVM.NET targets, which
11344 cannot be implemented in a practical way.
11345 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
11346 the sources always references the tag of the actual object. Therefore,
11347 if 'Tag is applied in the sources to class-wide interface objects we
11348 generate code that displaces "this" to reference the base of the object.
11349 (Expand_N_Attribute_Reference, case Size): Return specified size if
11350 known to front end.
11351 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
11352 has code that displaces the pointer of the object to manage interface
11353 types. However this code must not be executed when the prefix is a
11354 subprogram. This bug caused the wrong expansion of the internally
11355 generated assignment that fills the dispatch table when the primitive
11356 is a function returning a class-wide interface type.
11357 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
11358 Set_Attribute_Name for Name_Unaligned_Valid.
11359
113602007-06-06 Ed Schonberg <schonberg@adacore.com>
11361 Gary Dismukes <dismukes@adacore.com>
11362
11363 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
11364 If the initialization is the equivalent aggregate of the initialization
11365 procedure of the type, do not remove it.
11366 (Expand_N_Attribute_Definition_Clause): Exclude access variables
11367 initialized to null from having their expression reset to empty and
11368 note this exception in the comment.
11369
113702007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11371 Robert Dewar <dewar@adacore.com>
11372 Ed Schonberg <schonberg@adacore.com>
11373 Gary Dismukes <dismukes@adacore.com>
11374
11375 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
11376 Add "with" and "use" clauses for Sem_Attr.
11377 (Expand_Current_Value): Do not replace occurences of attribute
11378 references where the prefix must be a simple name.
11379
11380 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
11381 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
11382 Attribute_Requires_Simple_Name_Prefix.
11383 (Name_Modifies_Prefix): Body of new function.
11384 (Requires_Simple_Name_Prefix): Body of new function.
11385 (Resolve_Attribute, case Access): Improve error message for case of
11386 mismatched conventions.
11387 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
11388 incomplete type.
11389 (Analyze_Attribute, case 'Access): If the type of the prefix is a
11390 constrained subtype for a nominal unconstrained type, use its base type
11391 to check for conformance with the context.
11392 (Resolve_Attribute): Remove test of the access type being associated
11393 with a return statement from condition for performing accessibility
11394 checks on access attributes, since this case is now captured by
11395 Is_Local_Anonymous_Access.
11396 (Analyze_Access_Attribute): Set Address_Taken on entity
11397 (Analyze_Attribute, case Address): Set Address_Taken on entity
11398 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
11399 validating an access attribute whose prefix is a current instance.
11400 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
11401 applied to dispatching operations, if freezing is required then we set
11402 the attribute Has_Delayed_Freeze in the prefix's entity.
11403 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
11404 current scope if access of local subprogram taken
11405 (Analyze_Access_Attribute): Check legality of self-reference even if the
11406 expression comes from source, as when a single component association in
11407 an aggregate has a box association.
11408 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
11409 the prefix if it is a protected operation and the attribute is
11410 Unrestricted_Access.
11411 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
11412 reference to the base type of the context, to force a constraint check
11413 when the context is an access subtype with an explicit constraint.
11414 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
11415 node is rewritten as an interface conversion. leave unanalyzed after
11416 resolution, to ensure that type checking against the context will take
11417 place.
11418
114192007-06-06 Ed Schonberg <schonberg@adacore.com>
11420 Javier Miranda <miranda@adacore.com>
11421 Robert Dewar <dewar@adacore.com>
11422
11423 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
11424 wrapper when the full view of the controlling type of an inherited
11425 function that dispatches on result implements interfaces.
11426 (Expand_N_Object_Declaration): In cases where the type of the
11427 declaration is anonymous access, create finalization list for it.
11428 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
11429 if the object has no explicit initialization, to match description of
11430 functionality of pragam Persistent_BSS.
11431 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
11432 new function to build static aggregates, to replace initialization call
11433 when static initialization is desired.
11434 (Freeze_Type): Generate a list controller for an access type whenever
11435 its designated type has controlled anonymous access discriminants.
11436 (Build_Equivalent_Aggregate): New procedure to compute a static
11437 aggregate to be used as default initialization for composite types,
11438 instead of a generating a call to the initialization procedure for the
11439 type.
11440 (Build_Initialization_Call): When available, replace a call to the
11441 initialization procedure with a copy of the equivalent static aggregate
11442 for the type.
11443 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
11444 declarations for objects of a class-wide interface type, rather than
11445 just identifiers, to prevent visibility problems.
11446 (Expand_N_Object_Declaration): When expanding the declaration for an
11447 object of a class-wide interface type, preserve the homonym chain of
11448 the original entity before exchanging it with that of the generated
11449 renaming declaration.
11450 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
11451 active, because there is no way to handle the exception.
11452 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
11453 to do a minimum decoration of the Access_Disp_Table list.
11454 (Expand_Record_Controller): Avoid the addition of the controller between
11455 the component containing the tag of a secondary dispatch table and its
11456 adjacent component that stores the offset to the base of the object.
11457 This latter component is only generated when the parent type has
11458 discriminants ---documented in Add_Interface_Tag_Components).
11459 (Apply_Array_Size_Check): Removed, no longer needed.
11460 (Expand_N_Full_Type_Declaration): If the type has anonymous access
11461 components, create a Master_Entity for it only if it contains tasks.
11462 (Build_Init_Procedure): Suppress the tag assignment compiling under
11463 no run-time mode.
11464 (Freeze_Record_Type): Remove code associated with creation of dispatch
11465 table.
11466 (Init_Secondary_Tags): Update type of actuals when generating calls to
11467 Ada.Tags.Set_Offset_To_Top
11468 (Stream_Operation_OK): Disable use of streams compiling under no
11469 run-time mode
11470 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
11471 if Has_Init_Expression set.
11472 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
11473 Register_Primitive, which provides the same functionality.
11474 (Requires_Init_Proc): Return false in case of interface types.
11475 (Add_Secondary_Tables): Use the new attribute Related_Interface to
11476 cleanup the code.
11477 (Predefined_Primitive_Freeze): Do not assume that an internal entity
11478 is always associated with a predefined primitive because the internal
11479 entities associated with interface types are not predefined primitives.
11480 Therefore, the call to Is_Internal is replaced by a call to the
11481 function Is_Predefined_Dispatching_Operation.
11482 (Make_Eq_If): When generating the list of comparisons for the
11483 components of a given variant, omit the controller component that is
11484 present if the variant has controlled components.
11485
114862007-06-06 Javier Miranda <miranda@adacore.com>
11487 Hristian Kirtchev <kirtchev@adacore.com>
11488 Bob Duff <duff@adacore.com>
11489
11490 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
11491 handle the creation of finalization lists and calls for nested
11492 coextensions when the root of the chains is part of a return statement.
11493 (Inside_A_Return_Statement): New function inside Complete_Coextension_
11494 Finalization.
11495 (Expand_Record_Equality): Skip components that are interface types.
11496 (Displace_Allocator_Pointer): Add missing support for interface subtypes
11497 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
11498 with Rewrite_Coextension. Change the condition for detecting coextension
11499 root nodes.
11500 (Is_Local_Access_Discriminant): Removed.
11501 (Rewrite_Coextension): New routine which rewrites a static coextension
11502 as a temporary and uses its unrestricted access in the construction of
11503 the outer object.
11504 (Complete_Coextension_Finalization): New routine. Generate finalization
11505 attachment calls to all delayed coextensions.
11506 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
11507 the allocator is not a coextension itself and has delayed coextensions.
11508 If the current allocator is controlled, but also a coextension, delay
11509 the generation of the finalization attachment call.
11510 Rename local variable "Node" to "Nod" in order to avoid confusion with
11511 "Elists.Node".
11512 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
11513 limited types that are not inherently limited. Such an allocator is
11514 illegal, but is generated by the expander for a return statement, to
11515 copy the result onto the secondary stack. This is the only case where a
11516 limited object can be copied. Generate code to displace the pointer
11517 to the object if the qualified expression is a class-wide interface
11518 object. Such displacement was missing and hence the copy of the object
11519 was wrong.
11520 (Apply_Accessibility_Check): Handle allocated objects initialized in
11521 place.
11522 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
11523 and Expand_Allocator_Expression. Allocating class-wide interface objects
11524 this routine displaces the pointer to the allocated object to reference
11525 the component referencing the corresponding secondary dispatch table.
11526 Expand_Allocator_Expression): Add missing support to allocate class-wide
11527 interface objects initialized with a qualified expression.
11528 (Get_Allocator_Final_List): Test for an anonymous access type that is a
11529 function result type, and use the finalization list associated with the
11530 function scope in that case (such an anonymous type should not be
11531 treated like an access parameter's type).
11532
115332007-06-06 Ed Schonberg <schonberg@adacore.com>
11534 Gary Dismukes <dismukes@adacore.com>
11535 Javier Miranda <miranda@adacore.com>
11536
11537 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
11538 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
11539 required exception handler.
11540 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
11541 properly the case of a function whose return type is a limited
11542 class-wide interface type. Modify the code of the accessibility
11543 check to handle class-wide interface objects. In this case we need to
11544 displace "this" to reference the primary dispatch table to get access
11545 to the TSD of the object (to evaluate its accessibility level).
11546 (Expand_N_Extended_Return_Statement): Test for a tagged result type
11547 rather than a controlling result as one of the conditions for
11548 generating tests of the implicit BIP_Alloc_Form formal. The
11549 initialization assignment is also handled according to whether the
11550 result is tagged instead of controlling.
11551 In the case where the init assignment is inserted in the "then" part of
11552 the allocation conditional, rewrite the target to be a dereference of
11553 the implicit BIP_Object_Access formal.
11554 If the returned value is unconstrained and created on the secondary
11555 stack, mark the enclosing block and function so that the secondary
11556 stack is not reclaimed on return.
11557 Treat returns from functions with controlling results similarly to
11558 returns from functions with unconstrained result subtypes.
11559 If the object returned is unconstrained, and an allocator must be
11560 created for it, analyze the allocator once the block for the extended
11561 return is installed, to ensure that finalizable components
11562 of the expression use the proper finalization list. Guard the call to
11563 Move_Final_List with a check that there is something to finalize.
11564 (Make_Tag_Ctrl_Assignment): Use "old" handling
11565 of controlled type assignment for virtual machines, since new code uses
11566 unsupported features (such as direct access to bytes in memory).
11567
115682007-06-06 Gary Dismukes <dismukes@adacore.com>
11569 Ed Schonberg <schonberg@adacore.com>
11570
11571 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
11572 accessibility actual, check for the case of an aliased object that has
11573 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
11574 we fall into processing for the attribute rather than the name of the
11575 object.
11576 (Expand_Inline_Call): If an actual is a literal, and the corresponding
11577 formal has its address taken in the body, create a temporary to capture
11578 value. If the return type is a limited interface, do not treat the
11579 return value as Controlled.
11580 (Is_In_Place_Function): If the return type is a limited interface,
11581 treat as returning in place. The actual returned object may not always
11582 be limited, but the caller has to assume that it is returned in place.
11583 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
11584 context of an allocator, use the correct finalization chain (that is,
11585 the chain belonging to the access type, rather than the chain belonging
11586 to the current scope).
11587 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
11588 result type rather than a controlling result as a precondition for
11589 adding an allocation form actual to a build-in-place call.
11590 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
11591 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
11592 primitive in the dispatch tables. This work is now done by Make_DT when
11593 the type is frozen.
11594 (Register_Predefined_DT_Entry): Removed.
11595 (Add_Return): If end label is not present, use sloc of last statement
11596 for generated return statement in procedure, for better gdb behavior
11597 on expanded code.
11598 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
11599 object address nodes to ensure proper processing by routines like
11600 Insert_After*.
11601 (Expand_Call): Fix generation of validity check for parameter
11602 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
11603 the allocation form parameter if the result subtype is constrained,
11604 except when the function has a controlling result.
11605 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
11606 rather than Is_Controlled and Has_Controlled_Component, since we want to
11607 include class-wide result types in this treatment. Also test for a
11608 controlling result, since that also requires passing a finalization
11609 list.
11610 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
11611 even when the result subtype is constrained, to handle calls involving
11612 controlling results.
11613 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
11614 is now called even when the result subtype is constrained, to handle
11615 calls involving controlling results.
11616 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
11617 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
11618 now performs the test).
11619 (Make_Build_In_Place_Call_In_Object_Declaration):
11620 Add_Alloc_Form_Actual_* is now called even when the result subtype is
11621 constrained, to handle calls involving controlling results.
11622 (Add_Return): Accomodate rewritten pattern from local raise to goto
11623 transformation, so that we still recognize an transfer statement
11624 and do the right thing here in that case.
11625 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
11626 and end of subprogram code.
11627 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
11628 support for primitives that are functions (without formals) with a
11629 controlling result.
11630 (Inherited_From_Formal): If the actual subtype has not generic parent
11631 type, it is not an actual for a formal derived type, and there is no
11632 operation to inherit from the formal.
11633
116342007-06-06 Ed Schonberg <schonberg@adacore.com>
11635 Thomas Quinot <quinot@adacore.com>
11636
11637 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
11638 inserted cleanup code appropriately for GDB use.
11639 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
11640 exception handler for Deep_Adjust or Deep_Finalize.
11641 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
11642 Raise_From_Controlled_Operation is available, use a call to that
11643 subprogram instead of a plain "raise Program_Error" node to raise
11644 Program_Error if an exception is propagated from an Adjust or Finalize
11645 operation.
11646 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
11647 appears in the optional statement list of a triggering alternative, the
11648 scope actions can be inserted directly there, and not in the list that
11649 includes the asynchronous select itself.
11650
116512007-06-06 Ed Schonberg <schonberg@adacore.com>
11652 Robert Dewar <dewar@adacore.com>
11653 Hristian Kirtchev <kirtchev@adacore.com>
11654
11655 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
11656 generated exception handler appropriately when debugging generated code.
11657 Deal properly with No_Exception_Propagation restriction mode.
11658 (Expand_N_Abort_Statement): Add an unchecked type conversion from
11659 System.Address to System.Tasking.Task_Id when processing the result of
11660 the predefined primitive _disp_get_task_id.
11661 (Expand_N_Asynchronous_Select): Clarify comment.
11662 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
11663 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
11664 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
11665 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
11666 privals and for generated call to Complete_Entry_Body, for better gdb
11667 behavior.
11668 (Copy_Result_Type): Utility to construct a parameter and result profile
11669 for protected functions whose return type is an anonymous access to
11670 subprogram.
11671 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
11672 call the above.
11673 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
11674 point when the local-raise-to-goto transformation has taken place.
11675
116762007-06-06 Javier Miranda <miranda@adacore.com>
11677 Nicolas Setton <setton@adacore.com>
11678
11679 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
11680 functionality when the backend is generating code.
11681 Otherwise any serious error
11682 reported by the backend calling the frontend routine Error_Msg
11683 changes the Compilation_Mode to Check_Semantics, disables the
11684 functionality of this routine and causes the generation of
11685 spureous additional errors.
11686
11687 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
11688 debugging information now generated by the compiler for fat-pointer
11689 types.
11690 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
11691 DWARF2/3.
11692 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
11693
116942007-06-06 Thomas Quinot <quinot@adacore.com>
11695
11696 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
11697 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11698 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11699 For a remote call to a function with a classwide return type, apply an
11700 E.4(18) check to the returned value.
11701 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
11702 stream attributes of the designated type of an RACW, as they are not
11703 dispatching primitive operations.
11704
117052007-06-06 Geert Bosch <bosch@adacore.com>
11706
11707 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
11708 negative literal
11709 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
11710 positive
11711 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
11712 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
11713 positive
11714 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
11715
117162007-06-06 Javier Miranda <miranda@adacore.com>
11717
11718 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
11719 attribute compiling package Ada.Tags under No_Run_Time_Mode.
11720
117212007-06-06 Javier Miranda <miranda@adacore.com>
11722
11723 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
11724 deallocation of class-wide interface objects.
11725 (Expand_Dispatching_Constructor_Call): Take into account that if the
11726 result of the dispatching constructor is an interface type, the
11727 function returns a class-wide interface type; otherwise the returned
11728 object would be actual. The frontend previously accepted returning
11729 interface types because Expand_Interface_Actuals silently performed
11730 the management of the returned type "as if" it were a class-wide
11731 interface type.
11732 (Expand_Dispatching_Constructor_Call): Replace call to
11733 Make_DT_Access_Action by direct call to Make_Function_Call.
11734
117352007-06-06 Robert Dewar <dewar@adacore.com>
11736 Ed Schonberg <schonberg@adacore.com>
11737
11738 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
11739 compute masking constant, since we now set Esize properly to the
11740 underlying size.
11741 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
11742 to match the alignment.
11743 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
11744 packed arrays of 8 bits or less.
11745
11746 * freeze.adb (Freeze_Entity): When freezing the formals of a
11747 subprogram, freeze the designated type of a parameter of an access type
11748 only if it is an access parameter.
11749 Increase size of C convention enumeration object
11750 (Freeze_Entity, array type case): Make sure Esize value is properly
11751 adjusted for the alignment if it is known.
11752 (Freeze_Entity, array type case): When checking bit packed arrays for
11753 the size being incorrect, check RM_Size, not Esize.
11754 (Freeze_Record_Type): Check for bad discriminated record convention
11755 (In_Exp_Body): Return true if the body is generated for a subprogram
11756 renaming, either an attribute renaming or a renaming as body.
11757 (Check_Itype): If the designated type of an anonymous access component
11758 is a non-protected subprogram type, indicate that it is frozen, to
11759 prevent out-of-scope freeze node at some subsequent call.
11760 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
11761 only if the subprogram is neither imported nor exported, as well as the
11762 NCA descriptor class if the subprogram is exported.
11763
117642007-06-06 Ed Schonberg <schonberg@adacore.com>
11765 Arnaud Charlet <charlet@adacore.com>
11766 Robert Dewar <dewar@adacore.com>
11767 Gary Dismukes <dismukes@adacore.com>
11768
11769 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
11770 default initialization on an imported object, when there is no
11771 initialization call generated for it.
11772 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
11773 restriction
11774
11775 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
11776 Static_Elaboration_Desired.
11777 Remove pragma Thread_Body.
11778 Implement a new pragma No_Body
11779 Removes the Explicit_Overriding pragma
11780 Remove Optional_Overriding pragma
11781 (Prag): Deal with Universal_Aliasing.
11782 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
11783 Pragma_CIL_Constructor): New names.
11784
11785 * sem_cat.adb (Validate_Object_Declaration): An initialization that
11786 uses the equivalent aggregate of a type must be treated as an implicit
11787 initialization.
11788 (Get_Categorization): Check a unit for pragma Preelaborate only if it
11789 has none of the other categories.
11790 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
11791 to apply Import to an object renaming declaration.
11792
11793 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
11794 from a C++ class should be declared as limited and that it will be
11795 considererd limited.
11796 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
11797 should be declared as limited and that it will be considererd limited.
11798 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
11799 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
11800 (Analyze_Pragma): Deal with Universal_Aliasing.
11801 (Sig_Flags): Likewise.
11802 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
11803 (Overflow_Checks_Unsuppressed): New flag.
11804 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11805 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
11806 case of JVM or .NET targets, and compiling user code.
11807 Add debugging convenience routine rv
11808
118092007-06-06 Robert Dewar <dewar@adacore.com>
11810
11811 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
11812 are interface type.
11813 (Build_Elementary_Input_Call): For floating-point use right type in the
11814 absence of strange size or stream size clauses.
11815 (Build_Elementary_Write_Call): Same fix
11816 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
11817 set to value that does not match base type size.
11818
118192007-06-06 Ed Schonberg <schonberg@adacore.com>
11820
11821 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
11822 object of a limited type can be initialized with a call to a function
11823 that returns in place. If the limited type has unknown discriminants,
11824 and the underlying type is a constrained composite type, build an actual
11825 subtype from the function call, as is done for private types.
11826 (Side_Effect_Free): An expression that is the renaming of an object or
11827 whose prefix is the renaming of a object, is not side-effect free
11828 because it may be assigned through the renaming and its value must be
11829 captured in a temporary.
11830 (Has_Controlled_Coextensions): New routine.
11831 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
11832 as is done for other limited types.
11833 (Non_Limited_Designated_Type): new predicate.
11834 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
11835 objects.
11836 Remove all handling of with_type clauses.
11837
11838 * par-ch10.adb: Remove all handling of with_type clauses.
11839
11840 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
11841 checksum if the main source could not be parsed.
11842 (Loat_Unit): When processing a child unit, determine properly whether
11843 the parent unit is a renaming when the parent is itself a child unit.
11844 Remove handling of with_type clauses.
11845
11846 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
11847 (Set_Is_Static_Coextension): New procedure.
11848 (Has_Local_Raise): New function
11849 (Set_Has_Local_Raise): New procedure
11850 (Renaming_Exception): New field
11851 (Has_Init_Expression): New flag
11852 (Delay_Finalize_Attach): Remove because flag is obsolete.
11853 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
11854 Remove all handling of with_type clauses.
11855 (Exception_Junk): Can now be set in N_Block_Statement
11856
118572007-06-06 Vincent Celier <celier@adacore.com>
11858 Robert Dewar <dewar@adacore.com>
11859
11860 * frontend.adb (Frontend): Return immediately if the main source could
11861 not be parsed, because of preprocessing errors.
11862
11863 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
11864 (Gnat1drv): Exit with errors if the main source could not be parsed,
11865 because of preprocessing errors.
11866 (Check_Rep_Info): New procedure
11867
118682007-06-06 Robert Dewar <dewar@adacore.com>
11869
11870 * g-hesorg.ads, g-heasor.ads,
11871 g-busorg.ads, g-bubsor.ads: Update documentation
11872 GNAT.Heap/Bubble_Sort_G is now pure
11873
118742007-06-06 Robert Dewar <dewar@adacore.com>
11875
11876 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
11877
118782007-06-06 Robert Dewar <dewar@adacore.com>
11879 Ed Schonberg <schonberg@adacore.com>
11880
11881 * g-comlin.ads, g-comlin.adb:
11882 Add new warning for renaming of function return objects
11883
11884 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
11885 (Tree_Read): Use size of object instead of type'object_size, since the
11886 latter is incorrect for packed array types.
11887 (Tree_Write): Same fix
11888
11889 * opt.ads: Add new warning for renaming of function return objects
11890 (Generating_Code): New boolean variable used to indicate that the
11891 frontend as finished its work and has called the backend to process
11892 the tree and generate the object file.
11893 (GCC_Version): Is now private
11894 (Static_Dispatch_Tables): New constant declaration.
11895 (Overflow_Checks_Unsuppressed): New flag.
11896 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
11897 (List_Closure): New flag for gnatbind (-R)
11898 Zero_Formatting: New flag for gnatbind (-Z)
11899 (Special_Exception_Package_Used): New flag.
11900 (Warn_On_Unrepped_Components): New flag.
11901
11902 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
11903 unit is a compilation unit, rather than relying on its scope, so that
11904 Standard can be renamed.
11905 (Analyze_Object_Renaming): Add new warning for renaming of function
11906 return objects.
11907 Also reject attempt to rename function return object in Ada 83 mode.
11908 (Attribute_Renaming): In case of tagged types, add the body of the
11909 generated function to the freezing actions of the type.
11910 (Find_Type): A protected type is visible right after the reserved word
11911 "is" is encountered in its type declaration. Set the entity and type
11912 rather than emitting an error message.
11913 (New_Scope): Properly propagate Discard_Names to inner scopes
11914 (Check_Nested_Access): New procedure.
11915 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
11916 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
11917
11918 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
11919 Add new warning for renaming of function return objects
11920 (Check_References): Suppress warnings for objects whose type or
11921 base type has Warnings suppressed.
11922 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
11923 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
11924
119252007-06-06 Vincent Celier <celier@adacore.com>
11926 Emmanuel Briot <briot@adacore.com>
11927 Olivier Hainque <hainque@adacore.com>
11928
11929 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
11930 absolute value of Header.Block_Size when displaying the freed physical
11931 memory in traces.
11932 (Allocate): Compute Storage_Address using Integer_Address, not
11933 Storage_Offset, because the range of Storage_Offset may not be large
11934 enough.
11935 (Configure): New parameter Low_Level_Traces
11936 (Allocate, Deallocation, Free_Physically): Added low-level traces
11937 (Configure): new parameter Errors_To_Stdout.
11938 (Output_File): new subprogram
11939 (Deallocate, Dereference): Send error messages to the proper stream
11940 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
11941 documented. Previous code would send it to the current output file
11942 defined in GNAT.IO, which might not be stdout
11943 (Is_Valid): Adjust comment to mention that a positive reply means that
11944 Header_Of may be used to retrieve the allocation header associated with
11945 the subprogram Storage address argument. Return False early if this
11946 address argument is misaligned.
11947
119482007-06-06 Vincent Celier <celier@adacore.com>
11949
11950 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
11951 switch -P
11952 (ASIS_Main): New global variable
11953 (Get_Closure): New procedure
11954 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
11955 check, metric or pretty. Call Get_Closure in this case.
11956 (Check_Files): For GNAT LIST, check all sources of all projects when
11957 All_Projects is True.
11958 (GNATCmd): Accept -U for GNAT LIST
11959
119602007-06-06 Vincent Celier <celier@adacore.com>
11961
11962 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
11963 has been specified
11964 Correct error message when invocation of the linker fails
11965 Add explicit size clause for the C imported variables
11966 Object_List_File_Supported and Using_GNU_Linker to emphasize that
11967 we expect char size.
11968 Read target parameters earlier, since this is needed to set
11969 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
11970 targets.
11971
119722007-06-06 Vincent Celier <celier@adacore.com>
11973
11974 * gnatls.adb:
11975 Add 3 spaces before the default project directory when displaying
11976 the project search path.
11977 Add new command line switch '-l' to display license information.
11978
119792007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
11980
11981 * gmem.c: Add support for timestamps on memory operations.
11982
11983 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
11984 operations (not used currently, just foundation for future
11985 enhancements). Add possibility to perform full dump of gmem.out file.
11986 (Print_Back_Traces): Declare accesses to root arrays constants since
11987 they aren't modified.
11988 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
11989
119902007-06-06 Vincent Celier <celier@adacore.com>
11991
11992 * gnatsym.adb: Update Copyright notice
11993 (Parse_Cmd_Line): Accept new switch -D
11994 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
11995 file.
11996
11997 * prj.ads (Policy): New policy Direct
11998 (Yes_No_Unknown): New enumeration type
11999 (Project_Data): New component Libgnarl_Needed
12000
12001 * prj-nmsc.adb (Check_For_Source): When recording a source file make
12002 use the untouched pathname casing.
12003 (Get_Directories): Ensure that the Display_Exec_Directory is using the
12004 proper casing on non case-sensitive platforms like Windows.
12005 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
12006 on all platforms, as it is not possible to know which one is allowed
12007 before processing the project files.
12008 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
12009 specified when symbol policy is Direct. Check that when there is a
12010 symbol file defined (either by default or with attribute
12011 Library_Symbol_File) it is not the same as the reference symbol file.
12012 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
12013 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
12014 extending projects.
12015 (Record_Ada_Source): Record a source that has been locally removed in an
12016 imported project.
12017
12018 * symbols.ads (Policy): New policy Direct
12019
12020 * symbols-vms.adb (Initialize): Take new policy Direct in case
12021 statement
12022
120232007-06-06 Vincent Celier <celier@adacore.com>
12024
12025 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
12026 Correct obvious bug (return Dir; instead of return Directory;).
12027 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
12028
120292007-06-06 Thomas Quinot <quinot@adacore.com>
12030
12031 * g-pehage.adb (Produce): Open output files in Binary mode, so that
12032 they have UNIX line endings (LF only) even on Windows, and thus pass
12033 all GNAT style checks.
12034
120352007-06-06 Emmanuel Briot <briot@adacore.com>
12036
12037 * g-regpat.adb (Quote): Fix improper quoting of '.'
12038
120392007-06-06 Thomas Quinot <quinot@adacore.com>
12040
12041 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
12042 default, set False on a per-runtime basis.
12043 (Need_Netdb_Buffer): New constant.
12044
12045 * g-socket.ads, g-socket.adb: Import new package
12046 GNAT.Sockets.Thin.Task_Safe_NetDB.
12047 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
12048 binding to obtain proper message.
12049 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
12050 Replace various occurrences of Arry (Arry'First)'Address with the
12051 equivalent Arry'Address (GNAT always follows implementation advice from
12052 13.3(14)).
12053 (Get_Host_By_Address, Get_Host_By_Name,
12054 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
12055 instead, rely on platform-specific task safe netdb operations provided
12056 by g-socthi.
12057
12058 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
12059 parameter Process_Blocking_IO.
12060 (Host_Error_Messages): Add stub body.
12061 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
12062 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
12063 Safe_Getservbyport): Move functions into new child package
12064 Task_Safe_NetDB.
12065 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
12066 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
12067 (In_Addr): Add alignment clause.
12068
120692007-06-06 Robert Dewar <dewar@adacore.com>
12070
12071 * g-trasym.ads, g-traceb.ads: Update list of supported targets
12072 Add note about symbolic traceback
12073
120742007-06-06 Pascal Obry <obry@adacore.com>
12075
12076 * hostparm.ads (Normalized_CWD): Use the host directory separator
12077 instead of the hardcoded forward slash which is not the proper
12078 character on Windows for example.
12079 (Java_VM): Removed.
12080
120812007-06-06 Vincent Celier <celier@adacore.com>
12082 Arnaud Charlet <charlet@adacore.com>
12083
12084 * a-clrefi.adb, a-clrefi.ads: New files
12085
12086 * impunit.adb: Add s-os_lib in the list of user visible units.
12087 (Non_Imp_File_Names_95): Add a-clrefi to this list
12088 Remove obsolete run-time entries.
12089 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
12090 "a-exetim" -- Ada.Execution_Time
12091 "a-extiti" -- Ada.Execution_Time.Timers
12092
12093 * mlib-prj.ads, mlib-prj.adb
12094 (Build_Library): Use untouched object dir and library dir. At the
12095 same time makes sure that the checks are done using the canonical
12096 form. Removes hard-coded directory separator and use the proper host
12097 one instead.
12098 (Process_Project): Do not look in object directory to check if libgnarl
12099 is needed for a library, if there is no object directory.
12100 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
12101 linking.
12102 (Build_Library): When invoking gnatbind, use a response file if the
12103 total size of the arguments is too large.
12104
12105 * Makefile.rtl: (g-sttsne): New object file.
12106 Add entry for a-clrefi, s-utf_32, System.Exceptions
12107
12108 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
12109 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
12110 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
12111 Change g-string to s-string, g-os_lib to s-os_lib
12112 Change all g-utf_32 references to s-utf_32
12113
121142007-06-06 Tristan Gingold <gingold@adacore.com>
12115 Olivier Hainque <hainque@adacore.com>
12116
12117 * init.c: Do not adjust IP of an imported VMS exception of ia64.
12118 LIB$STOP is called to raise an exception and the IP of the exception
12119 is the instruction right after the call.
12120 (__gnat_adjust_context_for_raise, AIX): Implement.
12121 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
12122 adjust_context_for_raise before Raise_From_Signal_Hanler.
12123 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
12124 siginfo is passed to the handler, necessary to let the zcx propagation
12125 engine unwind past it.
12126
121272007-06-06 Olivier Hainque <hainque@adacore.com>
12128
12129 * initialize.c (__gnat_initialize for vxworks): Update documentation
12130 on the ZCX support, using different sets of crtstuff objects than with
12131 GCC 3.4.
12132
121332007-06-06 Robert Dewar <dewar@adacore.com>
12134
12135 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
12136 spec from body
12137 (Layout_Type): Fix recomputation of size from alignment.
12138
121392007-06-06 Ed Schonberg <schonberg@adacore.com>
12140 Javier Miranda <miranda@adacore.com>
12141
12142 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
12143 association in an instance.
12144 (Copy_Generic_Node): If the node is a string literal, no need to copy
12145 its descendants.
12146 (Is_Generic_Formal): For a formal subprogram, the declaration is the
12147 grandparent of the entity.
12148 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
12149 to simplify handling of formal interfaces that derive from other formal
12150 interfaces.
12151 (Instantiate_Subprogram_Body): The defining unit name of the body of
12152 the instance should be a defining identifier.
12153 (Install_Formal_Packages): make global to the package, for use in
12154 instantiations of child units.
12155 (Analyze_Package_Instantiation): Do not attempt to set information on an
12156 enclosing master of an entry when expansion is disabled.
12157 (Instantiate_Type): If the actual is a tagged synchronized type and the
12158 generic ancestor is an interface, create a generic actual for the
12159 corresponding record.
12160 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
12161 declaration, to ensure that the interface list is processed correctly.
12162 (Inline_Instance_Body): If enclosing scope is an instance body, remove
12163 its entities from visibiility as well.
12164 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
12165 given with a named association, analyze the expression only, not the
12166 discriminant association itself.
12167 (Reset_Entity): If the analysis of a selected component is transformed
12168 into an expanded name in the prefix of a call with parameters, do not
12169 transform the original node into an expanded name, to prevent visibility
12170 errors in the case of nested generics.
12171 (Check_Private_View): For an array type, check whether the index types
12172 may need exchanging.
12173
121742007-06-06 Arnaud Charlet <charlet@adacore.com>
12175 Vincent Celier <celier@adacore.com>
12176
12177 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
12178 since both are separated.
12179 Add support for imported CIL packages.
12180 Add further special handling of "value_type" for CIL.
12181 Add special handling of pragma Import for CIL.
12182
12183 * make.ads, make.adb: When switch -eS is used, direct all outputs to
12184 standard output instead of standard error, except errors.
12185 (Absolute_Path): Use untouched casing for the parent directory.
12186 (Add_Library_Search_Dir): Use the untouched directory name.
12187 (Add_Source_Search_Dir): Idem.
12188 (Change_To_Object_Directory): Update output to use proper casing.
12189 (Create_Binder_Mapping_File): Use the untouched filename to set
12190 ALI_Name.
12191 (Gnatmake): Use untouched library and executable directory names.
12192 (Insert_Project_Sources): Use untouched filename for spec and body.
12193 (Is_In_Object_Directory): Use untouched object directory.
12194 (Mark_Directory): Idem.
12195 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
12196 contains the non-canonical filename in all cases.
12197 (Change_To_Object_Directory): In verbose mode, display the name of the
12198 object directory we're changing to.
12199 (Compile_Sources): Make sure, when a project file is used, to compile
12200 the body of the unit, when there is one, even when only the spec is
12201 recorded in an ALI file.
12202 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
12203 spec to the body.
12204 (Report_Compilation_Failed): New procedure
12205 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
12206 procedures moved from the spec to the body.
12207 (Extract_Failure): Removed, not used
12208 Replace explicit raises of exception Bind_Failed and Link_Failed with
12209 calls to Make_Failed with the proper message.
12210 Replace explicit raises of exception Compilation_Failed with calls to
12211 procedure Report_Compilation_Failed.
12212 (Initialize): Create mapping files unconditionally when using project
12213 files.
12214
12215 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
12216 Pragma_CIL_Constructor): New names.
12217
12218 * targparm.ads, targparm.adb
12219 (Compiler_System_Version): Removed, no longer used.
12220 (Get_Target_Parameters): Relax checks on system.ads validity. Add
12221 handling of two new system flags: JVM and CLI.
12222
122232007-06-06 Jose Ruiz <ruiz@adacore.com>
12224 Arnaud Charlet <charlet@adacore.com>
12225
12226 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
12227 time, use the default s-interr body that provides interrupt support
12228 based on signals.
12229 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
12230 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
12231 g-soccon.ads, and s-taprop.adb for the marte run time.
12232 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
12233 timers are supported on marte.
12234 (EH_MECHANISM for marte): Do not use ZCX.
12235 (THREADSLIB for marte): Use -lmarte.
12236 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
12237 Add mlib-tgt-specific.o to gnatmake objects
12238 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
12239 longer of MLib.Tgt.
12240 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
12241 6, either kernel or rtp, use a specialized version of s-osinte.ads.
12242
122432007-06-06 Pascal Obry <obry@adacore.com>
12244
12245 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
12246
122472007-06-06 Vincent Celier <celier@adacore.com>
12248
12249 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
12250 separator, use instead the proper host directory separator.
12251 (Copy_ALI_Files): Make sure that an already existing ALI file in the
12252 ALI copy dir is writable, before doing the copy.
12253
12254 * mlib-utl.ads, mlib-utl.adb:
12255 (Gcc): If length of command line is too long, put the list of object
12256 files in a response file, if this is supported by the platform.
12257 (Ar): If invocation of the archive builder is allowed to be done in
12258 chunks and building it in one shot would go above an OS dependent
12259 limit on the number of characters on the command line, build the archive
12260 in chunks.
12261
122622007-06-06 Vincent Celier <celier@adacore.com>
12263
12264 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
12265 of specified object file is not equal to base name of source.
12266
122672007-06-06 Javier Miranda <miranda@adacore.com>
12268 Hristian Kirtchev <kirtchev@adacore.com>
12269 Ed Schonberg <schonberg@adacore.com>
12270
12271 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
12272 the full type declaration.
12273 (Analyze_Component_Declaration): Add local variable E to capture the
12274 initialization expression of the declaration. Replace the occurences of
12275 Expression (N) with E.
12276 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
12277 limited interface object with a function call.
12278 (Array_Type_Declaration): If the declaration lacks subtype marks for
12279 indices, create a simple index list to prevent cascaded errors.
12280 (Is_Null_Extension): Ignore internal components created for secondary
12281 tags when checking whether a record extension is a null extension.
12282 (Check_Abstract_Interfaces): Add missing support for interface subtypes
12283 and generic formals.
12284 (Derived_Type_Declaration): Add missing support for interface subtypes
12285 and generic formals.
12286 (Analyze_Object_Declaration): If an initialization expression is
12287 present, traverse its subtree and mark all allocators as static
12288 coextensions.
12289 (Add_Interface_Tag_Component): When looking for components that may be
12290 secondary tags, ignore pragmas that can appear within a record
12291 declaration.
12292 (Check_Abstract_Overriding): an inherited function that dispatches on
12293 result does not need to be overriden if the controlling type is a null
12294 extension.
12295 (Mentions_T): Handle properly a 'class attribute in an anonymous access
12296 component declaration, when the prefix is an expanded name.
12297 (Inherit_Component): If the derivation is for a private extension,
12298 inherited components remain visible and their ekind should not be set
12299 to Void.
12300 (Find_Type_Of_Object): In the case of an access definition, always set
12301 Is_Local_Anonymous_Access. We were previously not marking the anonymous
12302 access type of a return object as a local anonymous type.
12303 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
12304 range with character literal bounds.
12305 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
12306 (Access_Subprogram_Declaration): Indicate that the type declaration
12307 depends on an incomplete type only if the incomplete type is declared
12308 in an open scope.
12309 (Analyze_Subtype_Declaration): Handle properly subtypes of
12310 synchronized types that are tagged, and that may appear as generic
12311 actuals.
12312 (Access_Subprogram_Declaration): An anonymous access to subprogram can
12313 appear as an access discriminant in a private type declaration.
12314 (Add_Interface_Tag_Components): Complete decoration of the component
12315 containing the tag of a secondary dispatch table and the component
12316 containing the offset to the base of the object (this latter component
12317 is only generated when the parent type has discriminants --as documented
12318 in this routine).
12319 (Inherit_Components): Use the new decoration of the tag components to
12320 improve the condition that avoids inheriting the components associated
12321 with secondary tags of the parent.
12322 (Build_Discriminanted_Subtype): Indicate to the backend that the
12323 size of record types associated with dispatch tables is known at
12324 compile time.
12325 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
12326 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
12327 to include task, protected, and synchronized interfaces as limited
12328 interfaces.
12329 (Process_Discriminants): Remove the setting of
12330 Is_Local_Anonymous_Access on the type of (anonymous) access
12331 discriminants of nonlimited types.
12332 (Analyze_Interface_Type_Declaration): Complete the decoration of the
12333 class-wide entity it is is already present. This situation occurs if
12334 the limited-view has been previously built.
12335 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
12336 field.
12337 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
12338 Related_Interface.
12339
123402007-06-06 Ed Schonberg <schonberg@adacore.com>
12341
12342 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
12343 of the type that specify the position of interface tags when the type
12344 inherits discriminated array components from the parent type.
12345 If a component is initialized with a box, check for the presence of a
12346 default expression in its declaration before using its default
12347 initialization procedure.
12348 (Resolve_Record_Aggregate): If a component is box-initialized, and the
12349 component type has a discriminants, create a partial aggregate for it
12350 by copying the discriminants of the component subtype.
12351 Reject attempt to initialize a discriminant with a box.
12352 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
12353 associated with dispatch tables is known at compile time.
12354 (Get_Value): If an association in a record aggregate has a box
12355 association, and the corresponding record component has a default
12356 expression, always copy the default expression, even when the
12357 association has a single choice, in order to create a proper
12358 association for the expanded aggregate.
12359
123602007-06-06 Ed Schonberg <schonberg@adacore.com>
12361 Robert Dewar <dewar@adacore.com>
12362
12363 * par-ch12.adb (P_Generic_Associations): The source position of an
12364 Others association is that of the others keyword, not that of the token
12365 that follows the box.
12366 (P_Formal_Type_Definition): Handle formal access types that carry a
12367 not null indicator.
12368
12369 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
12370 multiple identifier are present, save Scan_State before scanning the
12371 colon, to ensure that separate trees are constructed for each
12372 declaration.
12373 (P_Identifier_Declarations): For object declaration, set new flag
12374 Has_Init_Expression if initialization expression present.
12375 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
12376 Improve NOT NULL error messages
12377
123782007-06-06 Robert Dewar <dewar@adacore.com>
12379
12380 * par-ch4.adb: (P_Name): Recover from literal used as name
12381
123822007-06-06 Vincent Celier <celier@adacore.com>
12383
12384 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
12385 defaulted to False.
12386 In the "not" case, recursive call with Complemented set to True.
12387 Do not allow "or" or "and" operators when Complemented is True.
12388
123892007-06-06 Vincent Celier <celier@adacore.com>
12390
12391 * prj.adb (Project_Empty): Gives default value for new component
12392 Libgnarl_Needed
12393
12394 * prj-attr.ads: Minor reformatting
12395
12396 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
12397 directory using the untouched casing.
12398 (For_All_Source_Dirs): Idem.
12399
12400 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
12401 directories specified with switches -aP.
12402 (Add_Search_Project_Directory): New procedure
12403 (Initialize_Project_Path): Put the directories in table
12404 Search_Directories in the project search path.
12405 (Initialize_Project_Path): For VMS, transform into canonical form the
12406 project path.
12407
124082007-06-06 Arnaud Charlet <charlet@adacore.com>
12409
12410 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
12411 true if configurable run-time or No_Run_Time is set.
12412 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
12413 processing an unit which is not the one being compiled.
12414
124152007-06-06 Arnaud Charlet <charlet@adacore.com>
12416
12417 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
12418 Replace UC by Ada.UC
12419
12420 * s-bitops.adb: Get rid of System.Pure_Exceptions.
12421 Replace UC by Ada.UC
12422
124232007-06-06 Robert Dewar <dewar@adacore.com>
12424
12425 * scng.adb: (Check_End_Of_Line): Deal with very long lines
12426
124272007-06-06 Robert Dewar <dewar@adacore.com>
12428
12429 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
12430 Remove no longer used nodes.
12431
124322007-06-06 Javier Miranda <miranda@adacore.com>
12433 Ed Schonberg <schonberg@adacore.com>
12434 Robert Dewar <dewar@adacore.com>
12435
12436 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
12437 on obsolescent withed unit in case of limited-withed units.
12438 (Analyze_Compilation_Unit): Add guard to code that removed an
12439 instantiation from visibility, to prevent compiler aborts when
12440 instantiation is abandoned early on.
12441 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
12442 current unit being analyzed, and Distinguish local incomplete types
12443 from limited views of types declared elsewhere.
12444 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
12445 to state that the class-wide entity is shared by the limited-view
12446 and the full-view.
12447 (Analyze_With_Clause): Improve placement of flag for case of
12448 unimplemented unit.
12449 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
12450 manner similar to GNAT.Current_Exception. This is a violation of
12451 restriction (No_Exception_Propagation), and also inhibits the
12452 optimization of local raise to goto.
12453 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
12454 and if so set Most_Recent_Exception_Used flag in Opt, and also check
12455 for violation of restriction No_Exception_Propagation.
12456
124572007-06-06 Javier Miranda <miranda@adacore.com>
12458 Hristian Kirtchev <kirtchev@adacore.com>
12459 Gary Dismukes <dismukes@adacore.com>
12460
12461 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
12462 use of entity Exception_Occurrence if it is not available in the
12463 target run-time.
12464
12465 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
12466 concurrent types are declared within an Ada 2005 generic, build their
12467 corresponding record types since they are needed for overriding-related
12468 semantic checks.
12469 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
12470 protected type does not implement a task interface or a nonlimited
12471 interface.
12472 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
12473 type does not implement a protected interface or a nonlimited interface.
12474 (Single_Task_Declaration, Single_Protected_Declaration): use original
12475 entity for variable declaration, to ensure that debugging information
12476 is correcty generated.
12477 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
12478 routines if the expander is not active.
12479 (Analyze_Task_Body): Mark all handlers to stop optimization of local
12480 raise, since special things happen for task exception handlers.
12481
12482 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
12483 concurrent types declared within a generic.
12484 (Check_Dispatching_Operation): Do not emit warning about late interface
12485 operations in the context of an instance.
12486 (Check_Dispatching_Call): Remove restriction against calling a
12487 dispatching operation with a limited controlling result.
12488 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
12489 Register_Interface_DT_Entry by calls to Register_Primitive.
12490 (Check_Dispatching_Formals): Handle properly a function with a
12491 controlling access result.
12492
124932007-06-06 Robert Dewar <dewar@adacore.com>
12494 Arnaud Charlet <charlet@adacore.com>
12495
12496 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
12497 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
12498 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
12499 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
12500 message when using a VM, since this attribute is not supported.
12501 (Analyze_Record_Representation_Clause): Give unrepped component warnings
12502
12503 * usage.adb: Add new warning for renaming of function return objects
12504 Indicate that -gnatwp and -gnatwP concern front-end inlining
12505 Add line for -gnatyg
12506 Add usage information for -gnatw.c/C
12507
125082007-06-06 Robert Dewar <dewar@adacore.com>
12509 Ed Schonberg <schonberg@adacore.com>
12510
12511 * sem_ch5.adb
12512 (Find_Var): Do not consider function call in test for infinite loop
12513 warning if warnings set off for function entity.
12514 (One_Bound): Do not create a temporary for a loop bound if it is a
12515 character literal.
12516 (Analyze_Assignment): Traverse the right hand side of an assignment and
12517 mark all allocators as static coextensions.
12518 (Analyze_Assignment): Exempt assignments involving a dispatching call
12519 to a function with a controlling access result from the check requiring
12520 the target to be class-wide.
12521
125222007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12523 Ed Schonberg <schonberg@adacore.com>
12524 Robert Dewar <dewar@adacore.com>
12525 Javier Miranda <miranda@adacore.com>
12526
12527 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
12528 chain of coextensions when an allocator serves as the root of such a
12529 chain.
12530 (Propagate_Coextensions): Remove the test for the root being an
12531 allocator.
12532 (Resolve_Allocator): Add condition to ensure that all future decoration
12533 occurs on an allocator node. Add processing and cleanup for static
12534 coextensions.
12535 (Valid_Conversion): If the operand type is the limited view of a
12536 class-wide type, use the non-limited view is available to determine
12537 legality of operation.
12538 (Ambiguous_Character): move to spec, for use elsewhere.
12539 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
12540 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
12541 character literals.
12542 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
12543 Do_Division_Check flag explicitly.
12544 (Resolve_Actuals): If the actual is of a synchronized type, and the
12545 formal is of the corresponding record type, this is a call to a
12546 primitive operation of the type, that is declared outside of the type;
12547 the actual must be unchecked-converted to the type of the actual
12548 (Resolve_Call): Kill all current values for any subprogram call if
12549 flag Suppress_Value_Tracking_On_Call is set.
12550 (Resolve_Type_Conversion): Generate error message the the operand
12551 or target of interface conversions come from a limited view.
12552 (Check_Infinite_Recursion): Ignore generated calls
12553 (Check_Allocator_Discrim_Accessibility): New procedure for checking
12554 that an expression that constrains an access discriminant in an
12555 allocator does not denote an object with a deeper level than the
12556 allocator's access type.
12557 (Resolve_Allocator): In the case of an allocator initialized by an
12558 aggregate of a discriminated type, check that associations for any
12559 access discriminants satisfy accessibility requirements by calling
12560 Check_Allocator_Discrim_Accessibility.
12561 (Resolve_Equality_Op): Handle comparisons of anonymous access to
12562 subprogram types in the same fashion as other anonymous access types.
12563 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
12564 message that is not a continuation message.
12565 (Resolve_Type_Conversion): Add missing support for conversion to
12566 interface type.
12567 (Resolve_Actuals): Introduce a transient scope around the call if an
12568 actual is a call to a function returning a limited type, because the
12569 resulting value must be finalized after the call.
12570 (Resolve_Actuals): If the call was given in prefix notations, check
12571 whether an implicit 'Access reference or implicit dereference must be
12572 added to make the actual conform to the controlling formal.
12573
125742007-06-06 Robert Dewar <dewar@adacore.com>
12575 Javier Miranda <miranda@adacore.com>
12576
12577 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
12578 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
12579 overriding of an inherited private subprogram now there is no need to
12580 inherit its dispatching slot and reduce the size of the dispatch table.
12581 Set_All_DT_Position now ensures that the same slot is now assigned to
12582 both entities. This is required to statically build the dispatch table.
12583 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
12584 of calling Set_All_DT_Position to re-evaluate the position of the
12585 entries in the dispatch table. Such reevaluation is not desired if
12586 the tagged type is already frozen.
12587
125882007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12589 Gary Dismukes <dismukes@adacore.com>
12590 Robert Dewar <dewar@adacore.com>
12591 Javier Miranda <miranda@adacore.com>
12592
12593 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
12594 reference acts as an lvalue when the attribute name modifies the prefix
12595 (Is_Coextension_Root): New routine.
12596 (Mark_Static_Coextensions): New routine.
12597 (Type_Access_Level): Revise code for checking the level of the
12598 anonymous access type of a return object.
12599 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
12600 (Matches_Prefixed_View_Profile): Remove the no longer necessary
12601 retrieval of the corresponding controlling record type.
12602 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
12603 concurrent types declared within a generic as well as class wide types.
12604 Emit a mode incompatibility error whenever a protected entry or routine
12605 override an interface routine whose first parameter is not of mode
12606 "out", "in out" or access to variable.
12607 (Overrides_Synchronized_Primitive): Rename to
12608 Find_Overridden_Synchronized_Primitive.
12609 (Collect_Interface_Components): New subprogram that collects all the
12610 components of a tagged record containing tags of secondary dispatch
12611 tables.
12612 (Add_Global_Declaration): New procedure
12613 (Abstract_Interface_List): Handle properly the case of a subtype of a
12614 private extension.
12615 (Type_Access_Level): In the case of a type whose parent scope is a
12616 return statement, call Type_Access_Level recursively on the enclosing
12617 function's result type to determine the level of the return object's
12618 type.
12619 (Build_Elaboration_Entity): Build name of elaboration entity from the
12620 scope chain of the entity, rather than the unit name of the file name.
12621 (Check_Nested_Access): New procedure.
12622 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12623 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12624 (Get_Renamed_Entity): Utility routine for performing common operation
12625 of chasing the Renamed_Entity field of an entity.
12626
126272007-06-06 Robert Dewar <dewar@adacore.com>
12628
12629 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
12630 elaboration model
12631 (Check_A_Call): Add check for entry call which was causing blowup
12632
126332007-06-06 Olivier Hainque <hainque@adacore.com>
12634
12635 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
12636 special code on ia64-vms to handle major incompatibilities between the
12637 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
12638 this routine with a very different set of arguments and expectations on
12639 the return value.
12640
126412007-06-06 Thomas Quinot <quinot@adacore.com>
12642
12643 * socket.c (__gnat_close_signalling_fd): New function.
12644 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
12645 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
12646 New supporting functions for task safe Netdb operations.
12647
126482007-06-06 Thomas Quinot <quinot@adacore.com>
12649 Olivier Hainque <hainque@adacore.com>
12650
12651 * a-except-2005.ads, a-except-2005.adb
12652 (Raise_From_Controlled_Operation): New procedure in
12653 (private part of) Ada.Exceptions (standard runtime version). Used to
12654 provide informational exception message when Program_Error is raised as
12655 a result of an Adjust or Finalize operation propagating an exception.
12656 (Rmsg_28): Fix description for E.4(18) check.
12657 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12658 propagation starts, to let debuggers know about the event in a reliable
12659 fashion.
12660 Take the address of E and dereference to make sure it is homed on stack
12661 and prevent the stores from being deleted, necessary for proper
12662 debugger behavior on "break exception" hits.
12663 (Local_Raise): Moved to System.Exceptions
12664
12665 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
12666 exception message from the current occurrence and raise Program_Error
12667 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
12668
126692007-06-06 Jose Ruiz <ruiz@adacore.com>
12670 Arnaud Charlet <charlet@adacore.com>
12671
12672 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
12673 lock, if needed.
12674
12675 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
12676 priority associated to a lock.
12677
12678 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
12679 assertion to take into account case of no abort restriction.
12680 (Initialize_Protection_Entries): Add initialization for the field
12681 New_Ceiling associated to the protected object.
12682 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
12683 needed.
12684
12685 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12686 since this function needs to be set consistently with Update_Exception.
12687
12688 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
12689 since this function needs to be set consistently with Update_Exception.
12690
12691 * s-taskin.ads: Update comments on
12692 Interrupt_Server_Blocked_On_Event_Flag.
12693 (Unbind_Handler): Fix handling of server_task wakeup
12694 (Server_Task): Set self's state so that Unbind_Handler can take
12695 appropriate actions.
12696 (Common_ATCB): Now use a constant from System.Parameters to determine
12697 the max size of the Task_Image field.
12698
12699 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
12700 Initialize_Analyzer function.
12701 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
12702 take into account case of no abort restriction.
12703 ([Vulnerable_]Complete_Master): Modify assertion.
12704
12705 * s-tataat.adb (Finalize): Use the nestable versions of
12706 Defer/Undefer_Abort.
12707
12708 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
12709
12710 * s-tpobop.ads: Update comments.
12711
12712 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
12713 of locking the object manually, to avoid inconsistencies between
12714 Lock/Unlock_Entry assertions.
12715
12716 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
12717 terminating
12718 application and System.Parameters.No_Abort is True.
12719 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
12720 (Unbind_Handler): Fix handling of server_task wakeup
12721 (Server_Task): Set self's state so that Unbind_Handler can take
12722 appropriate actions.
12723
127242007-06-06 Thomas Quinot <quinot@adacore.com>
12725
12726 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
12727 declarations instead of an explicit null body, for conciseness.
12728
127292007-06-06 Robert Dewar <dewar@adacore.com>
12730
12731 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
12732 illegal aggregate and the type is still Any_Composite.
12733 (Subtypes_Statically_Match): Fix problem of empty discriminant list
12734
127352007-06-06 Ed Schonberg <schonberg@adacore.com>
12736
12737 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
12738 to prevent subsequent expansion.
12739
127402007-06-06 Robert Dewar <dewar@adacore.com>
12741
12742 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
12743
127442007-06-06 Ed Schonberg <schonberg@adacore.com>
12745 Robert Dewar <dewar@adacore.com>
12746
12747 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
12748 exceptions.
12749 (Write_Itype): Handle case of string literal subtype, which
12750 comes up in this context.
12751 (Update_Itype): when debugging expanded code, update sloc of itypes
12752 associated with defining_identifiers and ranges, for gdb use.
12753 (Sprint_Node_Actual): Add static keyword to object or exception
12754 declaration output if Is_Statically_Allocated is True.
12755 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
12756 or task body, so that the tree carries the proper Sloc information for
12757 debugging use.
12758 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
12759
127602007-06-06 Arnaud Charlet <charlet@adacore.com>
12761
12762 * s-secsta.adb (Chunk): Ensure this object has a static size known at
12763 compile time, to avoid dynamic memory allocation
12764 (Elaboration code): Only use dynamic memory allocation when needed.
12765
127662007-06-06 Quentin Ochem <ochem@adacore.com>
12767
12768 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
12769 "Overflow_Guard".
12770 (Stack_Analyzer): Added field "Overflow_Guard"
12771 (Task_Result): Added field "Overflow_Guard".
12772 (Index_Str): New constant.
12773 (Task_Name_Str): New constant.
12774 (Actual_Size_Str): New constant.
12775 (Pattern_Array_Element_Size): New constant.
12776 (Get_Usage_Range): New subprogram.
12777 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
12778 Now align the output.
12779 Added comments.
12780 (Initialize): Added value for Overflow_Guard.
12781 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
12782 Update the value of the overflow guard according to the actual
12783 beginning of the pattern array.
12784 (Initialize_Analyzer): Added parameter Overflow_Guard.
12785 Take this parameter into accound when computing the max size.
12786 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
12787 (Report_Result): Removed extra useless procedure.
12788 Updated call to Output_Result.
12789 Moved full computation of the Task_Result here.
12790
127912007-06-06 Thomas Quinot <quinot@adacore.com>
12792
12793 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
12794 Thread_Blocking_IO, always True by default, set False on a per-runtime
12795 basis.
12796 Add Windows-specific constants
12797 Add new constant Need_Netdb_Buffer.
12798 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12799 not, whether to use getXXXbyYYY_r.
12800
12801 * gsocket.h: Add new constant Need_Netdb_Buffer.
12802 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
12803 not, whether to use getXXXbyYYY_r.
12804
128052007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12806
12807 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
12808 than their first call.
12809 Add type Dummy_Communication_Block used in the generation of the pre-
12810 defined dispatching primitive _disp_asynchronous_select.
12811 (Storage_Element): Put Pragma Universal_Aliasing on it.
12812
128132007-06-06 Vincent Celier <celier@adacore.com>
12814
12815 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
12816 function.
12817
12818 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
12819 letter if it is not followed by a '/' or a '\'.
12820 (Windows): New Boolean function
12821
12822 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
12823 Ada 2005.
12824 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
12825 drive letter.
12826 (Containing_Directory): Raise Use_Error when the directory is a root
12827 directory.
12828 (Extension): When returning the result, use a conversion to Result_Type,
12829 not a qualification.
12830
128312007-06-06 Robert Dewar <dewar@adacore.com>
12832
12833 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
12834 (Set_Style_Check_Options): Recognize new -gnatyg style switch
12835
12836 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
12837 Warn_On_Non_Local_Exception to False, to turn off warnings for
12838 No_Exception_Propagation in ZFP runtime.
12839 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
12840 back-ends.
12841 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
12842
128432007-06-06 Vincent Celier <celier@adacore.com>
12844
12845 * switch-b.adb (Scan_Binder_Switches): Add processing for new
12846 switches -R and -Z
12847
12848 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
12849 (Scan_Make_Switches): Recognize new switch -aP
12850
128512007-06-06 Matthew Gingell <gingell@adacore.com>
12852 Jose Ruiz <ruiz@adacore.com>
12853
12854 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
12855 VxWorks task descriptor in the Ada run time, call a C subprogram
12856 (__gnat_get_stack_info) that extracts the required information.
12857
12858 * sysdep.c: Back out temporary lynxos workaround.
12859 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
12860 time the stack information associated to the currently executing task.
12861 Only VxWorks systems require this function.
12862
128632007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12864
12865 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
12866 add the stack bias if the offset is computed from a frame address.
12867 (__gnat_backtrace): Adjust for above change.
12868
128692007-06-06 Thomas Quinot <quinot@adacore.com>
12870
12871 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
12872 PE_Non_Transportable_Actual.
12873 (By_Descriptor_Last): New constant.
12874 (By_Copy_Return): Likewise.
12875
128762007-06-06 Vincent Celier <celier@adacore.com>
12877
12878 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
12879 is.
12880
12881 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
12882 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
12883 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
12884 Add missing comment for /OPTIMIZE=SPACE
12885 Add entry for OPTIMIZE=SPACE
12886 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
12887 Add documentation for new qualifiers corresponding to -gnatw.c/.C
12888
128892007-06-06 Vincent Celier <celier@adacore.com>
12890 Robert Dewar <dewar@adacore.com>
12891
12892 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
12893 -gnatw.C)
12894
12895 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
12896 Document gnatbind switch -a
12897 (case Constructions): Document that variables declarations are allowed
12898 for previously declared variables.
12899 Fix external lib project example
12900 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
12901 Indicate that "#if not X or Y then" is not allowed in input files to
12902 gnatprep.
12903 Document gnatw.x and gnatw.X warning flags
12904 Mention -Winline switch to activate warnings when back-end inlining is
12905 ineffective.
12906 Add gnatcheck rule descriptions
12907 Describe how to use the GNAT driver to call a tool on a closure.
12908 Describe how to run project-wide checks or metrics.
12909 Document gnatbind's -R option
12910 Updated to account for Ada 2005 support
12911
12912 * gnat_rm.texi (Case Construction): Allow variable declarations for
12913 previously declared variables.
12914 (Representation Clauses and Pragmas): Lift restriction on alignment
12915 clauses for record types.
12916 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
12917 Document No_Exception_Propagation restriction
12918 Document No_Body pragma
12919 Updated to account for Ada 2005 support; corrected some typos
12920 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
12921
12922 * gnat-style.texi: Make it clear that we never use mode IN for
12923 procedures or functions
12924
12925 * ug_words: Add entries for -gnatw.x and -gnatw.X
12926 Add entries for -gnatw.c/.C
12927
129282007-06-06 Pascal Obry <obry@adacore.com>
12929 Vincent Celier <celier@adacore.com>
12930
12931 * makegpr.adb (Add_Archive_Path): Use untouched object and library
12932 dirs and library name.
12933 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
12934 comments.
12935 (Build_Library): Idem.
12936 (Compile_Individual_Sources): Idem.
12937 (Compile_Link_With_Gnatmake): Idem.
12938 (Compile_Sources): Idem.
12939 (Get_Imported_Directories): Idem.
12940 (Link_Executables): Idem. Same change for the executable dir.
12941 (Check_Compilation_Needed): C_Source_Path new variable containing
12942 the canonical form of Source_Path to check against the source names
12943 in the dependency file.
12944 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
12945 verbose mode, display the name of the object directory we're changing
12946 to.
12947 (Saved_Switches): New name of table X_Switches
12948 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
12949 (Usage): New line for switch -aP
12950 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
12951 testing if a directory should be added to the search path.
12952
129532007-06-06 Javier Miranda <miranda@adacore.com>
12954
12955 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
12956 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
12957 declaration after freezing point of all its associated tagged types;
12958 otherwise such types are frozen too early.
12959
129602007-06-06 Robert Dewar <dewar@adacore.com>
12961
12962 * a-reatim.adb: Documentation addition
12963
12964 * g-cgideb.adb: Minor code reorganization
12965
12966 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
12967 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
12968 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
12969
12970 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
12971 function. Change name New_Scope to Push_Scope
12972 (Get_Debug_Flag_K): Remove unused obsolete function.
12973
12974 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
12975 Push_Scope.
12976
12977 * makeusg.adb: Update Copyright notice
12978 Add line for switch -aP
12979
12980 * makeusg.adb: Fix wording of some usage messages
12981
12982 * s-assert.adb (Raise_Assert_Failure): Add call to
12983 Debug_Raise_Assert_Failure.
12984
12985 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
12986 (2, Standard'Alignment) for compatibility with AAMP (where alignment
12987 is restricted to 1).
12988
12989 * s-wchjis.adb: Remove use of System.Pure_Exceptions
12990
12991 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
12992 node location to No_Location when we're not debugging the expanded
12993 code.
12994
dbc30a96
AO
129952007-05-22 Alexandre Oliva <aoliva@redhat.com>
12996
12997 * misc.c (enumerate_modes): Consider log2_b to always be one.
12998
ca5ba2a3
RAE
129992007-05-14 Rafael Avila de Espindola <espindola@google.com>
13000
13001 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
13002
d7598e11
PO
130032007-05-02 Pascal Obry <obry@adacore.com>
13004
13005 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
13006 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
13007 encoding support of Stream_IO.
13008 (Write_Unit): Idem.
13009
13010 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
13011 filename and corresponding encoding to match the OS requirement.
13012 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
13013 routine will fail on specific devices like CON: AUX: ...
13014
13015 PR ada/29856: Add missing braces
13016
1be52f61
AP
130172007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
13018
13019 PR ada/31660
13020 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
13021
395a40e0
JH
130222007-04-21 Jan Hubicka <jh@suse.cz>
13023
13024 * misc.c (gnat_expand_body): Don't call target for destructors,
13025 avoid redundant check on syntax errors.
13026
3d95caa4
AP
130272007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
13028
13029 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
13030 instead of checking GIMPLE_STMT_P in chain_next.
13031
ea30850a
AK
130322007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
13033
13034 PR ada/31576
13035 * system-linux-alpha.ads: Disable constant condition warning for the
13036 Default_Bit_Order variable.
13037 * system-linux-s390.ads: Likewise.
13038 * system-linux-s390x.ads: Likewise.
13039 * system-linux-sparc.ads: Likewise.
13040
4b437c6b
AC
130412007-04-06 Javier Miranda <miranda@adacore.com>
13042 Matt Heaney <heaney@adacore.com>
13043 Robert Dewar <dewar@adacore.com>
13044
13045 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
13046 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
13047 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
13048 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
13049 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
13050 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
13051 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
13052 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
13053 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
13054 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
13055 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
13056 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
13057 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
13058 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
13059 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
13060 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
13061 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
13062 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
13063 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
13064 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
13065 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
13066 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
13067 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
13068 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
13069 s-taprop-tru64.adb, s-taprop-irix.adb,
13070 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
13071 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
13072 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
13073 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
13074 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
13075 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
13076 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
13077 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
13078 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
13079 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
13080 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
13081 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
13082 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
13083 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
13084 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
13085 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
13086 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
13087 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
13088 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
13089 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
13090 access types.
13091 Update documentation.
13092 Minor rewording.
13093
130942007-04-06 Robert Dewar <dewar@adacore.com>
13095
13096 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
13097 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13098 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
13099 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
13100 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
13101 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13102 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13103 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
13104 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
13105 system-hpux-ia64.ads, targparm.adb,
13106 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
13107
13108 * system.ads: Move Functions_Return_By_DSP to obsolete section,
13109 kept for bootstrap purposes only.
13110
131112007-04-06 Arnaud Charlet <charlet@adacore.com>
13112
13113 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
13114 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
13115 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
13116 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
13117
131182007-04-06 Robert Dewar <dewar@adacore.com>
13119
13120 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
13121 (Local_Raise): New dummy procedure called when a raise is converted
13122 to a local goto. Used for debugger to detect that the exception
13123 is raised.
13124
13125 * debug.adb: Document new d.g flag (expand local raise statements to
13126 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
13127
13128 * exp_sel.adb: Use Make_Implicit_Exception_Handler
13129
13130 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
13131 suppress warnings for unused handlers.
13132 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
13133 warnings for raise statements not handled locally.
13134 (Get_RT_Exception_Entity): New function
13135 (Get_Local_Call_Entity): New function
13136 (Find_Local_Handler): New function
13137 (Warn_If_No_Propagation): New procedure
13138 (Expand_At_End_Handler): Call Make_Implicit_Handler
13139 (Expand_Exception_Handlers): Major additions to deal with local handlers
13140 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
13141 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
13142 for local raise
13143
13144 * exp_ch11.ads (Get_RT_Exception_Entity): New function
13145 (Get_Local_Call_Entity): New function
13146
13147 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
13148 of restrictions that the binder will never suggest adding.
13149
13150 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
13151 to No_Elist.
13152
13153 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
13154 be with'ed in the presence of pragma Restriction
13155 (No_Exception_Propagation).
13156
13157 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
13158
13159 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
13160 parameter, then the handler is not a suitable target for a local raise,
13161 and this is a violation of restriction No_Exception_Propagation.
13162 (Analyze_Handled_Statements): Analyze choice parameters in exception
13163 handlers before analyzing statement sequence (needed for proper
13164 detection of local raise statements).
13165 (Analyze_Raise_Statement): Reraise statement is a violation of the
13166 No_Exception_Propagation restriction.
13167
13168 * s-rident.ads: Add new restriction No_Exception_Propagation
13169
13170 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
13171 function, like Make_Exception_Handler but sets Local_Raise_Statements
13172 to No_List.
13173 (Add_Unique_Serial_Number): Deal with case where this is called during
13174 processing of configuration pragmas.
13175
131762007-04-06 Thomas Quinot <quinot@adacore.com>
13177 Pat Rogers <rogers@adacore.com>
13178 Pascal Obry <obry@adacore.com>
13179
13180 * g-stsifd-sockets.adb: New file.
13181
13182 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
13183 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
13184 g-socthi-vms.adb: Move signalling
13185 fd management to a nested package, so that they can conveniently be
13186 moved to a subunit that is shared across Windows, VMS, and VxWorks
13187 (Ada implementation) or completed with imported bodies from socket.c
13188 (UNIX case).
13189 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
13190 subprograms.
13191 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
13192 the signalling file descriptor.
13193 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
13194 signalling file descriptor.
13195 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
13196 instead of creating a pair of sockets for signalling here.
13197
13198 * g-socthi.adb: Ditto.
13199 Set the runtime process to ignore SIGPIPEs on platforms that support
13200 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13201
13202 * g-socthi-mingw.adb: Ditto.
13203 (WS_Version): Use Windows 2.2.
13204 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13205
13206 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
13207 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
13208
13209 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
13210 added GNAT byte swapping facility
13211 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
13212
13213 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
13214
13215 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
13216 New subprograms.
13217 (__gnat_create_signalling_fds): New subprogram.
13218 Set the runtime process to ignore SIGPIPEs on platforms that support
13219 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
13220
132212007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
13222 Vincent Celier <celier@adacore.com>
13223
13224 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
13225 New version of Ada.Calendar which supports the new upper bound of Ada
13226 time (2399-12-31 86_399.999999999).
13227 The following modifications have been made to the package:
13228 - New representation of time as count of nanoseconds since the start of
13229 Ada time (1901-1-1 0.0).
13230 - Target independent Split and Time_Of routines which service both
13231 Ada 95 and Ada 2005 code.
13232 - Target independent interface to the Ada 2005 children of Calendar.
13233 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
13234 - Handling of non-leap centenial years.
13235 - Updated clock function.
13236 - Updated arithmetic and comparison operators.
13237
13238 * a-caldel.adb (To_Duration): Add call to target independent routine in
13239 Ada.Calendar to handle the conversion of time to duration.
13240
13241 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
13242 (UTC Offset).
13243 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
13244 set off to 0.
13245 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
13246 targets do not have a natural time zone, GMT is used as a default.
13247 (__gnat_get_task_options): New.
13248
13249 * a-direct.adb (Modification_Time): Add with and use clauses for
13250 Ada.Calendar and Ada.
13251 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
13252 since it is no longer needed.
13253 (Duration_To_Time): Removed.
13254 (OS_Time_To_Long_Integer): Removed.
13255 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
13256 Formatting Time_Of routines which automatically handle time zones,
13257 buffer periods and leap seconds.
13258
13259 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
13260 target independent routines in Ada.Calendar.
13261
13262 * a-calfor.ads, a-calfor.adb:
13263 Code cleanup and addition of validity checks in various routines.
13264 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
13265 Ada.Calendar.
13266
13267 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
13268 independent routine in Ada.Calendar.
13269
132702007-04-06 Olivier Hainque <hainque@adacore.com>
13271
13272 * adaint.c:
13273 (convert_addresses): Adjust prototype and dummy definition to expect an
13274 extra file_name argument.
13275
13276 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
13277 filling the now expected file_name argument with the appropriate
13278 argv[0] expansion.
13279 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
13280 (tracebk): Array of void * instead of char *, corresponding to what
13281 convert_addresses expects.
13282 (exename): New static global, to hold the executable file name to be
13283 used in all convert_addresses invocations.
13284 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
13285 change.
13286 (__gnat_gmem_a2l_initialize): Resolve exename.
13287 (__gnat_convert_addresses): Use exename as the convert_addresses
13288 file_name argument.
13289
13290 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
13291 "convert_addresses", now expecting a filename argument. Import the
13292 necessary entities to compute the filename to use and pass it to
13293 convert_addresses.
13294
132952007-04-06 Matt Gingell <gingell@adacore.com>
13296
13297 * system-aix.ads: Back out previous change.
13298 (Functions_Return_By_DSP): Removed
13299
133002007-04-06 Pascal Obry <obry@adacore.com>
13301
13302 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
13303 or the monotonic used by Ada.Real_Time) to compute the sleep duration
13304 on Windows.
13305
133062007-04-06 Jose Ruiz <ruiz@adacore.com>
13307
13308 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
13309 function. Its value changes in different VxWorks versions, and it is
13310 now handled by the function __gnat_get_task_options.
13311
13312 * s-taprop-vxworks.adb (Create_Task): Call the function
13313 __gnat_get_task_options to get the required options for creating a task.
13314
133152007-04-06 Pascal Obry <obry@adacore.com>
13316 Thomas Quinot <quinot@adacore.com>
13317
13318 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
13319 dealing with filename.
13320 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
13321 filename from a standard string to a wide-string depending on the
13322 encoding value.
13323 (__gnat_freopen): Idem.
13324 (__gnat_current_time): New function (wrapper for time(3) standard C
13325 function).
13326
13327 * g-os_lib.ads (Current_Time): New function. Returns the current
13328 system time as an OS_Time value.
13329
13330 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
13331 (Monotonic_Clock): Same.
13332
133332007-04-06 Quentin Ochem <ochem@adacore.com>
13334
13335 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
13336 not on a natural.
13337 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
13338
133392007-04-06 Jose Ruiz <ruiz@adacore.com>
13340
13341 * a-retide.adb: Add elaboration code to ensure that the tasking run
13342 time is initialized when using delay operations even when no task is
13343 created.
13344
133452007-04-06 Javier Miranda <miranda@adacore.com>
13346
13347 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
13348 component Num_Prim_Ops.
13349 (Set_Num_Prim_Ops): Removed.
13350 Remove all the assertions because all the routines of this
13351 package are inline always.
13352 (Get_Offset_Index): Add support to primary dispatch tables.
13353 Move the documentation about the dispatch table to a-tags.ads
13354 (Set_External_Tag): Removed
13355 (Inherit_TSD): Removed.
13356 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
13357 moved to a-tags.ads
13358 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
13359 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
13360 of the TSD field "Table" because this field has been renamed to
13361 "Ifaces_Table".
13362 (Inherit_CPP_DT): Removed.
13363 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
13364 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
13365 declarations have been moved to a-tags.ads
13366 (Check_Size): Removed.
13367 (Expanded_Name): Updated to get access to the new field of TSD
13368 containing the address of the expanded name.
13369 (Get_Access_Level/Set_Access_Level): Removed.
13370 (Get_Predefined_Prim_Op_Address): Removed.
13371 (Set_Predefined_Prim_Op_Address): Removed.
13372 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
13373 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
13374 (Set_Expanded_Name): Removed.
13375 (Inherit_DT): Removed.
13376 (Inherit_CPP_DT): Removed.
13377 (Set_RC_Offset): Removed.
13378 (Set_TSD): Removed.
13379 (Base_Address): New function that displaces "this" to point to the base
13380 of the object (that is, to point to the primary tag of the object).
13381
133822007-04-06 Ed Schonberg <schonberg@adacore.com>
13383 Javier Miranda <miranda@adacore.com>
13384
13385 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
13386 anonymous access component, do not create a master_id if type already
13387 has one, as may happen if the type is a subcomponent of a packed array
13388 type.
13389 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
13390 Initialize_Tag): Remove code associated with the old CPP pragmas.
13391 CPP_Virtual and CPP_Vtable are no longer supported.
13392 (Build_Offset_To_Top_Internal): Add support for concurrent record types
13393 (Build_Offset_To_Top_Functions): Add support for concurrent record types
13394 (Freeze_Record_Type): Remove call to
13395 Init_Predefined_Interface_Primitives.
13396 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
13397 code required to initialize the tags of the secondary dispatch tables.
13398 This leaves the algoritm more clear.
13399 (Init_Secondary_Tags): Add support for concurrent record types
13400 (Make_Predefined_Primitive_Specs): Code cleanup.
13401 (Predefined_Primitive_Bodies): Code cleanup.
13402 (Build_Master_Renaming): New local subprogram.
13403 (Expand_N_Full_Type_Declaration): Build the master_id associated with
13404 anonymous access to task type components.
13405 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
13406 subtype indication are resolved during analysis, and must not be done
13407 here.
13408 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
13409
134102007-04-06 Geert Bosch <bosch@adacore.com>
13411 Ed Schonberg <schonberg@adacore.com>
13412 Javier Miranda <miranda@adacore.com>
13413 Bob Duff <duff@adacore.com>
13414
13415 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
13416 for conversion of a Float_Type'Truncation to integer.
13417
13418 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
13419 check if a node is an attribute that can be handled directly by the
13420 back end.
13421 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
13422 attributes that can be handled directly by the back end.
13423 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
13424 use new predicate Is_Access_Protected_Subprogram_Type.
13425 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
13426 and Unchecked_Union if it is generated as part of the default Output
13427 procedure for a type with default discriminants.
13428 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
13429 if we are compiling under restriction No_Dispatching_Calls.
13430 (Constrained): Use Underlying_Type, in case the type is private without
13431 discriminants, but the full type has discriminants.
13432 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
13433 call to Build_Get_Access_Level.
13434 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
13435 interface objects requires a call to the run-time subprogram that
13436 returns the base address of the object.
13437 (Valid_Conversion): Improve error message on illegal attempt to store
13438 an anonymous access to subprogram value into a record component.
13439
13440 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
13441 null".
13442 (Simplify_Type_Conversion): New procedure that performs simplification
13443 of Int_Type (Float_Type'Truncation (X)).
13444 (Resolve_Type_Conversion): Call above procedure after resolving operand
13445 and before performing checks. This replaces the existing ineffective
13446 code in Exp_Ch4.
13447 (Set_String_Literal_Subtype): When creating the internal static lower
13448 bound subtype for a string literal, use a newly created copy of the
13449 subtree representing the lower bound.
13450 (Resolve_Call): Exclude build-in-place function calls from transient
13451 scope treatment. Update comments to describe this exception.
13452 (Resolve_Equality_Op): In case of dispatching call check violation of
13453 restriction No_Dispatching_Calls.
13454 (Resolve_Call): If the call returns an array, the context imposes the
13455 component type of the array, and the function has one non-defaulted
13456 parameter, rewrite the call as the indexing of a call with a single
13457 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
13458 in prefix form.
13459 (Resolve_Actuals): If an actual is an allocator for an access parameter,
13460 the master of the created object is the innermost enclosing statement.
13461 (Remove_Conversions): For a binary operator, check if type of second
13462 formal is numeric, to check if an abstract interpretation is present
13463 in the case of exponentiation as well.
13464
134652007-04-06 Ed Schonberg <schonberg@adacore.com>
13466 Bob Duff <duff@adacore.com>
13467
13468 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
13469 copying a parameter list in a call, set properly the First_Named_Formal
13470 and Next_Named_Formal fields in the new list and in the enclosing call.
13471 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
13472 names, to ease typing in the debugger. Improve comments.
13473 (Watch_Node): New variable, intended to be set in the debugger.
13474 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
13475 called when the watched node is created.
13476 (New_Node_Debugging_Output): Combined version of local procedures
13477 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
13478 with a parameter so that conditional breakpoints like "if Node = 12345"
13479 work.
13480 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
13481 Add Elist1 function
13482
134832007-04-06 Thomas Quinot <quinot@adacore.com>
13484 Ed Schonberg <schonberg@adacore.com>
13485 Gary Dismukes <dismukes@adacore.com>
13486
13487 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
13488 required for a conversion between two access-to-unconstrained-array
13489 types.
13490 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
13491 to discriminant constraints on discriminant objects. This rule must
13492 apply as well to discriminants of protected types in private components.
13493 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
13494 object of a null-excluding access type then don't require the
13495 the object declaration to have an expression and don't emit a
13496 run-time check.
13497
134982007-04-06 Arnaud Charlet <charlet@adacore.com>
9e94c78f 13499 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
13500
13501 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
13502 and made constant.
13503
13504 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
13505 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
13506 carry any.
13507
13508 * fe.h (Compiler_Abort): Add third parameter.
13509
13510 * misc.c (internal_error_function): Build third argument from current
13511 input location and pass it to Compiler_Abort.
13512
135132007-04-06 Gary Dismukes <dismukes@adacore.com>
13514
13515 * cstand.adb (Create_Standard): When the target's storage unit size is
13516 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
13517 Standard_String.
13518
135192007-04-06 Nicolas Roche <roche@adacore.com>
13520
13521 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
13522 absolute path can have the following form: device:/a/b. In this case
13523 '/' should be inserted between the path and the filename.
13524
135252007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 13526 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
13527
13528 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
13529 VAR_DECL to a CONST_DECL we make for a public constant when we know the
13530 corresponding definition has created the so made visible variable.
13531 Handle anonymous access to protected subprogram.
13532 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
13533 object with an address clause volatile. Re-enable original fix.
13534 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
13535 too.
13536 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
13537 associated with either the Equivalent or Root type, instead of the
13538 naked type node.
13539 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
13540 subtree for every field of a global record type.
13541 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
13542 discriminants, invoke again variable_size on its newly computed sizes.
13543
135442007-04-06 Robert Dewar <dewar@adacore.com>
13545 Thomas Quinot <quinot@adacore.com>
13546 Ed Schonberg <schonberg@adacore.com>
13547 Bob Duff <duff@adacore.com>
13548
13549 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
13550 (Next_Component_Or_Discriminant): New function and procedure
13551 (First_Index, First_Literal, Master_Id,
13552 Set_First_Index, Set_First_Literal, Set_Master_Id):
13553 Add missing Ekind assertions.
13554 (Is_Access_Protected_Subprogram_Type): New predicate.
13555 (Has_RACW): New entity flag, set on package entities to indicate that
13556 the package contains the declaration of a remote accecss-to-classwide
13557 type.
13558 (E_Return_Statement): This node type has the Finalization_Chain_Entity
13559 attribute, in case the result type has controlled parts.
13560 (Requires_Overriding): Add this new flag, because "requires
13561 overriding" is subtly different from "is abstract" (see AI-228).
13562 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
13563 Is_Abstract_Type. Make sure these are called only when appropriate.
13564 (Has_Pragma_Unreferenced_Objects): New flag
13565
13566 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
13567 class-wide, the tag of the right-hand side must be an exact match, not
13568 an ancestor of that of the object on left-hand side.
13569 (Move_Activation_Chain): New procedure to create the call to
13570 System.Tasking.Stages.Move_Activation_Chain.
13571 (Expand_N_Extended_Return_Statement): Generate code to call
13572 System.Finalization_Implementation.Move_Final_List at the end of a
13573 return statement if the function's result type has controlled parts.
13574 Move asserts to Build_In_Place_Formal.
13575 (Move_Final_List): New function to create the call statement.
13576 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
13577 tagged type, replace generation of call to the run-time subprogram
13578 CW_Membership by call to Build_CW_Membership.
13579 (Expand_N_Return_Statement): Replace generation of call to the run-time
13580 subprogram Get_Access_Level by call to Build_Get_Access_Level.
13581 (Expand_N_Simple_Function_Return): Replace generation of call to the
13582 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13583
13584 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
13585 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
13586 access to protected operations.
13587 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
13588 master and chain actual parameters to a build-in-place function call
13589 involving tasks.
13590 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
13591 statement.
13592 (Make_Build_In_Place_Call_In_Allocator,
13593 Make_Build_In_Place_Call_In_Anonymous_Context,
13594 Make_Build_In_Place_Call_In_Assignment,
13595 Make_Build_In_Place_Call_In_Object_Declaration): Call
13596 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
13597 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
13598 stubbed procedure with a null body, replace the call with a null
13599 statement without using the full inlining machinery, for efficiency
13600 and to avoid invalid values in source file table entries.
13601
13602 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
13603 renamings of calls to build-in-place functions.
13604
13605 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
13606 provides the functionality of RTE_Available to record components.
13607 (RTU_Entity): The function Entity has been renamed to RTU_Entity
13608 to avoid undesired overloading.
13609 (Entity): New subprogram that returns the entity for the referened
13610 unit. If this unit has not been loaded, it returns Empty.
13611 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
13612 Remove no longer used entities.
13613 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
13614 (RE_Type_Specific_Data): New entity.
13615 (RE_Move_Any_Value): New entity.
13616 (RE_TA_A, RE_Get_Any_Type): New entities.
13617 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
13618 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
13619 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
13620 (Entity): New subprogram that returns the entity for the referened
13621 unit. If this unit has not been loaded, it returns Empty.
13622 (RTE): Addition of a new formal that extends the search to the scopes
13623 of the record types found in the chain of the package.
13624
13625 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
13626 "abstract subprograms must be visible" message, whether or not the type
13627 is an interface; that is, remove the special case for interface types.
13628 (Analyze_Function_Return): Remove error message "return of task objects
13629 is not yet implemented" because this is now implemented.
13630 (Create_Extra_Formals): Add the extra master and activation chain
13631 formals in case the result type has tasks.
13632 Remove error message "return of limited controlled objects is not yet
13633 implemented".
13634 (Create_Extra_Formals): Add the extra caller's finalization list formal
13635 in case the result type has controlled parts.
13636 (Process_Formals): In case of access formal types there is no need
13637 to continue with the analysis of the formals if we already notified
13638 errors.
13639 (Check_Overriding_Indicator): Add code to check overriding of predefined
13640 operators.
13641 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
13642 flags for formals that do not require them,.
13643 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
13644 hidden entity is use visible or directly visible.
13645 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
13646 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
13647 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
13648 New_Overloaded_Entity): Split Is_Abstract flag into
13649 Is_Abstract_Subprogram and Is_Abstract_Type.
13650
13651 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
13652 a return statement's finalization list to the caller's list, used for
13653 build-in-place functions with result type with controlled parts.
13654 Remove no longer used entities.
13655
13656 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
13657 longer needed, because the full type is now limited, and therefore a
13658 pass-by-reference type.
13659 (Foreign_Task_Level): New constant.
13660
13661 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
13662 move tasks from the activation chain belonging to a return statement to
13663 the one passed in by the caller, and update the master to the one
13664 passed in by the caller.
13665 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
13666 of unactivated tasks, so we don't kill the ones that are being returned
13667 by a build-in-place function.
13668 (Create_Task): Ignore AI-280 for foreign threads.
13669
136702007-04-06 Ed Schonberg <schonberg@adacore.com>
13671 Robert Dewar <dewar@adacore.com>
13672 Bob Duff <duff@adacore.com>
13673 Gary Dismukes <dismukes@adacore.com>
13674
13675 * errout.adb (Unwind_Internal_Type): Use predicate
13676 Is_Access__Protected_Subprogram_Type.
13677
13678 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
13679 (Freeze_Entity, packed array case): Do not override explicitly set
13680 alignment and size clauses.
13681 (Freeze_Entity): An entity declared in an outer scope can be frozen if
13682 the enclosing subprogram is a child unit body that acts as a spec.
13683 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
13684 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
13685 Remove all code for DSP option
13686
13687 * layout.adb (Layout_Record_Type): Use First/
13688 Next_Component_Or_Discriminant
13689 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
13690 to handle properly the anonymous access case.
13691
13692 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
13693 for all access attributes, because overload resolution should work the
13694 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
13695 causes the error message for the ambiguous "X'Access = Y'Access" and
13696 "X'Unrestricted_Access = Y'Access" and so forth to match.
13697 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
13698 now that anonymous access to protected operations have their own kind.
13699 (Resolve_Attribute): In case of dispatching call check the violation of
13700 restriction No_Dispatching_Calls.
13701 (Check_Array_Type): Check new -gnatyA array index style option
13702
13703 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
13704 attempt to derive from a synchronized tagged type.
13705 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
13706 type, inherit the class-wide type already created, because it may
13707 already have been used in a self-referential anonymous access component.
13708 (Mentions_T): Recognize self-referential anonymous access components
13709 that use (a subtype of) the class-wide type of the enclosing type.
13710 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
13711 Derived_Type for Prev formal on call to
13712 Check_Anonymous_Access_Components rather than Empty.
13713 (Make_Incomplete_Type_Declaration): Add test for case where the type has
13714 a record extension in deciding whether to create a class-wide type,
13715 rather than just checking Tagged_Present.
13716 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
13717 to stand-alone object declarations as well as component declarations.
13718 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
13719 prevent accidental overwriting when enclosing package appears in
13720 a limited_with_clause.
13721 (Array_Type_Declaration): If the component type is an anonymous access,
13722 the associated_node for the itype is the type declaration itself.
13723 (Add_Interface_Tag_Components): Modified to support concurrent
13724 types with abstract interfaces.
13725 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
13726 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
13727 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
13728 to complete the decoration of synchronized interface types. Add also
13729 a call to Check_Abstract_Interfaces to verify the ARM rules.
13730 (Derive_Interface_Subprograms): Modified to support concurrent types
13731 with abstract interfaces.
13732 (Analyze_Subtype_Indication): Resolve the range with the given subtype
13733 mark, rather than delaying the full resolution depending on context.
13734 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
13735 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
13736 Array_Type_Declaration,Build_Derived_Record_Type,
13737 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
13738 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
13739 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
13740 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
13741 called only when appropriate.
13742 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
13743 to private type.
13744 (Analyze_Subtype_Declaration): For an access subtype declaration, create
13745 an itype reference for the anonymous designated subtype, to prevent
13746 scope anonmalies in gigi.
13747 (Build_Itype_Reference): New utility, to simplify construction of such
13748 references.
13749
137502007-04-06 Vincent Celier <celier@adacore.com>
13751
13752 * errutil.adb (Initialize): Initialize warnings table, if all warnings
13753 are suppressed, supply an initial dummy entry covering all possible
13754 source locations.
13755
13756 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
13757 and start with only one, such as "-RTS=none".
13758 (Collect_Arguments): Do not check for sources outside of projects.
13759 Do not collect arguments if project is externally built.
13760 (Compile_Sources): Do nothing, not even check if the source is up to
13761 date, if its project is externally built.
13762 (Compile): When compiling a predefined source, add -gnatpg
13763 as the second switch, after -c.
13764 (Compile_Sources): Allow compilation of Annex J renames without -a
13765 (Is_In_Object_Directory): Check if the ALI file is in the object
13766 even if there is no project extension.
13767 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
13768 gnatbind if the ALI file effectively exists.
13769 (Initialize): Add the directory where gnatmake is invoked in front of
13770 the path if it is invoked from a bin directory, even without directory
13771 information, so that the correct GNAT tools will be used when spawned
13772 without directory information.
13773
13774 * makeusg.adb: Change switch -S to -eS
13775 Add lines for new switches -we, -wn and -ws
13776 Add line for new switch -p
13777
13778 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
13779 Treat_As_Error and there are warnings.
13780
13781 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
13782 -gnatww Change gnatmake switch -S to -eS
13783 (Scan_Make_Switches): Code reorganisation. Process separately multi
13784 character switches and single character switches.
13785 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
13786 False when switch is not recognized by gnatmake.
13787 (Scan_Make_Switches): Set Setup_Projects True when -p or
13788 --create-missing-dirs is specified.
13789
13790 * fname.adb (Is_Predefined_File_Name): Return True for annex J
13791 renamings Calendar, Machine_Code, Unchecked_Conversion and
13792 Unchecked_Deallocation only when Renamings_Included is True.
13793
13794 * par.adb: Allow library units Calendar, Machine_Code,
13795 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
13796 when -gnatg is not specified.
13797 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
13798 there is no need to generate always a record_definition_node in case
13799 of synchronized interface types.
13800 (SIS_Entry_Active): Initialize global variable to False
13801 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
13802 indicate cases where AI-447 says "not null" is legal.
13803
13804 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
13805
13806 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
13807 files with with several lines starting with the object fileb name.
13808 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
13809 is specified.
13810 (Initialize): Add the directory where gprmake is invoked in front of the
13811 path, if it is invoked from a bin directory or with directory
13812 information, so that the correct GNAT tools will be used when invoked
13813 directly.
13814 (Check_Compilation_Needed): Process correctly backslashes on Windows.
13815
13816 * vms_data.ads: Update switches/qualifiers
13817
138182007-04-06 Ed Schonberg <schonberg@adacore.com>
13819 Thomas Quinot <quinot@adacore.com>
13820
13821 * exp_aggr.adb:
13822 If the array component is a discriminated record, the array aggregate
13823 is non-static even if the component is given by an aggregate with
13824 static components.
13825 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
13826 (Convert_Aggr_In_Allocator): If the allocator is for an access
13827 discriminant and the type is controlled. do not place on a finalization
13828 list at this point. The proper list will be determined from the
13829 enclosing object.
13830 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
13831 initialize record controller if needed, before the components, to ensure
13832 that they are properly finalized.
13833 (Build_Record_Aggr_Code): For the case of an array component that has a
13834 corresponding array aggregate in the record aggregate, perform sliding
13835 if required.
13836
138372007-04-06 Javier Miranda <miranda@adacore.com>
13838 Gary Dismukes <dismukes@adacore.com>
13839 Ed Schonberg <schonberg@adacore.com>
13840
13841 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
13842 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
13843
13844 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
13845 accessibility on class-wide allocators if the allocator occurs at the
13846 same scope level as the allocator's type. The check is guaranteed to
13847 succeed in that case, even when the expression originates from a
13848 parameter of the containing subprogram.
13849 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
13850 under No_Dispatching_Calls restriction. During the semantic analysis
13851 we already notified such violation.
13852 (Tagged_Membership): Constant folding. There is no need to check
13853 the tag at run-time if the type of the right operand is non
13854 class-wide abstract.
13855 Replace call to Is_Ancestor by call to Is_Parent
13856 to support concurrent types with interface types.
13857 (Expand_N_Allocator): Add an assertion associated with the generation
13858 of the master_id.
13859 (Expand_N_Slice): Do not enable range check to nodes associated
13860 with the frontend expansion of the dispatch table.
13861 (Is_Local_Access_Discriminant): Subsidiary function to
13862 Expand_N_Allocator.
13863 (Tagged_Membership): Replace generation of call to the run-time
13864 subprogram CW_Membership by call to Build_CW_Membership.
13865 (Expand_Allocator_Expression): Replace generation of call to the
13866 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
13867
13868 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
13869 initialize most the TSD components by means of an aggregate.
13870 Modify the declaration of the object containing the TSD
13871 because we now expand code that has a higher level of abstraction.
13872 The TSD has a discriminant containing the Inheritance Depth Level,
13873 value that is used in the membership test but also to fix the size
13874 of the table of ancestors.
13875 (Expand_Interface_Conversion): Insert function body at the closest place
13876 to the conversion expression, to prevent access-before-elaboration
13877 errors in the backend.
13878 Code improved to reduce the size of the dispatch table if
13879 compiling under restriction No_Dispatching_Calls plus code cleanup.
13880 Code reorganization plus removal of calls to Set_Num_Prim_Ops
13881 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
13882 (Expand_Dispatching_Call): Minor code reorganization plus addition of
13883 code to return immediately if compiling under No_Dispatching_Calls
13884 restriction.
13885 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
13886 CPP_Virtual and CPP_Vtable are no longer supported.
13887 (Expand_Interface_Conversion): Add missing support for interface type
13888 derivations.
13889 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
13890 Is_Parent to support concurrent types with interfaces.
13891 (Init_Predefined_Interface_Primitives): Removed.
13892 (Make_Secondary_DT): Modified to support concurrent record types.
13893 (Set_All_DT_Position): Modified to support concurrent record types.
13894 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13895 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
13896 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
13897 with CW_Membership.
13898 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
13899 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
13900 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
13901 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
13902 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
13903 (Expand_Dispatching_Call): Replace generation of call to the run-time
13904 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
13905 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
13906 Address.
13907 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
13908 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
13909 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
13910 Build_Set_Prim_Op_Address.
13911 (Get_Remotely_Callable): Subprogram removed.
13912 (Init_Predefined_Interface_Primitives): Replace generation of call to
13913 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
13914 Prims.
13915
13916 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
13917 First (Parameter_Associations ()) with the call to First_Actual that
13918 returns an actual parameter expression for both named and positional
13919 associations.
13920
13921 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
13922 check violation of restriction No_Dispatching_Calls.
13923 (Check_Controlling_Type): A formal of a tagged incomplete type is a
13924 controlling argument.
13925
13926 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
13927 First/Next_Component_Or_Discriminant
13928 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
13929 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13930 specify Any_Limited_Interface, and this functionality is already
13931 provided by the function Has_Abstract_Interfaces.
13932 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
13933 support concurrent types implementing interfaces.
13934 (Find_Implemented_Interface): Removed. All the calls to this subprogram
13935 specify kind Any_Limited_Interface, and this functionality is already
13936 provided by the function Has_Abstract_Interfaces.
13937 (Remove_Side_Effects): replace Controlled_Type by
13938 CW_Or_Controlled_Type whenever the issue is related to
13939 using or not the secondary stack.
13940
13941 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
13942 P_Interface_Type_Definition to fulfill the new interface (the formal
13943 Is_Synchronized is no longer required).
13944
13945 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
13946 Update dependencies.
13947
13948 * exp_atag.ads, exp_atag.adb: New file
13949
139502007-04-06 Ed Schonberg <schonberg@adacore.com>
13951 Bob Duff <duff@adacore.com>
13952 Cyrille Comar <comar@adacore.com>
13953
13954 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
13955 anonymous, use finalization list of enclosing dynamic scope.
13956 (Expand_N_Package_Declaration): For a library package declaration
13957 without a corresponding body, generate RACW subprogram bodies in the
13958 spec (just as we do for the task activation call).
13959 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
13960 Is_Abstract_Type. Make sure these are called only when appropriate.
13961 Remove all code for DSP option
13962 (CW_Or_Controlled_Type): new subprogram.
13963
9e94c78f 139642007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
13965 Ed Schonberg <schonberg@adacore.com>
13966 Gary Dismukes <dismukes@adacore.com>
13967
13968 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
13969 parameter. If it is set to true, return a result capped according to
13970 the global upper bound for the index of an entry family.
13971 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
13972 (Build_Find_Body_Index): Adjust for above change.
13973 (Entry_Index_Expression): Likewise.
13974 (Is_Potentially_Large_Family): New function extracted from...
13975 (Collect_Entry_Families): ...here. Call it to detect whether the family
13976 is potentially large.
13977 (Build_Entry_Count_Expression): If the family is potentially large, call
13978 Family_Size with 'Cap' set to true.
13979 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
13980 a protected version of an operation declared in the private part of
13981 a protected object, because they may be invoked through a callback.
13982 (Set_Privals): If the type of a private component is an anonymous access
13983 type, do not create a new itype for each protected body.
13984 If the body of a protected operation creates
13985 controlled types (including allocators for class-widetypes), the
13986 body of the corresponding protected subprogram must include a
13987 finalization list.
13988 (Build_Activation_Chain_Entity): Build the chain entity for extended
13989 return statements.
13990 (Type_Conformant_Parameters): Use common predicate Conforming_Types
13991 to determine whether operation overrides an inherited primitive.
13992 (Build_Wrapper_Spec): Add code to examine the parents while looking
13993 for a possible overriding candidate.
13994 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
13995 hold an actual parameter value since its initialization is separated
13996 from the the declaration. Prevents errors on null-excluding access
13997 formals.
13998
139992007-04-06 Thomas Quinot <quinot@adacore.com>
8a57e48f 14000 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
14001
14002 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
14003 Do an Unchecked_Conversion to handle the passage from the Underlying
14004 Type to the Base Type when calling Build_To_Any_Call and
14005 Build_From_Any_Call.
14006 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
14007 E_Constant, depending upon Variable formal.
14008 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14009 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
14010 parameter that requires an extra constrained parameter, declare
14011 temporary for actual as a variable, not a constant.
14012 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
14013 the unit being compiled is the one that contains the stub type.
14014 Change primitive operation name for the RACW associated with a RAS
14015 from Call to _Call so it cannot clash with any legal identifier.
14016 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
14017 Is_RAS.
14018 (Append_RACW_Bodies): New subprogram.
14019 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
14020 Add_Receiving_Stubs_To_Declarations functions.
14021 When expanding a package body, this list correspond to the
14022 statements in the HSS at the end of the pacakge.
14023 When expanding a package spec, this list correspond to the
14024 spec declarations.
14025 (Add_Receiving_Stubs_To_Declarations): Append the function
14026 registering the receiving stubs at the end of the 'Stmts' list.
14027 (RCI_Package_Locator): Pass the new Version generic formal when
14028 instantiating a RCI_Locator package.
14029 (Build_From_Any_Function): To compute the High bound for an
14030 unconstrained array actual, we add the Low bound with the length.
14031 Thus we must convert the low bound and the length to an appropriate
14032 type before doing the sum.
14033 (Build_Subprogram_Receiving_Stubs, PolyORB):
14034 * Retrieve the extra formals parameters at the
14035 end of the parameter stream.
14036 * Use Move_Any_Value to write back out parameters
14037 after executing the request as it is more efficient
14038 than Copy_Any_Value.
14039 * Build the any containing Extra Formals with the
14040 appropriate typecode.
14041 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
14042 empty Component_List.
14043 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
14044 the tree the declaration for an object that serves as actual parameter
14045 in server-side stubs.
14046 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
14047 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
14048 Use Build_Actual_Object_Declaration to prepare the actuals.
14049 (Add_Parameter_To_NVList): Set the parameter mode to In for
14050 Extra Constrained Parameters.
14051 (Build_General_Calling_Stubs): Set the parameter type to boolean for
14052 Extra Constrained parameters.
14053 (Build_To_Any_Function, Build_From_Any_Function,
14054 Built_TypeCode_Function): When Typ is implicit, call the correct
14055 function with the first not implicit parent type.
14056 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
14057 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
14058 typecode from the Etype. Therefore we retrieve the correct typecode
14059 with a call to Get_Any_Type.
14060 (Copy_Specification): Do controlling formal type substitution based on
14061 Is_Controlling_Formal flag, instead of caller-provided object type.
14062 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
14063 a RACW primitive operation, we might get a subprogram declaration for an
14064 ancestor of the RACW designated type (not for the designated type
14065 itself), in the case where this operation is inherited. In this case we
14066 have no easy means of determining the original tagged type for which
14067 the primitive was declared, so instead we now rely on
14068 Copy_Specification to use the Is_Controlling_Formal flag to determine
14069 which formals require type substitution.
14070
140712007-04-06 Robert Dewar <dewar@adacore.com>
14072 Ed Schonberg <schonberg@adacore.com>
14073
14074 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
14075 GNAT.Current_Exception are not allowed if pragma Restrictions
14076 (No_Exception_Propagation) is set and in any case make the associated
14077 handler unsuitable as a target for a local raise statement.
14078 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
14079 run-time subprogram CW_Membership by call to Build_CW_Membership.
14080 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
14081 by a function call, a temporary must be created before expanding the
14082 Constructor_Call itself, to prevent out-of-order elaboration in the
14083 back-end when stack checking is enabled..
14084
140852007-04-06 Ed Schonberg <schonberg@adacore.com>
14086
14087 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
14088 result are the bounds of the left operand, not the right.
14089
140902007-04-06 Ed Schonberg <schonberg@adacore.com>
14091
14092 * exp_strm.adb
14093 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
14094 discriminant defaults.
14095 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
14096 (Make_Component_List_Attributes): Ditto.
14097
140982007-04-06 Ed Schonberg <schonberg@adacore.com>
14099 Bob Duff <duff@adacore.com>
14100
14101 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
14102 an association with a box as providing a value even though the
14103 initialization procedure for the type is not available.
14104 (Resolve_Record_Aggregate): Check that a choice of an association with a
14105 box corresponds to a component of the type.
14106 (Resolve_Record_Aggregate): Split Is_Abstract flag into
14107 Is_Abstract_Subprogram and Is_Abstract_Type.
14108
14109 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
14110 assert.
14111
14112 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
14113 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
14114 called only when appropriate.
14115
141162007-04-06 Olivier Hainque <hainque@adacore.com>
14117
14118 * g-alleve.ads (Low Level Vector type definitions): Map each to the
14119 associated vector view instead of all to the unsigned char view.
14120
14121 * g-altcon.adb (Generic_Conversions): New internal generic package,
14122 offering facilities for all the Vector/View conversion routines
14123 implemented by this unit.
14124 (To_View/To_Vector - all versions): Reimplemented in a systematic
14125 manner, using the internal Generic_Conversions facilities.
14126
141272007-04-06 Pascal Obry <obry@adacore.com>
14128
14129 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
14130 string.
14131 (Create): Free the source string before storing the new one.
14132
141332007-04-06 Vincent Celier <celier@adacore.com>
14134
14135 * g-debpoo.adb (Validity): New package with a complete new
14136 implementation of subprograms Is_Valid and Set_Valid.
14137 (Is_Valid): Move to local package Validity
14138 (Set_Valid): Move to local package Validity
14139
141402007-04-06 Arnaud Charlet <charlet@adacore.com>
8a57e48f 14141 Pablo Oliveira <oliveira@adacore.com>
4b437c6b
AC
14142
14143 * g-expect.adb (Get_Command_Output): When expanding the output buffer
14144 we must ensure that there is enough place for the new data we are going
14145 to copy in.
14146
141472007-04-06 Thomas Quinot <quinot@adacore.com>
14148
14149 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
14150 computation.
14151
141522007-04-06 Jose Ruiz <ruiz@adacore.com>
14153 Vincent Celier <celier@adacore.com>
14154
14155 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
14156 (Stack_String): Add this String that contains the name of the Stack
14157 package in the project file.
14158 (Packages_To_Check_By_Stack): Add this list that contains the packages
14159 to be checked by gnatstack, which are the naming and the stack packages.
14160 (Check_Files): If no .ci files were specified for gnatstack we add all
14161 the .ci files belonging to the projects, including binder generated
14162 files.
14163 (Non_VMS_Usage): Document that gnatstack accept project file switches.
14164 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
14165 Add gnatstack to the list of commands that use project file related
14166 switches, and get the single attribute Switches from the stack package
14167 in a project file when calling gnatstack. Parse the -U flag for
14168 processing files belonging to all projects in the project tree.
14169 Remove all processing for command Setup
14170
14171 * prj-attr.adb: Add new package Stack with single attribute Switches
14172
14173 * vms_conv.ads (Command_Type): Add command Stack.
14174 Move to body declarations that are only used in the body: types Item_Id,
14175 Translation_Type, Item_Ptr, Item and its subtypes.
14176
14177 * vms_conv.adb: (Initialize): Add data for new command Stack.
14178 Add declarations moved from the spec: types Item_Id, Translation_Type,
14179 Item_Ptr, Item and its subtypes.
14180 (Cargs_Buffer): New table
14181 (Cargs): New Boolean global variable
14182 (Process_Buffer): New procedure to create arguments
14183 (Place): Put character in table Buffer or Cargs_Buffer depending on the
14184 value of Cargs.
14185 (Process_Argument): Set Cargs when processing qualifiers for GNAT
14186 COMPILE
14187 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
14188 empty, for table Cargs_Buffer.
14189 (Initialize): Remove component Setup in Command_List
14190
141912007-04-06 Vincent Celier <celier@adacore.com>
14192
14193 * gprep.adb (Process_Files.Process_One_File): Use full file name when
14194 issuing pragma Source_Reference.
14195
141962007-04-06 Emmanuel Briot <briot@adacore.com>
14197
14198 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
14199 [[:xdigit:]] character class.
14200 Also raise an exception when an invalid character class is used.
14201
142022007-04-06 Pascal Obry <obry@adacore.com>
14203
14204 * i-cstrea.ads: (fopen): Add encoding parameter.
14205 (freopen): Idem.
14206 Change reference from a-sysdep.c to sysdep.c in comment.
14207 Update copyright notice.
14208 This set of patch add support for the encoding form parameter.
14209
14210 * mingw32.h (S2WSU): New macro to convert from a string to a
14211 wide-string using the UTF-8 encoding. The S2WS macro supports now only
14212 standard 8bits encoding.
14213 (WS2SU): As above but converting from wide-sring to string.
14214 This is needed as it is necessary to have access to both versions in the
14215 runtime for the form parameter encoding support.
14216 This set of patch add support for the encoding form parameter.
14217 (S2WS): Improve implementation to handle cases where the filename is not
14218 UTF-8 encoded. In this case we default to using the current code page
14219 for the conversion.
14220
14221 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
14222 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
14223 the constants defined in adaint.h.
14224 (fopen): Add encoding parameter.
14225 (freopen): Idem.
14226
14227 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
14228 encoding. This is needed for the Reset routine (freopen low level-call).
14229
14230 * s-fileio.adb (Open): Decode encoding form parameter and set the
14231 corresponding encoding value into AFCB structure.
14232 (Reset): Pass the encoding value to freopen.
14233 (Close): Move the call to Lock_Task to the beginning of the procedure.
14234
142352007-04-06 Geert Bosch <bosch@adacore.com>
14236 Robert Dewar <dewar@adacore.com>
14237
14238 * i-fortra.ads: Add Double_Complex type.
14239
14240 * impunit.adb: (Is_Known_Unit): New function
14241 Add Gnat.Byte_Swapping
14242 Add GNAT.SHA1
14243 Add new Ada 2005 units
14244 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
14245 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
14246 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
14247 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
14248
14249 * impunit.ads (Is_Known_Unit): New function
14250
14251 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
14252 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
14253 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
14254 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
14255 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
14256 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
14257 New files.
14258
14259 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
14260
14261 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
14262
9e94c78f 142632007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14264 Arnaud Charlet <charlet@adacore.com>
14265
14266 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
14267 __gnat_adjust_context_for_raise.
14268 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
14269 implementation of floating point operations as native x86 targets.
14270 So the FPU should be initialized in the same way using finit. Fix
14271 floating point operations accuracy issues.
14272 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
14273 member in struct sigaction, so as to avoid warning for incompatible
14274 pointer types.
14275
9e94c78f 142762007-04-06 Serguei Rybin <rybin@adacore.com>
4b437c6b
AC
14277
14278 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
14279 switches from previously loaded tree
14280
142812007-04-06 Thomas Quinot <quinot@adacore.com>
14282
14283 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
14284 cases where a given dependency has a body or not.
14285 (Write_With_File_Names): New subprogram, common code for the two cases
14286 above.
14287
142882007-04-06 Ed Schonberg <schonberg@adacore.com>
14289 Javier Miranda <miranda@adacore.com>
14290
14291 * lib-xref.ads, lib-xref.adb:
14292 Modify the loop that collects type references, to include interface
14293 types that the type implements. List each of these interfaces when
14294 building the entry for the type.
14295 (Generate_Definition): Initialize component Def and Typ of new entry
14296 in table Xrefs, to avoid to have these components unitialized.
14297 (Output_References): Split Is_Abstract flag into
14298 Is_Abstract_Subprogram and Is_Abstract_Type.
14299 (Generate_Reference): Add barrier to do not generate the warning
14300 associated with Ada 2005 entities with entities generated by the
14301 expander.
14302
143032007-04-06 Robert Dewar <dewar@adacore.com>
14304 Arnaud Charlet <charlet@adacore.com>
14305 Vincent Celier <celier@adacore.com>
14306
14307 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
14308 Update 'Exception Handling Control' chapter which was outdated.
14309 Minor fix to documentation of -gnatwq
14310 Remove section "Adapting the Run Time to a New C++ Compiler" because
14311 it is now obsolete.
14312 Add passage on need of -nostart-files in some non-ada-main cases.
14313 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
14314 Update documentation about Interfacing with C++
14315 Add documentation for new gnatmake switch -p
14316 Add missing protocol part in URLs.
14317 Document -gnatyA
14318 Document pragma Compile_Time_Error
14319 Add documentation for Object_Size indicating that stand alone
14320 objects can have a larger size in some cases.
14321 Add node for GNAT.Byte_Swapping, GNAT.SHA1
14322 Update reference to the Ravenscar profile.
14323 Document pragma Unreferenced_Objects
14324
14325 * gnat-style.texi: Fix typo
14326
143272007-04-06 Vincent Celier <celier@adacore.com>
14328
14329 * mlib.adb (Building_Library): Only output "building a library..." in
14330 verbose mode
14331
14332 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
14333 files in verbose mode.
14334
14335 * mlib-utl.adb (Ar): Only output the first object files when not in
14336 verbose mode.
14337 (Gcc): Do not display all the object files if not in verbose mode, only
14338 the first one.
14339
143402007-04-06 Robert Dewar <dewar@adacore.com>
14341
14342 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
14343 it no longer destroys the contents of Name_Buffer or Name_Len and
14344 non-standard and invalid names are handled better.
14345 (Get_Decoded_Name_String): Improve performance by using
14346 Name_Has_No_Encodings flag in the name table.
14347 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
14348 Used for debugging printouts.
14349
143502007-04-06 Robert Dewar <dewar@adacore.com>
14351 Javier Miranda <miranda@adacore.com>
14352 Bob Duff <duff@adacore.com>
14353
14354 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
14355 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
14356 there is no need to generate always a record_definition_node in case
14357 of synchronized interface types.
14358 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
14359 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
14360 illegal in Ada 95, in cases where it is legal. Change the warnings to
14361 errors in other cases. Don't give the error unless the "not null"
14362 parses properly. Correct the source position at which the error occurs.
14363 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
14364 P_Null_Exclusion, to suppress "not null" warnings.
14365 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
14366 associated goto statements.
14367
14368 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
14369 of END RECORD
14370
14371 * scans.ads (Type_Token_Location): New flag
14372
14373 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
14374 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
14375 P_Null_Exclusion, to suppress "not null" warnings.
14376
143772007-04-06 Robert Dewar <dewar@adacore.com>
14378 Javier Miranda <miranda@adacore.com>
14379 Bob Duff <duff@adacore.com>
14380 Vincent Celier <celier@adacore.com>
14381
14382 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
14383 (Extensions_Allowed): No longer sets Ada_Version
14384 Entry for pragma Unreferenced_Objects
14385
14386 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
14387 system.tasking if pragma priority used in a procedure
14388 (Analyze_Pragma, case Warning): Handle dot warning switches
14389 (Process_Compile_Time_Warning_Or_Error): New procedure
14390 (Analyze_Pragma): Add processing for Compile_Time_Error
14391 Add support for extra arguments External_Name and Link_Name.
14392 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
14393 (Process_Import_Or_Interface): Add support for the use of pragma Import
14394 with tagged types.
14395 (Extensions_Allowed): No longer affects Ada_Version
14396 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
14397 Is_Abstract_Type. Make sure these are called only when appropriate.
14398 Add processing for pragma Unreferenced_Objects
14399
14400 * snames.h, snames.ads, snames.adb: Add entry for pragma
14401 Compile_Time_Error
14402 Add new standard name Minimum_Binder_Options for new gprmake
14403 Add new standard names for gprmake: Archive_Suffix,
14404 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
14405 Library_Support, Library_Version_Options,
14406 Shared_Library_Minimum_Options,
14407 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
14408 Change Name_Call to Name_uCall so that it cannot clash with a legal
14409 subprogram name.
14410 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
14411 Append C_Plus_Plus to convention identifiers as synonym for CPP
14412 Add new standard names Stack and Builder_Switches
14413 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
14414 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
14415 Run_Path_Option, Toolchain_Version.
14416 Entry for pragma Unreferenced_Objects
14417
14418 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
14419 switches, without repetition of "eD". Make sure that last character of
14420 -gnatep= switch is not taken as -gnat switch character.
14421 Complete rewrite of circuit for handling saving compilation options
14422 Occasioned by need to support dot switchs for -gnatw, but cleans up
14423 things in general.
14424 -gnatX does not affect Ada_Version
14425 Include -gnatyA in -gnatg style switches
14426
14427 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
14428 warnings on return objects.
14429 (Warn_On_Useless_Assignment): Exclude warnings on return objects
14430 (Set_Dot_Warning_Switch): New procedure
14431 (Check_References): Add missing case of test for
14432 Has_Pragma_Unreferenced_Objects
14433 (Output_Unreferenced_Messages): Implement effect of new pragma
14434 Unreferenced_Objects, remove special casing of limited controlled
14435 variables.
14436
144372007-04-06 Vincent Celier <celier@adacore.com>
14438
14439 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
14440 the default project path, initially done during elaboration of the
14441 package.
14442 If the prefix returned by Sdefault is null, get the prefix from a call
14443 to Executable_Prefix_Path.
14444 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
14445 null.
14446
14447 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
14448 canonical directory name to open the directory from which files are
14449 retrieved.
14450 (Record_Other_Sources): Idem.
14451 (Locate_Directory): Add the possibility to create automatically missing
14452 directories when Setup_Projects is True.
14453 Call Locate_Directory so that the directory will be created when
14454 Setup_Projects is True, for object dir, library dir, library ALI dir,
14455 library source copy dir and exec dir.
14456
14457 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
14458 versions of GNAT.
14459
144602007-04-06 Robert Dewar <dewar@adacore.com>
14461
14462 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
14463 Use First/Next_Component_Or_Discriminant
14464 (Analyze_Record_Representation_Clause):
14465 Use First/Next_Component_Or_Discriminant
14466 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
14467 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
14468 definition if type is unconstrained.
14469 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14470 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
14471 Is_Abstract_Subprogram and Is_Abstract_Type.
14472 (Adjust_Record_For_Reverse_Bit_Order): New procedure
14473
14474 * repinfo.adb (List_Record_Info): Use First/
14475 Next_Component_Or_Discriminant.
14476
14477 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
14478 New procedure.
14479
14480 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
14481 Include -gnatyA in default switches
14482
14483 * opt.ads: (Warn_On_Non_Local_Exception): New flag
14484 (Warn_On_Reverse_Bit_Order): New flag
14485 (Extensions_Allowed): Update the documentation.
14486 (Warn_On_Questionable_Missing_Parens): Now on by default
14487
14488 * usage.adb: Add documentation of -gnatw.x/X switches
14489 Document new -gnatyA style switch
14490 -gnatq warnings are on by default
14491
144922007-04-06 Ed Falis <falis@adacore.com>
14493
14494 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
14495 full word is no longer compared twice.
14496
144972007-04-06 Ed Schonberg <schonberg@adacore.com>
14498
14499 * sem_ch10.adb (Install_Limited_Context_Clauses.
14500 Expand_Limited_With_Clause): Use a new copy of selector name in the
14501 call to Make_With_Clause. This fixes the tree structure for ASIS
14502 purposes. Nothing is changed in the compiler behaviour.
14503 (Process_Body_Clauses): Handle properly use clauses whose prefix is
14504 a package renaming.
14505 (Install_Limited_With_Clauses): Do not install non-limited view when it
14506 is still incomplete.
14507
145082007-04-06 Ed Schonberg <schonberg@adacore.com>
14509 Gary Dismukes <dismukes@adacore.com>
14510
14511 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
14512 when capturing size information, instead of base type, which for a
14513 formal array type will be the unconstrained type.
14514 (Analyze_Formal_Object_Declaration): Add check for illegal default
14515 expressions for a formal in object of a limited type.
14516 (Instantiate_Object): Ditto.
14517 (Check_Formal_Package_Instance): Skip entities that are formal objects,
14518 because they were defaulted in the formal package and no check applies
14519 to them.
14520 (Check_Formal_Package_Instance): Extend conformance check to other
14521 discrete types beyond Integer.
14522 (Process_Default): Copy directly the unmatched formal. A generic copy
14523 has already been performed in Analyze_Formal_Package.
14524 (Analyze_Associations): If a formal subprogram has no match, check for
14525 partial parametrization before looking for a default, to prevent
14526 spurious errors.
14527 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
14528 not set the instantiation environment before analyzing the actuals.
14529 Fixes regression on 8515-003 with implementation of AI-133.
14530 Set_Instance_Env checks whether the generic unit is a predefined
14531 unit, in which case the instance must be analyzed with the latest Ada
14532 mode. This setting must take place after analysis of the actuals,
14533 because the actuals must be analyzed and frozen in the Ada mode extant
14534 outside of the current instantiation.
14535 (Save_Env, Restore_Env): Preserve and restore the configuration
14536 parameters so that predefined units can be compiled in the proper Ada
14537 mode.
14538 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
14539 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
14540 and Is_Abstract_Type.
14541 (Analyze_Formal_Package): For better error recovery, Add exception
14542 handler to catch Instantion_Error, which can be raised in
14543 Analyze_Associations
14544
145452007-04-06 Ed Schonberg <schonberg@adacore.com>
14546 Bob Duff <duff@adacore.com>
14547 Gary Dismukes <dismukes@adacore.com>
14548
14549 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
14550 prefix type is a discriminated subtype of the type of the formal.
14551 (Analyze_Allocator): Collect all coextensions regardless of the context.
14552 Whether they can be allocated statically is determined in exp_ch4.
14553 (Analyze_Selected_Component): If the prefix is a limited view and the
14554 non-limited view is available, use the non-limited one.
14555 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
14556 therefore illegal), suggest a qualified expression rather than a type
14557 conversion, because a type conversion would be illegal in this context.
14558 (Anayze_Allocator): Trace recursively all nested allocators so that all
14559 coextensions are on the corresponding list for the root. Do no mark
14560 coextensions if the root allocator is within a declaration for a stack-
14561 allocated object, because the access discriminants will be allocated on
14562 the stack as well.
14563 (Analyze_Call): Remove restriction on calls to limited functions for the
14564 cases of generic actuals for formal objects, defaults for formal objects
14565 and defaults for record components.
14566 (Analyze_Allocator): Before analysis, chain coextensions on the proper
14567 element list. Their expansion is delayed until the enclosing allocator
14568 is processed and its finalization list constructed.
14569 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
14570 for an operation with the given name among the primitive operations of
14571 the corresponding record type.
14572 (Analyze_Selected_Component): If the prefix is a task type that
14573 implements an interface, and there is no entry with the given name,
14574 check whether there is another primitive operation (e.g. a function)
14575 with that name.
14576 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
14577 properly the indexing of a function call written in prefix form, where
14578 the function returns an array type, and all parameters of the function
14579 except the first have defaults.
14580 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
14581 the original operands, rather than relocating them, for efficiency and
14582 to work properly when an operand is overloaded.
14583 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
14584 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
14585 (Analyze_Selected_Component): If the prefix is a private extension, only
14586 scan the visible components, not those of the full view.
14587 (Try_Primitive_Operation): If the operation is a procedure, collect all
14588 possible interpretations, as for a function, because in the presence of
14589 classwide parameters several primitive operations of the type can match
14590 the given arguments.
14591
145922007-04-06 Ed Schonberg <schonberg@adacore.com>
14593 Robert Dewar <dewar@adacore.com>
14594
14595 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
14596 tag-indeterminate call to an abstract function, when the left-hand side
14597 is not classwide.
14598 (Analyze_Loop_Statement): Improve detection of infinite loops
14599
146002007-04-06 Ed Schonberg <schonberg@adacore.com>
14601 Thomas Quinot <quinot@adacore.com>
14602
14603 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
14604 out of Analyze_Package_Declaration, because processing must be applied
14605 to package bodies as well, for deferred constants completed by pragmas.
14606 (Analyze_Package_Declaration): When the package declaration being
14607 analyzed does not require an explicit body, call Check_Completion.
14608 (May_Need_Implicit_Body): An implicit body is required when a package
14609 spec contains the declaration of a remote access-to-classwide type.
14610 (Analyze_Package_Body): If the package contains RACWs, append the
14611 pending subprogram bodies generated by exp_dist at the end of the body.
14612 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
14613 Is_Abstract_Subprogram and Is_Abstract_Type.
14614 (Preserve_Full_Attributes): The full entity list is not an attribute
14615 that must be preserved from full to partial view.
14616
14617 * sem_dist.adb (Add_RAS_Dereference_TSS):
14618 Change primitive name to _Call so it cannot clash with any legal
14619 identifier, and be special-cased in Check_Completion.
14620 Mark the full view of the designated type for the RACW associated with
14621 a RAS as Comes_From_Source to get proper view switching when installing
14622 private declarations.
14623 Provite a placeholder nested package body along with the nested spec
14624 to have a place for Append_RACW_Bodies to generate the calling stubs
14625 and stream attributes.
14626
146272007-04-06 Ed Schonberg <schonberg@adacore.com>
14628 Robert Dewar <dewar@adacore.com>
14629
14630 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
14631 that is a limited view, check the non-limited view if available.
14632 (Undefined): Refine error message for missing with of Text_IO
14633 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
14634 to distinguish real missing with cases.
14635 Fix format of all missing with messages
14636 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
14637 renaming as body when renamed entity is abstract.
14638
146392007-04-06 Ed Schonberg <schonberg@adacore.com>
14640 Javier Miranda <miranda@adacore.com>
14641
14642 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
14643 predicate recursive, to handle complex expressions on literals whose
14644 spurious ambiguity comes from the abstract interpretation of some
14645 subexpression.
14646 (Interface_Present_In_Ancestor): Add support to concurrent record
14647 types.
14648 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
14649 Is_Abstract_Subprogram and Is_Abstract_Type.
14650
146512007-04-06 Ed Schonberg <schonberg@adacore.com>
14652 Javier Miranda <miranda@adacore.com>
14653
14654 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
14655 dereference of a local object R created as a reference to another
14656 object O, use the access level of O.
14657 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
14658 rather than local Same_Formal_Type, to check whether protected operation
14659 overrides an inherited one.
14660 (Same_Formal_Type): New predicate, used when matching signatures of
14661 overriding synchronized operations, to handle the case when a formal
14662 has a type that is a generic actual.
14663 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
14664 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
14665 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
14666 syntactic ambiguities involving indexing of function calls that return
14667 arrays.
14668 (Abstract_Interface_List): New subprogram that returns the list of
14669 abstract interfaces associated with a concurrent type or a
14670 concurrent record type.
14671 (Interface_Present_In_Parent): New subprogram used to check if a
14672 given type or some of its parents implement a given interface.
14673 (Collect_Abstract_Interfaces): Add support for concurrent types
14674 with interface types.
14675 (Has_Abstract_Interfaces): Add support for concurrent types with
14676 interface types.
14677 (Is_Parent): New subprogram that determines whether E1 is a parent
14678 of E2. For a concurrent type its parent is the first element of its
14679 list of interface types; for other types this function provides the
14680 same result than Is_Ancestor.
14681 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
14682 (Collect_Synchronized_Interfaces): Removed because the subprogram
14683 Collect_Abstract_Interfaces provides this functionality.
14684 (Collect_Abstract_Interfaces): Minor update to give support to
14685 concurrent types and thus avoid undesired code duplication.
14686 (Get_Subprogram_Entity): Handle entry calls.
14687 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
14688 entry calls.
14689 (Enter_Name): Do not give -gnatwh hiding warning for record component
14690 entities, they never result in hiding.
14691
146922007-04-06 Ed Schonberg <schonberg@adacore.com>
14693 Robert Dewar <dewar@adacore.com>
14694
14695 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
14696 to chain nested components that are allocators for access discriminants
14697 of the enclosing object.
14698 Add N_Push and N_Pop nodes
14699 New field Exception_Label added
14700 (Local_Raise_Statements): New field in N_Exception_Handler_Node
14701 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
14702 (Is_Coextension): New flag for allocators, to mark allocators that
14703 correspond to access discriminants of dynamically allocated objects.
14704 (N_Block_Statement): Document the fact that the corresponding entity
14705 can be an E_Return_Statement.
14706 (Is_Coextension): New flag for allocators.
14707 Remove all code for DSP option
14708
14709 * sprint.ads, sprint.adb: Display basic information for class_wide
14710 subtypes. Add handling of N_Push and N_Pop nodes
14711
147122007-04-06 Arnaud Charlet <charlet@adacore.com>
14713
14714 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
14715 before propagating exception.
14716
147172007-04-06 Olivier Hainque <hainque@adacore.com>
14718
14719 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
14720 an address always within the call instruction from a return address.
14721
147222007-04-06 Olivier Hainque <hainque@adacore.com>
9e94c78f 14723 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14724
14725 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
14726 expression with a COMPOUND_EXPR including the call instead of emitting
14727 the call directly here.
14728 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
14729 high bound is constant and the slice is empty. Tidy.
14730 (tree_transform, case N_Op_Not): Handle properly the case where the
14731 operation applies to a private type whose full view is a modular type.
14732 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
14733 Address_Clause, use the associated Expression as the GNAT tree
14734 representing the choice value to ensure the corresponding GCC tree is
14735 of the proper kind.
14736 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
14737 instead of just the operands, as the base GCC stabilize_reference does.
14738 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
14739 requested; otherwise fail.
14740 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
14741
147422007-04-06 Thomas Quinot <quinot@adacore.com>
14743
14744 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
14745 implementation of UI_Div.
14746 (UI_Div): Reimplement as a call to UI_Div_Rem.
14747 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
14748 remainder, avoiding the cost of a multiplication and a subtraction.
14749 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
14750 provides both quotient and remainder in a single computation.
14751 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
14752 functions for uint.
14753 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
14754 is undefined if the given n is not inversible.
14755
147562007-04-06 Olivier Hainque <hainque@adacore.com>
14757
14758 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
14759 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
14760 opcodes.
14761
9e94c78f 147622007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14763 Olivier Hainque <hainque@adacore.com>
14764
14765 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
14766 when updating the contents of the old pointer to an unconstrained array.
14767 (end_subprog_body): Set error_gnat_node to Empty.
14768 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
14769 (unchecked_convert): For subtype to base type conversions, require that
14770 the source be a subtype if it is an integer type.
14771 (builtin_decls): New global, vector of available builtin functions.
14772 (gnat_pushdecl): Add global builtin function declaration nodes to the
14773 builtin_decls list.
14774 (gnat_install_builtins): Adjust comments.
14775 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
14776 calling gnat_pushdecl, so that it knows when it handed a builtin
14777 function declaration node.
14778 (builtin_decl_for): Search the builtin_decls list.
14779
9e94c78f 147802007-04-06 Eric Botcazou <botcazou@adacore.com>
4b437c6b
AC
14781
14782 * s-stchop-vxworks.adb:
14783 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
14784
147852007-04-06 Robert Dewar <dewar@adacore.com>
14786 Arnaud Charlet <charlet@adacore.com>
14787
14788 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
14789
14790 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
14791 of files
14792 Add mention of -Sev (set initialize_scalars option from environment
14793 variable at run time) in gnatbind usage message.
14794
14795 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
14796
14797 * fname-uf.ads: Minor comment fix
14798
14799 * osint.ads: Change pragma Elaborate to Elaborate_All
14800
14801 * par-load.adb: Add documentation.
14802
14803 * sem_cat.ads, sem_cat.adb: Minor code reorganization
14804
14805 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
14806
14807 * s-secsta.ads: Extra comments
14808
14809 * s-soflin.ads: Minor comment fixes
14810
14811 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
14812
14813 * s-wchcon.ads: Minor comment addition
14814
14815 * treepr.adb: Minor change in message
14816 (Print_Name,Print_Node): Make these debug printouts more robust: print
14817 "no such..." instead of crashing on bad input.
14818
47ecd38d
RAE
148192007-03-30 Rafael Avila de Espindola <espindola@google.com>
14820
14821 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
14822 instead of gnat_signed_or_unsigned_type.
14823 * utils.c (gnat_signed_or_unsigned_type): Remove.
14824 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
14825 * gigi.h (gnat_signed_or_unsigned_type): Remove
14826
9645c3c5
RS
148272007-03-09 Roger Sayle <roger@eyesopen.com>
14828
14829 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
14830 fold with the result of buildN.
14831 * decl.c (gnat_to_gnu_entity): Likewise.
14832 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
14833 * utils.c (finish_record_type, merge_sizes, max_size, convert):
14834 Likewise.
14835 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
14836 nonbinary_modular_operation, build_binary_op, build_unary_op,
14837 build_cond_expr): Likewise.
14838
14839 * utils.c (convert): Use fold_build1 when casting values to void.
14840 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
14841 fold_convert instead of convert when appropriate.
14842
c279aa90
BM
148432007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
14844
14845 * Make-lang.in: Add install-pdf target as copied from
14846 automake v1.10 rules.
14847
c2615f30
AS
148482007-02-28 Andreas Schwab <schwab@suse.de>
14849
14850 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
14851 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
14852 (doc/gnat-style.info): Likewise.
14853
7771bb62
BM
148542007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
14855
14856 * gnat-style.texi: Standardize title page.
14857 * gnat_rm.texi: Likewise.
14858 * gnat_ugn.texi: Likewise.
14859
ae19c041
MM
148602007-02-25 Mark Mitchell <mark@codesourcery.com>
14861
14862 * decl.c (annotate_value): Adjust for refactoring of tree_map
14863 hierarchy.
14864
fc8600f9
MM
148652007-02-24 Mark Mitchell <mark@codesourcery.com>
14866
14867 * decl.c (annotate_value): Adjust for refactoring of tree_map
14868 hierarchy.
14869
c0bca7e1
EB
148702007-02-21 Ed Schonberg <schonberg@adacore.com>
14871
14872 PR ada/18819
14873 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
14874 untagged derived type, add hidden components to keep discriminant
14875 layout consistent, when a given discriminant of the derived type
14876 constraints several discriminants of the parent type.
14877
9f3432b8 148782007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6f7f72f9 14879 Sandra Loosemore <sandra@codesourcery.com>
9f3432b8
EB
14880
14881 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
14882 build the call expression.
14883 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
14884 * utils.c (max_size) <tcc_exceptional>: Delete.
14885 <tcc_vl_exp>: New case.
14886 <tcc_expression>: Delete CALL_EXPR subcase.
14887 (build_global_cdtor): Use build_call_nary instead of build3.
14888 * utils2.c (build_call_1_expr): Likewise.
14889 (build_call_2_expr): Likewise.
14890 (build_call_0_expr): Likewise.
14891 (build_call_alloc_dealloc): Likewise.
14892
8438091f
AK
148932007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14894
14895 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
ed41063a 14896 get_action_description_for): Replace _Unwind_Word with _uleb128_t
8438091f
AK
14897 and _Unwind_SWord with _sleb128_t.
14898
0802f6a2
PB
148992007-02-06 Paolo Bonzini <bonzini@gnu.org>
14900
14901 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
14902 * decl.c: Include gt-ada-decl.h.
14903 (annotate_value_cache): New.
14904 (annotate_value): Use it instead of TREE_COMPLEXITY.
14905
326f9a75
KH
149062007-02-03 Kazu Hirata <kazu@codesourcery.com>
14907
14908 * misc.c, utils2.c: Fix comment typos.
14909
cd259a98
RS
149102007-01-24 Roger Sayle <roger@eyesopen.com>
14911
14912 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
14913 TREE_CONSTANT_OVERFLOW.
14914 (allocatable_size_p, annotate_value): Likewise.
14915 * trans.c (gnat_to_gnu): Likewise.
14916 * utils.c (unchecked_convert): Likewise.
14917 * utils2.c (build_simple_component_ref): Likewise.
14918
5305be7e
RG
149192007-01-23 Richard Guenther <rguenther@suse.de>
14920
14921 PR bootstrap/30541
14922 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
14923 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
14924 (gnatboot3): Likewise.
14925 (GNATBIND): Do not define.
14926 * Makefile.in (GNATBIND): Do not define.
14927
2ac7cbb5
RG
149282007-01-08 Richard Guenther <rguenther@suse.de>
14929
14930 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
14931 * trans.c (gnat_to_gnu): Likewise.
14932
2989d30c
GK
149332006-12-07 Geoffrey Keating <geoffk@apple.com>
14934
14935 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
14936 * adaint.c: Likewise.
14937
5848e34a
EB
149382006-12-05 Aldy Hernandez <aldyh@redhat.com>
14939
6f7f72f9 14940 Merge from gimple-tuples-branch:
5848e34a 14941 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6f7f72f9 14942
5848e34a
EB
14943 * ada-tree.h (lang_tree_node): Handle gimple tuples.
14944 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
14945 GIMPLE_MODIFY_STMT.
14946
d3c56bc8
KH
149472006-12-02 Kazu Hirata <kazu@codesourcery.com>
14948
14949 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
14950 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
14951 Fix typos.
14952
9fa25ead
EB
149532006-11-17 Eric Botcazou <ebotcazou@adacore.com>
14954
14955 PR ada/27936
14956 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
14957 if the initializer takes into account the padding.
14958
f9f770a8
RG
149592006-11-11 Richard Guenther <rguenther@suse.de>
14960
14961 * trans.c (maybe_stabilize_reference): Remove handling of
14962 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
14963
75c0ed05
AC
149642006-11-05 Arnaud Charlet <charlet@adacore.com>
14965
ed41063a 14966 PR ada/29707
75c0ed05
AC
14967 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
14968 (To_Target_Priority): New function.
75c0ed05 14969
70198b9f
AC
149702006-10-31 Robert Dewar <dewar@adacore.com>
14971
14972 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
14973 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
14974 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
14975 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
14976 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
14977 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
14978 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
14979 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
14980 a-szbzha.adb: Minor reformatting. Fix header.
14981
14982 * a-numaux-x86.adb: Add parentheses for use of unary minus
14983 * a-ngcefu.adb: Supply missing parentheses for unary minus
14984 * a-ngcoty.adb: Add parens for use of unary minus
14985 * a-ngelfu.adb: Add missing parens for unary minus
14986 * a-tifiio.adb: Add parentheses for uses of unary minus
14987
149882006-10-31 Robert Dewar <dewar@adacore.com>
14989 Bob Duff <duff@adacore.com>
14990 Ed Schonberg <schonberg@adacore.com>
14991
6f7f72f9 14992 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
70198b9f
AC
14993 with multiplying operator.
14994 (Expected_Type_Is_Any_Real): New function to determine from the Parent
14995 pointer whether the context expects "any real type".
14996 (Resolve_Arithmetic_Op): Do not give an error on calls to the
14997 universal_fixed "*" and "/" operators when they are used in a context
14998 that expects any real type. Also set the type of the node to
14999 Universal_Real in this case, because downstream processing requires it
15000 (mainly static expression evaluation).
15001 Reword some continuation messages
15002 Add some \\ sequences to continuation messages
15003 (Resolve_Call): Refine infinite recursion case. The test has been
15004 sharpened to eliminate some false positives.
15005 Check for Current_Task usage now includes entry barrier, and is now a
15006 warning, not an error.
15007 (Resolve): If the call is ambiguous, indicate whether an interpretation
15008 is an inherited operation.
15009 (Check_Aggr): When resolving aggregates, skip associations with a box,
15010 which are priori correct, and will be replaced by an actual default
15011 expression in the course of expansion.
15012 (Resolve_Type_Conversion): Add missing support for conversion from
15013 a class-wide interface to a tagged type. Minor code cleanup.
15014 (Valid_Tagged_Converion): Add support for abstact interface type
15015 conversions.
15016 (Resolve_Selected_Component): Call Generate_Reference here rather than
15017 during analysis, and use May_Be_Lvalue to distinguish read/write.
15018 (Valid_Array_Conversion): New procedure, abstracted from
15019 Valid_Conversion, to incorporate accessibility checks for arrays of
15020 anonymous access types.
15021 (Valid_Conversion): For a conversion to a numeric type occurring in an
15022 instance or inlined body, no need to check that the operand type is
15023 numeric, since this has been checked during analysis of the template.
15024 Remove legacy test for scope name Unchecked_Conversion.
15025
15026 * sem_res.ads: Minor reformatting
15027
15028 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
15029 (PE_Current_Task_In_Entry_Body): New exception code
15030 (SE_Restriction_Violation): Removed, not used
15031
15032 * a-except.ads: Update comments.
15033
15034 * types.h, types.ads: Add definition for Validity_Check
15035 (PE_Current_Task_In_Entry_Body): New exception code
15036 (SE_Restriction_Violation): Removed, not used
15037
150382006-10-31 Thomas Quinot <quinot@adacore.com>
15039
15040 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
15041 error status.
15042
150432006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
15044 Jose Ruiz <ruiz@adacore.com>
15045
15046 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
15047 part of Ada.Calendar: all subprogram raise Unimplemented.
15048 (Split_W_Offset): Temp function body, raising Unimplemented
15049
15050 * a-calend.ads, a-calend-vms.ads:
15051 Add imported variable Invalid_TZ_Offset used to designate targets unable
15052 to support time zones.
15053 (Unimplemented): Temporary function raised by the body of new
15054 subprograms below.
15055 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
15056 unit provides handling of leap seconds and is used by the new Ada 2005
15057 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
15058 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
15059 version returns an extra value which is the offset to UTC.
15060
15061 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
15062 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
15063 (Split_W_Offset): New function body.
15064 (Time_Of): When a date is close to UNIX epoch, compute the time for
15065 that date plus one day (that amount is later substracted after
15066 executing mktime) so there are no problems with time zone adjustments.
15067
15068 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
15069
15070 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
15071 a-catizo.ads, a-catizo.adb: New files.
15072
6f7f72f9 15073 * impunit.adb: Add new Ada 2005 entries
70198b9f
AC
15074
15075 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
15076 Rename all occurences of "__gnat_localtime_r" to
15077 "__gnat_localtime_tzoff".
15078 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
15079 zone data and calculate the GMT offset.
15080 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
15081 Use the field "tm_gmtoff" to extract the GMT offset.
15082 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
15083 the external variable "timezone" to calculate the GMT offset.
15084
150852006-10-31 Arnaud Charlet <charlet@adacore.com>
15086 Jose Ruiz <ruiz@adacore.com>
15087
15088 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
15089 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
15090 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
15091 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
15092 System.Any_Priority to a POSIX priority on the target.
15093
15094 * system-linux-ia64.ads:
15095 Extend range of Priority types on Linux to use the whole range made
15096 available by the system.
15097
15098 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
15099 function maps from System.Any_Priority to a POSIX priority on the
15100 target.
15101 (PTHREAD_PRIO_PROTECT): Set real value.
15102 (PTHREAD_PRIO_INHERIT): Now a function.
15103 (SIGCPUFAIL): New signal.
15104 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
15105 are documented as reserved by the OS.
15106
15107 * system-aix.ads: Use the full range of priorities provided by the
15108 system on AIX.
15109
15110 * s-taprop-posix.adb: Call new function To_Target_Priority.
15111 (Set_Priority): Take into account Task_Dispatching_Policy and
15112 Priority_Specific_Dispatching pragmas when determining if Round Robin
15113 must be used for scheduling the task.
15114
15115 * system-linux-x86_64.ads, system-linux-x86.ads,
15116 system-linux-ppc.ads: Extend range of Priority types on Linux to use
15117 the whole range made available by the system.
15118
15119 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
15120 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
15121 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
15122 when deallocating the TCB in order to avoid potential references to
15123 deallocated data.
15124 (Set_Priority): Take into account Task_Dispatching_Policy and
15125 Priority_Specific_Dispatching pragmas when determining if Round Robin
15126 or FIFO within priorities must be used for scheduling the task.
15127
15128 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
15129 the Thread field (to be used internally by the run-time system) and the
15130 kernel-level task id in the LWP field (to be used by the debugger).
15131 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
15132 instance, and propagate the current task options to the spawned task.
15133 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
15134 (Initialize): Set Round Robin dispatching when the corresponding pragma
15135 is in effect.
15136
151372006-10-31 Robert Dewar <dewar@adacore.com>
15138
15139 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
15140 system-linux-hppa.ads, system-hpux-ia64.ads,
15141 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
15142 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15143 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
15144 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
15145 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
15146 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
15147 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
15148 Default_Bit_Order) to kill constant condition warnings for references
15149 to this switch.
15150
151512006-10-31 Vincent Celier <celier@adacore.com>
15152 Eric Botcazou <ebotcazou@adacore.com>
15153
15154 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
15155 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
15156 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
15157 Ext_To, when building the library file name
15158
15159 * mlib-tgt-vxworks.adb: ditto.
15160 (Get_Target_Suffix): Add support for x86 targets.
15161
15162 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
15163
15164 * mlib-tgt-darwin.adb:
15165 Use Append_To, instead of Ext_To, when building the library file name
15166 (Flat_Namespace): New global variable.
15167 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
15168 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
15169 (Link_Shared_Libgcc): Delete.
15170 (Build_Dynamic_Library): Adjust for above changes.
15171 Use Opt package.
15172 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
15173
151742006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15175
15176 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
15177 (Initialize): Add type conversions required by above change.
15178
151792006-10-31 Jose Ruiz <ruiz@adacore.com>
15180
15181 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
15182 (getpid): New body for this function that uses the underlying taskIdSelf
15183 function for VxWorks 5 and VxWorks 6 in kernel mode.
15184 (unsigned_int): New type, modular to allow logical bit operations.
15185 (taskOptionsGet): New imported function.
15186
15187 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
15188 field to be compliant with the type used by the corresponding operating
15189 system primitive.
15190
151912006-10-31 Pascal Obry <obry@adacore.com>
15192 Eric Botcazou <ebotcazou@adacore.com>
15193 Vincent Celier <celier@adacore.com>
15194
15195 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
15196 ASCII version of the registry API. This is needed as the GNAT runtime
15197 is now UNICODE by default.
15198 Include version.h.
15199 (get_gcc_version): Do not hardcode the return value.
15200 (__gnat_file_time_name): On Windows properly set the default returned
15201 value to -1 which corresponds to Invalid_Time.
15202 (__gnat_fopen): New routine. A simple wrapper on all plateforms
15203 except on Windows where it does conversion for unicode support.
15204 (__gnat_freopen): Idem.
15205 (__gnat_locate_exec_on_path): If environment variable PATH does not
15206 exist, return a NULL pointer
15207
15208 * adaint.h: (__gnat_fopen): Declare.
15209 (__gnat_freopen): Likewise.
15210
15211 * mingw32.h (_tfreopen): Define this macro here for older MingW
15212 version.
15213 Activate the unicode support on platforms using a MingW runtime
15214 version 3.9 or newer.
15215
15216 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
15217 This is needed for proper unicode support on Windows.
15218 (freopen): Idem.
15219
152202006-10-31 Eric Botcazou <ebotcazou@adacore.com>
15221 Nicolas Setton <setton@adacore.com>
15222 Olivier Hainque <hainque@adacore.com>
15223 Gary Dismukes <dismukes@adacore.com>
15224
15225 * gigi.h: (tree_code_for_record_type): Declare.
15226 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
15227 (get_global_renaming_pointers): Rename to
15228 invalidate_global_renaming_pointers.
15229 (static_ctors): Delete.
15230 (static_dtors): Likewise.
15231 (gnat_write_global_declarations): Declare.
15232 (create_var_decl): Adjust descriptive comment to indicate that the
15233 subprogram may return a CONST_DECL node.
15234 (create_true_var_decl): Declare new function, similar to
15235 create_var_decl but forcing the creation of a VAR_DECL node.
15236 (get_global_renaming_pointers): Declare.
15237 (add_global_renaming_pointer): Likewise.
15238
15239 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
15240
15241 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
15242 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
15243 processing.
15244 (gnat_to_gnu_entity): Remove From_With_Type from computation for
15245 imported_p.
15246 <E_Access_Type>: Use the Non_Limited_View as the full view of the
15247 designated type if the pointer comes from a limited_with clause. Make
15248 incomplete designated type if it is in the main unit and has a freeze
15249 node.
15250 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
15251 Underlying_Full_View similarly. Return earlier if the full view already
15252 has an associated tree.
15253 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
15254 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
15255 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
15256 reference type built for objects with an address clause.
15257 Use create_true_var_decl with const_flag set for
15258 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
15259 TREE_READONLY set.
15260 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
15261 for Character and Wide_Character types. This info is read by the
15262 dwarf-2 writer, and is needed to be able to use the command "ptype
15263 character" in the debugger.
15264 (gnat_to_gnu_entity): When generating a type representing
15265 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
15266 so that debug writers can distinguish it from ordinary integers.
15267 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
15268 addition to TREE_READONLY to assert the constantness of variables for
15269 elaboration purposes.
15270 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
15271 parameters to call new Einfo function First_Formal_With_Extras.
15272 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
15273 protected type with its corresponding discriminant, to obtain a usable
15274 declaration
15275 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
15276 for a multiple elaboration of the "equivalent" type.
15277 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
15278 into record_global_renaming_pointer.
15279 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
15280 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
15281 <E_Array_Subtype>: Likewise.
15282 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
15283 incomplete subtypes and incomplete subtypes of incomplete types visible
15284 through a limited with clause.
15285 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
15286 the base index type for the maximum size of the array only if they are
15287 constant.
15288 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
15289 expression into a SAVE_EXPR if stabilization failed.
15290
15291 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
15292 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
15293 by lower level compilation passes.
15294 (gnat_genericize): New function, lowering a function body to GENERIC.
15295 Turn the type of RESULT_DECL into a real reference type if the decl
15296 has been marked DECL_BY_REFERENCE, and adjust references to the latter
15297 accordingly.
15298 (gnat_genericize_r): New function. Tree walking callback for
15299 gnat_genericize.
15300 (convert_from_reference, is_byref_result): New functions. Helpers for
15301 gnat_genericize_r.
15302 (create_type_decl): Call gnat_pushdecl before calling
15303 rest_of_decl_compilation, to make sure that field TYPE_NAME of
15304 type_decl is properly set before calling the debug information writers.
15305 (write_record_type_debug_info): The heuristics which compute the
15306 alignment of a field in a variant record might not be accurate. Add a
15307 safety test to make sure no alignment is set to a smaller value than
15308 the alignment of the field type.
15309 (make_dummy_type): Use the Non_Limited_View as the underlying type if
15310 the type comes from a limited_with clause. Do not loop on the full view.
15311 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
15312 (dummy_node_table): New global variable, moved from decl.c.
15313 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
15314 (save_gnu_tree): Use above macros.
15315 (get_gnu_tree): Likewise.
15316 (present_gnu_tree): Likewise.
15317 (init_dummy_type): New function, moved from decl.c. Use above macros.
15318 (make_dummy_type): Likewise.
15319 (tree_code_for_record_type): New function extracted from make_dummy_type
15320 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
15321 (static_ctors): Change it to a vector, make static.
15322 (static_dtors): Likewise.
15323 (end_subprog_body): Adjust for above change.
15324 (build_global_cdtor): Moved from trans.c.
15325 (gnat_write_global_declarations): Emit global constructor and
15326 destructor, and call cgraph_optimize before emitting debug info for
15327 global declarations.
15328 (global_decls): New global variable.
15329 (gnat_pushdecl): Store the global declarations in global_decls, for
15330 later use.
15331 (gnat_write_global_declarations): Emit debug information for global
15332 declarations.
15333 (create_var_decl_1): Former create_var_decl, with an extra argument to
15334 state whether the creation of a CONST_DECL is allowed.
15335 (create_var_decl): Behavior unchanged. Now a wrapper around
15336 create_var_decl_1 allowing CONST_DECL creation.
15337 (create_true_var_decl): New function, similar to create_var_decl but
15338 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
15339 (create_field_decl): Do not always mark the field as addressable
15340 if its type is an aggregate.
15341 (global_renaming_pointers): New static variable.
15342 (add_global_renaming_pointer): New function.
15343 (get_global_renaming_pointers): Likewise.
15344
15345 * misc.c (gnat_dwarf_name): New function.
15346 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
15347 (gnat_post_options): Add comment about structural alias analysis.
15348 (gnat_parse_file): Do not call cgraph_optimize here.
15349 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
15350
15351 * trans.c (process_freeze_entity): Don't abort if we already have a
15352 non dummy GCC tree for a Concurrent_Record_Type, as it might
15353 legitimately have been elaborated while processing the associated
15354 Concurrent_Type prior to this explicit freeze node.
15355 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
15356 exception handler volatile if it is of variable size.
15357 (process_type): Remove bypass for types coming from a limited_with
15358 clause.
15359 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
15360 actual, convert the corresponding gnu_actual to the real destination
15361 type when necessary.
15362 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
15363 originally TREE_READONLY but whose elaboration cannot be performed
15364 statically.
15365 Part of fix for F504-021.
15366 (tree_transform, subprogram cases): Change loops on formal parameters to
15367 call new Einfo function First_Formal_With_Extras.
15368 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
15369 stemming from type conversion for the lhs.
15370 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
15371 number of bits per unit for components of records.
15372 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
15373 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
15374 with At_End_Proc after the SJLJ EH cleanup.
15375 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
15376 compilation unit.
15377 (elaborate_all_entities): Do not retest type_annotate_only.
15378 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
15379 result type of an abstract subprogram, which may be an itype associated
15380 with an anonymous access result (related to AI-318-02).
15381 (build_global_cdtor): Move to utils.c.
15382 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
15383 this choice is not a null tree nor an integer constant.
15384 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
15385 on the body of elaboration routines instead of mark_unvisited.
15386 (add_stmt): Do not mark the tree.
15387 (add_decl_expr): Tweak comment.
15388 (mark_unvisited): Delete.
15389 (unshare_save_expr): New static function.
15390 (call_to_gnu): Issue an error when making a temporary around a
15391 procedure call because of non-addressable actual parameter if the
15392 type of the formal is by_reference.
15393 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
15394 after building the elaboration routine.
15395
153962006-10-31 Bob Duff <duff@adacore.com>
15397
15398 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
15399 as finalization-started, so we can raise Program_Error on 'new'.
15400
15401 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
15402 collection has already started.
15403
15404 * s-finimp.ads (Collection_Finalization_Started): Added new special
15405 flag value for indicating that a collection's finalization has started.
15406
15407 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
15408 create a task whose master has already waited for dependent tasks.
15409
154102006-10-31 Robert Dewar <dewar@adacore.com>
15411
15412 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
15413
15414 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
15415 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
15416 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
15417 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
15418 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
15419 a-except-2005.ads: Add pragma Preelaborable_Warning
15420
154212006-10-31 Robert Dewar <dewar@adacore.com>
15422 Jose Ruiz <ruiz@adacore.com>
15423
15424 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
15425
15426 * ali.adb (Get_Name): Properly handle scanning of wide character names
15427 encoded with brackets notation.
15428 (Known_ALI_Lines): Add S lines to this list.
15429 (Scan_ALI): Acquire S (priority specific dispatching) lines.
15430 New flag Elaborate_All_Desirable in unit table
15431
15432 * ali.ads (Priority_Specific_Dispatching): Add this range of
15433 identifiers to be used for Priority_Specific_Dispatching table entries.
15434 (ALIs_Record): Add First_Specific_Dispatching and
15435 Last_Specific_Dispatching that point to the first and last entries
15436 respectively in the priority specific dispatching table for this unit.
15437 (Specific_Dispatching): Add this table for storing each S (priority
15438 specific dispatching) line encountered in the input ALI file.
15439 New flag Elaborate_All_Desirable in unit table
15440
15441 * bcheck.adb: (Check_Configuration_Consistency): Add call to
15442 Check_Consistent_Dispatching_Policy.
15443 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
15444 verifying that the use of Priority_Specific_Dispatching,
15445 Task_Dispatching_Policy, and Locking_Policy is consistent across the
15446 partition.
15447
15448 * bindgen.adb: (Public_Version_Warning): function removed.
15449 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
15450 required information from ALI files in order to initialize the table
15451 containing the specific dispatching policy.
15452 (Gen_Adainit_Ada): Generate the variables required for priority specific
15453 dispatching entries (__gl_priority_specific_dispatching and
15454 __gl_num_specific_dispatching).
15455 (Gen_Adainit_C): Generate the variables required for priority specific
15456 dispatching entries (__gl_priority_specific_dispatching and
15457 __gl_num_specific_dispatching).
15458 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
15459 pragma entries.
15460 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
15461 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
15462 (Tab_To): Removed.
15463 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
15464 a call to gnat_set_globals.
15465 Generate a string containing settings from
15466 Priority_Specific_Dispatching pragma entries.
15467 (Gen_Object_Files_Options): Do not include the runtime libraries when
15468 pragma No_Run_Time is specified.
15469
15470 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
15471 consistency with s-intman-posix.adb.
15472 (__gnat_error_handler, case FreeBSD): Account for the fact that the
15473 handler is installed with SA_SIGINFO.
15474 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
15475 FreeBSD ZCX support, copied from Linux version.
15476 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
15477 sigfillset, and sigemptyset so the routines defined by MaRTE.
15478 (__gl_priority_specific_dispatching): Add this variable that stores the
15479 string containing priority specific dispatching policies in the
15480 partition.
15481 (__gl_num_specific_dispatching): Add this variable that indicates the
15482 highest priority for which a priority specific dispatching pragma
15483 applies.
15484 (__gnat_get_specific_dispatching): Add this routine that returns the
15485 priority specific dispatching policy, as set by a
15486 Priority_Specific_Dispatching pragma appearing anywhere in the current
15487 partition. The input argument is the priority number, and the result
15488 is the upper case first character of the policy name.
15489 (__gnat_set_globals): Now a dummy function.
15490 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
15491 mechargs instead of sigargs, as the latter can be retrieved from the
15492 former and sigargs is not what we want on ia64.
15493 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
15494 mechargs argument.
15495 (__gnat_adjust_context_for_raise, ia64-vms): New function.
15496 (tasking_error): Remove unused symbol.
15497 (_abort_signal): Move this symbol to the IRIX specific part since this
15498 is the only target that uses this definition.
15499 (Check_Abort_Status): Move this symbol to the IRIX specific part since
15500 this is the only target that uses this definition.
15501 (Lock_Task): Remove unused symbol.
15502 (Unlock_Task): Remove unused symbol.
15503
15504 * lib-writ.adb (Write_ALI): Output new S lines for
15505 Priority_Specific_Dispatching pragmas.
15506 Implement new flag BD for elaborate body desirable
15507
15508 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
15509 (Specific_Dispatching): Add this table for storing the entries
15510 corresponding to Priority_Specific_Dispatching pragmas.
15511 Document new BD flag for elaborate body desirable
15512
15513 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
15514 of known pragmas.
15515
155162006-10-31 Javier Miranda <miranda@adacore.com>
15517
15518 * a-tags.ads, a-tags.adb:
15519 (Predefined_DT): New function that improves readability of the code.
15520 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
15521 Inherit_DT): Use the new function Predefined_DT to improve code
15522 readability.
15523 (Register_Interface_Tag): Update assertion.
15524 (Set_Interface_Table): Update assertion.
15525 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
15526 determining progenitor interfaces in Tags.
15527 (Inherit_CPP_DT): New subprogram.
15528
6f7f72f9 15529 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
70198b9f 15530 analysis of the thunk code.
6f7f72f9
EB
15531 (Expand_Interface_Conversion): Handle run-time conversion of
15532 access to class wide types.
70198b9f
AC
15533 (Expand_Dispatching_Call): When generating the profile for the
15534 subprogram itype for a dispatching operation, properly terminate the
15535 formal parameters chaind list (set the Next_Entity of the last formal
15536 to Empty).
15537 (Collect_All_Interfaces): Removed. This routine has been moved to
15538 sem_util and renamed as Collect_All_Abstract_Interfaces.
15539 (Set_All_DT_Position): Hidden entities associated with abstract
15540 interface primitives are not taken into account in the check for
15541 3.9.3(10); this check is done with the aliased entity.
15542 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
15543 interfacing with CPP by default.
15544 (Expand_Interface_Conversion): Add missing support for static conversion
15545 from an interface to a tagged type.
15546 (Collect_All_Interfaces): Add new out formal containing the list of
15547 abstract interface types to cleanup the subprogram Make_DT.
15548 (Make_DT): Update the code to generate the table of interfaces in case
15549 of abstract interface types.
15550 (Is_Predefined_Dispatching_Alias): New function that returns true if
15551 a primitive is not a predefined dispatching primitive but it is an
15552 alias of a predefined dispatching primitive.
15553 (Make_DT): If the ancestor of the type is a CPP_Class and we are
15554 compiling under full ABI compatibility mode we avoid the generation of
15555 calls to run-time services that fill the dispatch tables because under
15556 this mode we currently inherit the dispatch tables in the IP subprogram.
15557 (Write_DT): Emit an "is null" indication for a null procedure primitive.
15558 (Expand_Interface_Conversion): Use an address as the type of the formal
15559 of the internally built function that handles the case in which the
15560 target type is an access type.
15561
155622006-10-31 Robert Dewar <dewar@adacore.com>
15563
15564 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
15565
155662006-10-31 Robert Dewar <dewar@adacore.com>
15567
15568 * bindusg.ads, bindusg.adb:
15569 Change to package and rename procedure as Display, which
15570 now ensures that it only outputs usage information once.
15571
155722006-10-31 Jose Ruiz <ruiz@adacore.com>
15573
15574 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
15575 using RTPs.
15576
15577 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
15578 when using RTPs.
15579
155802006-10-31 Robert Dewar <dewar@adacore.com>
15581 Ed Schonberg <schonberg@adacore.com>
15582
15583 * treepr.adb: Use new subtype N_Membership_Test
15584
6f7f72f9
EB
15585 * checks.ads, checks.adb: Add definition for Validity_Check
15586 (Range_Or_Validity_Checks_Suppressed): New function
15587 (Ensure_Valid): Test Validity_Check suppressed
15588 (Insert_Valid_Check): Test Validity_Check suppressed
15589 (Insert_Valid_Check): Preserve Do_Range_Check flag
70198b9f
AC
15590 (Validity_Check_Range): New procedure
15591 (Expr_Known_Valid): Result of membership test is always valid
15592 (Selected_Range_Checks): Range checks cannot be applied to discriminants
15593 by themselves. Disabling those checks must also be done for task types,
15594 where discriminants may be used for the bounds of entry families.
15595 (Apply_Address_Clause_Check): Remove side-effects if address expression
15596 is non-static and is not the name of a declared constant.
15597 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
15598 Code cleanup and new error messages.
15599 (Enable_Range_Check): Test for some cases of suppressed checks
15600 (Generate_Index_Checks): Suppress index checks if index checks are
15601 suppressed for array object or array type.
15602 (Apply_Selected_Length_Checks): Give warning for compile-time detected
15603 length check failure, even if checks are off.
15604 (Ensure_Valid): Do not generate a check on an indexed component whose
15605 prefix is a packed boolean array.
15606 * checks.adb: (Alignment_Checks_Suppressed): New function
15607 (Apply_Address_Clause_Check): New procedure, this is a completely
15608 rewritten replacement for Apply_Alignment_Check
15609 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
15610 we request a discriminal value only in case of discriminants.
15611 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
15612 assignments where the target subtype is unconstrained and the target
15613 object is a parameter or dereference (other aliased cases are known
15614 to be unconstrained).
15615
156162006-10-31 Robert Dewar <dewar@adacore.com>
15617
15618 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
15619 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
15620 vms_conv.adb: Fix bad table increment values (much too small)
15621
15622 * table.adb (Realloc): Make sure we get at least some new elements
15623 Defends against silly small values for table increment
15624
156252006-10-31 Robert Dewar <dewar@adacore.com>
15626 Ed Schonberg <schonberg@adacore.com>
15627 Bob Duff <duff@adacore.com>
15628
15629 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
15630 entities. Move other fields around to make this possible
15631 (Is_Derived_Type): Add missing call to Is_Type.
15632 (Extra_Formals): New function for subprograms, entries, subprogram
15633 types.
15634 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
15635 (First_Formal_With_Extras): New function for subprogs, entries, subp
15636 types.
15637 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
15638 Add node information for E_Return_Statement.
15639 (Elaborate_Body_Desirable): New flag
15640 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
15641 to be Is_Inherently_Limited_Type, because return-by-reference has
15642 no meaning in Ada 2005.
15643 (E_Return_Statement): New entity kind.
15644 (Return_Applies_To): Field of E_Return_Statement.
15645 (Is_Return_Object): New flag in object entities.
15646 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
15647 (Must_Have_Preelab_Init): New flag
15648 (Known_To_Have_Preelab_Init): New flag
15649 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
15650 (Is_Visible_Formal): New flag on entities in formal packages.
15651 (Low_Bound_Known): New flag
15652 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
15653 Incomplete_Kind.
15654 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
15655 output when Id is an incomplete subtype.
15656
156572006-10-31 Robert Dewar <dewar@adacore.com>
15658
15659 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
15660 Avoid abbreviation Creat
15661 (Finalize): List all sources in extended mail source if -gnatl
15662 switch is active.
15663 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
15664 (Finalize): Implement new -gnatl=xxx switch to output listing to file
15665 (Set_Specific_Warning_On): New procedure
15666 (Set_Specific_Warning_Off): New procedure
15667 Add implementation of new insertion \\
15668 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
15669 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
15670 types.
15671 (Error_Msg_Internal): Make sure that we set Last_Killed to
15672 True when a message from another package is suppressed.
15673 Implement insertion character ~ (insert string)
15674 (First_Node): Minor adjustments to get better placement.
15675
15676 * frontend.adb:
15677 Implement new -gnatl=xxx switch to output listing to file
15678
15679 * gnat1drv.adb:
15680 Implement new -gnatl=xxx switch to output listing to file
15681
6f7f72f9 15682 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
70198b9f
AC
15683 (Commands_To_Stdout): New flag
15684 Implement new -gnatl=xxx switch to output listing to file
15685 New switch Dump_Source_Text
15686 (Warn_On_Deleted_Code): New warning flag for -gnatwt
15687 Define Error_Msg_Line_Length
15688 (Warn_On_Assumed_Low_Bound): New switch
15689
15690 * osint.ads, osint.adb
15691 (Normalize_Directory_Name): Fix bug.
15692 Implement new -gnatl=xxx switch to output listing to file
15693 (Concat): Removed, replaced by real concatenation
15694 Make use of concatenation now allowed in compiler
15695 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
15696 we find the 'lib' or 'bin' directory even when the tool has been
15697 invoked with a relative path.
15698 (Executable_Name): New function taking string parameters.
15699
15700 * osint-c.ads, osint-c.adb:
15701 Implement new -gnatl=xxx switch to output listing to file
15702
15703 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
15704
15705 * switch-c.adb:
15706 Implement new -gnatl=xxx switch to output listing to file
15707 Recognize new -gnatL switch
15708 (no longer keep in old warning about old style usage)
15709 Use concatenation to simplify code
15710 Recognize -gnatjnn switch
15711 (Scan_Front_End_Switches): Clean up handling of -gnatW
15712 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
15713
157142006-10-31 Robert Dewar <dewar@adacore.com>
15715
15716 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
15717 (Set_Specific_Warning_Off): New procedure
15718 (Warning_Specifically_Suppressed): New function
15719 (Validate_Specific_Warnings): New procedure
15720 (Output_Msg_Text): Complete rewrite to support -gnatjnn
15721
15722 * err_vars.ads: Implement insertion character ~ (insert string)
15723
157242006-10-31 Bob Duff <duff@adacore.com>
15725 Ed Schonberg <schonberg@adacore.com>
15726
15727 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
15728 the parent part is a build-in-place function call, generate assignments.
15729 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
15730 are build-in-place function calls.
15731 (Replace_Self_Reference): New subsidiary of
15732 Make_OK_Assignment_Statement, to replace an access attribute that is a
15733 self-reference into an access to the appropriate component of the
15734 target object. Generalizes previous mechanism to handle self-references
15735 nested at any level.
15736 (Is_Self_Referential_Init): Remove, not needed.
15737 (Is_Self_Referential_Init): New predicate to simplify handling of self
15738 referential components in record aggregates.
15739 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
15740 check for presence of entity before checking for self-reference.
15741 (Has_Default_Init_Comps): Return True if a component association is a
15742 self-reference to the enclosing type, which can only come from a
15743 default initialization.
15744 (Make_OK_Assignment_Statement): If the expression is of the form
15745 Typ'Acc, where Acc is an access attribute, the expression comes from a
15746 default initialized self-referential component.
15747 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
15748 that has been derived from several abstract interfaces we must also
15749 initialize the tags of the secondary dispatch tables.
15750
157512006-10-31 Ed Schonberg <schonberg@adacore.com>
15752 Thomas Quinot <quinot@adacore.com>
15753 Javier Miranda <miranda@adacore.com>
15754 Robert Dewar <dewar@adacore.com>
6f7f72f9
EB
15755
15756 * exp_attr.adb:
15757 (Expand_Access_To_Protected_Op): If the context indicates that an access
15758 to a local operation may be transfered outside of the object, create an
15759 access to the wrapper operation that must be used in an external call.
70198b9f
AC
15760 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
15761 target, pass the Valid attribute applied to a floating-point prefix on
15762 to the back end without expansion.
15763 (Storage_Size): Use the new run-time function Storage_Size to retrieve
15764 the allocated storage when it is specified by a per-object expression.
15765 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
15766 Nothing to do here, the attribute has been rewritten during semantic
15767 analysis.
15768 (Expand_Attribute_Reference): Handle expansion of the new Priority
15769 attribute
15770 (Find_Fat_Info): Handle case of universal real
15771 (Expand_Access_To_Protected_Op): Fix use of access to protected
15772 subprogram from inside the body of a protected entry.
15773 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
15774 'Access and 'Unrestricted_Access, to transform the attribute reference
15775 into a fat pointer.
15776 (Is_Constrained_Aliased_View): New predicate to help determine whether a
15777 subcomponent's enclosing variable is aliased with a constrained subtype.
15778 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
15779 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
15780 an aliased prefix must be known to be constrained in order to use True
15781 for the attribute value, and now it's possible for some aliased views
15782 to be unconstrained.
15783
157842006-10-31 Robert Dewar <dewar@adacore.com>
15785
15786 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
15787 (Expand_Entity_Reference): Correct error of not handling subprogram
15788 formals in current_value processing.
15789
157902006-10-31 Javier Miranda <miranda@adacore.com>
15791 Robert Dewar <dewar@adacore.com>
15792 Ed Schonberg <schonberg@adacore.com>
15793 Gary Dismukes <dismukes@adacore.com>
15794
6f7f72f9 15795 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
70198b9f
AC
15796 register in the final list objects containing class-wide interfaces;
15797 otherwise we incorrectly register the tag of the interface in the final
15798 list.
6f7f72f9
EB
15799 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
15800 generate the wrapper if the parent primitive is abstract. This is
15801 required to report the correct error message.
15802 (Expand_N_Subtype_Indication): Do validity checks on range
70198b9f
AC
15803 (Clean_Task_Names): If an initialization procedure includes a call to
15804 initialize a task (sub)component, indicate that the procedure will use
15805 the secondary stack.
15806 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
15807 compatibility for interfacing with CPP by default.
15808 (Expand_N_Object_Declaration): Only build an Adjust call when the
15809 object's type is a nonlimited controlled type.
15810 * exp_ch3.adb: Add with and use of Exp_Ch6.
15811 (Expand_N_Object_Declaration): Check for object initialization that is a
15812 call to build-in-place function and apply Make_Build_In_Place_Call_In_
15813 Object_Declaration to the call.
15814 (Freeze_Type): When the designated type of an RACW was not frozen at the
15815 point where the RACW was declared, validate the primitive operations
15816 with respect to E.2.2(14) when it finally is frozen.
15817 (Build_Initialization_Call,Expand_Record_Controller): Rename
15818 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
15819 return-by-reference has no meaning in Ada 2005.
15820 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
15821 to register tag of the immediate ancestor interfaces in the
15822 run-time structure.
15823 (Init_Secondary_Tags): Moved to the specification to allow the
15824 initialization of extension aggregates with abstract interfaces.
15825 (Build_Master_Renaming): Make public, for use by function declarations
15826 whose return type is an anonymous access type.
15827 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
15828 Insert_List_Before_And_Analyze after the generation of the specs
15829 associated with null procedures.
15830 (Expand_Tagged_Root): Update documentation in its specification.
15831 (Init_Secondary_Tags): Update documentation.
15832 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
15833 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
15834 then generate code to inherit the contents of the dispatch table
15835 directly from the ancestor.
15836 (Expand_Record_Controller): Insert controller component after tags of
15837 implemented interfaces.
15838 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
15839 create null procedure overridings when null procedures are inherited
15840 from interfaces.
15841 (Make_Null_Procedure_Specs): New procedure to generate null procedure
15842 declarations for overriding null primitives inherited from interfaces.
15843 (Is_Null_Interface_Procedure): New function in
15844 Make_Null_Procedure_Specs.
15845 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
15846 immediate ancestor of a tagged type is an abstract interface type we
15847 must generate the specification of the predefined primitives associated
15848 with controlled types (because the dispatch table of the ancestor is
15849 null and hence these entries cannot be inherited). This is required to
15850 elaborate well the dispatch table.
15851
158522006-10-31 Javier Miranda <miranda@adacore.com>
15853 Ed Schonberg <schonberg@adacore.com>
15854 Bob Duff <duff@adacore.com>
15855 Gary Dismukes <dismukes@adacore.com>
15856 Robert Dewar <dewar@adacore.com>
6f7f72f9
EB
15857
15858 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
70198b9f 15859 conversion.
6f7f72f9 15860 (Expand_N_In): Do validity checks on range
70198b9f
AC
15861 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
15862 (Expand_N_Allocator): For "new T", if the object is constrained by
15863 discriminant defaults, allocate the right amount of memory, rather than
15864 the maximum for type T.
15865 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
15866 when the allocator is initialized by a build-in-place call, since the
15867 allocator is already rewritten as a reference to the function result,
15868 and this prevents an unwanted duplication of the function call.
15869 Add with and use of Exp_Ch6.
15870 (Expand_Allocator_Expresssion): Check for an allocator whose expression
15871 is a call to build-in-place function and apply
15872 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
15873 untagged designated types).
15874 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
15875 optimization if source or target is biased.
15876 (Expand_N_Allocator): Add comments for case of an allocator within a
15877 function that returns an anonymous access type designating tasks.
15878 (Expand_N_Allocator): apply discriminant checks for access
15879 discriminants of anonymous access types (AI-402, AI-416)
15880
158812006-10-31 Bob Duff <duff@adacore.com>
15882 Robert Dewar <dewar@adacore.com>
15883 Gary Dismukes <dismukes@adacore.com>
15884 Ed Schonberg <schonberg@adacore.com>
15885
15886 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
15887
6f7f72f9 15888 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
70198b9f
AC
15889 (Expand_N_Assignment_Statement): Call
15890 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
15891 build-in-place function call. Currently, this can happen only for
15892 assignments that come from aggregates.
15893 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
15894 in order to alleviate the upward compatibility introduced by AI-318.
15895 (Expand_N_Extended_Return_Statement): Add support for handling the
15896 return object as a build-in-place result.
15897 (Expand_Non_Function_Return): Implement simple return statements nested
15898 within an extended return.
15899 (Enable_New_Return_Processing): Turn on the new processing of return
15900 statements.
15901 (Expand_Non_Function_Return): For a return within an extended return,
15902 don't raise Program_Error, because Sem_Ch6 now gives a warning.
15903 (Expand_N_Extended_Return_Statement): Implement AI-318
15904 (Expand_Simple_Function_Return): Ditto.
15905 (Expand_N_If_Statement): Handle new -gnatwt warning
15906 (Expand_N_Case_Statement): Handle new -gnatwt warning
15907 (Expand_N_Assignment): Handle assignment to the Priority attribute of
15908 a protected object.
15909 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
15910 validity checking of assignments to elementary record components.
15911 (Expand_N_Return_Statement): return Class Wide types on the secondary
15912 stack independantly of their controlled status since with HIE runtimes,
15913 class wide types are not potentially controlled anymore.
15914
15915 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
15916 node kind.
15917
15918 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
15919 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
15920 it expects a block, procedure, or task. The return statement will get
15921 turned into a block, and Expand_Cleanup_Actions will happen then.
15922
159232006-10-31 Robert Dewar <dewar@adacore.com>
15924 Ed Schonberg <schonberg@adacore.com>
15925 Bob Duff <duff@adacore.com>
15926 Gary Dismukes <dismukes@adacore.com>
15927
15928 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
15929 capability.
15930 (Expand_Inlined_Call): Tagged types are by-reference types, and
15931 therefore should be replaced by a renaming declaration in the expanded
15932 body, as is done for limited types.
15933 (Expand_Call): If this is a call to a function with dispatching access
15934 result, propagate tag from context.
15935 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
15936 CPP by default.
15937 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
15938 build-in-place when the right-hand side of an assignment is a
15939 build-in-place function call.
15940 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
15941 of the explicit dereference of the allocator to the result subtype of
15942 the build-in-place function. This is needed to satisfy type checking
15943 in cases where the caller's return object is created by an allocator for
15944 a class-wide access type and the type named in the allocator is a
15945 specific type.
15946 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
15947 conversion of the reference to the declared object to the result subtype
15948 of the build-in-place function. This is needed to satisfy type checking
15949 in cases where the declared object has a class-wide type. Also, in the
15950 class-wide case, change the type of the object entity to the specific
15951 result subtype of the function, to avoid passing a class-wide object
15952 without explicit initialization to the back end.
15953 (Register_Interface_DT_Entry): Moved outside the body of
15954 Freeze_Subprogram because this routine is now public; it is called from
15955 Check_Dispatching_Overriding to handle late overriding of abstract
15956 interface primitives.
15957 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
15958 adding an implicit access actual on a call to a build-in-place function.
15959 (Expand_Actuals): Test for an actual parameter that is a call to a
15960 build-in-place function and apply
15961 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
15962 (Is_Build_In_Place_Function): New function to determine whether an
15963 entity is a function whose calls should be handled as build-in-place.
15964 (Is_Build_In_Place_Function_Call): New function to determine whether an
15965 expression is a function call that should handled as build-in-place.
15966 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
15967 calls to build-in-place functions as the initialization of an allocator.
15968 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
15969 handling calls to build-in-place functions in contexts that do not
15970 involve init of a separate object (for example, actuals of subprogram
15971 calls).
15972 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
15973 handling calls to build-in-place functions as the initialization of an
15974 object declaration.
15975 (Detect_Infinite_Recursion): Add explicit parameter Process to
15976 instantiation of Traverse_Body to avoid unreferenced warning.
15977 (Check_Overriding_Inherited_Interfaces): Removed.
15978 (Register_Interface_DT_Entry): Code cleanup.
15979 (Register_Predefined_DT_Entry): Code cleanup.
15980 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
15981 inlined statements if within a transient scope.
15982 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
15983 formal parameters with occurrences of actuals in inlined body, establish
15984 visibility on the proper view of the actual's subtype for the body's
15985 context.
15986 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
15987 compatibility mode and we have an imported CPP subprogram because
15988 for now we assume that imported CPP primitives correspond with
15989 objects whose constructor is in the CPP side (and therefore we
15990 don't need to generate code to register them in the dispatch table).
15991 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
15992 aligned selected component.
15993 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
15994 the actual of an in-mode parameter is a type conversion.
15995 (Expand_Actuals): If the call does not come from source and the actual
15996 is potentially misaligned, let gigi handle it rather than rejecting the
15997 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
15998 Class Wide types as returning by reference independantly of their
15999 controlled status since with HIE runtimes class wide types are not
16000 potentially controlled anymore.
16001
6f7f72f9 160022006-10-31 Ed Schonberg <schonberg@adacore.com>
70198b9f 16003
6f7f72f9 16004 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
70198b9f
AC
16005 references that are private components of the protected object.
16006 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
16007 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
16008 instantiation to deal with warnings.
16009 (Initialize_Protection): If expression for priority is non-static, use
16010 System_Priority as its expected type, in case the expression has not
16011 been analyzed yet.
16012
160132006-10-31 Robert Dewar <dewar@adacore.com>
16014
16015 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
16016 initialization of Homonym_Len.
16017 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
16018 names from fully qualified name. Fixes problem of duplicate
16019 external names differing only in the presence of such a block name.
16020
160212006-10-31 Thomas Quinot <quinot@adacore.com>
16022 Pablo Oliveira <oliveira@adacore.com>
6f7f72f9
EB
16023
16024 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
70198b9f
AC
16025 subprogram Ids, even if they are not yet assigned.
16026 (Build_Subprogram_Id): It is now this function that will take care of
16027 calling Assign_Subprogram_Ids if necessary.
16028 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
16029 should be done only once they are assigned.
16030 (Build_From_Any_Function, case of tagged types): Add missing call to
16031 Allocate_Buffer.
16032 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
16033 type for an RACW type.
16034 (Add_RACW_Features): When processing an RACW declaration for which the
16035 designated type is already frozen, enforce E.2.2(14) rules immediately.
16036 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
16037 special reordering of controlling formals.
16038
16039 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
16040 associated stub type for an RACW type.
16041
160422006-10-31 Ed Schonberg <schonberg@adacore.com>
16043
16044 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
16045 fixed-point operations in an integer context, i.e. as operands of a
16046 conversion to an integer type, indicate that result must be rounded.
16047
160482006-10-31 Robert Dewar <dewar@adacore.com>
16049
16050 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
16051 cases, pass the encoding method, since it is now required by the run
16052 time.
16053
16054 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
16055 assumption that Str'First = 1.
16056 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
16057 it on to the Value_Wide_Wide_Character call.
16058 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
16059 properly handles a string of the form quote-encoded_wide_char-quote.
16060
16061 * s-wchcnv.adb: Minor reformatting
16062
160632006-10-31 Javier Miranda <miranda@adacore.com>
6f7f72f9 16064
70198b9f
AC
16065 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
16066 run-time membership test to ensure that the constructed object
16067 implements the target abstract interface.
16068
160692006-10-31 Robert Dewar <dewar@adacore.com>
16070
16071 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
16072 Machine_Attribute pragma internally to implement the user pragma.
16073 Add processing for pragma Interface so that it is now completely
16074 equivalent to pragma Import.
16075
16076 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
16077 so that it can be applied to all entities, including record components
16078 and enumeration literals.
16079 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
16080 priority ranges are correct, verify compatibility against task
16081 dispatching and locking policies, and if everything is correct an entry
16082 is added to the table containing priority specific dispatching entries
16083 for this compilation unit.
16084 (Delay_Config_Pragma_Analyze): Delay processing
16085 Priority_Specific_Dispatching pragmas because when processing the
16086 pragma we need to access run-time data, such as the range of
16087 System.Any_Priority.
16088 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
16089 Allow pragma Unreferenced as a context item
16090 Add pragma Preelaborable_Initialization
16091 (Analyze_Pragma, case Interface): Interface is extended so that it is
16092 now syntactically and semantically equivalent to Import.
16093 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
16094 insertion characters.
16095 Add handling for Pragma_Wide_Character_Encoding
16096 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
16097 never supercedes a real restriction, and that a real restriction
16098 always supercedes a warning.
16099 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
16100 appropriate form.
16101
161022006-10-31 Bob Duff <duff@adacore.com>
16103 Ed Schonberg <schonberg@adacore.com>
16104 Robert Dewar <dewar@adacore.com>
16105
16106 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
16107 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
16108 Is_Inherently_Limited_Type, because return-by-reference has no meaning
16109 in Ada 2005.
16110 (Find_Node_To_Be_Wrapped): Use new method of determining the result
16111 type of the function containing a return statement, because the
16112 Return_Type field was removed. We now use the Return_Applies_To field.
16113
6f7f72f9 16114 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
70198b9f
AC
16115 (Build_Task_Image_Decl): If procedure is not called from an
16116 initialization procedure, indicate that function that builds task name
16117 uses the sec. stack. Otherwise the enclosing initialization procedure
16118 will carry the indication.
16119 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
16120 N_Object_Declaration instead.
16121 (Kill_Dead_Code): New interface to implement -gnatwt warning for
16122 conditional dead code killed, and change implementation accordingly.
16123 (Insert_Actions): Add N_Return_Object_Declaration case.
16124 Correct comment to mention N_Extension_Aggregate node.
16125 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
16126 attempts to save information for global variables which cannot be
16127 safely tracked.
16128 (Get_Current_Value_Condition): Handle conditions the other way round
16129 (constant on left). Also handle right operand of AND and AND THEN
16130 (Set_Current_Value_Condition): Corresponding changes
16131 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
16132 (Get_Current_Value_Condition): Handle simple boolean operands
16133 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
16134 (Get_Current_Value_Condition): If the variable reference is within an
16135 if-statement, does not appear in the list of then_statments, and does
16136 not come from source, treat it as being at unknown location.
16137 (Get_Current_Value_Condition): Enhance to allow while statements to be
16138 processed as well as if statements.
16139 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
16140 come from source.
16141 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
16142 of loop. This is safe now that we fixed Kill_Current_Values.
16143 (OK_To_Do_Constant_Replacement): Check whether current scope is
16144 Standard, before examining outer scopes.
16145
161462006-10-31 Vincent Celier <celier@adacore.com>
16147
16148 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
16149 When True, apply VMS treatment to children of packages A, G, I and S.
16150 For F320-016
16151
16152 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
16153
161542006-10-31 Robert Dewar <dewar@adacore.com>
16155 Ed Schonberg <schonberg@adacore.com>
16156
16157 * freeze.adb: Add handling of Last_Assignment field
16158 (Warn_Overlay): Supply missing continuation marks in error msgs
16159 (Freeze_Entity): Add check for Preelaborable_Initialization
16160
16161 * g-comlin.adb: Add Warnings (Off) to prevent new warning
16162
16163 * g-expect.adb: Add Warnings (Off) to prevent new warning
16164
16165 * lib-xref.adb: Add handling of Last_Assignment field
16166 (Generate_Reference): Centralize handling of pragma Obsolescent here
16167 (Generate_Reference): Accept an implicit reference generated for a
16168 default in an instance.
16169 (Generate_Reference): Accept a reference for a node that is not in the
16170 main unit, if it is the generic body corresponding to an subprogram
16171 instantiation.
16172
16173 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
16174
6f7f72f9 16175 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
70198b9f
AC
16176 -gnatwq/Q.
16177 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
16178 exception handler.
16179 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
16180 use clauses, to avoid messages on packages used to qualify, and also
16181 to avoid messages from obsolescent units.
16182 (Warn_On_Useless_Assignments): Don't generate messages for imported
16183 and exported variables.
16184 (Warn_On_Useless_Assignments): New procedure
16185 (Output_Obsolescent_Entity_Warnings): New procedure
16186 (Check_Code_Statement): New procedure
16187
6f7f72f9 16188 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
70198b9f
AC
16189 Change name Is_Ada_2005 to Is_Ada_2005_Only
16190 (Last_Assignment): New field for useless assignment warning
16191
161922006-10-31 Olivier Hainque <hainque@adacore.com>
16193
16194 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
16195 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
16196
161972006-10-31 Bob Duff <duff@adacore.com>
16198 Robert Dewar <dewar@adacore.com>
16199 Ed Schonberg <schonberg@adacore.com>
16200
16201 * g-awk.adb (Default_Session, Current_Session): Compile this file in
16202 Ada 95 mode, because it violates the new rules for AI-318.
16203
16204 * g-awk.ads: Use overloaded subprograms in every case where we used to
16205 have a default of Current_Session. This makes the code closer to be
16206 correct for both Ada 95 and 2005.
16207
16208 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
16209 code, relying on the fact that the compiler generates a warning
16210 instead of an error in -gnatg mode.
16211
16212 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
16213 E_Return_Statement entity kind.
16214 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
16215
16216 * par.adb (P_Interface_Type_Definition): Addition of one formal to
16217 report an error if the reserved word abstract has been previously found.
16218 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
6f7f72f9
EB
16219
16220 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
70198b9f
AC
16221 parenthesized range attribute usage
16222 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
16223
16224 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
16225 in the syntax for extended_return_statement. This is not in the latest
16226 RM, but the ARG is expected to issue an AI allowing this.
16227 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
16228 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
16229 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
16230 P_Return_Statement): Parse the new syntax for extended_return_statement.
16231
16232 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
16233 Output_End_Missing): Add error-recovery code for the new
16234 extended_return_statement syntax; that is, the new E_Return entry on
16235 the scope stack.
16236
16237 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
16238 limited to nonlimited, because otherwise we violate the new Ada 2005
16239 rules about returning limited types in function Create_AST_Handler in
16240 s-asthan.adb.
16241
16242 * sem.adb (Analyze): Add cases for new node kinds
16243 N_Extended_Return_Statement and N_Return_Object_Declaration.
16244
16245 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
16246 type is in the same category as type of context before applying check,
16247 to prevent anomalies in instantiations.
16248 (Resolve_Aggregate): Remove test for limited components in aggregates.
16249 It's unnecessary in Ada 95, because if it has limited components, then
16250 it must be limited. It's wrong in Ada 2005, because limited aggregates
16251 are now allowed.
16252 (Resolve_Record_Aggregate): Move check for limited types later, because
16253 OK_For_Limited_Init requires its argument to have been resolved.
16254 (Get_Value): When copying the component default expression for a
16255 defaulted association in an aggregate, use the sloc of the aggregate
16256 and not that of the original expression, to prevent spurious
16257 elaboration errors, when the expression includes function calls.
16258 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
16259 were missing. We also didn't handle qualified expressions. Now also
16260 allow function calls. Use new common routine OK_For_Limited_Init.
16261 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
16262 with space can upper case letter).
16263
6f7f72f9 16264 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
70198b9f 16265 Has_Static_Discriminants flag
6f7f72f9
EB
16266 (Record_Type_Declaration): Diagnose an attempt to declare an interface
16267 type with discriminants.
16268 (Process_Range_Expr_In_Decl): Do validity checks on range
70198b9f
AC
16269 (Build_Discriminant_Constraints): Use updated form of
16270 Denotes_Discriminant.
16271 (Process_Subtype): If the subtype is a private subtype whose full view
16272 is a concurrent subtype, introduce an itype reference to prevent scope
16273 anomalies in gigi.
16274 (Build_Derived_Record_Type, Collect_Interface_Primitives,
16275 Record_Type_Declaration): The functionality of the subprograms
16276 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
16277 is now performed by a single routine.
16278 (Build_Derived_Record_Type): If the type definition includes an explicit
16279 indication of limitedness, then the type must be marked as limited here
16280 to ensure that any access discriminants will not be treated as having
16281 a local anonymous access type.
16282 (Check_Abstract_Overriding): Issue a detailed error message when an
16283 abstract subprogram was not overridden due to incorrect mode of its
16284 first parameter.
16285 (Analyze_Private_Extension_Declaration): Add support for the analysis of
16286 synchronized private extension declarations. Verify that the ancestor is
16287 a limited or synchronized interface or in the generic case, the ancestor
16288 is a tagged limited type or synchronized interface and all progenitors
16289 are either limited or synchronized interfaces.
16290 Derived_Type_Declaration): Check for presence of private extension when
16291 dealing with synchronized formal derived types.
16292 Process_Full_View): Enchance the check done on the usage of "limited" by
16293 testing whether the private view is synchronized.
16294 Verify that a synchronized private view is completed by a protected or
16295 task type.
16296 (OK_For_Limited_Init_In_05): New function.
16297 (Analyze_Object_Declaration): Move check for limited types later,
16298 because OK_For_Limited_Init requires its argument to have been resolved.
16299 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16300 in order to alleviate the upward compatibility introduced by AI-318.
16301 (Constrain_Corresponding_Record): If the constraint is for a component
16302 subtype, mark the itype as frozen, to avoid out-of-scope references to
16303 discriminants in the back-end.
16304 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
16305 this subprogram against wrong sources.
16306 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
16307 discriminant of limited type completed with a protected type, when the
16308 discriminant is used to constrain a private component of the type, and
16309 expansion is disabled.
16310 (Find_Type_Of_Object): Do not treat a return subtype that is an
16311 anonymous subtype as a local_anonymous_type, because its accessibility
16312 level is the return type of the enclosing function.
16313 (Check_Initialization): In -gnatg mode, turn the error "cannot
16314 initialize entities of limited type" into a warning.
16315 (OK_For_Limited_Init): Return true for generated nodes, since it
16316 sometimes violates the legality rules.
16317 (Make_Incomplete_Declaration): If the type for which an incomplete
16318 declaration is created happens to be the currently visible entity,
16319 preserve the homonym chain when removing it from visibility.
16320 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
16321 inherited subprograms.
16322 (Access_Definition): If this is an access to function that is the return
16323 type of an access_to_function definition, context is a type declaration
16324 and the scope of the anonymous type is the current one.
16325 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
16326 incomplete subtype to the set of private dependents of the original
16327 incomplete type.
16328 (Constrain_Discriminated_Type): Emit an error message whenever an
16329 incomplete subtype is being constrained.
16330 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
16331 corresponding subtype of the full view of the original incomplete type.
16332 (Check_Incomplete): Properly detect invalid usage of incomplete types
16333 and subtypes.
16334
163352006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16336
16337 * g-catiio.ads, g-catiio.adb (Value): New function.
16338 Given an input String, try and parse a valid Time value.
16339
163402006-10-31 Vincent Celier <celier@adacore.com>
16341
16342 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
16343 Integer_Address arithmetic, as in Set_Valid.
16344
163452006-10-31 Arnaud Charlet <charlet@adacore.com>
16346 Robert Dewar <dewar@adacore.com>
16347
16348 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
16349 handling executable extension manually and duplicating code.
16350
16351 * make.adb: Implement new -S switch
16352 (Gnatmake): Use new function Osint.Executable_Name instead
16353 of handling executable extension manually.
16354
16355 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
16356 is specified, the executable name ends with this suffix.
16357 Take advantage of Osint.Executable_Name instead of duplicating code.
16358
16359 * switch-m.adb: Recognize new gnatmake -S switch
16360
16361 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
16362 variable.
16363 (Get_Target_Parameters): Set Executable_Extension_On_Target if
16364 available.
16365
16366 * makeusg.adb: Add line for gnatmake -S switch
16367
163682006-10-31 Vincent Celier <celier@adacore.com>
16369
16370 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
16371 call it with -static-libgcc, as there are some platforms, such as
16372 Darwin, where one of these two switches is compulsory to link.
16373
163742006-10-31 Vincent Celier <celier@adacore.com>
6f7f72f9 16375
70198b9f
AC
16376 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
16377 instead of ADA_PROJECT_PATH, for the project path.
16378 (Gnatls): When displaying the project path directories, use host dir
16379 specs.
16380
16381 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
16382 names in the project path, as absolute paths may correspond to
16383 multi-valued VMS logical names.
16384
163852006-10-31 Vincent Celier <celier@adacore.com>
16386
16387 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
16388 absolute path name.
16389 (Locate_Regular_File): Ditto
16390 (Change_Dir): Remove, no longer used
16391 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
16392 on Windows. Get it calling Get_Current_Dir.
16393 (OpenVMS): Remove imported boolean, no longer needed.
16394 (Normalize_Pathname)[VMS]: Do not resolve directory names.
16395 (Pid_To_Integer): New function to convert a Process_Id to Integer
16396
163972006-10-31 Thomas Quinot <quinot@adacore.com>
16398
16399 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
16400 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
16401 to No_Socket.
16402 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
16403 W_Sig_Socket.
16404
164052006-10-31 Robert Dewar <dewar@adacore.com>
16406
16407 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
16408 initial letter o as a zero.
16409
164102006-10-31 Robert Dewar <dewar@adacore.com>
16411
16412 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
16413
164142006-10-31 Robert Dewar <dewar@adacore.com>
16415
6f7f72f9
EB
16416 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
16417 variant records
16418 (Layout_Variant_Record): Retrieve the discriminants from the entity
70198b9f
AC
16419 rather than from the type definition, because in the case of a full
16420 type for a private type we need to take the discriminants from the
16421 partial view.
6f7f72f9
EB
16422 (Layout_Component_List): When applying the Max operator to variants with
16423 a nonstatic size, check whether either operand is static and scale that
16424 operand from bits to storage units before applying Max.
70198b9f
AC
16425 (Layout_Type): In VMS, if a C-convention access type has no explicit
16426 size clause (and does not inherit one in the case of a derived type),
16427 then the size is reset to 32 from 64.
16428
164292006-10-31 Vincent Celier <celier@adacore.com>
16430
16431 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
16432 its file has already been loaded, according to the unit being loaded,
16433 not to the current value of Multiple_Unit_Index.
16434
164352006-10-31 Thomas Quinot <quinot@adacore.com>
16436 Eric Botcazou <ebotcazou@adacore.com>
16437 Arnaud Charlet <charlet@adacore.com>
16438
16439 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
16440 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
16441 possible.
16442 (a-except.o): Pass it to the compiler.
16443 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
16444 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
16445 a-calend-mingw.adb version.
16446
6f7f72f9 16447 * Makefile.rtl: Added s-dsaser.
70198b9f
AC
16448 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
16449 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
16450 Ada.Dispatching.Round_Robin.
16451 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
16452
16453 * Make-lang.in: Remove all references to gt-ada-decl.h.
16454 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
16455 sources.
16456 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
16457 Update dependencies.
16458
16459 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
16460
164612006-10-31 Vincent Celier <celier@adacore.com>
16462
16463 * mlib-utl.adb (Initialized): Remove, no longer used
16464 (Initialize): Remove, no longer used
16465 (Ar): If Ar_Exec is null, get the location of the archive builder and,
16466 if there is one, the archive indexer. Fail if the archive builder cannot
16467 be found.
16468 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
16469 be found.
16470
164712006-10-31 Ed Schonberg <schonberg@adacore.com>
16472
16473 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
16474 Process_Body_Clauses): If the context of a body includes a use clause
16475 for P.Q then a with_clause for P in the same body is not redundant,
16476 even if the spec also has a with_clause on P.
16477 Add missing continuation mark to error msg
16478 (Build_Limited_Views): A limited view of a type is tagged if its
16479 declaration includes a record extension.
16480 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
16481 node, even if the subunit has errors. This avoids malfunction by
16482 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
16483 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
16484 generation of obsolescent messages for with statements (cannot do
16485 this too early, or we cannot implement avoiding the messages in the
16486 case of obsolescent units withing obsolescent units).
16487 (Install_Siblings): If the with_clause is on a remote descendant of
16488 an ancestor of the current compilation unit, find whether there is
16489 a sibling child unit that is immediately visible.
16490 (Remove_Private_With_Clauses): New procedure, invoked after completing
16491 the analysis of the private part of a nested package, to remove from
16492 visibility the private with_clauses of the enclosing package
16493 declaration.
16494 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
16495 now centralized in Generate_Reference.
16496 (Install_Limited_Context_Clauses): Remove superfluous error
16497 message associated with unlimited view visible through use
16498 and renamings. In addition, at the point in which the error
16499 is reported, we add the backslash to the text of the error
16500 to ensure that it is reported as a single error message.
16501 Use new // insertion for some continuation messages
16502 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
16503 to create implicit with_clause for parent unit mentioned in original
16504 limited_with_clause.
16505 (Install_Limited_With_Unit): Set entity of parent identifiers if the
16506 unit is a child unit. For ASIS queries.
16507 (Analyze_Subunit): If the subunit appears within a child unit, make all
16508 ancestor child units directly visible again.
16509
165102006-10-31 Robert Dewar <dewar@adacore.com>
16511
16512 * par-ch10.adb (P_Context_Clause): Minor error message fix
16513
165142006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16515 Javier Miranda <miranda@adacore.com>
16516
16517 * par-ch12.adb: Grammar update and cleanup.
16518 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
16519 support for synchronized derived type definitions.
16520 Add the new actual Abstract_Present to every call to
16521 P_Interface_Type_Definition.
16522 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
16523 a formal object declaration with an access definition or a subtype mark
16524 with a null exclusion.
16525 (P_Generic_Association): Handle association with box, and others_choice
16526 with box, to support Ada 2005 partially parametrized formal packages.
16527
165282006-10-31 Robert Dewar <dewar@adacore.com>
16529 Javier Miranda <miranda@adacore.com>
6f7f72f9 16530
70198b9f
AC
16531 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
16532 (P_Type_Declaration): Remove barrier against the reserved word "limited"
16533 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
16534 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
16535 private extensions.
16536 (P_Type_Declaration): Add the new actual Abstract_Present to every call
16537 to P_Interface_Type_Definition.
16538 (P_Interface_Type_Definition): Addition of one formal to report an error
16539 if the reserved word abstract has been previously found.
16540 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
16541 object renaming declaration with an access definition or subtype mark
16542 with a possible null exclusion.
16543
16544 * par-ch9.adb: Minor error msg fix
16545
16546 * par-load.adb: Add missing continuation mark to error msg
16547
16548 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
16549
165502006-10-31 Vincent Celier <celier@adacore.com>
16551
16552 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
16553 unknown attribute in unknown package or in package that does not need
16554 to be checked.
16555 (Parse_Package_Declaration): Do not issue warning for unknown package in
16556 quiet output.
16557
165582006-10-31 Vincent Celier <celier@adacore.com>
16559
16560 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
16561 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
16562 Packages_To_Check.
16563
165642006-10-31 Vincent Celier <celier@adacore.com>
16565
16566 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
16567 on VMS, change "__" to '.' before checking the name.
16568 (Record_Ada_Source): Always add the source file name in the list of
16569 of sources, even if it is not the first time, as it is for another
16570 source index.
16571 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
16572 dot, instead of replacing only the first '_'.
16573
16574 * prj-part.adb (Parse): Convert project file path to canonical form
16575
16576 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
16577 extended, the project id of the project extending it is recorded in its
16578 data, even when it has already been processed as an imported project.
16579
165802006-10-31 Robert Dewar <dewar@adacore.com>
16581
16582 * repinfo.adb (List_Entities): Don't list entities from renaming
16583 declarations.
16584
165852006-10-31 Arnaud Charlet <charlet@adacore.com>
16586 Robert Dewar <dewar@adacore.com>
16587
16588 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
16589 only a restriction warning is active for the given restriction. This is
16590 desirable because we do not want to modify code in the case where only
16591 a warning is set.
16592 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
16593 causes overriding of real restrictions.
16594 Take advantage of new No_Restrictions constant.
16595
16596 * raise.h: (__gnat_set_globals): Change profile.
16597
165982006-10-31 Arnaud Charlet <charlet@adacore.com>
70198b9f 16599
6f7f72f9
EB
16600 * rtsfind.adb: Remove s-polint from comment as it exists no more.
16601
16602 * rtsfind.ads:
16603 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
16604 Move all the entities in obsolete package System.PolyORB_Interface to
16605 System.Partition_Interface.
70198b9f
AC
16606 (RE_Storage_Size): New function in System.Tasking.
16607 (RE_Get_Ceiling): New entity.
16608 (RE_Set_Ceiling): New entity.
16609 (RO_PE_Get_Ceiling): New entity.
16610 (RO_RE_Set_Ceiling): New entity.
16611 (Inherit_CPP_DT): New entity
16612
166132006-10-31 Robert Dewar <dewar@adacore.com>
16614
16615 * scng.adb (Scan, case of numeric literal): Better msg for identifier
16616 starting with a digit.
16617
166182006-10-31 Ed Schonberg <schonberg@adacore.com>
16619 Thomas Quinot <quinot@adacore.com>
16620 Javier Miranda <miranda@adacore.com>
16621 Gary Dismukes <dismukes@adacore.com>
16622
16623 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
16624 properly an attempt to apply Unchecked_Access to a protected operation.
16625 (OK_Self_Reference): New subprogram to check the legality of an access
16626 attribute whose prefix is the type of an enclosing aggregate.
16627 Generalizes previous mechanism to handle attribute references nested
16628 arbitrarily deep within the aggregate.
16629 (Analyze_Access_Attribute): An access attribute whose prefix is a type
16630 can appear in an aggregate if this is a default-initialized aggregate
16631 for a self-referential type.
16632 (Resolve_Attribute, case Access): Ditto.
16633 Add support for new implementation defined attribute Stub_Type.
16634 (Eval_Attribute, case Attribute_Stub_Type): New case.
16635 (Analyze_Attribute, case Attribute_Stub_Type): New case.
16636 (Stream_Attribute_Available): Implement using new subprogram from
16637 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
16638 Has_Specified_Stream_Attribute flag.
16639 Disallow Storage_Size and Storage_Pool for access to subprogram
16640 (Resolve_Attribute, case 'Access et al): Take into account anonymous
16641 access types of return subtypes in extended return statements. Remove
16642 accessibility checks on anonymous access types when Unchecked_Access is
16643 used.
16644 (Analyze_Attribute): Add support for the use of 'Class to convert
16645 a class-wide interface to a tagged type.
16646 Add support for the attribute Priority.
16647 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
16648 whether the designated type is discriminated with a constrained partial
16649 view and require static matching in that case.
16650 Add local variable Des_Btyp. The Designated_Type
16651 of an access to incomplete subtype is either its non-limited view if
16652 coming from a limited with or its etype if regular incomplete subtype.
16653
16654 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
16655 Fix predicate to identify and allow cases of (expander-generated)
16656 references to tag of designated object of a RACW.
16657 (Validate_Static_Object_Name): In Ada 2005, a formal object is
16658 non-static, and therefore cannot appear as a primary in a preelaborable
16659 package.
16660 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
16661 Has_Read_Write_Attributes.
16662 (Has_Read_Write_Attributes): Reimplement in termes of
16663 Has_Stream_Attribute_Definition.
16664 (Missing_Read_Write_Attributes): When checking component types in a
16665 record, unconditionally call Missing_Read_Write_Attributes recursively
16666 (remove guard checking for Is_Record_Type / Is_Access_Type).
16667
166682006-10-31 Robert Dewar <dewar@adacore.com>
16669
16670 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
16671 useless assignments here and conditionalize it on absence of exception
16672 handlers.
16673 (Analyze_Exception_Handlers): Small code reorganization of error
16674 detection code, for new handling of formal packages.
16675
166762006-10-31 Ed Schonberg <schonberg@adacore.com>
16677 Hristian Kirtchev <kirtchev@adacore.com>
6f7f72f9
EB
16678
16679 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
70198b9f
AC
16680 that has been constant-folded, preserve information of original tree,
16681 for ASIS uses.
16682 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
16683 generated private extension declaration if the formal derived type is
16684 synchronized. Carry synchronized present over to the generated private
16685 extension.
16686 (Validate_Derived_Type_Instance): Ensure that the actual of a
16687 synchronized formal derived type is a synchronized tagged type.
16688 (Instantiate_Formal_Package): When creating the instantiation used to
16689 validate the actual package of a formal declared without a box, check
16690 whether the formal itself depends on a prior actual.
16691 (Instantiate_Formal_Subprogram): Create new entities for the defining
16692 identifiers of the formals in the renaming declaration, for ASIS use.
16693 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
16694 a renaming declaration or a subtype declaration for an actual in an
16695 instance, capture location information of declaration in generic, for
16696 ASIS use.
16697 (Instantiate_Formal_Package): Add comments on needed additional tests.
16698 AI-317 (partial parametrization) is fully implemented.
16699 (Validate_Private_Type_Instance): Add check for actual which
16700 must have preelaborable initialization
16701 Use new // insertion for some continuation messages
16702 (Analyze_Formal_Object_Declaration): Change usage of Expression to
16703 Default_Expression. Add type retrieval when the declaration has an
16704 access definition. Update premature usage of incomplete type check.
16705 (Check_Access_Definition): New subsidiary routine. Check whether the
16706 current compilation version is Ada 05 and the supplied node has an
16707 access definition.
16708 (Instantiate object): Alphabetize local variables. Handle the creation
16709 of new renaming declarations with respect to the kind of definition
16710 used - either an access definition or a subtype mark. Guard against
16711 unnecessary error message in the context of anonymous access types after
16712 they have been resolved. Add check for required null exclusion in a
16713 formal object declaration.
16714 (Switch_View): A private subtype of a non-private type needs to be
16715 switched (the base type can have been switched without its private
16716 dependents because of the last branch of Check_Private_View.
16717 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
16718 value from BT.
16719 (Instantiate_Type): Emit an error message whenever a class-wide type of
16720 a tagged incomplete type is used as a generic actual.
16721 (Find_Actual_Type): Extend routine to handle a component type in a child
16722 unit that is imported from a formal package in a parent.
16723 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
16724 agree on constrainedness, rather than checking against ultimate ancestor
16725 (Instantiate_Subprogram_Body): Create a cross-reference link to the
16726 generic body, for navigation purposes.
16727
167282006-10-31 Robert Dewar <dewar@adacore.com>
16729 Thomas Quinot <quinot@adacore.com>
16730
16731 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
16732 type.
16733 (New_Stream_Subprogram): When processing an attribute definition clause
16734 for a stream-oriented subprogram, record an entity node occurring at
16735 the point of clause to use for checking the visibility of the clause,
16736 as defined by 8.3(23) as amended by AI-195.
16737 (New_Stream_Subprogram): New procedure, factoring behaviour from both
16738 New_Stream_Function and New_Stream_Procedure.
16739 (New_Stream_Function, New_Stream_Procedure): Removed.
16740 (Analyze_Attribute_Definition_Clause, case Address): Check new
16741 Alignment_Check check
16742
167432006-10-31 Ed Schonberg <schonberg@adacore.com>
16744 Javier Miranda <miranda@adacore.com>
16745 Robert Dewar <dewar@adacore.com>
16746
16747 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
16748 generate the same errors compiling under -gnatc.
16749 (Try_Object_Operation): If no candidate interpretation succeeds, but
16750 there is at least one primitive operation with the right name, report
16751 error in call rather than on a malformed selected component.
16752 (Analyze_Selected_Component): If the prefix is an incomplete type from
16753 a limited view, and the full view is available, use the full view to
16754 determine whether this is a prefixed call to a primitive operation.
16755 (Operator_Check): Verify that a candidate interpretation is a binary
16756 operation before checking the type of its second formal.
16757 (Analyze_Call): Add additional warnings for function call contexts not
16758 yet supported.
16759 (Analyze_Allocator): Move the check for "initialization not allowed for
16760 limited types" after analyzing the expression. This is necessary,
16761 because OK_For_Limited_Init looks at the structure of the expression.
16762 Before analysis, we don't necessarily know what sort of expression it
16763 is. For example, we don't know whether F(X) is a function call or an
16764 indexed component; the former is legal in Ada 2005; the latter is not.
16765 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
16766 were missing. We also didn't handle qualified expressions. Now also
16767 allow function calls. Use new common routine OK_For_Limited_Init.
16768 (Analyze_Type_Conversion): Do not perform some legality checks in an
16769 instance, because the error message will be redundant or spurious.
16770 (Analyze_Overloaded_Selected_Component): Do not do style check when
16771 setting an entity, since we do not know it is the right entity yet.
16772 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
16773 (Analyze_Overloaded_Selected_Component): Same change
16774 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
16775 since regular incomplete subtypes are transformed into corresponding
16776 subtypes of their full views.
16777 (Complete_Object_Operation): Treat name of transformed subprogram call
16778 as coming from source, for browsing purposes.
16779 (Try_Primitive_Operation): If formal is an access parameter, compare
16780 with base type of object to determine whether it is a primitive
16781 operation.
16782 (Operator_Check): If no interpretation of the operator matches, check
16783 whether a use clause on any candidate might make the operation legal.
16784 (Try_Class_Wide_Operation): Check whether the first parameter is an
16785 access type whose designated type is class-wide.
16786
167872006-10-31 Robert Dewar <dewar@adacore.com>
16788 Ed Schonberg <schonberg@adacore.com>
16789 Gary Dismukes <dismukes@adacore.com>
16790
16791 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
16792 warn on infinite loops.
16793 Add \\ to some continuation messages
16794 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
16795 (Process_Bounds): If the bounds are integer literals that result from
16796 constant-folding, and they carry a user-defined type, preserve that type
16797 rather than treating this as an integer range.
16798 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
16799 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
16800 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
16801 left hand side of assignment.
16802 (Analyze_Assignment): Add suport to manage assigments to the attribute
16803 priority of a protected object.
16804 (Check_Possible_Current_Value_Condition): Allow fully qualified names
16805 not just identifiers.
16806 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
16807 or AND THEN for possible tracking.
16808 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
16809 case of while loops so we can track values in the loop body.
16810
168112006-10-31 Ed Schonberg <schonberg@adacore.com>
16812 Hristian Kirtchev <kirtchev@adacore.com>
16813 Bob Duff <duff@adacore.com>
6f7f72f9 16814
70198b9f
AC
16815 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
16816 procedure cannot be a protected operation (it is a basic_declaration,
16817 not a subprogram_declaration).
16818 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
16819 Subp. Add logic for entry processing.
16820 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
16821 Determine whether an entry or subprogram of a protected or task type
16822 override an inherited primitive of an implemented interface.
16823 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
16824 Update the actual used in calls to Check_Overriding_Indicator.
16825 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
16826 generate the proper reference to the parent unit, for cross-reference.
16827 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
16828 Is_Formal.
16829 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
16830 (Add_Extra_Formal): Revise procedure to allow passing in associated
16831 entity, scope, and name suffix, and handle setting of the new
16832 Extra_Formals field.
16833 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
16834 pass new parameters. Add support for adding the new extra access formal
16835 for functions whose calls are treated as build-in-place.
16836 (Analyze_A_Return_Statement): Correct casing in error message.
16837 Move Pop_Scope to after Analyze_Function_Return, because an extended
16838 return statement really is a full-fledged scope. Otherwise, visibility
16839 doesn't work right. Correct use of "\" for continuation messages.
16840 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
16841 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
16842 the node doesn't get properly marked as analyzed.
16843 (Analyze_Subprogram_Body): If subprogram is a function that returns
16844 an anonymous access type that denotes a task, build a Master Entity
16845 for it.
16846 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
16847 proper usage of null exclusion in a result definition.
16848 (Process_Formals): Code cleanup and new error message.
16849 (Process_Formals): Detect incorrect application of null exclusion to
16850 non-access types.
16851 (Conforming_Types): Handle conformance between [sub]types and itypes
16852 generated for entities that have null exclusions applied to them.
16853 (Maybe_Primitive_Operation): Add an additional type retrieval when the
16854 base type is an access subtype. This case arrises with null exclusions.
16855 (New_Overloaded_Entity): Do not remove the overriden entity from the
16856 homonym chain if it corresponds with an abstract interface primitive.
16857 (Process_Formals): Replace membership test agains Incomplete_Kind with a
16858 call to the synthesized predicate Is_Incomplete_Type.
16859 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
16860 primitives.
16861 (Analyze_Subprogram_Declaration): Check that abstract interface
16862 primitives are abstract or null.
16863 (Analyze_Subprogram_Specification): Remove previous check for abstract
16864 interfaces because it was not complete.
16865 (Has_Interface_Formals): Removed.
16866
168672006-10-31 Ed Schonberg <schonberg@adacore.com>
16868 Javier Miranda <miranda@adacore.com>
16869
16870 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
16871 of Analyze_Package_Body, to create Itype references for anonymous
16872 access types created in the package declaration, whose designated types
16873 may have only a limited view.
16874 (Analyze_Package_Specification): For the private part of a nested
16875 package, install private_with_clauses of enclosing compilation unit if
16876 we are in its visible part.
16877 (Declare_Inherited_Private_Subprograms): Complete barrier
16878 to ensure that the primitive operation has an alias to some parent
16879 primitive. This is now required because, after the changes done for the
16880 implementation of abstract interfaces, the contents of the list of
16881 primitives has entities whose alias attribute references entities of
16882 such list of primitives.
16883 (Analyze_Package_Specification): Simplify code that handles parent units
16884 of instances and formal packages.
16885 (Uninstall_Declarations): Check the convention consistency among
16886 primitive overriding operations of a tagged record type.
16887
168882006-10-31 Robert Dewar <dewar@adacore.com>
16889 Hristian Kirtchev <kirtchev@adacore.com>
16890 Javier Miranda <miranda@adacore.com>
16891 Ed Schonberg <schonberg@adacore.com>
6f7f72f9 16892
70198b9f
AC
16893 * sem_ch8.adb: Minor error msg rewording
16894 (Undefined): When checking for misspellings, invert arguments (to get
16895 expected and found set right)
16896 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
16897 (Analyze_Generic_Renaming): Same fix
16898 (Use_One_Package): Do not take into account the internal entities of
16899 abstract interfaces during the analysis of entities that are marked
16900 as potentially use-visible.
16901 (Find_Type): Handle the case of an attribute reference for
16902 implementation defined attribute Stub_Type (simply let the analysis of
16903 the attribute reference rewrite it).
16904 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
16905 type that appears in a Use_Type clause.
16906 (Analyze_Object_Renaming): Add support for renaming of the Priority
16907 attribute.
16908 (Find_Type): In Ada 2005, a task type can be used within its own body,
16909 when it appears in an access definition.
16910 (Analyze_Object_Renaming): Remove warning on null_exclusion.
16911 (Analyze_Object_Renaming): Introduce checks for required null exclusion
16912 in a formal object declaration or in a subtype declaration.
16913 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
16914 (Check_Null_Exclusion): New local routine to
16915 Analyze_Subprogram_Renaming. Check whether the formals and return
16916 profile of a renamed subprogram have required null exclusions when
16917 their counterparts of the renaming already impose them.
16918 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
16919 Determine whether an entity is inside a generic scope.
16920 (In_Open_Scope): First pass of documentation update.
16921 (Find_Expanded_Name): Add support for shadow entities associated with
16922 limited withed packages. This is required to handle nested packages.
16923 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
16924 that makes a renaming of a limited withed package illegal.
16925
169262006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16927 Ed Schonberg <schonberg@adacore.com>
16928
16929 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
16930 Check_Overriding_Indicator.
16931 (Analyze_Task_Definition): Ditto.
16932 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
16933 (Check_Overriding_Indicator): To find overridden interface operation,
16934 examine only homonyms that have an explicit subprogram declaration, not
16935 inherited operations created by an unrelated type derivation.
16936 (Check_Overriding_Indicator): When checking for the presence of "null"
16937 in a procedure, ensure that the queried node is a procedure
16938 specification.
16939 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
16940 type when the formal is an access to variable.
16941 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
16942 (Analyze_Task_Type): Same addition
16943 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
16944 provide navigation capabilities for entries.
16945
169462006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16947 Ed Schonberg <schonberg@adacore.com>
16948 Javier Miranda <miranda@adacore.com>
16949 Gary Dismukes <dismukes@adacore.com>
16950
16951 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
16952 inherited from an interface ancestor by another interface in the
16953 context of an instance as 'late'.
16954 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
16955 of a call to a function that dispatches on access result.
16956 (Check_Dispatching_Operation): In case of late overriding of a primitive
16957 that covers abstract interface subprograms we register it in all the
16958 secondary dispatch tables associated with abstract interfaces.
16959 (Check_Dispatching_Call): Add check that a dispatching call is not made
16960 to a function with a controlling result of a limited type. This is a
16961 current implementation restriction.
16962 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
16963 (Check_Dispatching_Operation): Do no emit a warning if the controlling
16964 argument is an interface type that is a generic formal.
16965 (Is_Interface_Subprogram): Removed.
16966 (Check_Dispatching_Operation): If the subprogram is not a dispatching
16967 operation, check the formals to handle the case in which it is
16968 associated with an abstract interface type.
16969
169702006-10-31 Robert Dewar <dewar@adacore.com>
16971 Ed Schonberg <schonberg@adacore.com>
16972
16973 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
16974 Add new calls to this procedure during traversal
16975 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
16976 another unit if expansion is disabled.
16977
169782006-10-31 Robert Dewar <dewar@adacore.com>
16979
16980 * sem_eval.adb (Compile_Time_Compare): Make use of information from
16981 Current_Value in the conditional case, to evaluate additional
16982 comparisons at compile time.
16983
169842006-10-31 Ed Schonberg <schonberg@adacore.com>
16985 Hristian Kirtchev <kirtchev@adacore.com>
16986 Javier Miranda <miranda@adacore.com>
16987
16988 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
16989 subprogram type to provide better diagnostics in case of ambiguity.
16990 (Covers): Handle coverage of formal and actual anonymous access types in
16991 the context of generic instantiation.
16992 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
16993 abstract interface types; this is required to handle concurrent types
16994 with discriminants and abstract interface types.
16995 (Covers): Include type coverage of both regular incomplete subtypes and
16996 incomplete subtypes of incomplete type visibles through a limited with
16997 clause.
16998
169992006-10-31 Robert Dewar <dewar@adacore.com>
17000 Hristian Kirtchev <kirtchev@adacore.com>
17001 Ed Schonberg <schonberg@adacore.com>
6f7f72f9
EB
17002
17003 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
70198b9f
AC
17004 messages for entities in packages which are not used.
17005 (Collect_Synchronized_Interfaces): New procedure.
17006 (Overrides_Synchronized_Primitive): New function.
17007 (Denotes_Discriminant): Extend predicate to apply to task types.
17008 Add missing continuation marks in error msgs
17009 (Unqualify): New function for removing zero or more levels of
17010 qualification from an expression. There are numerous places where this
17011 ought to be used, but we currently only deal properly with zero or one
17012 level.
17013 (In_Instance); The analysis of the actuals in the instantiation of a
17014 child unit is not within an instantiation, even though the parent
17015 instance is on the scope stack.
17016 (Safe_To_Capture_Value): Exclude the case of variables that are
17017 renamings.
17018 (Check_Obsolescent): Removed
17019 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
17020 is an aliased view, even when rewritten as a reference to the target
17021 object in an assignment.
17022 (Get_Subprogram_Entity): New function
17023 (Known_To_Be_Assigned): New function
17024 (Type_Access_Level): Compute properly the access level of a return
17025 subtype that is an anonymous access type.
17026 (Explain_Limited_Type): Correct use of "\" for continuation messages.
17027 (Is_Transfer): The new extended_return_statement causes a transfer of
17028 control.
17029 (Has_Preelaborable_Initialization): New function
17030 (Has_Null_Exclusion): New function. Given a node N, determine whether it
17031 has a null exclusion depending on its Nkind.
17032 Change Is_Lvalue to May_Be_Lvalue
17033 (May_Be_Lvalue): Extensive additional code to deal with subprogram
17034 arguments (IN parameters are not Lvalues, IN OUT parameters are).
17035 (Safe_To_Capture_Value): Extend functionality so it can be used for
17036 the current value condition case.
17037 (Has_Compatible_Alignment): New function
17038 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
17039 objects to handle the Ada 2005 case, where aliasedness no longer implies
17040 that the object is constrained. In particular, for dereferenced names,
17041 the designated object must be assumed to be unconstrained.
17042 (Kill_Current_Values): Properly deal with the case where we encounter
17043 a loop in the scope chain.
17044 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
17045 a value.
17046 (Compile_Time_Constraint_Error): Improve error message in error case
17047
17048 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
17049 associated with entities of abstract interface primitives.
17050 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
17051
170522006-10-31 Robert Dewar <dewar@adacore.com>
17053
17054 * s-osinte-tru64.adb:
17055 Mark Asm statements Volatile to prevent warnings (seems a
17056 reasonable change anyway)
17057 Fixes new warnings
17058
17059 * s-mastop-irix.adb: Add Volatile to Asm statements
17060 Suppresses warning, and seems appropriate in any case
17061
17062 * s-osinte-vms.adb: Add Volatile to Asm statement
17063
17064 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
17065
17066 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
17067 returned.
17068 Add call to Check_Code_Statement
17069
170702006-10-31 Robert Dewar <dewar@adacore.com>
17071 Ed Schonberg <schonberg@adacore.com>
17072 Bob Duff <duff@adacore.com>
17073
17074 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
17075 Synchronized_Present): Add Formal_Derived_Type_Definition and
17076 Private_Extension_Declaration to the list of assertions.
17077 (Is_Entry_Barrier_Function): New flag
17078 (Has_Self_Reference): New flag on aggregates, to indicate that they
17079 contain a reference to the enclosing type, inserted through a default
17080 initialization.
17081 (Next_Rep_Item): Move from Node4 to Node5.
17082 (Entity): Add this field for N_Attribute_Definition_Clause.
17083 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
17084 (N_Return_Object_Declaration): Remove this node kind. We now use
17085 N_Object_Declaration instead.
17086 (Actual_Designated_Subtype): Move to a different place to make room in
17087 N_Extended_Return_Statement.
17088 (Procedure_To_Call): Move to a different place to make room in
17089 N_Extended_Return_Statement.
17090 (Return_Type): Removed this field to make room in return statements
17091 (both kinds).
17092 (Return_Statement_Entity): New field in return statements, in part to
17093 replace Return_Type, and in part to support the fact that return
17094 statements are now pushed on the scope stack during semantic analysis.
17095 (Return_Object_Declarations): New field to support extended return
17096 statements.
17097 (N_Extended_Return_Statement): New node for extended_return_statement
17098 nonterminal.
17099 (N_Return_Object_Declaration): New node for part of
17100 extended_return_statement nonterminal. Needed because all the necessary
17101 fields won't fit in N_Extended_Return_Statement.
17102 Generic_associations now carry the Box_Present flag, to indicate a
17103 default for an actual in a partially parametrized formal package.
17104
6f7f72f9 17105 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
70198b9f
AC
17106 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
17107 and for the new predefined dispatching policies: EDF_Across_Priorities,
17108 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
17109 Introduce new name Stub_Type for implementation defined attribute.
17110 Add pragma Preelaborable_Initialization
17111 Add entry for Priority attribute.
17112 Add Pragma_Wide_Character_Encoding
17113 (Get_Convention_Name): Given a convention id, this function returns the
17114 corresponding name id from the names table.
17115
171162006-10-31 Ed Schonberg <schonberg@adacore.com>
17117 Robert Dewar <dewar@adacore.com>
17118 Bob Duff <duff@adacore.com>
17119
17120 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
17121 print null exclusion twice in the case of an access definition,
17122 Implement new -gnatL switch
17123 Remove N_Return_Object_Declaration. We now use
17124 N_Object_Declaration instead. Implement the case for
17125 N_Extended_Return_Statement. Alphabetize the cases.
17126 Add cases for new nodes N_Extended_Return_Statement and
17127 N_Return_Object_Declaration. The code is not yet written.
17128 Update the output for N_Formal_Object_Declaration
17129 and N_Object_Renaming_Declaration.
17130 (Write_Itype): Account for the case of a modular integer subtype whose
17131 base type is private.
17132
171332006-10-31 Arnaud Charlet <charlet@adacore.com>
17134
17135 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
17136 Remove elaboration code, now done in the binder.
17137
17138 * s-rident.ads: Make this unit Preelaborate.
17139 (No_Restrictions): New constant used to clean up code and follow
17140 preelaborate constraints.
17141
17142 * s-stalib.adb:
17143 Add System.Restrictions dependence, referenced directly from the
17144 binder generated file.
17145
171462006-10-31 Gary Dismukes <dismukes@adacore.com>
17147
17148 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
17149 True when AAMP extended floating-point is in use (48-bit). Change type
17150 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
17151 the two byte array types on AFloat. Change type of IV_Ilf overlay
17152 variable from Byte8 to ByteLF. Add appropriate initializations of
17153 floating-point overlays for AAMP cases.
17154
171552006-10-31 Javier Miranda <miranda@adacore.com>
17156
17157 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
17158 (Get_Ceiling): New subprogram that returns
17159 the ceiling priority of the protected object.
17160 (Set_Ceiling): New subprogram that sets the new ceiling priority of
17161 the protected object.
17162
17163 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
17164
17165 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
17166
171672006-10-31 Jose Ruiz <ruiz@adacore.com>
17168
17169 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
17170 requeuing to the same protected object to give higher priority tasks
17171 the opportunity to execute.
17172
171732006-10-31 Robert Dewar <dewar@adacore.com>
17174
17175 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
17176 add more precise check for the character sequence that follows '[' to
17177 avoid possible confusion in case if '[' is the last character of a
17178 string literals.
17179 (Scan_Wide): Always allow brackets encoding
17180
171812006-10-31 Olivier Hainque <hainque@adacore.com>
17182
17183 * s-stchop.ads: make this unit preelaborate. This is desirable in
17184 general and made mandatory by the use of this unit by s-taprop which
17185 is itself preelaborate.
17186
17187 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
17188 Td_Events component.
17189
171902006-10-31 Vincent Celier <celier@adacore.com>
17191
17192 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
17193 in file names.
17194
171952006-10-31 Vincent Celier <celier@adacore.com>
17196
17197 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
17198
171992006-10-31 Vincent Celier <celier@adacore.com>
17200
17201 * makegpr.adb (Check_Compilation_Needed): Take into account path names
17202 with spaces.
17203 (Check_Compilation_Needed): When checking a C or C++ source, do not
17204 resolve symbolic links.
17205 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
17206 When not in verbose mode and Ellipse is True, display "..." for the
17207 first argument with Display set to False.
17208 (Build_Global_Archive): Always set Display True for the first object
17209 file. Call Display_Command with Ellipse set to True.
17210
172112006-10-31 Matt Heaney <heaney@adacore.com>
17212
17213 * a-crbtgo.ads: Commented each subprogram
17214
17215 * a-crbtgo.adb: Added reference to book from which algorithms were
17216 adapted.
17217
6f7f72f9 17218 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
70198b9f
AC
17219 indicate which child.
17220 (Generic_Conditional_Insert): changed parameter name from "Success" to
17221 "Inserted".
17222 (Generic_Unconditional_Insert_With_Hint): improved algorithm
17223
17224 * a-coorse.adb (Replace_Element): changed parameter name in call to
17225 conditional insert operation.
17226
17227 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
17228
17229 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
17230 Generic_Iteration
17231
17232 * a-ciorse.adb (Replace_Element): changed parameter name in call to
17233 conditional insert operation.
17234
17235 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
17236 Generic_Iteration.
17237
17238 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
17239 instead of mode inout.
17240
17241 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
17242 draft
17243 (Generic_Read): preserve existing buckets array if possible
17244 (Generic_Write): don't send buckets array length anymore
17245
17246 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
17247 instead of mode inout.
17248
17249 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
17250 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17251
17252 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
17253 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
17254 (Replace_Element): local operation is now an instantiation
17255
17256 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
17257 check current length.
17258 (Generic_Replace_Element): new operation
17259
172602006-10-31 Doug Rupp <rupp@adacore.com>
17261
17262 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
17263 Call TBK$SYMBOLIZE without omitting parameters.
17264
172652006-10-31 Vincent Celier <celier@adacore.com>
17266
17267 * symbols-processing-vms-ia64.adb,
17268 symbols-processing-vms-alpha.adb (Process): Do not include symbols
17269 that come from generic instantiations in bodies.
17270
172712006-10-31 Pat Rogers <rogers@adacore.com>
17272
17273 * a-rttiev.ads, a-rttiev.adb:
17274 This is a significant redesign primarily for the sake of automatic
17275 timer task termination but also to fix a design flaw.
17276 Therefore we are now using an RTS lock, instead of a protected
17277 object, to provide mutual exclusion to the queue of pending events
17278 and the type Timing_Event is no longer a protected type.
17279
172802006-10-31 Robert Dewar <dewar@adacore.com>
17281 Cyrille Comar <comar@adacore.com>
17282 Ben Brosgol <brosgol@adacore.com>
17283
17284 * debug.adb: Update flags documentation
17285
6f7f72f9
EB
17286 * gnat_ugn.texi: Add documentation for new -gnatwq switch
17287 Clean up documentation for several other warning switches
17288 Clarify how task stack size can be specified with various
17289 versions of Windows.
17290 Add note that -gnatVo includes ranges including loops
70198b9f
AC
17291 Add documentation for -gnatL switch
17292 Add note on elaboration warning for initializing variables
17293 Add documentation for new -gnatwt warning switch
17294 Document new form of pragma Warnings (On|Off, string)
17295 Add comment on use of pragma Warnings to control warnings
17296 Add documentation for -gnatjnn switch
17297 Modify section on interfacing with C for VMS 64-bit.
17298 Add doc for -gnatVe/E
17299 Add documentation of new warning flags -gnatww/-gnatwW
17300 Add warnings about address clause overlays to list of warnings
17301 (Exception Handling Control): Document that the option --RTS must be
17302 used consistently for gcc and gnatbind.
17303 Clarify that inlining is not always possible
17304 Update documentation on pragma Unchecked_Union.
17305
17306 * gnat_rm.texi:
17307 Add documentation for new extended version of pragma Obsolescent
17308 Add documentation for implementation defined attribute 'Stub_Type.
17309 Add note on use of Volatile in asm statements
17310 Add documentation on use of pragma Unreferenced in context clause
17311 Document new form of pragma Warnings (On|Off, pattern)
17312 Document pragma Wide_Character_Encoding
17313 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
17314 enforced if code generation is active.
17315 Add section on pragma Suppress to document GNAT specific check
17316 Alignment_Check
17317 Clarify difference between No_Dispatching_Calls & No_Dispatch.
17318 Add documentation for pragma Restrictions (No_Elaboration_Code)
17319
17320 * gnat-style.texi:
17321 Add comments on layout of subprogram local variables in the
17322 presence of nested subprograms.
17323
6f7f72f9 17324 * ug_words: Resync.
70198b9f
AC
17325
17326 * elists.ads: Minor reformatting
17327 Node returns Node_Or_Entity_Id (doc change only)
17328
17329 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
17330
17331 * g-arrspl.ads (Create): Update comments.
17332
17333 * sem.ads: Add details on the handling of the scope stack.
17334
6f7f72f9 17335 * usage.adb: Update documentation.
70198b9f
AC
17336
17337 * validsw.ads, validsw.adb:
17338 Add definition of Validity_Check_Components and implement -gnatVe/E
17339
6f7f72f9 17340 * vms_data.ads: Add missing VMS qualifiers.
70198b9f
AC
17341
17342 * s-addope.ads: Add documentation on overflow and divide by zero
17343
173442006-10-31 Robert Dewar <dewar@adacore.com>
17345 Thomas Quinot <quinot@adacore.com>
17346 Arnaud Charlet <charlet@adacore.com>
17347
17348 * fmap.adb: Put routines in alpha order
17349
17350 * g-boumai.ads: Remove redundant 'in' keywords
17351
17352 * g-cgi.adb: Minor reformatting
17353
17354 * g-cgi.ads: Remove redundant 'in' keywords
17355
17356 * get_targ.adb: Put routines in alpha order
17357
17358 * prj-attr.ads: Minor reformatting
17359
17360 * s-atacco.ads: Minor reformatting
17361
17362 * scn.adb: Put routines in alpha order
17363
17364 * sinput-l.adb: Minor comment fix
17365
17366 * sinput-p.adb: Minor comment fix
17367
17368 * s-maccod.ads: Minor reformatting
17369
17370 * s-memory.adb: Minor reformatting
17371
17372 * s-htable.adb: Fix typo in comment.
17373
17374 * s-secsta.adb: Minor comment update.
17375
17376 * s-soflin.adb: Minor reformatting
17377
17378 * s-stoele.ads:
17379 Add comment about odd qualification in Storage_Offset declaration
17380
17381 * s-strxdr.adb:
17382 Remove unnecessary 'in' keywords for formal parameters.
17383
17384 * treeprs.adt: Minor reformatting
17385
17386 * urealp.adb: Put routines in alpha order
17387
17388 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
17389 taking string.
17390
17391 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17392
17393 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
17394
17395 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
17396 workaround as on other platforms.
17397
17398 * g-eacodu-vms.adb: Remove redundant 'in' keywords
17399 * g-expect-vms.adb: Remove redundant 'in' keywords
17400
17401 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
17402 clear error message if the list-of-files file cannot be opened.
17403
17404 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
17405 equality operator is always visible.
17406
17407 * lang.opt: Woverlength-strings: New option.
17408
17409 * nmake.adt:
17410 Update copyright, since nmake.ads and nmake.adb have changed.
17411
17412 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
17413 (Binder_Output_Time_Stamps_Set): removed.
17414 (Old_Binder_Output_Time_Stamp): idem.
17415 (New_Binder_Output_Time_Stamp): idem.
17416 (Recording_Time_From_Last_Bind): idem.
17417 (Recording_Time_From_Last_Bind): Make constant.
17418
17419 * output.ads, output.adb (Write_Str): Allow LF characters
17420 (Write_Spaces): New procedure
17421
17422 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
17423
17424 * inline.adb: Minor reformatting
17425
17426 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
17427
17428 * s-mastop-vms.adb: Remove redundant 'in' keywords
17429
17430 * s-osprim-vms.adb: Remove redundant 'in' keywords
17431
17432 * s-trafor-default.adb: Remove redundant 'in' keywords
17433
17434 * 9drpc.adb: Remove redundant 'in' keywords
17435
17436 * s-osinte-mingw.ads: Minor reformatting
17437
17438 * s-inmaop-posix.adb: Minor reformatting
17439
17440 * a-direio.ads: Remove quotes from Compile_Time_Warning message
17441
17442 * a-exexda.adb: Minor code reorganization
17443
17444 * a-filico.adb: Minor reformatting
17445
17446 * a-finali.adb: Minor reformatting
17447
17448 * a-nudira.ads: Remove quote from Compile_Time_Warning message
17449
17450 * a-numeri.ads: Minor reformatting
17451
17452 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
17453
17454 * exp_pakd.ads: Fix obsolete comment
17455
17456 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
17457 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
17458 Probably not a bug, but certainly neater and more efficient.
17459
17460 * a-tienio.adb: Minor reformatting
17461
17462 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
17463 Avoid assuming low bound of string is 1.
17464
17465 * gnatbind.adb: Change Bindusg to package and rename procedure as
17466 Display, which now ensures that it only outputs usage information once.
17467 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
17468
17469 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
17470 Table'First.
17471
17472 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
17473 warning.
17474 (Match): Add pragma Assert to ensure that Matches'First is zero
17475
17476 * g-regpat.ads (Match): Document that Matches lower bound must be zero
17477
17478 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
17479 documented preconditions (also kills warnings about bad indexes).
17480
17481 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
17482 is 1.
17483 (Build_Import_Library): Ditto;
17484
17485 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
17486
17487 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
17488
17489 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
17490 lower bound of choice table is 1.
17491
17492 * sem_case.ads (Analyze_Choices): Document that lower bound of
17493 Choice_Table is 1.
17494
17495 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
17496 string is 1.
17497
17498 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
17499 and add appropriate Assert pragma to suppress warnings.
17500
17501 * atree.h, atree.ads, atree.adb
17502 Change Elist24 to Elist25
17503 Add definitions of Field28 and Node28
17504 (Traverse_Field): Use new syntactic parent table in sinfo.
17505
17506 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17507
17508 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
17509
17510 * exp_tss.adb: Put routines in alpha order
17511
17512 * fe.h: Remove redundant declarations.
17513
c79efc4d 175142006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
ed41063a 17515
c79efc4d
RÁE
17516 * utils.c (builtin_function): Rename to gnat_builtin_function.
17517 Move common code to add_builtin_function.
17518 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
17519 gnat_builtin_function.
17520 * gigi.h (builtin_function): Rename to gnat_builtin_function.
17521 Change the signature.
17522
a8384928
BM
175232006-10-16 Brooks Moses <bmoses@stanford.edu>
17524
17525 * Makefile.in: Add TEXI2PDF definition.
17526 * Make-lang.in: Add "ada.pdf" target.
17527
2285b053
KH
175282006-10-03 Kazu Hirata <kazu@codesourcery.com>
17529
17530 * decl.c, utils.c: Fix comment typos.
c0a69967
KH
17531 * utils.c: Fix a typo.
17532
b55e7f34
EB
175332006-09-28 Eric Botcazou <ebotcazou@adacore.com>
17534
17535 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
17536 on "pure" Ada subprograms if SJLJ exceptions are used.
17537 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
17538 on the declaration node of JMPBUF_SAVE.
17539 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
17540 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
17541 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
17542
9e94c78f 175432006-08-20 Laurent Guerby <laurent@guerby.net>
d2b40c09 17544
7a197678
EB
17545 PR ada/28716
17546 g-socket.adb (Bind_Socket): Call Set_Address.
17547
41d9adc7
EB
175482006-09-15 Eric Botcazou <ebotcazou@adacore.com>
17549
17550 PR ada/15802
17551 * decl.c (same_discriminant_p): New static function.
17552 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
17553 subtype and we have discriminants, fix up the COMPONENT_REFs
17554 for the discriminants to make them reference the corresponding
17555 fields of the parent subtype after it has been built.
17556
21cc3719
RS
175572006-09-15 Roger Sayle <roger@eyesopen.com>
17558
17559 PR ada/18817
17560 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
17561 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
17562
6f2789da
OH
175632006-09-13 Olivier Hainque <hainque@adacore.com>
17564
17565 PR ada/29025
17566 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
17567 of a SAVE_EXPR, just make the operand addressable/not-readonly and
17568 let the common gimplifier code make and propagate a temporary copy.
17569 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
17570 out/in-out actuals and defer setting the addressable/readonly bits
17571 to the gimplifier.
17572
efaa616e
EB
175732006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17574
17575 PR ada/28591
17576 * decl.c (components_to_record): Defer emitting debug info for the
17577 record type associated with the variant until after we are sure to
17578 actually use it.
17579
2655f1c6
EB
175802006-09-13 Eric Botcazou <ebotcazou@adacore.com>
17581
17582 PR ada/21952
17583 * gigi.h (gnat_internal_attribute_table): Declare.
17584 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
17585 * utils.c (gnat_internal_attribute_table): New global variable.
17586 (builtin_function): Always call decl_attributes on the builtin.
17587 (handle_const_attribute): New static function.
17588 (handle_nothrow_attribute): Likewise.
17589
48779194
VR
175902006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
17591
17592 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
17593
8df7d439
EB
175942006-06-23 Olivier Hainque <hainque@adacore.com>
17595
17596 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
17597 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
17598
83fdc7c4 175992006-06-20 James A. Morrison <phython@gcc.gnu.org>
6f7f72f9 17600 Eric Botcazou <ebotcazou@adacore.com>
83fdc7c4
JM
17601
17602 PR ada/18692
17603 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
17604 check-gnat into check-acats.
17605
5f516f59
KB
176062006-06-17 Karl Berry <karl@gnu.org>
17607
6f7f72f9 17608 * gnat-style.texi (@dircategory): Use "Software development"
5f516f59
KB
17609 instead of "Programming", following the Free Software Directory.
17610
ce0d1b88
JDA
176112006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17612
17613 PR ada/27944
17614 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
17615
9e94c78f 176162006-06-06 Laurent Guerby <laurent@guerby.net>
8c60f779 17617
6f7f72f9
EB
17618 PR ada/27769
17619 mlib-utl.adb: Use Program_Name.
17620
ce2e12c2
KH
176212006-05-28 Kazu Hirata <kazu@codesourcery.com>
17622
17623 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
17624 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
17625 trans.c, utils.c: Fix comment typos. Follow spelling
17626 conventions.
17627 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
17628 conventions.
17629
ba4ac682
EB
176302006-05-19 Nicolas Setton <setton@adacore.com>
17631
17632 * misc.c (gnat_dwarf_name): New function.
17633 (LANG_HOOKS_DWARF_NAME): Define to it.
17634
05b44921
L
176352006-05-14 H.J. Lu <hongjiu.lu@intel.com>
17636
17637 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
17638 (ada/misc.o): Likewise.
17639 (ada/utils.o): Likewise.
17640
a3bd7058
AJ
176412006-04-08 Aurelien Jarno <aurel32@debian.org>
17642
17643 * Makefile.in: Add Ada support for GNU/kFreeBSD.
17644 * s-osinte-kfreebsd-gnu.ads: New file.
17645
ad3a7ce3
CD
176462006-03-29 Carlos O'Donell <carlos@codesourcery.com>
17647
17648 * Make-lang.in: Rename docdir to gcc_docdir.
17649
936a6fa7
EB
176502006-03-04 Eric Botcazou <ebotcazou@adacore.com>
17651
17652 * gigi.h (get_ada_base_type): Delete.
17653 * utils2.c (get_ada_base_type): Likewise.
17654 * trans.c (convert_with_check): Operate in the real base type.
17655
93f978b7
RK
176562006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17657
17658 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
17659
434aeebb
RS
176602006-03-02 Richard Sandiford <richard@codesourcery.com>
17661
17662 * utils.c (create_var_decl): Use have_global_bss_p when deciding
17663 whether to make the decl common.
17664
01ddebf2 176652006-02-20 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
93f978b7 17666
ed41063a 17667 * Make-lang.in (Ada): Remove.
9d29a5b7
RE
17668 (.PHONY): Remove Ada
17669
c63f730e
AC
176702006-02-17 Ed Schonberg <schonberg@adacore.com>
17671
17672 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
17673 aggregate, check the interpretations of the other operand to find one
17674 that may be a boolean array.
17675
17676 (Analyze_Selected_Component): Fix flow-of-control typo in case where
17677 the prefix is a private extension.
17678
176792006-02-17 Eric Botcazou <botcazou@adacore.com>
17680
17681 PR ada/26315
c63f730e
AC
17682 * utils2.c (find_common_type): If both input types are BLKmode and
17683 have the same constant size, keep using the first one.
17684
17685 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
17686
17687 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
17688
17689 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
17690
176912006-02-17 Jose Ruiz <ruiz@adacore.com>
17692
17693 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
17694 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
17695 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
17696 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
17697 Abort_Defer/Undefer pairs to avoid the possibility of a task being
17698 aborted while owning a lock.
17699
177002006-02-17 Javier Miranda <miranda@adacore.com>
17701 Robert Dewar <dewar@adacore.com>
17702
17703 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
17704 through an access to class-wide interface we force the displacement of
17705 the pointer to the allocated object to reference the corresponding
17706 secondary dispatch table.
17707 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
17708 if Long_Shifts are supported on the target, even if 64 bit divides
17709 are not supported (configurable run time mode).
17710 (Expand_N_Type_Conversion): Do validity check if validity checks on
17711 operands are enabled.
17712 (Expand_N_Qualified_Expression): Do validity check if validity checks
17713 on operands are enabled.
17714
177152006-02-17 Ed Schonberg <schonberg@adacore.com>
17716
17717 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
17718 must be materialized when the renamed expression is an explicit
17719 dereference.
17720
177212006-02-17 Ed Schonberg <schonberg@adacore.com>
17722
17723 * freeze.adb (Statically_Discriminated_Components): Return false if
17724 the bounds of the type of the discriminant are not static expressions.
17725
17726 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
17727 the bounds of the discriminant type are not static.
17728
177292006-02-17 Robert Dewar <dewar@adacore.com>
17730
17731 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
17732 then we close To if it is valid.
17733
177342006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17735
17736 * init.c (facility_resignal_table): new array
17737 (__gnat_default_resignal_p): enhance default predicate to resignal if
17738 VMS condition has one of the predefined facility codes.
17739
177402006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
17741
17742 * Makefile.in: Use VMS64 specialized versions of several units in
17743 Interfaces.C hierarchy to be compatible with HP C default size choices.
17744 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
17745
177462006-02-17 Ed Schonberg <schonberg@adacore.com>
17747
17748 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
17749 instantiation, the corresponding entity is the related_instance of the
17750 wrapper package created for the instance.
17751
177522006-02-17 Ed Schonberg <schonberg@adacore.com>
17753
17754 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
17755 the current instance is nested within another instance in a child unit.
17756
177572006-02-17 Javier Miranda <miranda@adacore.com>
17758 Ed Schonberg <schonberg@adacore.com>
17759
17760 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
17761 type we cannot inherit the primitive operations; we inherit the
17762 Corresponding_Record_Type (which has the list of primitive operations).
17763 (Check_Anonymous_Access_Types): When creating anonymous access types for
17764 access components, use Rewrite in order to preserve the tree structure,
17765 for ASIS use.
17766 (Analyze_Object_Declaration): For limited types with access
17767 discriminants with defaults initialized by an aggregate, obtain
17768 subtype from aggregate as for other mutable types.
17769 (Derived_Type_Declaration): If the derived type is a limited interface,
17770 set the corresponding flag (Is_Limited_Record is not sufficient).
17771
177722006-02-17 Ed Schonberg <schonberg@adacore.com>
17773
17774 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
17775 to inline a function that returns an unconstrained type, the return
17776 expression must be the first variable declared in the body of the
17777 function.
17778
177792006-02-17 Javier Miranda <miranda@adacore.com>
17780
17781 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
17782 abstract interface type, the static analysis is not enough to know if
17783 the interface is implemented or not by the source tagged type. Hence
17784 we must pass the work to the expander to generate the required code to
17785 evaluate the conversion at run-time.
17786 (Resolve_Equality_Op): Do not apply previous
17787 transformation if expansion is disasbled, to prevent anomalies when
17788 locating global references in a generic unit.
17789
177902006-02-17 Vincent Celier <celier@adacore.com>
17791
17792 * snames.ads, snames.adb: New standard names for new project attributes:
17793 archive_builder, archive_indexer, compiler_pic_option,
17794 config_body_file_name, config_body_file_name_pattern,
17795 config_file_switches, config_file_unique, config_spec_file_name,
17796 config_spec_file_name_pattern, default_builder_switches,
17797 default_global_compiler_switches, default_language,
17798 dependency_file_kind, global_compiler_switches, include_path,
17799 include_path_file, language_kind, linker_executable_option,
17800 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
17801 roots, runtime_project.
17802
178032006-02-17 Matthew Heaney <heaney@adacore.com>
17804
17805 * a-convec.ads, a-convec.adb:
17806 (operator "&"): handle potential overflow for large index types
17807 (Insert): removed Contraint_Error when using large index types
17808 (Insert_Space): removed Constraint_Error for large index types
17809 (Length): moved constraint check from Length to Insert
17810
17811 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
17812 as not null access.
17813 Explicit raise statements now include an exception message.
17814 (operator "&"): handle potential overflow for large index types
17815 (Insert): removed Contraint_Error when using large index types
17816 (Insert_Space): removed Constraint_Error for large index types
17817 (Length): moved constraint check from Length to Insert
17818
178192006-02-17 Robert Dewar <dewar@adacore.com>
17820
17821 * s-wchcnv.adb: Document handling of [ on output (we do not change
17822 this to ["5B"] and the new comments say why not.
17823
17824 * gnat_ugn.texi:
17825 Add note for -gnatVo that this now includes the cases of type
17826 conversions and qualified expressions.
17827 Add comments on handling of brackets encoding for Text_IO
17828
178292006-02-17 Ramon Fernandez <fernandez@adacore.com>
17830 Thomas Quinot <quinot@adacore.com>
17831 Robert Dewar <dewar@adacore.com>
17832 Javier Miranda <miranda@adacore.com>
17833
17834 * expander.adb: Fix typo in comment
17835
17836 * exp_pakd.adb: Fix typo
17837 Minor comment reformatting.
17838
17839 * g-dyntab.adb: Minor reformatting
17840
17841 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
17842 aliased subprograms to look for the abstract interface subprogram.
17843
fd7927cd
EB
178442006-02-16 Eric Botcazou <ebotcazou@adacore.com>
17845
17846 * env.c (__gnat_setenv): Use size_t.
17847 (__gnat_unsetenv): Likewise.
17848 (__gnat_clearenv): Likewise.
17849
3f806915
AC
178502006-02-16 Arnaud Charlet <charlet@adacore.com>
17851
17852 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
17853
cc26ad97
AC
178542006-02-13 Arnaud Charlet <charlet@adacore.com>
17855
17856 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
17857 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
17858 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
17859 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
17860 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
17861 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
17862 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
17863 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
17864 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
17865 no longer used.
17866
178672006-02-13 Jose Ruiz <ruiz@adacore.com>
17868
17869 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
17870 protection against race conditions is not needed.
17871 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
17872 fallback handler.
17873 (Set_Specific_Handler): Add mutual exclusive access to the specific
17874 handler.
17875 (Specific_Handler): Add mutual exclusive access for retrieving the
17876 specific handler.
17877
17878 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
17879 back handler.
17880
17881 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
17882 Fall_Back_Handler and Specific_Handler.
17883
17884 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
17885 termination handlers.
17886 Set two different owerflow depending on the maximal stack size.
17887
17888 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
17889 protection against race conditions is not needed when executing the
17890 task termination handler.
17891
178922006-02-13 Robert Dewar <dewar@adacore.com>
17893
17894 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
17895 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
17896 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
17897 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
17898 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
17899 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
17900 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
17901 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
17902 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
17903 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
17904 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
17905 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
17906 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
17907 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
17908 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
17909 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
17910 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
17911 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
17912 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
17913 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
17914 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
17915 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
17916 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
17917 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
17918 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
17919 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
17920 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
17921 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
17922 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
17923 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
17924 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
17925 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
17926 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
17927 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
17928 reformatting.
17929
179302006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
17931
17932 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
17933 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
17934 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
17935 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
17936 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
17937 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
17938 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
17939 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
17940 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
17941
179422006-02-13 Arnaud Charlet <charlet@adacore.com>
17943
17944 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
17945 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
17946 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
17947 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
17948 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
17949 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
17950 replaced by anonymous access type.
17951 (pthread_sigmask): Now take an access sigset_t
17952
17953 * s-osinte-hpux.ads: Ditto.
17954 (pthread_mutex_t, pthread_cond_t): Update definitions to support
17955 properly 32 and 64 bit ABIs.
17956
179572006-02-13 Pascal Obry <obry@adacore.com>
17958
17959 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
17960 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
17961 s-taprop-linux.adb, s-taprop-solaris.adb,
17962 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
17963 adjustement is already done when calling this routine.
17964
179652006-02-13 Pascal Obry <obry@adacore.com>
17966
17967 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
17968 table to take advantage of the 16 priority levels available on Windows
17969 2000 and XP. On NT4 there are only 7 priority levels, this is properly
17970 supported by this new mapping.
17971
179722006-02-13 Nicolas Setton <setton@adacore.com>
17973
17974 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
17975 (get_encoding): New subprogram. Extracts the encodings from an encoded
17976 Ada name.
17977
179782006-02-13 Pascal Obry <obry@adacore.com>
17979 Nicolas Roche <roche@adacore.com>
17980 Arnaud Charlet <charlet@adacore.com>
17981
17982 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
17983 support.
17984 (__gnat_try_lock): Add unicode support by using a specific section on
17985 Windows.
17986 (__gnat_get_current_dir): Idem.
17987 (__gnat_open_read): Idem.
17988 (__gnat_open_rw): Idem.
17989 (__gnat_open_create): Idem.
17990 (__gnat_create_output_file): Idem.
17991 (__gnat_open_append): Idem.
17992 (__gnat_open_new): Idem.
17993 (__gnat_file_time_name): Idem.
17994 (__gnat_set_file_time_name): Idem.
17995 (__gnat_stat): Idem.
17996 (win32_no_block_spawn): Idem.
17997 (__gnat_locate_exec_on_path): Idem.
17998 (__gnat_opendir): New routine.
17999 (__gnat_closedir): Idem.
18000 (__gnat_readdir): Add new parameter length (pointer to int). Update
18001 implementation to use it and add specific Win32 code for Unicode
18002 support.
18003 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
18004 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
18005 (convert_addresses): Do not define this dummy routine on VMS.
18006
18007 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
18008 runtime Unicode support will be activated.
18009 (S2WS): String to Wide-String conversion. This version just copy a
18010 string in non Unicode version.
18011 (WS2S): Wide-String to String conversion. This version just copy a
18012 string in non Unicode version.
18013
18014 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
18015 (Open): Now import __gnat_opendir from adaint.c.
18016 (Read): Change the implementation to support unicode characters. It is
18017 not possible to use strlen() on Windows as this version supports only
18018 standard ASCII characters. So the length of the directory entry is now
18019 returned from the imported __gnat_readdir routine.
18020 Update copyright notice.
18021
18022 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
18023 (opendir): Moved to adaint.c.
18024
18025 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
18026 (Get_Directory): Fix wrong indexing.
18027 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
18028 __gnat_getenv from env.c
18029 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
18030 from env.c
18031
18032 * env.h, env.c: New file.
18033
18034 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
18035 adaint.c by __gnat_getenv from env.c
18036
18037 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
18038 adaint.c by __gnat_getenv from env.c
18039
18040 * Make-lang.in: Add env.o in the list of C object needed by gnat1
18041 and gnatbind.
18042 Update dependencies.
18043
180442006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18045 Olivier Hainque <hainque@adacore.com>
18046 Eric Botcazou <ebotcazou@adacore.com>
18047
18048 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
18049
18050 * gigi.h (value_factor_p): Add prototype and description, now public.
18051
18052 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
18053 promotion for field with rep clause if the associated size was proven
18054 to be in error.
18055 Expand comments describing attempts to use a packable type.
18056 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
18057 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
18058 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
18059 necessary since these are not different types and pointers may
18060 actually designate any subtype in this hierarchy.
18061 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
18062 discriminants but put them into record only if not Unchecked_Union;
18063 pass flag to components_to_record showing Unchecked_Union.
18064 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
18065 components before variants; don't set TYPE_UNCHECKED_UNION_P.
18066 (components_to_record): New argument UNCHECKED_UNION.
18067 Remove special case code for Unchecked_Union and instead use main code
18068 with small changes.
18069
18070 PR ada/26096
ed41063a
EB
18071 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
18072 variable with the expression being built, only its inner field.
cc26ad97
AC
18073
18074 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
18075 emit_sequence_entry_statements.
18076 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
18077 (establish_gnat_vms_condition_handler): Move before
18078 Subprogram_Body_to_gnu.
18079 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
18080 for a subprogram if it has a foreign convention or is exported.
18081 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
18082 substituted for a CONST_DECL.
18083 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
18084 Etype to assoc_to_constructor.
18085 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
18086 discriminants of Unchecked_Union.
18087 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
18088 don't need cluttering preprocessor directives.
18089 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
18090 condition handler as current in the compiled function.
18091 (body_with_handlers_p): New function. Tell whether a given sequence of
18092 statements node is attached to a package or subprogram body and involves
18093 exception handlers possibly nested within inner block statements.
18094 (emit_sequence_entry_statements): New function, to emit special
18095 statements on entry of sequences when necessary. Establish GNAT
18096 condition handler in the proper cases for VMS.
18097 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
18098 emit_sequence_entry_statements.
18099
18100 * utils2.c (find_common_type): If both input types are BLKmode and
18101 have a constant size, use the smaller one.
18102 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
18103 the same.
18104
18105 * utils.c (value_factor_p): Make public, to allow uses from other gigi
18106 units.
18107 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
18108 (convert, case UNION_TYPE): Remove special treatment for unchecked
18109 unions.
18110
18111 PR ada/18659
ed41063a
EB
18112 (update_pointer_to): Update variants of pointer types to unconstrained
18113 arrays by attaching the list of fields of the main variant.
cc26ad97
AC
18114
181152006-02-13 Arnaud Charlet <charlet@adacore.com>
18116 Robert Dewar <dewar@adacore.com>
18117
18118 * a-exexpr.adb, a-exexpr-gcc.adb
18119 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
18120 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
18121 Remove code unused for exception propagation for the compiler itself
18122 from a-except.adb and update to still share separate packages.
18123
18124 * a-except.ads, a-except.adb: Ditto.
18125 Add comments that this version is now used only by the compiler and
18126 other basic tools. The full version that includes the Ada 2005 stuff
18127 is in separate files a-except-2005.ads/adb. The reason is that we do
18128 not want to cause bootstrap problems with compilers not recognizing
18129 Wide_Wide_String.
18130 Add exception reason code PE_Implicit_Return
18131 Add new exception reason code (Null Exception_Id)
18132
18133 * a-except-2005.adb, a-except-2005.ads: New files.
18134
18135 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
18136
18137 * s-wchcon.adb: New file.
18138
18139 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
18140 (traceback.o deps): Likewise.
18141 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
18142 Activate build of GMEM instrumentation library on VMS targets.
18143 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
18144 Use a-except-2005.ads/adb for all run-time library builds unless
18145 specified otherwise.
18146 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
18147 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
18148 Use s-parame.adb on all native platforms.
18149 Use s-parame-vxworks.adb on all vxworks platforms.
18150 Add env.c env.h in LIBGNAT_SRCS
18151 Add env.o in LIBGNAT_OBJS
18152 (GNATMAKE_OBJS): Remove ctrl_c.o object.
18153 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
18154 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
18155 supports VxWorks 6 RTPs.
18156 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
18157 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
18158
18159 * types.h, types.ads (Terminate_Program): New exception
18160 Add comment on modifying multiple versions of a-except.adb when the
18161 table of exception reasons is modified.
18162 Add exception reason code PE_Implicit_Return
18163 Add new exception reason code (Null Exception_Id)
18164
6f7f72f9
EB
18165 * clean.adb (Initialize): Get the target parameters before checking
18166 if target is OpenVMS. Move the OpenVMS specific code here from package
18167 body elaboration code.
cc26ad97
AC
18168
181692006-02-13 Thomas Quinot <quinot@adacore.com>
18170 Vincent Celier <celier@adacore.com>
18171 Robert Dewar <dewar@adacore.com>
18172
18173 * ali-util.adb (Get_File_Checksum): Update to account for change in
18174 profile of Initialize_Scanner.
18175
18176 * gprep.adb (Gnatprep): Update to account for change in profile of
18177 Initialize_Scanner.
18178 (Process_One_File): Same.
18179
18180 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
18181 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
18182 that behaviour using the new Unit information recorded in the source
18183 files table, rather than going through all units every time.
18184 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
18185 (Get_Source_Unit): Same.
18186
18187 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
18188 change in profile of Initialize_Scanner.
18189 (Prepare_To_Preprocess): Same.
18190
18191 * lib.ads: Fix typo in comment (templace -> template).
18192
18193 * prj-part.adb (Parse_Single_Project): Update to account for change in
18194 profile of Initialize_Scanner.
18195
18196 * scn.adb (Initialize_Scanner): Account for change in profile of
18197 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
18198 Also record the association of the given Source_File_Index to the
18199 corresponding Unit_Number_Type.
18200
18201 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
18202 procedure.
18203 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
18204 Remove Unit formal for generic scanner: this formal
18205 is only relevant to Scn (the scanner instance used to parse Ada source
18206 files), not to other instances. Update comment accordingly.
18207 (Scan): Use new function Snames.Is_Keyword_Name.
18208
18209 * sinfo-cn.adb: Fix typo in comment.
18210
18211 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
18212 Unit.
18213
18214 * sinput.ads (Source_File_Record): New component Unit, used to capture
18215 the unit identifier (if any) associated to a source file.
18216
18217 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
18218 Unit in Source_File_Record.
18219
18220 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
18221 in profile of Initialize_Scanner.
18222
18223 * scans.adb (Initialize_Ada_Keywords): New procedure
18224
18225 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
18226 Ada keywords in the Namet table, without the need to call
18227 Initialize_Scanner.
18228
18229 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
18230 (Is_Keyword_Name): New function
18231
18232 * snames.ads: Add subtype Configuration_Pragma_Names
18233 Add pragma Ada_2005 (synonym for Ada_05)
18234 (Is_Keyword_Name): New function
18235
18236 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
18237
182382006-02-13 Arnaud Charlet <charlet@adacore.com>
18239
18240 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
18241 index.
18242
18243 * a-stwima.adb (To_Set): Add extra check when N = 0.
18244
18245 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
18246
182472006-02-13 Arnaud Charlet <charlet@adacore.com>
18248
18249 * s-parame-mingw.adb, s-parame-linux.adb,
18250 s-parame-solaris.adb: Removed, replaced by s-parame.adb
18251
18252 * s-parame-vxworks.ads: Fix typo.
18253
18254 * s-parame-vxworks.adb: New file.
18255
18256 * s-parame.adb: Version now used by all native platforms.
18257 (Default_Stack_Size): Use 2 megs for default stack size and use
18258 __gl_default_stack_size when available.
18259 (Minimum_Stack_Size): Use 12K.
18260
18261 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
18262 (Create_Task): Refine implementation taking advantage of the XP stack
18263 size support. On XP, we now create the thread using the flag
18264 STACK_SIZE_PARAM_IS_A_RESERVATION.
18265
18266 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
18267
18268 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
18269 XP and 0 on older Windows versions.
18270
18271 * interfac-vms.ads: Removed, no longer used.
18272
182732006-02-13 Matthew Heaney <heaney@adacore.com>
18274
18275 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
18276 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
18277 a-cohase.adb: All explicit raise statements now include an exception
18278 message.
18279
18280 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
18281 (Update_Element_Preserving_Key): renamed op to just Update_Element.
18282 Explicit raise statements now include an exception message
18283
18284 * a-cihase.ads, a-cohase.ads: Removed comment.
18285
18286 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
18287 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
18288 a-szbzha.adb, a-szfzha.ads: New files.
18289
182902006-02-13 Matthew Heaney <heaney@adacore.com>
18291
18292 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
18293 quicksort.
18294
182952006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18296
18297 * lang.opt: Wvariadic-macros: New option.
18298 Wold-style-definition: Likewise.
18299 Wmissing-format-attribute: Likewise.
18300
18301 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
18302 -Wold-style-definition and -Wmissing-format-attribute.
18303
183042006-02-13 Robert Dewar <dewar@adacore.com>
18305
18306 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
18307
18308 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
18309
183102006-02-13 Nicolas Roche <roche@adacore.com>
18311
18312 * a-envvar.adb, a-envvar.ads: New files.
18313
183142006-02-13 Douglas Rupp <rupp@adacore.com>
18315
18316 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
18317
18318 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
18319
183202006-02-13 Pat Rogers <rogers@adacore.com>
18321
18322 * a-rttiev.adb, a-rttiev.ads: New files.
18323
183242006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
18325
18326 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
18327 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
18328
18329 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
18330
183312006-02-13 Robert Dewar <dewar@adacore.com>
18332
18333 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
18334 sem_case.adb: Minor code reorganization (not Present should be No)
18335
183362006-02-13 Geert Bosch <bosch@adacore.com>
18337 Gary Dismukes <dismukes@adacore.com>
18338
18339 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
18340 0, since the lower bound of the actual string may be greater than one.
18341
18342 PR ada/20753
ed41063a 18343 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
cc26ad97
AC
18344 layout is requested.
18345
183462006-02-13 Vincent Celier <celier@adacore.com>
18347
18348 * back_end.adb (Scan_Compiler_Arguments): Check if
18349 Search_Directory_Present is True and, if it is, add the argument in
18350 the source search directory path.
18351
18352 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
18353 Search_Directory_Present to True.
18354
183552006-02-13 Joel Brobecker <brobecke@adacore.com>
18356
18357 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
18358 volatile, to tell the compiler to preserve this variable at any level
18359 of optimization.
18360 (Gen_Versions_Ada): Temporarily work around codegen bug.
18361
183622006-02-13 Vincent Celier <celier@adacore.com>
18363
18364 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
18365 gcc to link with option -shared-libgcc.
18366 (Gnatlink): Remove duplicate switches -shared-libgcc
18367
183682006-02-13 Robert Dewar <dewar@adacore.com>
18369
18370 * gnatvsn.ads (Current_Year): New constant, used to easily update
18371 copyright on all GNAT tools.
18372
18373 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
18374 copyright notice.
18375
183762006-02-13 Robert Dewar <dewar@adacore.com>
18377
18378 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
18379 after hyphen (small aesthetic change useful for a range of numbers
18380 using ^-^.
18381 Suppress range checks for a couple of assignments which otherwise
18382 cause validity checks with validity checking turned on.
18383
18384 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
18385 Improvement in error message for object.
18386 (Rep_Item_Too_Late): Remove '!' in warning message.
18387
183882006-02-13 Robert Dewar <dewar@adacore.com>
18389 Eric Botcazou <ebotcazou@adacore.com>
18390
18391 * err_vars.ads: Suppress range checks for a couple of assignments
18392 which otherwise cause validity checks with validity checking turned on.
18393 Update comments.
18394
18395 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
18396 Make message unconditional if it is a warning.
18397 (Error_Msg_NEL): Always output warning messages.
18398 Suppress range checks for a couple of assignments which otherwise
18399 cause validity checks with validity checking turned on.
18400
18401 * errout.ads (Message Insertion Characters): Document that '!' is
18402 implied by '?' in error messages.
18403
18404 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
18405 (Gnat1drv): Use a goto to end of main subprogram instead of
18406 Exit_Program (E_Success) so that finalization can occur normally.
18407
184082006-02-13 Eric Botcazou <ebotcazou@adacore.com>
18409
18410 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
18411 wrapped around.
18412
184132006-02-13 Vincent Celier <celier@adacore.com>
18414
18415 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
18416 Unchecked_Conversion functions.
18417 (Modification_Time): Use direct conversion of OS_Time to Calendar time
18418 when OpenVMS returns False.
18419
18420 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
18421 a-dirval.adb (OpenVMS): New Boolean function
18422
184232006-02-13 Ed Schonberg <schonberg@adacore.com>
18424 Thomas Quinot <quinot@adacore.com>
18425
18426 * checks.adb (Build_Discriminant_Checks): If the expression being
18427 checks is an aggregate retrieve the values of its discriminants to
18428 generate the check, rather than creating a temporary and a reference
18429 to it.
18430 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
18431 (Install_Null_Excluding_Check): Ditto
18432 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
18433 not for the renamed object, so that the actual itype is attached in the
18434 proper context.
18435
184362006-02-13 Robert Dewar <dewar@adacore.com>
18437 Vincent Celier <celier@adacore.com>
18438
18439 * debug.adb: Eliminate numeric switches for binder/gnatmake
18440
18441 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
18442 switches for the compiler.
18443 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
18444 (Scan_Make_Switches): When failing with an illegal switch, output an
18445 error message with the full switch.
18446 Eliminate numeric switches for binder/gnatmake
18447
18448 * switch.ads, switch.adb (Bad_Switch): New procedure
18449
18450 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
18451 Remove 0-9 as debug flag character possibilities
18452 -d is now controlling the primary stack size when its value is a
18453 positive. Also add checks against invalid values, and support for kb,
18454 mb. Ditto for -D switch.
18455
184562006-02-13 Robert Dewar <dewar@adacore.com>
18457 Serguei Rybin <rybin@adacore.com>
18458
18459 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
18460 save/restore routines.
18461 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18462 were not always properly handled previously.
18463 Since we are changing the tree format anyway, also get rid of the
18464 junk obsolete Immediate_Errors flag.
18465 (Tree_Read): Change the way of reading Tree_Version_String - now we
18466 read the version string from the tree even if its length is not the
18467 same as the length of the version string computed from Gnatvsn.
18468 (Search_Directory_Present): New Boolean flag for the compiler.
18469 Define Tree_Version_String as a dynamic string.
18470 (Default_Stack_Size): new variable, used to handle switch -d.
18471
18472 * par-prag.adb:
18473 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
18474 only for main unit.
18475 Add pragma Ada_2005 (synonym for Ada_05)
18476 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
18477 were not always properly handled previously.
18478
18479 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
18480 explicit Ada_95 to Ada_2005.
18481
184822006-02-13 Javier Miranda <miranda@adacore.com>
18483 Robert Dewar <dewar@adacore.com>
18484 Ed Schonberg <schonberg@adacore.com>
18485
18486 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
18487 against errors in the source program: a private types for which the
18488 corresponding full type declaration is missing and pragma CPP_Virtual
18489 is used.
18490 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
18491 (Is_Known_Null): New flag
18492 (Has_Pragma_Pure): New flag
18493 (No_Return): Present in all entities, set only for procedures
18494 (Is_Limited_Type): A type whose ancestor is an interface is limited if
18495 explicitly declared limited.
18496 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
18497 entities. Only used for component marked Is_Tag. If present it stores
18498 the Offset_To_Top function used to provide this value in tagged types
18499 whose ancestor has discriminants.
18500
18501 * exp_ch2.adb: Update status of new Is_Known_Null flag
18502
18503 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
18504
18505 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
18506 the categorization sense if Is_Pure was set by pragma Pure_Function.
18507
185082006-02-13 Quentin Ochem <ochem@adacore.com>
18509 Olivier Hainque <hainque@adacore.com>
18510
18511 * bindusg.adb: Updated documentation for -d and -D switches.
18512
18513 * raise.h (__gnat_set_globals): added new parameter for
18514 Default_Stack_Size.
18515
18516 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
18517 (__gnat_handle_vms_condition): Adjust context before raise.
18518 (__gnat_install_handler): Restore the global vector setup for GCC
18519 versions before 3.4, as the frame based circtuitry is not available
18520 in this case.
18521 (__gnat_set_globals): added a parameter default_stack_size
18522 (__gl_default_stack_size): new variable.
18523
185242006-02-13 Ed Schonberg <schonberg@adacore.com>
18525
18526 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
18527 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
18528 does not exist in the Ada RM.
18529 (Compatible_Int_Bounds): Determine whether two integer range bounds
18530 are of equal length and have the same start and end values.
18531 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
18532 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
18533 aggregate when it is part of an object declaration.
18534 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
18535 constrains discriminants of its parent, add explicitly the discriminant
18536 constraints of the ancestor by retrieving them from the
18537 stored_constraint of the parent.
18538
185392006-02-13 Robert Dewar <dewar@adacore.com>
18540
18541 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
18542 attribute Mechanism_Code is applied to renamed subprogram, modify
18543 prefix to point to base subprogram.
18544 Max/Min attributes now violate Restriction No_Implicit_Conditionals
18545
18546 * sinfo.ads: Document that Mechanism_Code cannot be applied to
18547 renamed subprograms so that the front-end must replace the prefix
18548 appropriately.
18549
185502006-02-13 Javier Miranda <miranda@adacore.com>
18551 Gary Dismukes <dismukes@adacore.com>
18552
18553 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
18554 availability of RE_Interface_Tag.
18555 (Build_Initialization_Call): Fix wrong access to the discriminant value.
18556 (Freeze_Record_Type): Do not generate the tables associated with
18557 timed and conditional dispatching calls through synchronized
18558 interfaces if compiling under No_Dispatching_Calls restriction.
18559 When compiling for Ada 2005, for a nonabstract
18560 type with a null extension, call Make_Controlling_Function_Wrappers
18561 and insert the wrapper function declarations and bodies (the latter
18562 being appended as freeze actions).
18563 (Predefined_Primitive_Bodies): Do not generate the bodies of the
18564 predefined primitives associated with timed and conditional
18565 dispatching calls through synchronized interfaces if we are
18566 compiling under No_Dispatching_Calls.
18567 (Build_Init_Procedure): Use RTE_Available to check if a run-time
18568 service is available before generating a call.
18569 (Make_Controlling_Function_Wrappers): New procedure.
18570 (Expand_N_Full_Type_Declaration): Create a class-wide master for
18571 access-to-limited-interfaces because they can be used to reference
18572 tasks that implement such limited interface.
18573 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
18574 procedure spec and body of the Offset_To_Top function that is generated
18575 when the parent of a type with discriminants has secondary dispatch
18576 tables.
18577 (Init_Secondary_Tags): Handle the case in which the parent of the type
18578 containing secondary dispatch tables has discriminants to generate the
18579 correct arguments to call Set_Offset_To_Top.
18580 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
18581
18582 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
18583 Add Wide_[Wide_]Expanded_Name.
18584 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
18585 the same functionality of Get_Prim_Op_Address but applied to predefined
18586 primitive operations because the pointers to the predefined primitives
18587 are now saved in a separate table.
18588 (Parent_Size): Modified to get access to the separate table of primitive
18589 operations or the parent type.
18590 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
18591 functionality of Set_Prim_Op_Address but applied to predefined primitive
18592 operations.
18593 (Set_Signature): New subprogram used to store the signature of a DT.
18594 (Displace): If the Offset_To_Top value is not static then call the
18595 function generated by the expander to get such value; otherwise use
18596 the value stored in the table of interfaces.
18597 (Offset_To_Top): The type of the actual has been changed to Address to
18598 give the correct support to tagged types with discriminants. In this
18599 case this value is stored just immediately after the tag field.
18600 (Set_Offset_To_Top): Two new formals have been added to indicate if the
18601 offset_to_top value is static and hence pass this value to the run-time
18602 to store it in the table of interfaces, or else if this value is dynamic
18603 and then pass to the run-time the address of a function that is
18604 generated by the expander to provide this value for each object of the
18605 type.
18606
18607 * rtsfind.ads (Default_Prin_Op_Count): Removed.
18608 (Default_Prim_Op_Count): New entity
18609 (Get_Predefined_Prim_Op_Address): New entity
18610 (Set_Predefined_Prim_Op_Address): New entity
18611 (RE_Set_Signature): New entity
18612
186132006-02-13 Thomas Quinot <quinot@adacore.com>
18614 Ed Schonberg <schonberg@adacore.com>
18615
18616 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
18617 Make_Adjust_Call done for a newly-allocated object.
18618
18619 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
18620 in a subprogram are wrapped in a cleanup block, indicate that the
18621 subprogram contains an inner block with an exception handler.
18622 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
18623 Adjust call is for a newly-allocated object. In that case we must not
18624 assume that the finalization list chain pointers are correct (since they
18625 come from a bit-for-bit copy of the original object's pointers) so if
18626 the attach level would otherwise be zero (no change), we set it to 4
18627 instead to cause the pointers to be reset to null.
18628
18629 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
18630 reset chain pointers to null.
18631
186322006-02-13 Ed Schonberg <schonberg@adacore.com>
18633
18634 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
18635 string, and the context requires a loop for the assignment (e.g.
18636 because the left-hand side is packed), generate a unique name for the
18637 temporary that holds the string, to prevent spurious name clashes.
18638
186392006-02-13 Ed Schonberg <schonberg@adacore.com>
18640 Javier Miranda <miranda@adacore.com>
18641 Robert Dewar <dewar@adacore.com>
18642 Gary Dismukes <dismukes@adacore.com>
18643
18644 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
18645 return unconstrained arrays.
18646 Update comments.
18647 (Expand_Call): An indirect call through an access parameter of a
18648 protected operation is not a protected call.
18649 Add circuit to raise CE in Ada 2005 mode following call
18650 to Raise_Exception.
18651 (Register_DT_Entry): Do nothing if
18652 the run-time does not give support to abstract interfaces.
18653 (Freeze_Subprogram): In case of dispatching operations, do not generate
18654 code to register the operation in the dispatch table if the source
18655 is compiled with No_Dispatching_Calls.
18656 (Register_Predefined_DT_Entry): Generate code that calls the new
18657 run-time subprogram Set_Predefined_Prim_Op_Address instead of
18658 Set_Prim_Op_Address.
18659
18660 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
18661 on array assignments if the right-hand side is a function call that has
18662 been inlined. Check is performed on the assignment in the block.
18663 (Process_Bounds): If bounds and range are overloaded, apply preference
18664 rule for root operations to disambiguate, and diagnose true ambiguity.
18665 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
18666 a tag-indeterminate right-hand side even when Expander_Active is True.
18667 Needed to ensure that dispatching calls to T'Input are allowed and
18668 get the tag of the target class-wide object.
18669
18670 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
18671 an inherited primitive operation that already overrides several
18672 abstract interface primitives. For transitivity, the new entity must
18673 also override all the abstract interface primitives covered by the
18674 inherited overriden primitive.
18675 Emit warning if new entity differs from homograph in same scope only in
18676 that one has an access parameter and the other one has a parameter of
18677 a general access type with the same designated type, at the same
18678 position in the signature.
18679 (Make_Inequality_Operator): Use source locations of parameters and
18680 subtype marks from corresponding equality operator when creating the
18681 tree structure for the implicit declaration of "/=". This does not
18682 change anything in behaviour except that the decoration of the
18683 components of the subtree created for "/=" allows ASIS to get the
18684 string images of the corresponding identifiers.
18685 (Analyze_Return_Statement): Remove '!' in warning message.
18686 (Check_Statement_Sequence): Likewise.
18687 (Analyze_Subprogram_Body): For an access parameter whose designated type
18688 is an incomplete type imported through a limited_with clause, use the
18689 type of the corresponding formal in the body.
18690 (Check_Returns): Implicit return in No_Return procedure now raises
18691 Program_Error with a compile time warning, instead of beging illegal.
18692 (Has_Single_Return): Function returning unconstrained type cannot be
18693 inlined if expression in unique return statement is not an identifier.
18694 (Build_Body_To_Inline): It is possible to inline a function call that
18695 returns an unconstrained type if all return statements in the function
18696 return the same local variable. Subsidiary procedure Has_Single_Return
18697 verifies that the body conforms to this restriction.
18698
18699 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
18700 same type, and one of them is of an anonymous access type, convert
18701 the other operand to it, so that this is a valid binary operation for
18702 gigi.
18703 (Resolve_Type_Conversion): Handle subtypes of protected types and
18704 task types when accessing to the corresponding record type.
18705 (Resolve_Allocator): Add '\' in 2-line warning message.
18706 Remove '!' in warning message.
18707 (Resolve_Call): Add '\' in 2-line warning message.
18708 (Valid_Conversion): Likewise.
18709 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
18710 resulting type may be an access type with an implicit dereference.
18711 Obtain the proper component from the designated type.
18712 (Make_Call_Into_Operator): Handle properly a call to predefined equality
18713 given by an expanded name with prefix Standard, when the operands are
18714 of an anonymous access type.
18715 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
18716 Explicit_Dereference and Resolve_Selected_Component, to verify that the
18717 prefix of the expression is not of an incomplete type. Allows full
18718 diagnoses of all semantic errors.
18719 (Resolve_Actuals): If the actual is an allocator whose directly
18720 designated type is a class-wide interface we build an anonymous
18721 access type to use it as the type of the allocator. Later, when
18722 the subprogram call is expanded, if the interface has a secondary
18723 dispatch table the expander will add a type conversion to force
18724 the displacement of the pointer.
18725 (Resolve_Call): If a function that returns an unconstrained type is
18726 marked Inlined_Always and inlined, the call will be inlined and does
18727 not require the creation of a transient scope.
18728 (Check_Direct_Boolean_Op): Removed
18729 (Resolve_Comparison_Op): Remove call to above
18730 (Resolve_Equality_Op): Remove call to above
18731 (Resolve_Logical_Op): Inline above, since this is only call.
18732 (Valid_Conversion): Handle properly conversions between arrays of
18733 convertible anonymous access types.
18734
18735 PR ada/25885
cc26ad97
AC
18736 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
18737 the literal in an unchecked conversion, because GCC 4.x needs a static
18738 value for a string bound.
18739
187402006-02-13 Ed Schonberg <schonberg@adacore.com>
18741 Hristian Kirtchev <kirtchev@adacore.com>
18742
18743 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
18744 components of the corresponding record, take into account component
18745 definitions that are access definitions.
18746 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
18747 procedure is not considered a dispatching call and will be expanded
18748 properly.
18749
187502006-02-13 Javier Miranda <miranda@adacore.com>
18751
18752 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
18753 controlling argument of the dispatching call is an abstract interface
18754 class-wide type then we use it directly.
18755 Check No_Dispatching_Calls restriction.
18756 (Default_Prim_Op_Position): Remove the code that looks for the last
18757 entity in the list of aliased subprograms. This code was wrong in
18758 case of renamings.
18759 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
18760 when the source is compiled with the No_Dispatching_Calls restriction.
18761 (Init_Predefined_Interface_Primitives): No need to inherit primitives
18762 if we are compiling with restriction No_Dispatching_Calls.
18763 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
18764 subprograms if we are compiling under No_Dispatching_Calls restriction.
18765 (Make_DT): Generate a dispatch table with a single dummy entry if
18766 we are compiling with the No_Dispatching_Calls restriction. In
18767 addition, in this case we don't generate code that calls to the
18768 following run-time subprograms: Set_Type_Kind, Inherit_DT.
18769 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
18770 of this subprogram if compiling with the No_Dispatching_Calls
18771 restriction.
18772 (Expand_Type_Conversion): Instead of using the actual parameter,
18773 the argument passed as parameter to the conversion function was
18774 erroneously referenced by the expander.
18775 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
18776 Set_Predefined_Primitive_Op_Address and Set_Signature.
18777 (Expand_Dispatching_Call): Generate call to
18778 Get_Predefined_Prim_Op_Address for predefined primitives.
18779 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
18780 predefined primitives.
18781 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
18782 primitives we reserve one dummy entry to ensure that the tag does not
18783 point to some memory that is associated with some other object. In
18784 addition, remove all the old code that generated the assignments
18785 associated with the signature of the dispatch table and replace them
18786 by a call to the new subprogram Set_Signature.
18787 (Set_All_DT_Position): Change the algorithm because now we have a
18788 separate dispatch table associated with predefined primitive operations.
18789 (Expand_Interface_Conversion): In case of non-static offset_to_top
18790 add explicit dereference to get access to the object after the call
18791 to displace the pointer to the object.
18792 (Expand_Interface_Thunk): Modify the generation of the actual used
18793 in the calls to the run-time function Offset_To_Top to fulfil its
18794 new interface.
18795 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
18796
187972006-02-13 Ed Schonberg <schonberg@adacore.com>
18798
18799 * exp_dist.adb (Copy_Specification): For access parameters, copy
18800 Null_Exclusion flag, which will have been set for stream subprograms
18801 in Ada2005 mode.
18802
188032006-02-13 Pascal Obry <obry@adacore.com>
18804
18805 * expect.c (__gnat_expect_portable_execvp): New implementation. The
18806 previous implementation was using the C runtime spawnve routine but
18807 the corresponding wait was using directly the Win32 API. This was
18808 causing some times a lock when waiting for an event using
18809 WaitForSingleObject in __gnat_waitpid. This new implementation uses
18810 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
18811 API fixes this problem.
18812
188132006-02-13 Robert Dewar <dewar@adacore.com>
18814
18815 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
18816 call.
18817
188182006-02-13 Thomas Quinot <quinot@adacore.com>
18819
18820 * exp_pakd.ads: Fix typos in comments.
18821
18822 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
18823 array reference that is an explicit dereference, mark the converted
18824 (packed) array reference as analyzed to prevent a forthcoming
18825 reanalysis from resetting its type to the original (non-packed) array
18826 type.
18827
188282006-02-13 Ed Schonberg <schonberg@adacore.com>
18829 Javier Miranda <miranda@adacore.com>
18830 Eric Botcazou <ebotcazou@adacore.com>
18831
18832 * exp_util.ads, exp_util.adb (Find_Prim_Op,
18833 Is_Predefined_Primitive_Operation): When
18834 searching for the predefined equality operator, verify that operands
18835 have the same type.
18836 (Is_Predefined_Dispatching_Operation): Remove the code that looks
18837 for the last entity in the list of aliased subprograms. This code
18838 was wrong in case of renamings.
18839 (Set_Renamed_Subprogram): New procedure
18840 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
18841 Exp_Type constant computed when entering this subprogram.
18842 (Known_Null): New function
18843 (OK_To_Do_Constant_Replacement): New function
18844 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
18845 (Side_Effect_Free): An attribute reference 'Input is not free of
18846 side effect, unlike other attributes that are functions. (from code
18847 reading).
18848 (Remove_Side_Effects): Expressions that involve packed arrays or records
18849 are copied at the point of reference, and therefore must be marked as
18850 renamings of objects.
18851 (Is_Predefined_Dispatching_Operation): Return false if the operation is
18852 not a dispatching operation.
18853
18854 PR ada/18819
18855 (Remove_Side_Effects): Lift enclosing type conversion nodes for
18856 elementary types in all cases.
18857
188582006-02-13 Javier Miranda <miranda@adacore.com>
18859
18860 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
18861 task types when accessing to the corresponding record type.
18862 Remove '!' in warning message.
18863
188642006-02-13 Olivier Hainque <hainque@adacore.com>
18865
18866 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
18867 to avoid useless and space inefficient overalignments on targets where
18868 Max_Alignment is larger than 16.
18869
188702006-02-13 Pascal Obry <obry@adacore.com>
18871
18872 * g-catiio.adb (Sec_Number): New type used to compute the number of
18873 seconds since 1-1-1970.
18874 (Image) [Natural]: The parameter was an Integer, as we can't deal with
18875 negative numbers (years, months...) it is better to have a Natural here.
18876 Code clean-up.
18877 (Image) [Number]: Change parameter from Long_Integer to Number.
18878 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
18879 overflow for dates past year 2038.
18880
188812006-02-13 Matthew Heaney <heaney@adacore.com>
18882
18883 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
18884 Constraint_Error.
18885
188862006-02-13 Arnaud Charlet <charlet@adacore.com>
18887
18888 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
18889 native platforms.
18890 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
18891 finalization can occur normally.
18892
188932006-02-13 Vincent Celier <celier@adacore.com>
18894
18895 * gnatcmd.adb (Rules_Switches): New table
18896 (Add_To_Rules_Switches): New procedure
18897 (GNATCmd): For command CHECK, put all options following "-rules" in the
18898 Rules_Switches table. Append these -rules switches after the -cargs
18899 switches.
18900
189012006-02-13 Robert Dewar <dewar@adacore.com>
18902
18903 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
18904 These two cases were generating incorrect output, and if this unit
18905 was built with checks on, generated a discriminant mismatch constraint
18906 error.
18907
189082006-02-13 Ed Schonberg <schonberg@adacore.com>
18909 Robert Dewar <dewar@adacore.com>
18910
18911 * lib-xref.adb (Get_Type_Reference): For a private type whose full
18912 view is an array type, indicate the component type as well, for
18913 navigation purposes.
18914 (Generate_Reference): Don't consider array ref on LHS to be a case
18915 of violating pragma Unreferenced.
18916 Do not give Ada 2005 warning except on real reference.
18917
189182006-02-13 Vincent Celier <celier@adacore.com>
18919
18920 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
18921 main source, add switch -mdebug-main=_ada_ so that the executable can
18922 be debugged by the standard VMS debugger.
18923 (Gnatmake): Set No_Main_Subprogram to True when there is no main
18924 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
18925 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
18926 of the last source, as the binding and linking phases are never
18927 performed.
18928 Set all executable obsolete when rebuilding a library.
18929
18930 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
18931 options.
18932
189332006-02-13 Javier Miranda <miranda@adacore.com>
18934
18935 PR ada/23973
cc26ad97
AC
18936 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
18937 code to improve the error message reported when the program has
18938 declarations of abstract interface types and it is not compiled with
18939 the -gnat05 switch.
18940 (P_Access_Definition): Reorganize the code to improve the error
18941 message reported when the new Ada 2005 syntax for anonymous
18942 access types is used and the program is not compiled with the
18943 -gnat05 switch.
18944
189452006-02-13 Robert Dewar <dewar@adacore.com>
18946
18947 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
18948 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
18949 (MODE_IN)
18950
189512006-02-13 Javier Miranda <miranda@adacore.com>
18952
18953 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
18954 against source containing syntax errors.
18955
189562006-02-13 Vincent Celier <celier@adacore.com>
18957
18958 * prj.adb (Reset): Initialize the first element of table Namings with
18959 the standard naming data.
18960
189612006-02-13 Vincent Celier <celier@adacore.com>
18962
18963 * prj.ads (Error_Warning): New enumeration type
18964
18965 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
18966 unknown, use the location of the project to report the error.
18967 (When_No_Sources): New global variable
18968 (Report_No_Ada_Sources): New procedure
18969 (Check): New parameter When_No_Sources. Set value of global variable
18970 When_No_Sources,
18971 (Find_Sources): Call Report_No_Ada_Sources when appropriate
18972 (Get_Sources_From_File): Ditto
18973 (Warn_If_Not_Sources): Better warning messages indicating the unit name
18974 and the file name.
18975
18976 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
18977 Call Prj.Proc.Process with parameter When_No_Sources.
18978
18979 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
18980 Call Recursive_Check with parameter When_No_Sources.
18981 (Recursive_Check): New parameter When_No_Sources. Call itself and
18982 Prj.Nmsc.Check with parameter When_No_Sources.
18983 (Process): New parameter When_No_Sources. Call Check with parameter
18984 When_No_Sources.
18985 (Copy_Package_Declarations): New procedure to copy renamed parameters
18986 and setting the location of the declared attributes to the location
18987 of the renamed package.
18988 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
18989 packages.
18990
189912006-02-13 Vincent Celier <celier@adacore.com>
18992
18993 * prj-makr.adb (Make): Preserve the comments from the original project
18994 file.
18995 When removing nodes (attributes Source_Dirs, Source_Files,
18996 Source_List_File and package Naming), save the comments and attach the
18997 saved comments to the newly created nodes.
18998 Do not add a with clause for the naming package if one already exists.
18999
190002006-02-13 Javier Miranda <miranda@adacore.com>
19001 Gary Dismukes <dismukes@adacore.com>
19002 Robert Dewar <dewar@adacore.com>
19003
19004 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
19005
19006 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
19007 aliased entities to look for the overriden abstract interface
19008 subprogram.
19009 (Is_Interface_Subprogram): Complete documentation.
19010 (Check_Dispatching_Operation): Do not generate code to register the
19011 operation in the dispatch table if the source is compiled with
19012 restriction No_Dispatching_Calls.
19013 (Override_Dispatching_Operation): Check for illegal attempt to override
19014 No_Return procedure with procedure that is not No_Return
19015 (Check_Dispatching_Call): Suppress the check for an abstract operation
19016 when the original node of an actual is a tag-indeterminate attribute
19017 call, since the attribute, which must be 'Input, can never be abstract.
19018 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
19019 call to the Input attribute (even when rewritten).
19020 (Propagate_Tag): Augment comment to indicate the possibility of a call
19021 to an Input attribute.
19022
19023 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
19024 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
19025
19026 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
19027 No_Wide_Characters is no longer partition-wide
19028 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
19029 rather than GNAT
19030
190312006-02-13 Douglas Rupp <rupp@adacore.com>
19032
19033 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
19034
190352006-02-13 Javier Miranda <miranda@adacore.com>
19036
19037 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
19038 handles default-initialized components to keep separate the management
19039 of this feature but also avoid the unrequired resolution and
19040 expansion of components that do not have partially initialized
19041 values.
19042 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
19043 (Check_Bounds): Likewise.
19044 (Check_Length): Likewise.
19045
190462006-02-13 Javier Miranda <miranda@adacore.com>
19047 Ed Schonberg <schonberg@adacore.com>
19048
19049 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
19050 abstract interface type call analyze_and_resolve to expand the type
19051 conversion into the corresponding displacement of the
19052 reference to the base of the object.
19053 (Eval_Attribute, case Width): For systems where IEEE extended precision
19054 is supported, the maximum exponent occupies 4 decimal digits.
19055 (Accessibility_Message): Add '\' in 2-line warning message.
19056 (Resolve_Attribute): Likewise.
19057 (case Attribute_Access): Significantly revise checks
19058 for illegal access-to-subprogram Access attributes to properly enforce
19059 the rules of 3.10.2(32/2).
19060 Diagnose use of current instance with an illegal attribute.
19061
6f7f72f9
EB
19062 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
19063 to a Node_Id.
19064 (Enclosing_Generic_Unit): New function to return a node's innermost
19065 enclosing generic declaration node.
19066 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
19067 (Type_Access_Level): The accessibility level of anonymous acccess types
19068 associated with discriminants is that of the current instance of the
19069 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
19070 (Compile_Time_Constraint_Error): Handle case of conditional expression.
19071 (Kill_Current_Values_For_Entity): New function
19072 (Enter_Name): Change formal type to Entity_Id
cc26ad97
AC
19073
190742006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19075 Ed Schonberg <schonberg@adacore.com>
19076 Gary Dismukes <dismukes@adacore.com>
19077
19078 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
19079 Analyze_Compilation_Unit.
19080 Detect and warn on redundant with clauses detected in a package spec
19081 and/or body when -gnatwr is used.
19082 (Analyze_Context): Analyze config pragmas before other items
19083 (Install_Context_Items): Don't analyze config pragmas here
19084 (Install_Limited_Withed_Unit): Set limited entity of package in
19085 with_clause so that cross-reference information or warning messages on
19086 unused packages can be properly generated
19087 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
19088 has Error_Posted set. Prevent infinite loops in illegal programs.
19089 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
19090 to the point of the error test requiring the current unit to be private.
19091 This ensures that private with clauses are not exempted from the basic
19092 checking for being a descendant of the same library unit parent as a
19093 withed private descendant unit.
19094 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
19095 handle private with clauses properly, as well as to account for cases
19096 where the withed unit is a public descendant of a private ancestor
19097 (in which case the current unit must be a descendant of the private
19098 ancestor's parent). The spec comments were updated accordingly. Also,
19099 the old error message in this subprogram was replaced with error
19100 messages that mirror the errors tested and reported by
19101 Check_Private_Child_Unit.
19102 Parameter and variable names improved for readability.
19103 (Install_Limited_Context_Clauses): Remove test for a withed unit being
19104 private as the precondition for calling
19105 Check_Private_Limited_Withed_Unit since that subprogram has been
19106 revised to test public units as well as private units.
19107
191082006-02-13 Thomas Quinot <quinot@adacore.com>
19109 Robert Dewar <dewar@adacore.com>
19110 Ed Schonberg <schonberg@adacore.com>
19111 Javier Miranda <miranda@adacore.com>
19112
19113 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
19114 that Scope_Stack.First = 1.
19115 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19116 were not always properly handled previously.
19117 (Formal_Entity): Complete rewrite, to handle properly some complex case
19118 with multiple levels of parametrization by formal packages.
19119 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
19120 to the corresponding derived type declaration for proper semantics.
19121
19122 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
19123 (Check_Component): Enforce restriction on components of
19124 unchecked_unions: a component in a variant cannot contain tasks or
19125 controlled types.
19126 (Unchecked_Union): Allow nested variants and multiple discriminants, to
19127 conform to AI-216.
19128 Add pragma Ada_2005 (synonym for Ada_05)
19129 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19130 were not always properly handled previously.
19131 Document that pragma Propagate_Exceptions has no effect
19132 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
19133 (Set_Convention_From_Pragma): Check that if a convention is
19134 specified for a dispatching operation, then it must be
19135 consistent with the existing convention for the operation.
19136 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
19137 longer required to specify an vtable-ptr component in the record. For
19138 compatibility reasons we leave the support for the previous definition.
19139 (Analyze_Pragma, case No_Return): Allow multiple arguments
19140
19141 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
19142 non-overrideen inherited operation with a controlling result as
19143 illegal only its implicit declaration comes from the derived type
19144 declaration of its result's type.
19145 (Check_Possible_Deferred_Completion): Relocate the object definition
19146 node of the subtype indication of a deferred constant completion rather
19147 than directly analyzing it. The analysis of the generated subtype will
19148 correctly decorate the GNAT tree.
19149 (Record_Type_Declaration): Check whether this is a declaration for a
19150 limited derived record before analyzing components.
19151 (Analyze_Component_Declaration): Diagnose record types not explicitly
19152 declared limited when a component has a limited type.
19153 (Build_Derived_Record_Type): Code reorganization to check if some of
19154 the inherited subprograms of a tagged type cover interface primitives.
19155 This check was missing in case of a full-type associated with a private
19156 type declaration.
19157 (Constant_Redeclaration): Check that the subtypes of the partial and the
19158 full view of a constrained deferred constant statically match.
19159 (Mentions_T): A reference to the current type in an anonymous access
19160 component declaration must be an entity name.
19161 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
19162 class_wide type to refer to full type, not to the incomplete one.
19163 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
19164 available. Required to give support to the certified run-time.
19165 (Analyze_Component_Declaration): In case of anonymous access components
19166 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
19167 (Process_Discriminants): For an access discriminant, use the
19168 discriminant specification as the associated_node_for_itype, to
19169 simplify accessibility checks.
19170
191712006-02-13 Ed Schonberg <schonberg@adacore.com>
19172 Javier Miranda <miranda@adacore.com>
19173
19174 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
19175 abstract interpretations on an operator, remove interpretations that
19176 yield Address or a type derived from it, if one of the operands is an
19177 integer literal.
19178 (Try_Object_Operation.Try_Primitive_Operation,
19179 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
19180 location when creating the new reference to a primitive or class-wide
19181 operation as a part of rewriting a subprogram call.
19182 (Try_Primitive_Operations): If context requires a function, collect all
19183 interpretations after the first match, because there may be primitive
19184 operations of the same type with the same profile and different return
19185 types. From code reading.
19186 (Try_Primitive_Operation): Use the node kind to choose the proper
19187 operation when a function and a procedure have the same parameter
19188 profile.
19189 (Complete_Object_Operation): If formal is an access parameter and prefix
19190 is an object, rewrite as an Access reference, to match signature of
19191 primitive operation.
19192 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
19193 by an expanded name with prefix Standard, when the operands are of an
19194 anonymous access type.
19195 (Remove_Abstract_Operations): If the operation is abstract because it is
19196 inherited by a user-defined type derived from Address, remove it as
19197 well from the set of candidate interpretations of an overloaded node.
19198 (Analyze_Membership_Op): Membership test not applicable to cpp-class
19199 types.
19200
192012006-02-13 Bob Duff <duff@adacore.com>
19202
19203 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
19204 redundant use clauses.
19205 In particular, if the scope of two use clauses overlaps, but one is not
19206 entirely included in the other, we should not warn. This can happen
19207 with nested packages.
19208 (Analyze_Subprogram_Renaming): Protect the compiler against previously
19209 reported errors. The bug was reported when the compiler was built
19210 with assertions enabled.
19211 (Find_Type): If the node is a 'Class reference and the prefix is a
19212 synchronized type without a corresponding record, return the type
19213 itself.
19214
192152006-02-13 Javier Miranda <miranda@adacore.com>
19216
19217 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
19218 if this is the full-declaration associated with a private declaration
19219 that implement interfaces, then the private type declaration must be
19220 limited.
19221 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
19222 as aliased. The use of the 'access attribute is not available for such
19223 object (for this purpose the object should be explicitly marked as
19224 aliased, but being an anonymous type this is not possible).
19225
192262006-02-13 Ed Schonberg <schonberg@adacore.com>
19227 Robert Dewar <dewar@adacore.com>
19228
19229 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
19230 compilation unit is an elaboration scope.
19231 (Add_Task_Proc): Add '\' in 2-line warning message.
19232 (Activate_All_Desirable): Deal with case of unit with'ed by parent
19233
192342006-02-13 Ed Schonberg <schonberg@adacore.com>
19235 Javier Miranda <miranda@adacore.com>
19236
19237 * sem_type.adb (Write_Overloads): Improve display of candidate
19238 interpretations.
19239 (Add_One_Interp): Do not add to the list of interpretations aliased
19240 entities corresponding with an abstract interface type that is an
19241 immediate ancestor of a tagged type; otherwise we have a dummy
19242 conflict between this entity and the aliased entity.
19243 (Disambiguate): The predefined equality on universal_access is not
19244 usable if there is a user-defined equality with the proper signature,
19245 declared in the same declarative part as the designated type.
19246 (Find_Unique_Type): The universal_access equality operator defined under
19247 AI-230 does not cover pool specific access types.
19248 (Covers): If one of the types is a generic actual subtype, check whether
19249 it matches the partial view of the other type.
19250
192512006-02-13 Thomas Quinot <quinot@adacore.com>
19252
19253 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
19254 line. This is necessary to allow In_Extended_Main_Unit to provide
19255 correct results for itypes while writing out expanded source.
19256 (Close_File): No need to update the source_index_table here since it's
19257 now done for each line.
19258
192592006-02-13 Ed Schonberg <schonberg@adacore.com>
19260 Robert Dewar <dewar@adacore.com>
19261
19262 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
19263 preserve the source unit where the itype is declared, and prevent a
19264 backend abort.
19265 (Note_Implicit_Run_Time_Call): New procedure
19266 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
19267 E_Subprogram_Type)
19268
19269 * sprint.ads: Document use of $ for implicit run time routine call
19270
192712006-02-13 Quentin Ochem <ochem@adacore.com>
19272
19273 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
19274 task name.
19275
192762006-02-13 Bob Duff <duff@adacore.com>
19277
19278 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
19279 Scan_Unsigned, so we do not scan leading blanks and sign twice.
19280 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19281 raise Constraint_Error.
19282
19283 * s-vallli.adb (Scan_Long_Long_Integer): Call
19284 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
19285 do not scan leading blanks and sign twice.
19286 Integer'Value("- 5") and Integer'Value("-+5") now correctly
19287 raise Constraint_Error.
19288
19289 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
19290 Scan_Long_Long_Unsigned): Split out most of the processing from
19291 Scan_Long_Long_Unsigned out into
19292 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
19293 This prevents scanning leading blanks and sign twice.
19294 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
19295 See RM-3.5(44).
19296
19297 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
19298 out most of the processing from Scan_Unsigned out into
19299 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
19300 This prevents scanning leading blanks and sign twice.
19301
19302 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
19303 use with Modular'Value attribute.
19304 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
19305 attribute.
19306
193072006-02-13 Robert Dewar <dewar@adacore.com>
19308
19309 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
19310
193112006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19312
19313 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
19314 (PPC VxWorks): Likewise.
19315 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
19316 (forced_callee): Make non-inlinable and non-pure.
19317 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
19318
193192006-02-13 Arnaud Charlet <charlet@adacore.com>
19320 Ben Brosgol <brosgol@adacore.com>
19321 Robert Dewar <dewar@adacore.com>
19322
19323 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
19324 support.
19325 Document that gnatbind -M option is for cross environments only.
19326 Added description of using gnatmem to trace gnat rtl allocs and deallocs
19327 Add note on use of $ to label implicit run time calls
19328 Add documentation for -gnatyI (check mode IN)
19329 Updated chapter on compatibility with HP Ada
19330 VMS-oriented edits.
19331 Ran spell and corrected errors
19332 Add documentation for gnatbind -d and rework documentation of -D
19333 at the same time.
19334 Add subprogram/data elimination section.
19335 Minor editing of annex A.
19336 Add section for gnatcheck.
19337 Add documentation for restriction No_Dispatching_Calls
19338 Add documentation for pragma Ada_2005
19339 Remove mention of obsolete pragma Propagate_Exceptions
19340 Document that pragma Unreferenced can appear after DO in ACCEPT
19341 Clarify Pure_Function for library level units
19342 Mention Max/Min in connection with No_Implicit_Conditionals
19343 No_Wide_Characters restriction is no longer partition-wide
19344 Add a nice example for Universal_Literal_String attribute
19345 Document that pragma No_Return can take multiple arguments
19346
19347 * ug_words: Added entry for gnatcheck
19348
19349 * g-ctrl_c.ads (Install_Handler): Enhance comments
19350
19351 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
19352
19353 * g-trasym.ads: Add documentation on how to do off line symbolic
19354 traceback computation.
19355
19356 * s-fatgen.adb: Add comments for Unaligned_Valid
19357
19358 * stand.ads: Fix typo in comment
19359
0e692cc0
RO
193602006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19361
19362 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
19363
f44013ae
RS
193642006-02-06 Roger Sayle <roger@eyesopen.com>
19365
19366 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
19367
3df6582b
JDA
193682006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19369
19370 PR target/25926
19371 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
19372 implementation that calls __main.
19373
f57a2203
PG
193742006-01-25 Peter O'Gorman <peter@pogma.com>
19375
19376 PR bootstrap/25859
19377 * Makefile.in (GCC_LINK): Remove quotes.
19378 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
19379 or $(GCC_LINK).
19380
19381 (powerpc-darwin): Pass -shared-libgcc when building shared library.
19382
4bf2d473
JDA
193832006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19384
19385 PR ada/24533
19386 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
19387
4580c9a6
JDA
193882005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19389
19390 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
19391
e5c681b3
AC
193922005-12-12 Arnaud Charlet <charlet@adacore.com>
19393
19394 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
19395 needed.
19396
b0b8e176
AC
193972005-12-12 Arnaud Charlet <charlet@adacore.com>
19398
19399 * Make-lang.in: Update dependencies
19400
53fcb103
AC
194012005-12-12 Arnaud Charlet <charlet@adacore.com>
19402
19403 * Make-lang.in: Add rule for ada/exp_sel.o
19404
25b06cda
AC
194052005-12-12 Arnaud Charlet <charlet@adacore.com>
19406
19407 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
19408
aedc2c2b
AC
194092005-12-09 Arnaud Charlet <charlet@adacore.com>
19410
19411 * gnatvsn.ads (Library_Version): Bump to version 4.2
19412 (ASIS_Version_Number): Bumped.
19413
194142005-12-09 Doug Rupp <rupp@adacore.com>
19415
19416 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
19417 Ada bind file prefix on VMS from b$ to b__.
19418 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
19419 __init.
19420
19421 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
19422 Targparm.OpenVMS_On_Target.
19423 (Object_Suffix): Initialize with target object suffix.
19424 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
19425
19426 * butil.adb: Change some Hostparm.OpenVMS checks to
19427 Targparm.OpenVMS_On_Target.
19428
19429 * clean.adb: Change some Hostparm.OpenVMS checks to
19430 Targparm.OpenVMS_On_Target.
19431 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
19432 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
19433 Ada bind file prefix on VMS from b$ to b__.
19434
19435 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
19436 --GCC so that Get_Target_Parameters can find system.ads.
19437 (Gnatlink): Call Get_Target_Parameters in mainline.
19438 Initialize standard packages for Targparm.
19439 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19440 (Process_Args): Also Check for object files with target object
19441 extension.
19442 (Make_Binder_File_Names): Create with target object extension.
19443 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
19444 to b__.
19445
19446 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
19447 Targparm.OpenVMS_On_Target.
19448 ({declaration},Build_Library,Check_Library): Change Ada bind file
19449 prefix on VMS from b$ to b__.
19450
19451 * osint-b.adb: Change some Hostparm.OpenVMS checks to
19452 Targparm.OpenVMS_On_Target.
19453 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
19454 b__.
19455
19456 * targext.c: New file.
19457
19458 * Makefile.in: add support for vxworks653 builds
19459 (../../vxaddr2line): gnatlink with targext.o.
19460 (TOOLS_LIBS): Move targext.o to precede libgnat.
19461 (init.o, initialize.o): Minor clean up in dependencies.
19462 (GNATLINK_OBJS): Add targparm.o, snames.o
19463 Add rules fo building targext.o and linking it explicitly with all
19464 tools.
19465 Also add targext.o to gnatlib.
19466
19467 * Make-lang.in: Add rules for building targext.o and linking it in
19468 with gnat1 and gnatbind.
19469 Add entry for exp_sel.o.
19470
19471 * osint.adb Change some Hostparm.OpenVMS checks to
19472 Targparm.OpenVMS_On_Target.
19473 (Object_File_Name): Use target object suffix.
19474
19475 * osint.ads (Object_Suffix): Remove, no longer used.
19476 (Target_Object_Suffix): Initialize with target object suffix.
19477
19478 * rident.ads: Add special exception to license.
19479
19480 * targparm.adb (Get_Target_Parameters): Set the value of
19481 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
19482 value.
19483 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
19484
19485 * targparm.ads: Add special exception to license.
19486
19487 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
19488 function.
19489 (Copy_File): Make sure from file is closed if error on to file
19490 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
19491
19492 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
19493 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
19494
19495 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
19496 target object suffix.
19497
194982005-12-09 Jose Ruiz <ruiz@adacore.com>
19499 Quentin Ochem <ochem@adacore.com>
19500 Florian Villoing <villoing@adacore.com>
19501
6f7f72f9 19502 * a-taster.ads, a-taster.adb: New files.
aedc2c2b
AC
19503
19504 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
19505 link to the version that does nothing. This way the task termination
19506 routine is not executed twice for the environment task when finishing
19507 because of an unhandled exception.
19508
19509 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
19510 handler because of an unhandled exception.
19511
19512 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
19513 System.Tasking.Utilities instead of that in System.Tasking.Stages.
19514
19515 * s-finimp.adb (initialization code): Modify the soft link for the
19516 finalization of the global list instead of Adafinal.
19517
19518 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
19519 non-tasking version of the soft link for task termination. We do
19520 nothing since if we are using the non-tasking version it
19521 means that the task termination functionality is not used.
19522 (Null_Finalize_Global_List): Add this null version for the procedure
19523 in charge of finalizing the global list for controlled objects.
19524 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
19525 instead for handling run-time termination in a more flexible way.
19526 (Adafinal_NT): This new procedure will take care of finalizing the
19527 global list for controlled objects if needed, but no tasking
19528 finalization.
19529
19530 * s-tarest.adb (Task_Lock): Do not try to lock again the
19531 Global_Task_Lock if we already own it. Otherwise, we get blocked in
19532 some run-time operations.
19533 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
19534 until all nested locks have been released.
19535 (Task_Wrapper): Call the fall-back task termination handler. It
19536 applies to all tasks but the environment task.
19537 (Finalize_Global_Tasks): Add the call for the task termination
19538 procedure for the environment task.
19539 (Task_Wrapper): suppress warnings around declaration of
19540 Secondary_Stack_Address.
19541
19542 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
19543 moved to the Common_ATCB record.
19544 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
19545 Common_ATCB record.
19546 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
19547 Common_ATCB record.
19548
19549 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
19550 Fall_Back_Handler, and Specific_Handler.
19551
19552 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
19553 defined in Ada.Task_Termination, to avoid circular dependencies.
19554 (Termination_Handler): Redefine this type here, alredy defined in
19555 Ada.Task_Termination, for avoiding circular dependencies.
19556 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
19557 for storing task termination handlers. In addition,
19558 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
19559 Common_ATCB because it is used by both the regular and the restricted
19560 run times.
19561 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
19562 Common_ATCB because it is used by both the regular and the restricted
19563 run times.
19564 (Common_ATCB): Added a dynamic task analyzer field.
19565
19566 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
19567 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
19568 (Task_Wrapper): Call the task termination handler. It applies to all
19569 tasks but the environment task.
19570 (Finalize_Global_Tasks): Call the task termination procedure for the
19571 environment task. The call to Finalize_Global_List is now performed
19572 using the soft links mechanism.
19573 (Task_Wrapper): added dynamic stack analysis.
19574
19575 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
19576 potentially blocking operations has been moved from
19577 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
19578 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
19579 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
19580 this run-time check.
19581
19582 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
19583 of task termination procedure.
19584 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
19585 link for the task termination procedure.
19586
19587 * bindusg.adb: (Bindusg): Added documentation for -u option.
19588
19589 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
19590 (Get_Main_C): Add handling of dynamic stack analysis.
19591 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
19592
19593 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
19594 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
19595 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
19596
19597 * opt.ads: Added flags used by dynamic stack measurement.
19598 (Max_Line_Length): Remove (not used anymore)
19599
19600 * s-io.ads, s-io.adb (Standard_Error): new subprogram
19601 (Standart_Output): new subprogram
19602 (Set_Output): new subprogram
19603 (Put): now uses the value of Current_Out to know if the output has to be
19604 send to stderr or stdout.
19605
19606 * s-stausa.ads: Complete implementation.
19607
19608 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
19609
19610 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
19611 list of Ada 05 files.
19612 (GNAT Library Units): Add AltiVec files.
19613
19614 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
19615 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
19616 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
19617
196182005-12-09 Nicolas Setton <setton@adacore.com>
19619
19620 * adaint.c (__gnat_locate_regular_file): Return immediately if
19621 file_name is empty.
19622
196232005-12-09 Javier Miranda <miranda@adacore.com>
19624 Hristian Kirtchev <kirtchev@adacore.com>
19625
19626 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
19627 to the specification because the frontend generates code that uses this
19628 subprogram.
19629 (Set_Interface_Table): Add missing assertion.
19630 Update documentation describing the run-time structure.
19631 (Displace): New subprogram that displaces the pointer to the object
19632 to reference one of its secondary dispatch tables.
19633 (IW_Membership): Modified to use the new table of interfaces.
19634 (Inherit_TSD): Modified to use the new table of interfaces.
19635 (Register_Interface_Tag): Use the additional formal to fill the
19636 contents of the new table of interfaces.
19637 (Set_Interface_Table): New subprogram that stores in the TSD the
19638 pointer to the table of interfaces.
19639 (Set_Offset_To_Top): Use the additional formal to save copy of
19640 the offset value in the table of interfaces.
19641 Update structure of GNAT Primary and Secondary dispatch table diagram.
19642 Add comment section on GNAT dispatch table prologue.
19643 (Offset_To_Signature): Update the constant value of the Signature field.
19644 (Dispatch_Table): Update comment on hidden fields in the prologue.
19645 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
19646 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
19647 the type of formal parameter T to Tag, introduce additional assertions.
19648 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
19649 conversion.
19650 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
19651
19652 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
19653 in all the calls to Expand_Interface_Thunk. Instead of referencing the
19654 record component containing the tag of the secondary dispatch table we
19655 have to use the Offset_To_Top run-time function to get this information;
19656 otherwise if the pointer to the base of the object has been displace
19657 we get a wrong value if we use the 'position attribute.
19658
19659 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
19660 all the calls to Expand_Interface_Thunk.
19661 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
19662 interfaces; hence the call to Set_Interface_Table was clearly wrong.
19663 (Collect_All_Interfaces): Modify the internal subprogram Collect to
19664 ensure that the interfaces implemented by the ancestors are placed
19665 at the header of the generated list.
19666 (Expand_Interface_Conversion): Handle the case in which the displacement
19667 associated with the interface conversion is not statically known. In
19668 this case we generate a call to the new run-time subprogram Displace.
19669 (Make_DT): Generate and fill the new table of interfaces.
19670 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
19671 Get_Tagged_Kind and Set_Tagged_Kind.
19672 (Tagged_Kind): New function that determines the tagged kind of a type
19673 with respect to limitedness and concurrency and returns a reference to
19674 RE_Tagged_Kind.
19675 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
19676 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
19677 primary dispatch table for a type.
19678 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
19679 secondary dispatch table respectively of a tagged type.
19680
19681 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
19682 (Expand_Interface_Conversion): New subprogram to indicate if the
19683 displacement of the type conversion is statically known.
19684 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
19685
19686 * rtsfind.ads (RE_Offset_To_Top): New entity
19687 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
19688 accessible to users.
19689 (Re_Displace): New entity
19690 (RE_Interface_Data): New entity
19691 (RE_Set_Interface_Data): New_Entity
19692 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
19693 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
19694 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
19695 RE_TK_Tagged, RE_TK_Task.
19696
19697 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
19698 Init_Secondary_Tags_Internal to allow its use with interface types and
19699 also to generate the code for the new additional actual required
19700 by Set_Offset_To_Top.
19701 (Build_Init_Statements): In case of components associated with abstract
19702 interface types there is no need to generate a call to its IP.
19703 (Freeze_Record_Type): Generate Select Specific Data tables only for
19704 concurrent types.
19705 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
19706 the bodies and specifications of the predefined primitive operations
19707 dealing with dispatching selects and abort, 'Callable, 'Terminated only
19708 for concurrent types.
19709
6f7f72f9 19710 * exp_sel.ads, exp_sel.adb: New files.
aedc2c2b
AC
19711
19712 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
19713 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
19714 properly protected objects and attach handler in the case of the
19715 restricted profile.
19716 Move embeded package Select_Expansion_Utilities into a separate external
19717 package.
19718 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
19719 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
19720 (Build_K, Build_S_Assignment): New subprograms, part of the select
19721 expansion utilities.
19722 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
19723 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
19724 where the trigger is a dispatching procedure of a limited tagged type.
19725
197262005-12-09 Olivier Hainque <hainque@adacore.com>
19727
19728 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
19729 pointer initialization values. Make a SAVE_EXPR instead. Add comments
19730 about the use and expansion of SAVE_EXPRs in the various possible
19731 renaming handling cases.
19732 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
19733 abusing DECL_FCONTEXT.
19734
197352005-12-09 Matthew Heaney <heaney@adacore.com>
19736
19737 * a-convec.adb (Merge): Added assertions to check whether vector params
19738 are sorted.
19739
19740 * a-coinve.adb (Merge): Added assertions to check whether vector params
19741 are sorted.
19742
19743 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
19744 draft.
19745 (Cursor'Read): raises PE
19746
19747 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
19748 to its default value.
19749
19750 * a-cihama.adb: Manually check whether cursor's key and elem are
19751 non-null
19752
19753 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
19754 (Merge): Assert that target and source lists are in order
19755 (Swap): Declare non-const temporaries, to pass to Splice
19756
19757 * a-cdlili.ads: (Splice): Changed param name and param mode
19758
19759 * a-cdlili.adb: (Splice): Changed param name and param mode
19760 (Merge): Assert that target and source lists are in order
19761 (Swap): Declare non-const temporaries, to pass to Splice
19762
19763 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
19764 (Write): declare Stream param as not null
19765
19766 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
19767 an exception message.
19768
197692005-12-09 Thomas Quinot <quinot@adacore.com>
19770 Robert Dewar <dewar@adacore.com>
19771
19772 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
19773 which is the absolute maximum length we can support.
19774
19775 * frontend.adb: For the processing of configuration pragma files,
19776 remove references to Opt.Max_Line_Length, which is not checked anymore.
19777
19778 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
19779 length.
19780
19781 * scn.adb, scng.adb:
19782 Always check line length against the absolute supported maximum,
19783 Hostparm.Max_Line_Length.
19784
19785 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
19786 value for the maximum line length is Max_Line_Length (not
19787 Column_Number'Last).
19788 Minor error msg update
19789 (Set_Style_Check_Options): New interface returning error msg
19790 Minor code reorganization (processing for 'M' was out of alpha order)
19791
19792 * switch-c.adb: New interface for Set_Style_Check_Options
19793
19794 * stylesw.ads (Set_Style_Check_Options): New interface returning error
19795 msg.
19796
197972005-12-09 Javier Miranda <miranda@adacore.com>
19798
19799 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
19800 with IP subprogram were only supported if there were limited types.
19801
19802 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
19803 records with IP subprogram were only supported if there were limited
19804 types.
19805
198062005-12-09 Olivier Hainque <hainque@adacore.com>
19807 Eric Botcazou <ebotcazou@adacore.com>
19808
19809 * trans.c (tree_transform, emit_check): Adjust calls to
19810 build_call_raise, passing the now expected GNAT_NODE argument.
19811
19812 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
19813 source line information than what the current global locus indicates
19814 when appropriate.
19815
19816 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
19817 field has overflowed.
19818 (build_call_raise): Add a GNAT_NODE argument to convey better source
19819 line information than what the current global locus indicates when
19820 appropriate.
19821 (build_component_ref): Adjust call to build_call_raise.
19822
198232005-12-09 Pascal Obry <obry@adacore.com>
19824
19825 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
19826 the iterator is quitting iteration on parent directory.
19827
198282005-12-09 Javier Miranda <miranda@adacore.com>
19829
19830 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
19831 and the assignment to a class-wide object, before the assignment we
19832 generate a run-time check to ensure that the tag of the Target is
19833 covered by the tag of the source.
19834
198352005-12-09 Robert Dewar <dewar@adacore.com>
19836
19837 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
19838 parameter in call to Image_Wide_Character.
19839
19840 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
19841 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
19842 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
19843 annoying FFFE/FFFF inconsistency.
19844
198452005-12-09 Robert Dewar <dewar@adacore.com>
19846 Javier Miranda <miranda@adacore.com>
19847 Ed Schonberg <schonberg@adacore.com>
19848
19849 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
19850 of type conversion.
19851 (Find_Interface): New subprogram that given a tagged type and one of its
19852 component associated with the secondary table of an abstract interface
19853 type, return the entity associated with such abstract interface type.
19854 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
19855 base type to create anonymous subtype, because entity may be a locally
19856 declared subtype or generic actual.
19857 (Find_Interface): New subprogram that given a tagged type and one of its
19858 component associated with the secondary table of an abstract interface
19859 type, return the entity associated with such abstract interface type.
19860
19861 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
19862 conversion cannot be handled at compile time. In this case we pass this
19863 information to the expander to generate the appropriate code.
19864
198652005-12-09 Robert Dewar <dewar@adacore.com>
19866 Ed Schonberg <schonberg@adacore.com>
19867 Gary Dismukes <dismukes@adacore.com>
19868 Javier Miranda <miranda@adacore.com>
19869 Hristian Kirtchev <kirtchev@adacore.com>
19870
19871 * einfo.adb (Itype_Printed): New flag
19872 (Is_Limited_Type): Derived types do not inherit limitedness from
19873 interface progenitors.
19874 (Is_Return_By_Reference_Type): Predicate does not apply to limited
19875 interfaces.
19876
19877 * einfo.ads (Itype_Printed): New flag
19878 Move Is_Wrapper_Package to proper section
19879 Add missing Inline for Is_Volatile
19880
19881 * output.ads, output.adb (Write_Erase_Char): New procedure
19882 (Save/Restore_Output_Buffer): New procedures
19883 (Save/Restore_Output_Buffer): New procedures
19884
19885 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
19886 Add missing support for anonymous access type
19887 (Write_Id): Insert calls to Write_Itype
19888 (Write_Itype): New procedure to output itypes
19889
19890 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
19891 use of "limited" in declaration.
19892
19893 * sinfo.ads, sinfo.adb:
19894 Formal derived types can carry an explicit "limited" indication.
19895
19896 * sem_ch3.adb: Add with and use of Targparm.
19897 (Create_Component): If Frontend_Layout_On_Target is True and the
19898 copied component does not have a known static Esize, then reset
19899 the size and positional fields of the new component.
19900 (Analyze_Component_Declaration): A limited component is
19901 legal within a protected type that implements an interface.
19902 (Collect_Interfaces): Do not add to the list the interfaces that
19903 are implemented by the ancestors.
19904 (Derived_Type_Declaration): If the parent of the full-view is an
19905 interface perform a transformation of the tree to ensure that it has
19906 the same parent than the partial-view. This simplifies the job of the
19907 expander in order to generate the correct object layout, and it is
19908 needed because the list of interfaces of the full-view can be given in
19909 any order.
19910 (Process_Full_View): The parent of the full-view does not need to be
19911 a descendant of the parent of the partial view if both parents are
19912 interfaces.
19913 (Analyze_Private_Extension_Declaration): If declaration has an explicit
19914 "limited" the parent must be a limited type.
19915 (Build_Derived_Record_Type): A derived type that is explicitly limited
19916 must have limited ancestor and progenitors.
19917 (Build_Derived_Type): Ditto.
19918 (Process_Full_View): Verify that explicit uses of "limited" in partial
19919 and full declarations are consistent.
19920 (Find_Ancestor_Interface): Remove function.
19921 (Collect_Implemented_Interfaces): New procedure used to gather all
19922 implemented interfaces by a type.
19923 (Contain_Interface): New function used to check whether an interface is
19924 present in a list.
19925 (Find_Hidden_Interface): New function used to determine whether two
19926 lists of interfaces constitute a set equality. If not, the first
19927 differing interface is returned.
19928 (Process_Full_View): Improve the check for the "no hidden interface"
19929 rule as defined by AI-396.
19930
199312005-12-09 Robert Dewar <dewar@adacore.com>
19932
19933 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
19934 types, not on record subtypes.
19935 (Freeze_Entity): Code cleanup. Add barrier to the loop
19936 that generates the references for primitive operations. This allows to
19937 remove an unnecessary exception handler.
19938 Code reformatting and comment clean ups.
19939
199402005-12-09 Vincent Celier <celier@adacore.com>
19941
19942 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
19943 If GNAT CHECK is called with a project file, but with no
19944 source on the command line, call gnatcheck with all the compilable
19945 sources of the project.
19946 Take into account the new command Check, for gnatcheck. Treat as for
19947 other ASIS tools: take into account project, specific package Check and
19948 Compiler switches.
19949 For ASIS tools, add the switches in package Compiler for
19950 the invocation of the compiler.
19951
19952 * prj-attr.adb: Add package Check and its attributes
19953
19954 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
19955
19956 * vms_conv.adb (Initialize): Change Params of command Check to
19957 unlimited files.
19958 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
19959 Add data for new command Check
19960
19961 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
19962 ELIM.
19963 Add qualifiers for Check command options
19964 (Command_Type): New command Check
19965
199662005-12-09 Thomas Quinot <quinot@adacore.com>
19967
19968 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
19969 command line switch overruns the output buffer.
19970
199712005-12-09 Robert Dewar <dewar@adacore.com>
19972
19973 * sem_prag.adb: Processing for new pragma Complete_Representation
19974 (Analyze_Pragma, case Debug): Implement two argument form.
19975
19976 * par-prag.adb: Entry for new pragma Complete_Representation
19977 (Prag, case Debug): Recognize two argument form of pragma Debug
19978 New interface for Set_Style_Check_Options.
19979
19980 * sem_ch13.adb: Implement new pragma Complete_Representation.
19981
19982 * snames.adb, snames.ads, snames.h: Entry for new pragma
19983 Complete_Representation.
19984
199852005-12-09 Gary Dismukes <dismukes@adacore.com>
19986
19987 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
19988 available user-specified stream attributes on limited parameters to
19989 also test the type directly rather than only its underlying type (for
19990 Ada 95) and, in the case of Ada 2005, to check that the user-specified
19991 attributes are visible at the point of the subprogram declaration.
19992 For Ada 2005, the error message is modified to indicate that the
19993 type's stream attributes must be visible (again, only for -gnat05).
19994
199952005-12-09 Ed Schonberg <schonberg@adacore.com>
19996
19997 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
19998 anonymous access types.
19999
20000 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
20001 matching of anonymous access types and anonymous access to subprogram
20002 types. 'R'M 4.9.1 (2/2).
20003
200042005-12-09 Ed Schonberg <schonberg@adacore.com>
20005
20006 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
20007 rule prematurely when operands are universal, remaining ambiguities
20008 will be removed during resolution.
20009 Code cleanup.
20010
20011 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
20012 that are Ada 2005 functions.
20013 (Has_Abstract_Interpretation): Subsidiary to
20014 Remove_Conversions, to remove ambiguities caused by abstract operations
20015 on numeric types when operands are universal.
20016
200172005-12-09 Robert Dewar <dewar@adacore.com>
20018
20019 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
20020 for case where spec is categorized.
20021
200222005-12-09 Javier Miranda <miranda@adacore.com>
20023
20024 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
20025 types use the corresponding record type. This was not needed before
20026 the implementation of Ada 2005 synchronized types because
20027 concurrent types were never tagged types in Ada 95.
20028
200292005-12-09 Ed Schonberg <schonberg@adacore.com>
20030
20031 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
20032 first subtype of the type of the expression to verify that it is a
20033 legal Time type.
20034
200352005-12-09 Robert Dewar <dewar@adacore.com>
20036
20037 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
20038 decoded names.
20039
200402005-12-09 Quentin Ochem <ochem@adacore.com>
20041 Robert Dewar <dewar@adacore.com>
20042 Ed Falis <falis@adacore.com>
20043 Florian Villoing <villoing@adacore.com>
20044 Thomas Quinot <quinot@adacore.com>
20045 Arnaud Charlet <charlet@adacore.com>
20046
20047 * gnat_ugn.texi: Created section "Stack Related Tools"
20048 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
20049 "Stack Related Tools"
20050 Added subsection "Static Stack Usage Analysis"
20051 Added subsection "Dynamic Stack Usage Analysis"
20052 Include documentation of itypes in sprint listing (-gnatG)
20053 Documented gnatbind -D switch (default sec stack size for fixed sec
20054 stacks).
20055 Added Interrupt_State and Persistent_BSS to list of configuration
20056 pragmas.
20057 Add missing doc for maximum value of nnn in -gnatyMnnn
20058
20059 * gnat_rm.texi: Document the AltiVec binding.
20060 Add documentation for pragma Complete_Representation
20061 Shortened an overly long line (> 79 chars)
20062 Clarify documentation of unchecked conversion in implementation
20063 defined cases.
20064 Document two argument form of pragma Debug
20065
20066 * types.ads (Column_Number): Update documentation.
20067
20068 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
20069 library level Finalize_Storage_Only objects (these are not attached to
20070 any finalization list).
20071
20072 * system-mingw.ads: (Underlying_Priorities): Update comment.
20073
200742005-12-09 Robert Dewar <dewar@adacore.com>
20075
20076 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
6f7f72f9 20077 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
aedc2c2b
AC
20078 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
20079 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
20080 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
20081 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
20082 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
20083 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
20084 reformatting.
20085
200862005-12-09 Robert Dewar <dewar@adacore.com>
20087
20088 * s-vaflop-vms-alpha.adb: (Ne_F): New function
20089 (Ne_G): New function
20090
20091 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
20092 for tag assignment.
20093 (Rewrite_Comparison): Handle case where operation is not a comparison
20094 and ignore, and also handle type conversion case.
20095
200962005-12-09 Thomas Quinot <quinot@adacore.com>
20097
20098 * exp_aggr.ads: Fix typo in comment.
20099 ???-mark Convert_Aggr_In_Assignment as needing documentation.
20100
201012005-12-09 Gary Dismukes <dismukes@adacore.com>
20102
20103 * layout.adb: Replace various uses of byte by storage unit throughout.
20104 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
20105 static size, convert to storage units before returning, to conform to
20106 spec.
20107
201082005-12-09 Matthew Gingell <gingell@adacore.com>
20109
20110 * g-exctra.ads: Fix typo in comment.
20111
201122005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20113
20114 * utils.c: Minor reformatting.
20115
201162005-12-09 Robert Dewar <dewar@adacore.com>
20117
20118 * g-soccon.ads:
20119 Further comment fixes to make the status of the default file clear
20120
20121 * s-bitops.adb: Clarify comment for Bits_Array
20122
01ddebf2 201232005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
bd97af06
RÁE
20124
20125 * Make-lang.in (ada.install-normal): Remove.
20126
01ddebf2 201272005-12-07 Rafael �vila de Esp�ndola <rafael.espindola@gmail.com>
2f4d2d18
AM
20128
20129 * Make-lang.in: Remove all dependencies on s-gtype.
20130
53917868
RG
201312005-12-05 Richard Guenther <rguenther@suse.de>
20132
20133 * utils.c (convert): Use fold_convert where appropriate.
20134
40077270
PB
201352005-12-05 Paolo Bonzini <bonzini@gnu.org>
20136
6f7f72f9 20137 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
40077270
PB
20138 a period is meant.
20139
a380cd0a
RG
201402005-12-02 Richard Guenther <rguenther@suse.de>
20141
20142 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
20143
87f2a9f5
RS
201442005-12-01 Roger Sayle <roger@eyesopen.com>
20145
20146 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
20147 nodes.
20148
9e94c78f 201492005-11-23 Laurent Guerby <laurent@guerby.net>
f8d15f14 20150
6f7f72f9 20151 * mlib-prj.adb (Build_Library): Initialize Delete.
f8d15f14 20152
9e94c78f 201532005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
04b5d587
JS
20154
20155 * socket.c: Add extern int h_errno for rtems since networking header
20156 files are not available at this point in a tool bootstrap. Newlib
20157 only has basic C library header files.
20158
452b5b1e
RG
201592005-11-19 Richard Guenther <rguenther@suse.de>
20160 Roger Sayle <roger@eyesopen.com>
20161
20162 PR ada/23717
20163 * misc.c (internal_error_function): Don't use vsprintf to format
20164 the error message text, instead use pp_format_text and the new
20165 pretty printer APIs. This allows handling of %qs, %w, etc.
20166
9e94c78f 201672005-11-18 Laurent Guerby <laurent@guerby.net>
e0709888 20168
6f7f72f9
EB
20169 PR ada/24857
20170 * Makefile.in: Use s-auxdec-empty for RTEMS.
e0709888 20171
115a82d3
RK
201722005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20173
20174 PR ada/22333
20175 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
20176 a temporary if taking the address of something that is neither
20177 reference, declaration, or constant, since the gimplifier
20178 can't handle that case.
20179
9e94c78f 201802005-11-17 Laurent Guerby <laurent@guerby.net>
f92af607
LG
20181
20182 PR ada/24857
20183 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
6f7f72f9 20184
0678ec6b
RG
201852005-11-16 Richard Guenther <rguenther@suse.de>
20186
20187 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
20188
9e94c78f 201892005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
b381d30b 20190
6f7f72f9
EB
20191 PR ada/24855
20192 * raise-gcc.c: Add missing stdarg.h include.
b381d30b 20193
1367ca38
RG
201942005-11-16 Richard Guenther <rguenther@suse.de>
20195
20196 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
20197 (ada/misc.o): Likewise.
20198
5de923eb
AC
201992005-11-14 Thomas Quinot <quinot@adacore.com>
20200
20201 * g-soccon.ads: Minor reformatting. Update comments.
20202
20203 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
20204 gain visibility on the declaration of struct timeval.
20205
20206 * g-soccon-freebsd.ads,
20207 g-soccon-darwin.ads,
20208 g-soccon-tru64.ads,
20209 g-soccon-aix.ads,
20210 g-soccon-irix.ads,
20211 g-soccon-hpux.ads,
20212 g-soccon-solaris.ads,
20213 g-soccon-vms.ads,
20214 g-soccon-mingw.ads,
20215 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
20216
20217 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
20218 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
20219 g-soccon-linux-x86.ads: New files.
20220
20221 * g-socthi-mingw.adb:
20222 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
20223
20224 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
20225 (time_t, suseconds_t): New types constructed to match the tv_sec
20226 and tv_usec fields of C struct timeval.
20227 (Timeval): Construct structure in terms of the new types.
20228 (Host_Errno): New function (imported from socket.c), returns last hosts
20229 database error.
20230
20231 * g-socthi-vxworks.adb: Add error handling circuitry.
20232
20233 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
20234 components of struct timeval.
20235 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
20236 (Check_Selector): In error conditions, clear internal socket sets to
20237 avoid a memory leak.
20238 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
20239 Send_Timeout, Receive_Timeout.
20240
20241 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
20242 the tv_sec and tv_usec fields of C struct timeval.
20243 (Timeval): Construct structure in terms of the new types.
20244 (Host_Errno): New function (imported from socket.c), returns last hosts
20245 database error.
20246
20247 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
20248 hosts database last error code.
20249
20250 * gen-soccon.c: Complete value expansion should not be performed on
20251 TARGET, as it has the form of a math expression, and some components
20252 may be platform-defined macros.
20253 For VxWorks, generate the OK and ERROR values.
20254 New constants giving the sizes of the components of C struct timeval.
20255
202562005-11-14 Robert Dewar <dewar@adacore.com>
20257 Ed Schonberg <schonberg@adacore.com>
20258
20259 PR ada/18434
5de923eb
AC
20260 * types.ads: Include All_Checks in Suppress_Array
20261
20262 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
20263 not(a=b), since we no longer do this rewriting, and hence it is not
20264 needed.
20265 (Elaboration_Checks_Suppressed): Add special casing to
20266 deal with different cases of static and dynamic elaboration checks (all
20267 checks does not count in the first case, but does in the second).
20268 (Expr_Known_Valid): Do not assume that the result of any arbitrary
20269 function call is valid, since this is not the case.
20270 (Ensure_Valid): Do not apply validity check to a real literal
20271 in a universal or fixed context
20272
20273 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
20274 elementary types using the operator in standard. It is cleaner not to
20275 modify the programmers intent, especially in the case of floating-point.
20276 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
20277 it did not matter because we always rewrote a/=b to not(a=b).
20278 (Expand_Allocator_Expression): For an allocator expression whose nominal
20279 subtype is an unconstrained packed type, convert the expression to its
20280 actual constrained subtype.
20281 Implement warning for <= or >= where < or > not possible
20282 Fix to Vax_Float tests (too early in many routines, causing premature
20283 Vax_Float expansions.
20284
20285 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
20286 to be used with packages and generic packages as well as with
20287 subprograms.
20288 (Suppress): Set All_Checks, but not Elaboration_Check, for case
20289 of pragma Suppress (All_Checks)
20290 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
20291 a string literal for precise control over warnings.
20292 Avoid raise of pragma in case of unrecognized pragma and just return
20293 instead.
20294
20295 * sem_prag.ads: Minor reformatting
20296
20297 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
20298 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20299 Switch. Do not handle any exception.
20300 Include -gnatwx as part of -gnatg (warn on redundant parens)
20301 Allow optional = after -gnatm
20302 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
20303 longer sets Elaboration_Checks.
20304 Code to set warning mode moved to Sem_Warn
20305 so that it can be shared by pragma processing.
20306
20307 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
20308 statement.
20309
20310 * s-taprop-solaris.adb:
20311 Change some <= to =, to avoid new warning
20312
20313 * a-exexda.adb, prj-proc.adb:
20314 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
20315 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
20316
203172005-11-14 Robert Dewar <dewar@adacore.com>
20318
20319 * exp_vfpt.adb: Handle /= case
20320 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
20321 so that we do not get duplicate scaling for fixed point conversions.
20322
20323 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
20324
203252005-11-14 Matthew Gingell <gingell@adacore.com>
20326
20327 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
20328 Increase default priority on Lynx from 15 to 17, and meet the Ada
20329 requirement that Default_Priority be ((Priority'First +
20330 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
20331
203322005-11-14 Vincent Celier <celier@adacore.com>
20333
20334 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20335 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
20336 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
20337 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
20338 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
20339 mlib-tgt-lynxos.adb (DLL_Prefix): New function
20340
203412005-11-14 Doug Rupp <rupp@adacore.com>
20342
20343 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
20344 private part.
20345
203462005-11-14 Arnaud Charlet <charlet@adacore.com>
20347
20348 * s-traces-default.adb, s-trafor-default.ads,
20349 s-tratas-default.adb: Fix compilation errors.
20350
203512005-11-14 Jose Ruiz <ruiz@adacore.com>
20352
20353 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
20354 raising the exception so the memory used is freed.
20355
203562005-11-14 Arnaud Charlet <charlet@adacore.com>
20357
20358 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
20359 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
20360 (convert_address): Update comments and list of platforms using this.
20361
20362 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
20363 no longer used.
20364
203652005-11-14 Pascal Obry <obry@adacore.com>
20366 Vincent Celier <celier@adacore.com>
20367
20368 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
20369 GNAT.Command_Line.
20370
20371 * memroot.adb: Remove redundant with/use clause on
20372 System.Storage_Elements.
20373
203742005-11-14 Arnaud Charlet <charlet@adacore.com>
20375
20376 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
20377 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
20378 related code to a-exexpr.adb
20379 (Save_Occurrence_And_Private): Move GCC EH related code to
20380 a-exexpr-gcc.adb
20381 (Raise_Current_Excep): Add new variable Id with pragma
6f7f72f9 20382 volatile, to ensure that the variable lives on stack.
5de923eb
AC
20383
20384 * a-exexpr-gcc.adb, raise-gcc.c: New file.
20385
20386 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
20387 from a-except.adb.
20388 Move GCC EH related code to a-exexpr-gcc.adb
20389
20390 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
20391 64-bit Solaris
20392 Split the Linux version of g-soccon into separate variants for 32 and 64
20393 bit platforms.
20394 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
20395 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
20396 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
20397 of host variable $(RANLIB_FLAGS).
20398 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
20399 Code clean up: remove unused/obsolete targets.
20400 (EH_MECHANISM): New variable introduced to differenciate between the
20401 two EH mechanisms statically.
20402 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
20403 (LIBGNAT_OBJS): Add raise-gcc.o
20404 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
20405 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
20406 supports VxWorks 6 RTPs.
20407 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
20408 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
20409
20410 * raise.c: Move all GCC EH-related routines to raise-gcc.c
20411
204122005-11-14 Jose Ruiz <ruiz@adacore.com>
20413
20414 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
20415 deferral level, when abort is not allowed, to a later stage (the
20416 Task_Wrapper).
20417 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
20418 it will not get changed by the generated code. It was previously done
20419 in Create_Task.
20420
204212005-11-14 Thomas Quinot <quinot@adacore.com>
20422 Olivier Hainque <hainque@adacore.com>
20423 Eric Botcazou <ebotcazou@adacore.com>
20424
20425 * decl.c:
20426 Factor common code to build a storage type for an unconstrained object
20427 from a fat or thin pointer type and a constrained object type.
20428 (annotate_value): Handle BIT_AND_EXPR.
20429 (annotate_rep): Don't restrict the back annotation of inherited
20430 components to the type_annotate_only case.
20431 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
20432 we are not defining the type.
20433 <E_Record_Type>: Likewise.
20434 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
20435 to get advantage of the new maybe_stabilize_reference interface, to
20436 ensure that what we reference is indeed stabilized instead of relying
20437 on assumptions on what the stabilizer does.
20438 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
20439 type imported through a limited_with clause, use its non-limited view.
20440 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
20441 differentiation.
20442 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
20443 of #if sections + explicit comparisons of convention identifiers.
20444 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
20445 before early-returning for certain types when code generation is
20446 disabled.
20447 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
20448 nullification of gnu_expr we do for objects with address clause and
20449 that we are not defining.
20450 (elaborate_expression_1): Do not create constants when creating
20451 variables needed by the debug info: the dwarf2 writer considers that
20452 CONST_DECLs is used only to represent enumeration constants, and emits
20453 nothing for them.
20454 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
20455 object with an address clause into an indirect reference, drop the
20456 initializing expression.
20457 Include "expr.h".
20458 (STACK_CHECK_BUILTIN): Delete.
20459 (STACK_CHECK_PROBE_INTERVAL): Likewise.
20460 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
20461 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
20462 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
20463 corresponding to the renamed object as ignored for debugging purposes.
20464
20465 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
20466 related): For a prefix that is a dereference of a fat or thin pointer,
20467 if there is an actual subtype provided by the front-end, use that
20468 subtype to build an actual type with bounds template.
20469 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
20470 is provided by the front-end, use that subtype to compute the size of
20471 the deallocated object.
20472 (gnat_to_gnu): When adding a statement into an elaboration procedure,
20473 check for a potential violation of a No_Elaboration_Code restriction.
20474 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20475 with extra arguments to control whether to recurse through non-values
20476 and to let the caller know if the stabilization has succeeded.
20477 (gnat_stabilize_reference): Now a simple wrapper around
20478 maybe_stabilize, for common uses without restriction on lvalues and
20479 without need to check for the success indication.
20480 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
20481 pass false instead of 0 as the FORCE argument which is a bool.
20482 (Identifier_to_gnu): Remove checks ensuring that an renamed object
20483 attached to a renaming pointer has been properly stabilized, as no such
20484 object is attached otherwise.
20485 (call_to_gnu): Invoke create_var_decl to create the temporary when the
20486 function uses the "target pointer" return mechanism.
20487 Reinstate conversion of the actual to the type of the formal
20488 parameter before any other specific treatment based on the passing
20489 mechanism. This turns out to be necessary in order for PLACEHOLDER
20490 substitution to work properly when the latter type is unconstrained.
20491
20492 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
20493 common pattern.
20494 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
20495 with extra arguments to control whether to recurse through non-values
20496 and to let the caller know if the stabilization has succeeded.
20497
20498 * utils2.c (gnat_build_constructor): Only sort the fields for possible
20499 static output of record constructor if all the components are constant.
20500 (gnat_build_constructor): For a record type, sort the list of field
20501 initializers in increasing bit position order.
20502 Factor common code to build a storage type for an unconstrained object
20503 from a fat or thin pointer type and a constrained object type.
20504 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
20505 types variants, and process special cases of VIEW_CONVERT expressions
20506 as their NOP_EXPR counterpart to ensure we get to the
20507 CORRESPONDING_VARs associated with CONST_DECls.
20508 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
20509 on the right-hand side.
20510
20511 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
20512 a common pattern.
20513 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
20514 are converting back to its original type.
20515 (convert) <JM input>: Fallthrough regular conversion code instead of
20516 extracting the object if converting to a type variant.
20517 (create_var_decl): When a variable has an initializer requiring code
20518 generation and we are at the top level, check for a potential violation
20519 of a No_Elaboration_Code restriction.
20520 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
20521 SIZE and SIZE_UNIT which we need for later back-annotations.
20522 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
20523 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
20524 is an unchecked union.
20525 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
20526 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
20527 main variant, just replace the VIEW_CONVERT_EXPR.
20528 <UNION_TYPE>: Revert 2005-03-02 change.
20529
20530 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
20531
20532 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
20533
205342005-11-14 Matthew Heaney <heaney@adacore.com>
20535
20536 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
20537 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
20538 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
20539 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
20540 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
20541 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
20542 Compiles against the spec for ordered maps described in sections
20543 A.18.6 of the most recent (August 2005) AI-302 draft.
20544
205452005-11-14 Olivier Hainque <hainque@adacore.com>
20546
20547 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
20548 to ensure bias adjustments take place when need be and to prevent
20549 occurrences of intermediate overflows.
20550
205512005-11-14 Matthew Gingell <gingell@adacore.com>
20552 Olivier Hainque <hainque@adacore.com>
20553
20554 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
20555 ia64 HP-UX.
20556
20557 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
20558 tracebacks on ia64 HP-UX and provide explanatory comment.
20559 Enable backtraces on ia64 GNU/Linux.
20560 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
20561 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
20562
205632005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
20564 Javier Miranda <miranda@adacore.com>
20565
20566 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
20567 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
20568 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
20569 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
20570
20571 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
20572 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
20573 assertions).
20574
20575 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
20576 subprogram that generates the external name associated with a
20577 secondary dispatch table.
20578 (Get_Secondary_DT_External_Name): New subprogram that generates the
20579 external name associated with a secondary dispatch table.
20580
205812005-11-14 Emmanuel Briot <briot@adacore.com>
20582
20583 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
20584 line in the ALI file to include both an instantiation reference, and a
20585 returned value.
20586
205872005-11-14 Vincent Celier <celier@adacore.com>
20588
20589 * clean.adb (Check_Project): Look for Ada code in extending project,
20590 even if Ada is not specified as a language.
20591 Use new function DLL_Prefix for DLL_Name
20592 (Clean_Interface_Copy_Directory): New procedure
20593 (Clean_Library_Directory): New procedure
20594 (Clean_Directory): Remove procedure, no longer used
20595 (Clean_Project): Do not delete any file in an externally built project
20596
20597 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
20598 directory of an extending project, even when there are no Ada source
20599 present.
20600 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
20601 (Set_Ada_Paths.Add.Recursive_Add): Ditto
20602
20603 * mlib-prj.adb (Check_Library): For all library projects, get the
20604 library file timestamp.
20605 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
20606 (Build_Library): Use new function DLL_Prefix for the DLL_Name
20607 (Clean): Remove procedure, no longer used
20608 (Ultimate_Extension_Of): New function
20609 (Build_Library): When cleaning the library directory, only remove an
20610 existing library file and any ALI file of a source of the project.
20611 When cleaning the interface copy directory, remove any source that
20612 could be a source of the project.
20613
20614 * prj.ads, prj.adb (Project_Empty): Add values of new components
20615 Library_TS and All_Imported_Projects.
20616 (Project_Empty): Add values for new components of Project_Data:
20617 Library_ALI_Dir and Display_Library_ALI_Dir
20618
20619 * prj-attr.adb: New project level attribute name Library_ALI_Dir
20620
20621 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
20622 attribute Library_ALI_Dir.
20623 (Check_Library_Attributes): The library directory cannot be the same as
20624 any source directory of the project tree.
20625 (Check_Stand_Alone_Library): The interface copy directory cannot be
20626 the same as any source directory of the project tree.
20627
20628 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
20629 all temporary files.
20630
206312005-11-14 Robert Dewar <dewar@adacore.com>
20632 Ed Schonberg <schonberg@adacore.com>
20633
20634 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20635 (Check_Elab_Call): A call within a protected body is never an
20636 elaboration call, and does not require checking.
20637 (Same_Elaboration_Scope): Take into account protected types for both
20638 entities.
20639 (Activate_Elaborate_All_Desirable): New procedure
20640
20641 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
20642 desirable
20643
20644 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
20645 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
20646
20647 * lib-writ.ads, lib-writ.adb:
20648 Implement new AD/ED for Elaborate_All/Elaborate desirable
20649 Use new Elaborate_All_Desirable flag in N_With_Clause node
20650
20651 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
20652 N_Free_Statement nodes.
20653 Define new class N_Subprogram_Instantiation
20654 Add Elaborate_Desirable flag to N_With_Clause node
20655 Add N_Delay_Statement (covering two kinds of delay)
20656
20657 * debug.adb: Introduce d.f flag for compiler
20658 Add -da switch for binder
20659
206602005-11-14 Ed Schonberg <schonberg@adacore.com>
20661 Cyrille Comar <comar@adacore.com>
20662
20663 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
20664 for task component, in the case of a limited aggregate. The enclosed
20665 object declaration will create it earlier. Otherwise, in the case of a
20666 nested aggregate, the object may appear in the wrong scope.
20667 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
20668 (Gen_Assign): If the component being assigned is an array type and the
20669 expression is itself an aggregate, wrap the assignment in a block to
20670 force finalization actions on the temporary created for each row of the
20671 enclosing object.
20672 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
20673 structures are initialized after all discriminants are set so that
20674 they can be accessed even when their offset is dynamic.
20675
206762005-11-14 Robert Dewar <dewar@adacore.com>
20677 Hristian Kirtchev <kirtchev@adacore.com>
20678
20679 * sem_attr.adb: Implement Machine_Rounding attribute
20680 (Analyze_Access_Attribute): The access attribute may appear within an
20681 aggregate that has been expanded into a loop.
20682 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
20683 'Terminated whenever the prefix is of a task interface class-wide type.
20684 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
20685 the prefix is of a task interface class-wide type.
20686
20687 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
20688 to avoid warnings.
20689
20690 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
20691 Remove pragma Inline for [Unaligned_]Valid.
20692 Add comments that Valid routines do not work for Vax_Float
20693
20694 * exp_attr.adb: Implement Machine_Rounding attribute
20695
20696 * snames.h: Add entry for Machine_Rounding attribute
20697
206982005-11-14 Javier Miranda <miranda@adacore.com>
20699 Robert Dewar <dewar@adacore.com>
20700 Hristian Kirtchev <kirtchev@adacore.com>
20701
20702 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
20703 and related): For a prefix that is an explicit dereference of an
20704 access to unconstrained packed array type, annotate the dereference
20705 with an actual subtype so GIGI can make a correct size computation.
20706 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
20707 'Unrestricted_Access, if the designated type is an interface we
20708 add a type conversion to force the displacement of the pointer
20709 to the secondary dispatch table.
20710 Use Universal_Real instead of Long_Long_Float when we need a high
20711 precision float type for the generated code (prevents gratuitous
20712 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
20713 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
20714 'Terminated for task interface class-wide objects. Generate a call to
20715 the predefined dispatching routine used to retrieve the _task_id from
20716 a task corresponding record.
20717 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
20718
20719 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20720 (Check_Dispatching_Operation): Protect the frontend againts
20721 previously detected errors.
20722
20723 * Makefile.rtl: Add new instantiations of system.fat_gen
20724
20725 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
20726 Change name of instantiated package for better consistency
20727 with newly added system.fat_gen instantiations.
20728
20729 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
20730 s-fvagfl.ads: New files.
20731
207322005-11-14 Cyrille Comar <comar@adacore.com>
20733 Thomas Quinot <quinot@adacore.com>
20734
20735 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
20736 assignment of a value of a tagged type that has been rewritten to a
20737 block statement, it is known by construction that no checks are
20738 necessary for the statements within the block: analyze it with checks
20739 suppressed.
20740 (Expand_N_If_Statement): When killing a dead then-branch in an
20741 if-statement that has elsif_parts, recompute the Current_Value node
20742 for any entity whose value is known from the condition of the first
20743 elsif_part.
20744 (Expand_N_Return_Statement): When returning a mutable record, convert
20745 the return value into its actual subtype in order to help the backend
20746 to return the actual size instead of the maximum. This is another
20747 aftermath of not returning mutable records on the sec-stack anymore.
20748
20749 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
20750 handling of error msg for suspicious reverse range iteration.
20751 (Check_Possible_Current_Value_Condition): Move declaration from body to
20752 spec, to allow this subprogram to be called from exp_ch5.
20753
207542005-11-14 Thomas Quinot <quinot@adacore.com>
20755
20756 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
20757 generate a set of nested array aggregates instead of a single flat
20758 aggregate for multi-dimensional arrays.
20759
207602005-11-14 Pascal Obry <obry@adacore.com>
20761
20762 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
20763 by spawnve is a process handle, no need to convert. Add a parameter
20764 close to control wether the process handle must be closed.
20765 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
20766 a process handle, not need to convert.
20767 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
20768
20769 * g-expect.adb: (Kill): Document the new close parameter.
20770 (Close): Do not release the process handle in the kill there as
20771 waitpid() is using it.
20772 (Send_Signal): Release the process handle.
20773
207742005-11-14 Robert Dewar <dewar@adacore.com>
20775
20776 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
20777 need a high precision float type for the generated code (prevents
20778 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20779 used).
20780
20781 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
20782 need a high precision float type for the generated code (prevents
20783 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
20784 used).
20785 (Expand_Width_Attribute): In configurable run-time, the attribute is not
20786 allowed on non-static enumeration subtypes. Force a load error to emit
20787 the correct diagnostic.
20788
207892005-11-14 Thomas Quinot <quinot@adacore.com>
20790 Robert Dewar <dewar@adacore.com>
20791 Ed Schonberg <schonberg@adacore.com>
20792
20793 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
20794 subtype to compute the size of the designated object at run-time,
20795 create such a subtype and store it in the Actual_Designated_Subtype
20796 attribute of the N_Free_Statement.
20797 Generate itype for classwide designated object in both cases of
20798 user-specified storage pool: specific and class-wide, not only in the
20799 specific case.
20800 Raise CE when trying to set a not null access type object to null.
20801 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
20802 an explicit loop, because freeze nodes make its position variable.
20803
20804 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
20805 null object.
20806
208072005-11-14 Javier Miranda <miranda@adacore.com>
20808
20809 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
20810 Build_Stream_Procedure): Add the null-excluding attribute to the first
20811 formal.
20812 This has no semantic meaning under Ada95 mode but it is a
20813 requirement under Ada05 mode.
20814
20815 * par-ch3.adb (P_Access_Definition): Addition of warning message if
20816 the null exclusion is used under Ada95 mode
20817 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
20818 (P_Access_Definition): Remove assertion that forbids the use of
20819 the null-exclusion feature in Ada95.
20820
208212005-11-14 Robert Dewar <dewar@adacore.com>
20822
20823 * impunit.adb: Exclude container helper units not intended for use by
20824 users.
20825
208262005-11-14 Ed Schonberg <schonberg@adacore.com>
20827
20828 * freeze.adb (Freeze_Entity): For an access formal that is an access
20829 to subprogram, freeze the anonymous subprogram type at the same time,
20830 to prevent later freezing in the wrong scope, such as the enclosing
20831 subprogram body.
20832 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
20833 subprogram whenever available.
20834
208352005-11-14 Arnaud Charlet <charlet@adacore.com>
20836
20837 PR ada/23732
20838 * gnatvsn.ads (Library_Version): Bump to 4.1
20839
208402005-11-14 Robert Dewar <dewar@adacore.com>
20841
20842 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
20843 Storage_Offset to avoid wrap around causing invalid results.
20844
208452005-11-14 Pascal Obry <obry@adacore.com>
20846
20847 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
20848 cross-compiler.
20849 (Scan_Bind_Arg): Fail with an error message if -M option is used
20850 on a native compiler.
20851
208522005-11-14 Robert Dewar <dewar@adacore.com>
20853 Vincent Celier <celier@adacore.com>
20854
20855 * gprep.adb: Implement -C switch to scan comments
20856
20857 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
20858
20859 * scans.ads: Comment updates (including new use of Tok_Comment in
20860 preprocessing)
20861
20862 * opt.ads: Add documentation for flags that are used by gprmake,
20863 currently and in the next version of gprmake.
20864 (Verbosity_Level): New variable
20865 Add Replace_In_Comments switch
20866
20867 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
20868 and -vm.
20869 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
20870
208712005-11-14 Arnaud Charlet <charlet@adacore.com>
20872
20873 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
20874 message, friendlier.
20875
208762005-11-14 Robert Dewar <dewar@adacore.com>
20877
20878 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
20879
208802005-11-14 Doug Rupp <rupp@adacore.com>
20881
20882 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
20883
208842005-11-14 Robert Dewar <dewar@adacore.com>
20885
20886 * interfac.ads: Change declarations of IEEE float types so that we no
20887 longer need a separate version of this package for VMS.
20888
208892005-11-14 Ed Schonberg <schonberg@adacore.com>
20890
20891 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
20892 internal entity created for the declaration of a child subprogram body
20893 with no spec as coming from source, to generate proper cross-reference
20894 information.
20895
208962005-11-14 Vincent Celier <celier@adacore.com>
20897
20898 * make.adb (Compile_Sources): Change verbose message to minimum
20899 verbosity level High for "is in an Ada library", "is a read-only
20900 library" and "is an internal library",
20901 (Create_Binder_Mapping_File): Path name of ALI file for library project
20902 must include the library directory, not the object directory.
20903 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
20904 for new switches -vl, -vm and -vh.
20905 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
20906 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
20907 (Compile_Sources): Do not attempt to compile if an ALI file is missing
20908 in a project that is externally built.
20909 (Compute_All_Imported_Projects): New procedure
20910 (Gnatmake): Check if importing libraries should be regenerated because
20911 at least an imported library is more recent.
20912 (Initialize): For each project compute the list of the projects it
20913 imports directly or indirectly.
20914 (Add_Library_Search_Dir): New procedure, used in place of
20915 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20916 put in the search paths.
20917 (Add_Source_Search_Dir): New procedure, used in place of
20918 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
20919 put in the search paths.
20920 (Mark_Directory): Resolve the absolute path the directory before marking
20921 it.
20922
20923 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
20924 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
20925 Switch. Do not handle any exception.
20926 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
20927 so that the switch is recognized as valid.
20928 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
20929
209302005-11-14 GNAT Script <nobody@adacore.com>
20931
20932 * Make-lang.in: Makefile automatically updated
20933
209342005-11-14 Pascal Obry <obry@adacore.com>
20935
20936 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
20937 used.
20938 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
20939 In both cases the last argument was dropped.
20940
209412005-11-14 Eric Botcazou <ebotcazou@adacore.com>
20942
20943 * namet.h: (Column_Numbe): New type.
20944 (Get_Column_Number): Define to sinput__get_column_number.
20945 (Instantiation): Define to sinput__instantiation.
20946 (Get_Column_Number): Declare.
20947 (Instantiation): Likewise.
20948
209492005-11-14 Robert Dewar <dewar@adacore.com>
20950
20951 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
20952 syntax, which could cause compiler hangs.
20953
209542005-11-14 Vincent Celier <celier@adacore.com>
20955
20956 * prj-ext.adb: Take into account new environment variable
20957 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
20958 are defined.
20959 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
20960 normalize its path name, making it absolute and resolving symbolic
20961 links, and replace the original if resolved path is different.
20962
209632005-11-14 Vincent Celier <celier@adacore.com>
20964
20965 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
20966 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
20967
209682005-11-14 Emmanuel Briot <briot@adacore.com>
20969
20970 * prj-pp.adb (Print): Do not output the with statement if the
20971 associated name is empty, which happens for virtual extending projects.
20972 (Print): Preserve the "extends all" attribute when printing the project.
20973
20974 * prj-tree.ads (String_Value_Of): Add comment about returned value for
20975 a virtual extending project.
20976
209772005-11-14 Ed Schonberg <schonberg@adacore.com>
20978
20979 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
20980 rhs of an assignment even if the type is unconstrained, when the
20981 context is non-expanding.
20982 In an inlined body, if the context type is private,
20983 resolve with its full view, which must be a composite type.
20984
209852005-11-14 Robert Dewar <dewar@adacore.com>
20986 Ed Schonberg <schonberg@adacore.com>
20987
20988 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
20989 Do not give obsolescent warning on with of subprogram (since we
20990 diagnose calls)
20991 (Analyze_With_Clause): Add test for obsolescent package
20992 (Install_Context_Clauses): If the unit is the body of a child unit, do
20993 not install twice the private declarations of the parents, to prevent
20994 circular lists of Use_Clauses in a parent.
20995 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
20996 compiling body of child unit.
20997 Use new class N_Subprogram_Instantiation
20998 (Expand_With_Clause): If this is a private with_clause for a child unit,
20999 appearing in the context of a package declaration, then the implicit
21000 with_clauses generated for parent units are private as well.
21001 (License_Check): Do not generate message if with'ed unit is internal
21002
210032005-11-14 Gary Dismukes <dismukes@adacore.com>
21004 Ed Schonberg <schonberg@adacore.com>
21005 Thomas Quinot <quinot@adacore.com>
21006
21007 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
21008 names are internal, because they will not have a corresponding partner
21009 in the actual package.
21010 (Analyze_Formal_Package): Move the setting of the formal package spec's
21011 Generic_Parent field so that it occurs prior to analyzing the package,
21012 to allow proper operation of Install_Parent_Private_Declarations.
21013 (Analyze_Package_Instantiation): Set the instantiated package entity's
21014 Package_Instantiation field.
21015 (Get_Package_Instantiation_Node): Move declaration to package spec.
21016 Retrieve the N_Package_Instantiation node when the Package_Instantiation
21017 field is present.
21018 (Check_Generic_Child_Unit): Within an inlined call, the only possible
21019 instantiation is Unchecked_Conversion, for which no parents are needed.
21020 (Inline_Instance_Body): Deinstall and record the use_clauses for all
21021 parent scopes of a scope being removed prior to inlining an instance
21022 body.
21023 (Analyze_Package_Instantiation): Do not perform front-end inlining when
21024 the current context is itself an instance within a non-instance child
21025 unit, to prevent scope stack errors.
21026 (Save_References): If the node is an aggregate that is an actual in a
21027 call, rewrite as a qualified expression to preserve some type
21028 information, to resolve possible ambiguities in the instance.
21029 (Instance_Parent_Unit): New global variable to record the ultimate
21030 parent unit associated with a generic child unit instance (associated
21031 with the existing Parent_Unit_Visible flag).
21032 (type Instance_Env): New component Instance_Parent_Unit for stacking
21033 parents recorded in the global Instance_Parent_Unit.
21034 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
21035 stack.
21036 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
21037 it's not a top-level unit, and only do this if Instance_Parent_Unit is
21038 not already set. Replace test of Is_Child_Unit with test of parent's
21039 scope against package Standard. Add comments and a ??? comment.
21040 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
21041 on a child instance parent to test that the parent equals
21042 Instance_Parent rather than simply checking that the unit is not a
21043 child unit.
21044 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
21045 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
21046 a formal interface are ancestors of the corresponding actual.
21047 (Validate_Formal_Interface_Type): Additional legality checks.
21048 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
21049 interface types with ancestors.
21050 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
21051 to diagnose attempts to use generic within its own declaration.
21052
210532005-11-14 Ed Schonberg <schonberg@adacore.com>
21054 Javier Miranda <miranda@adacore.com>
21055
21056 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
21057 discriminant.
21058 (Build_Private_Derived_Type): The entity of the created full view of the
21059 derived type does not come from source. If after installing the private
21060 declarations of the parent scope the parent is still private, use its
21061 full view to construct the full declaration of the derived type.
21062 (Build_Derived_Record_Type): Relax the condition that controls the
21063 execution of the check that verifies that the partial view and
21064 the full view agree in the set of implemented interfaces. In
21065 addition, this test now only takes into account the progenitors.
21066 (Derive_Interface_Subprograms): No need to derive subprograms
21067 of ancestors that are interfaces.
21068 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
21069 associated code.
21070 Change name Is_Package to Is_Package_Or_Generic_Package
21071 (Complete_Subprograms_Derivation): Handle the case in which the full
21072 view is a transitive derivation of the ancestor of the partial view.
21073 (Process_Full_View): Rename local subprogram Find_Interface_In_
21074 Descendant to Find_Ancestor_Interface to leave the code more clear.
21075 Remove wrong code that avoids the generation of an error message
21076 when the immediate ancestor of the partial view is an interface.
21077 In addition some minor reorganization of the code has been done to
21078 leave it more clear.
21079 (Analyze_Type_Declaration): If type has previous incomplete tagged
21080 partial view, inherit properly its primitive operations.
21081 (Collect_Interfaces): Make public, for analysis of formal
21082 interfaces.
21083 (Analyze_Interface_Declaration): New procedure for use for regular and
21084 formal interface declarations.
21085 (Build_Derived_Record_Type): Add support for private types to the code
21086 that checks if a tagged type implements abstract interfaces.
21087 (Check_Aliased_Component_Type): The test applies in the spec of an
21088 instance as well.
21089 (Access_Type_Declaration): Clean up declaration of malformed type
21090 declared as an access to its own classwide type, to prevent cascaded
21091 crash.
21092 (Collect_Interfaces): For private extensions and for derived task types
21093 and derived protected types, the parent may be an interface that must
21094 be included in the interface list.
21095 (Access_Definition): If the designated type is an interface that may
21096 contain tasks, create Master_Id for it before analyzing the expression
21097 of the declaration, which may be an allocator.
21098 (Record_Type_Declaration): Set properly the interface kind, for use
21099 in allocators, the creation of master id's for task interfaces, etc.
21100
211012005-11-14 Javier Miranda <miranda@adacore.com>
21102 Ed Schonberg <schonberg@adacore.com>
21103
21104 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
21105 omitted in case of stream attribute subprograms.
21106 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
21107 appear immediately after a subprogram body, when there is no previous
21108 subprogram declaration.
21109 Change name Is_Package to Is_Package_Or_Generic_Package
21110 (Process_Formals): A non null qualifier on a non null named access
21111 type is not an error, and is a warning only if Redundant_Constructs
21112 are flagged.
21113
211142005-11-14 Gary Dismukes <dismukes@adacore.com>
21115 Ed Schonberg <schonberg@adacore.com>
21116
21117 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
21118 nested within Analyze_Package_Specification to install the private
21119 declarations and use clauses within each of the parent units of a
21120 package instance of a generic child package.
21121 (Analyze_Package_Specification): When entering a private part of a
21122 package associated with a generic instance or formal package, the
21123 private declarations of the parent must be installed (by calling new
21124 procedure Install_Parent_Private_Declarations).
21125 Change name Is_Package to Is_Package_Or_Generic_Package
21126 (Preserve_Full_Attributes): For a synchronized type, the corresponding
21127 record is absent in a generic context, which does not indicate a
21128 compiler error.
21129
211302005-11-14 Ed Schonberg <schonberg@adacore.com>
21131
21132 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
21133 not try to rewrite a renamed stream attribute, because the operations
21134 on the type may not have been generated.
21135 Handle properly a renaming_as_body generated for a stream operation
21136 whose default is abstract because the object type itself is abstract.
21137 (Find_Type): If the type is incomplete and appears as the prefix of a
21138 'Class reference, it is tagged, and its list of primitive operations
21139 must be initialized properly.
21140 (Chain_Use_Clauses): When chaining the use clauses that appear in the
21141 private declaration of a parent unit, prior to compiling the private
21142 part of a child unit, find on the scope stack the proper parent entity
21143 on which to link the use clause.
21144 (Note_Redundant_Use): Emit a warning when a redundant use clause is
21145 detected.
21146 (Analyze_Object_Renaming): An attribute reference is not a legal object
21147 if it is not a function call.
21148
211492005-11-14 Robert Dewar <dewar@adacore.com>
21150 Ed Schonberg <schonberg@adacore.com>
21151
21152 * sem_eval.adb: Implement d.f flag
21153 (Subtype_Statically_Match): A generic actual type has unknown
21154 discriminants when the corresponding actual has a similar partial view.
21155 If the routine is called to validate the signature of an inherited
21156 operation in a child instance, the generic actual matches the full view,
21157
211582005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
21159 Ed Schonberg <schonberg@adacore.com>
21160 Robert Dewar <dewar@adacore.com>
21161 Thomas Quinot <quinot@adacore.com>
21162
21163 * sem_res.adb (Resolve_Call): Provide a better error message whenever
21164 a procedure call is used as a select statement trigger and is not an
21165 entry renaming or a primitive of a limited interface.
21166 (Valid_Conversion): If the operand has a single interpretation do not
21167 remove address operations.
21168 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
21169 statement to inhibit warning.
21170 (Resolve_Unary_Op): Do not produce a warning when
21171 processing an expression of the form -(A mod B)
21172 Use Universal_Real instead of Long_Long_Float when we need a high
21173 precision float type for the generated code (prevents gratuitous
21174 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
21175 (Resolve_Concatenation_Arg): Improve error message when argument is an
21176 ambiguous call to a function that returns an array.
21177 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
21178 there is an implicit operator in the given scope if we are within an
21179 instance: legality check has been performed on the generic.
21180 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
21181 after resolving operand, to avoid false warnings on overloaded calls.
21182
211832005-11-14 Ed Schonberg <schonberg@adacore.com>
21184 Javier Miranda <miranda@adacore.com>
21185
21186 PR ada/15604
5de923eb
AC
21187 * sem_type.adb (Covers): In an inlined body, a composite type matches
21188 a private type whose full view is a composite type.
21189 (Interface_Present_In_Ancestor): Protect the frontend against
21190 previously detected errors to ensure that its compilation
21191 with assertions enabled gives the same output that its
21192 compilation without assertions.
21193 (Interface_Present_In_Ancestor): Add support for private types.
21194 Change name In_Actual to In_Generic_Actual (clean up)
21195 (Disambiguate): New predicate In_Actual, to recognize expressions that
21196 appear in the renaming declaration generated for generic actuals, and
21197 which must be resolved in the outer context.
21198
211992005-11-14 Robert Dewar <dewar@adacore.com>
21200 Thomas Quinot <quinot@adacore.com>
21201 Hristian Kirtchev <kirtchev@adacore.com>
21202 Ed Schonberg <schonberg@adacore.com>
21203
21204 * sem_util.ads, sem_util.adb: Change name Is_Package to
21205 Is_Package_Or_Generic_Package.
21206 (Check_Obsolescent): New procedure.
21207 (Set_Is_Public): Remove obsolete junk test.
21208 (Set_Public_Status): Do not set Is_Public on an object whose declaration
21209 occurs within a handled_sequence_of_statemets.
21210 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
21211 for a parameterless procedure.
21212 (Enter_Name): Recognize renaming declarations created for private
21213 component of a protected type within protected operations, so that
21214 the source name of the component can be used in the debugger.
21215
212162005-11-14 Ed Schonberg <schonberg@adacore.com>
21217 Robert Dewar <dewar@adacore.com>
21218
21219 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
21220 of a generic subprogram are not visible outside the body.
21221 (Set_Warning_Switch): New procedure (code to set warning mode moved
21222 here from Switch.C so that it can be shared by pragma processing.
21223 (Check_References): Special case warning for non-modified non-imported
21224 volatile objects.
21225 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
21226 form with a string literal argument
21227
212282005-11-14 Javier Miranda <miranda@adacore.com>
21229
21230 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
21231 anonymous access.
21232 (Write): Addition of "not null" to the anonymous access.
21233 (Read): Addition of "not null" to the anonymous access.
21234 (Write): Addition of "not null" to the anonymous access.
21235
21236 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
21237 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
21238 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
21239 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
21240 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
21241 "not null" to the anonymous access.
21242
212432005-11-14 Robert Dewar <dewar@adacore.com>
21244
21245 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
21246 offset values
21247
212482005-11-14 Vincent Celier <celier@adacore.com>
21249
21250 * switch.adb (Bad_Switch): New procedure
21251 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
21252 message when in error.
21253
21254 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
21255 Too_Many_Output_Files): Remove declarations, no longer used.
21256 (Scan_Nat): New parameter Switch
21257 (Scan_Pos): Ditto
21258 (Bad_Switch): New procedure
21259
21260 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
21261 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
21262 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
21263 to Osint.Fail. Do not handle any exception.
21264
212652005-11-14 Vincent Celier <celier@adacore.com>
21266
21267 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
21268 designates a non existent directory.
21269
212702005-11-14 Robert Dewar <dewar@adacore.com>
21271
21272 * xgnatugn.adb: Replace invalid membership test by 'Valid
21273
212742005-11-14 Vincent Celier <celier@adacore.com>
21275
21276 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
21277 there is no object directory.
21278
212792005-11-14 Robert Dewar <dewar@adacore.com>
21280
21281 * usage.adb: Minor adjustment to output format, use nn instead of nnn
21282 (so that -gnateInnn does not run into next column)
21283
212842005-11-14 Ed Falis <falis@adacore.com>
21285
21286 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
21287 "constrained"
21288
212892005-11-14 Cyrille Comar <comar@adacore.com>
21290
21291 * s-chepoo.ads: Add comments on Dereference.
21292 Remove unnecessary inherited abstract primitives.
21293 Cosmetic cleanup.
21294
212952005-11-14 Robert Dewar <dewar@adacore.com>
21296
21297 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
21298 node parameter, not needed, since it is available as Declaration_Node.
21299
213002005-11-14 Geert Bosch <bosch@adacore.com>
21301
21302 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
21303 grammatically correct.
21304
213052005-11-14 Vincent Celier <celier@adacore.com>
21306
21307 * s-fileio.ads: Correct spelling error in comment
21308
213092005-11-14 Cyrille Comar <comar@adacore.com>
21310 Robert Dewar <dewar@adacore.com>
21311 Vincent Celier <celier@adacore.com>
21312 Ben Brosgol <brosgol@adacore.com>
21313 Jose Ruiz <ruiz@adacore.com>
21314 Pascal Obry <obry@adacore.com>
21315
21316 * gnat_ugn.texi:
21317 Document that -fstack-check is needed for strict compliance with the
21318 Ada 95 Reference Manual.
21319 Correct reference to VAX systems to meet HP guidelines
21320 Add documentation for new gnatmake switches -vl, -vm and -vh
21321 Replace DEC Ada by HP Ada
21322 Replace DIGITAL by HP
21323 Remove empty section on tools in compatibility section
21324 Clarify the Windows convention semantics.
21325 Document the Win32 calling convention.
21326 The Stdcall, Win32 and DLL convention are synonyms.
21327 Add a note in -gnatR description about zero size record components
21328 Note on new >= and <= warnings for -gnatwc
21329 Document that equal sign after -gnatm is optional.
21330 Note that strip is working fine on DLL built with a Library
21331 Project. The restriction apply only to DLL built with gnatdll.
21332 Update section about the way to debug a DLL.
21333 Update information about the DLL convention.
21334 Document -C switch for gnatprep
21335 Document new attribute Library_ALI_Dir
21336 Update elaboration doc to include implicit Elaborate pragmas now
21337 generated for subprogram instantiations.
21338 Document limitation on executable names that include spaces for --GCC,
21339 --GNATBIND, and --GNATLINK switches.
21340 Document that -w causes -gnatws to be added at start of gcc switches
21341
21342 * gnat_rm.texi: Document that -mieee is needed for generating infinite
21343 and NaN values in case of overflow on machines that are not fully
21344 compliant with the IEEE floating-point standard.
21345 Create a section describing the set of compiler options needed for
21346 strict compliance with the Ada 95 Reference Manual.
21347 Add documentation for pragma Obsolescent applied to a package
21348 Clarify potential issues of mixed language programs related to the
21349 I/O buffering enabling in the elaboration of the GNAT runtime.
21350 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
21351 This documentation only patch adds extra documentsion for pragma
21352 Restrictions (No_Elaboration_Code), explaining why it is not possible
21353 to document this restriction in terms of allowed source constructs.
21354 Document string literal form of pragma Warnings
21355 Document new attribute Library_ALI_Dir
21356 Add documentation on stable attributes in project files that was missing
21357
21358 * gnat-style.texi: Indicate that paragraphs within a single comment
21359 should be separated by empty comment lines
21360
21361 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
21362 /05 respectively)
21363
21364 * bindusg.adb: Minor cleanup, put -m before -M for consistency
21365
213662005-11-14 Robert Dewar <dewar@adacore.com>
21367
21368 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
21369 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
21370 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
21371 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
21372 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
21373 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
21374 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
21375 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
21376 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
21377 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
21378 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
21379 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
21380 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
21381 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
21382 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
21383 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
21384 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
21385 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
21386 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
21387 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
21388 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
21389 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
21390 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
21391 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
21392 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
21393 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
21394 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
21395 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
21396 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
21397 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
21398 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
21399 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
21400 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
21401 system-interix.ads, system-solaris-sparc.ads,
21402 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
21403 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
21404 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
21405 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
21406 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
21407 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
21408 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
21409 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21410 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
21411 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
21412 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
21413 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
21414 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
21415 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
21416 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
21417 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
21418 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
21419 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
21420 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
21421 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
21422 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
21423 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
21424 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
21425 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
21426 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
21427 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
21428 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
21429 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
21430 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
21431 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
21432 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
21433 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
21434 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
21435 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
21436 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
21437 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
21438 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
21439 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
21440 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
21441 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
21442 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
21443 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
21444 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
21445 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
21446 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
21447 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
21448 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
21449 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
21450 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
21451 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
21452 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
21453 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
21454 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
21455 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
21456 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
21457 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
21458 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
21459 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
21460 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
21461 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
21462 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
21463 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
21464 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
21465 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
21466 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
21467 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
21468 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
21469 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
21470 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
21471 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
21472 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
21473 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
21474 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
21475 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
21476 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
21477 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
21478 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
21479 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
21480 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
21481 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
21482 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
21483 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
21484 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
21485 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
21486 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
21487 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
21488 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
21489 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
21490 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
21491 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
21492 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
21493 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
21494 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
21495 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
21496 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
21497 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
21498 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
21499 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
21500 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
21501 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
21502 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
21503 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
21504 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
21505 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
21506 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
21507 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
21508 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
21509 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
21510 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
21511 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
21512 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
21513 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
21514 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
21515 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
21516 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
21517 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
21518 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
21519 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
21520 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
21521 a-numaux-darwin.ads, a-numaux-darwin.adb,
21522 a-swuwha.ads, a-stunha.ads: Minor reformatting
21523
e0ac6309
RD
215242005-11-14 Robert Dewar <dewar@adacore.com>
21525
21526 PR ada/18434
21527 * osint-m.adb: Add pragma Elaborate_All for Osint
21528
f45ddfe0
EB
215292005-11-10 Eric Botcazou <ebotcazou@adacore.com>
21530
21531 PR ada/23995
21532 * trans.c (call_to_gnu): Restore statement lost in translation.
21533
13bb031a
EB
215342005-11-08 Eric Botcazou <ebotcazou@adacore.com>
21535
21536 * init.c: Use the Linux-specific section for the IA-64/Linux target.
21537 (__gnat_adjust_context_for_raise): Add conditional code so that the
21538 IA-64 is also supported.
21539
72098128
JW
215402005-11-03 James E Wilson <wilson@specifix.com>
21541
21542 PR ada/23427
13bb031a
EB
21543 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
21544 TREE_OVERFLOW check.
72098128 21545
8fafe21d
OH
215462005-09-21 Olivier Hainque <hainque@adacore.com>
21547
21548 PR ada/22418
21549 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
21550 as we create them to store a size in bits.
21551
552725e3
EB
215522005-10-21 Eric Botcazou <ebotcazou@adacore.com>
21553
21554 PR ada/21937
21555 PR ada/22328
21556 PR ada/22381
21557 PR ada/22383
21558 PR ada/22419
21559 PR ada/22420
21560 * utils2.c (build_return_expr): New helper function.
21561 * gigi.h (build_return_expr): Declare it.
21562 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
21563 of manually building the RETURN_EXPR tree.
21564 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
21565 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
8fafe21d 21566 build_binary_op for the "target pointer" case. Use build_return_expr
552725e3
EB
21567 instead of manually building the RETURN_EXPR tree.
21568
9e94c78f 215692005-09-16 Laurent Guerby <laurent@guerby.net>
ccdeca37
LG
21570
21571 PR ada/23788
21572 * s-tpinop.ads: Make this unit Preelaborate.
21573
da8f5fd9
AJ
215742005-09-16 Andreas Jaeger <aj@suse.de>
21575
21576 * socket.c: Add string.h for memcpy.
21577
98b40956
AC
215782005-09-05 Arnaud Charlet <charlet@adacore.com>
21579
21580 * dec-io.ads, dec-io.adb: Removed, no longer used.
21581
215822005-09-01 Arnaud Charlet <charlet@adacore.com>
21583
21584 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
21585
21586 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
21587 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
21588 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
21589 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
21590 dependent units are Preelaborate.
21591 (Initialize): Call Interrupt_Managemeent.Initialize and
21592 OS_Primitives.Initialize to ensure proper initialization of this unit.
21593 Remove use of System.Soft_Links
21594 Make this unit Preelaborate.
21595
21596 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
21597 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
21598 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
21599 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
21600 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
21601 s-tratas.ads, s-tasinf.ads: Minor reformatting.
21602 Add pragma Preelaborate, since these packages are suitable for this
21603 categorization.
21604 Update comments.
21605
21606 * s-traent-vms.ads, s-intman-dummy.adb,
21607 s-taprop-dummy.adb: Make this unit Preelaborate.
21608
21609 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
da8f5fd9 21610 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
98b40956
AC
21611 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
21612 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
21613 s-intman-solaris.adb, s-intman-irix-athread.adb,
21614 s-intman-irix.adb: Mark this unit Preelaborate.
21615 (Initialize): New procedure.
21616 Update comments.
21617
21618 * s-taspri-linux.ads: Removed.
21619
21620 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
21621 as done by other implementations (e.g. posix).
21622
21623 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
21624 responsible for deferring abort.
21625 Mark this unit Preelaborate.
21626
21627 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
21628 proper initialization of the tasking run-time.
21629
21630 * s-tasdeb.ads: Mark this unit Preelaborate.
21631 (Known_Tasks): Add explicit default value to avoid elaboration code.
21632
21633 * s-inmaop-vms.adb (Elaboration code): Add call to
21634 Interrupt_Management.Initialize since the elaboration code depends on
21635 proper initialization of this package.
21636
21637 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
21638 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
21639 s-osprim-posix.adb: Make this unit Preelaborate.
21640
21641 * a-calend.adb: Add call to OS_Primitives.Initialize
21642
21643 * a-elchha.adb: Update use of Except.Id.Full_Name.
21644 Minor reformatting.
21645 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
21646
21647 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
21648 Move with clauses outside Warnings Off now that dependent units are
21649 Preelaborate.
21650 Use raise xxx with "..."; Ada 2005 form.
21651
da8f5fd9 21652 * a-taside.ads, a-taside.adb:
98b40956
AC
21653 Remove some dependencies, to make it easier to make this unit truly
21654 Preelaborate.
21655 Rewrite some code to be conformant with Preelaborate rules.
21656
21657 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
21658 marked Preelaborate in the future.
21659
21660 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
21661 these units Preelaborate.
21662
21663 * s-exctab.adb: Update use of Except.Id.Full_Name.
21664
21665 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
21666 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
21667 Set_Exc_Stack_Addr): Removed, no longer used.
21668 Remove reference to *Machine_State_Addr*, no longer needed.
21669
21670 * s-stalib.ads: Mark this unit as Preelaborate[_05].
21671 (Exception_Data): Full_Name is now a System.Address so that this unit
21672 can be made Preelaborate.
21673 Clean up/simplify code thanks to Full_Name being a System.Address.
21674 Remove obsolete pragma Suppress (All_Checks), no longer needed.
21675
da8f5fd9 21676 * s-taskin.ads, s-taskin.adb:
98b40956
AC
21677 Move with clauses outside Warnings Off now that dependent units are
21678 Preelaborate.
21679 Make this unit Preelaborate.
21680 (Initialize): New proceduure, replace elaboration code and makes the
21681 set up of the tasking run-time cleaner.
21682 (Detect_Blocking): Now a function instead of a deferred boolean, to
21683 obey Preelaborate rules.
21684
21685 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
21686 soft links, no longer used.
21687
21688 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
21689 packages are suitable for this categorization.
21690
21691 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
21692 since we compile run-time sources in Ada 2005 mode.
21693 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
21694 avoid having s-taprop*.adb depend on s-soflin and to avoid code
21695 duplication.
21696 Remove reference to *Machine_State_Addr*, no longer needed.
21697
216982005-09-01 Arnaud Charlet <charlet@adacore.com>
21699
21700 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
21701 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21702 Remove reference to System.Exceptions.
21703
21704 * s-mastop-x86.adb: Removed, no longer used.
21705
21706 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
21707
21708 * a-excach.adb: Minor reformatting.
21709
21710 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
21711 instead fix new warnings that were hidden by this change.
21712 (AAA, ZZZ): Removed, replaced by...
21713 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
21714 are used instead of constants, to help make Ada.Exception truly
21715 preelaborate.
21716 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
21717 Raise_Storage_Error): File is now a System.Address, to simplify code.
21718 (Elab code): Removed, no longer used.
21719 (Null_Occurrence): Remove Warnings Off and make this construct
21720 preelaborate.
21721 Remove code related to front-end zero cost exception handling, since
21722 it is no longer used.
21723 Remove -gnatL/-gnatZ switches.
21724
21725 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
21726 Update use of Except.Msg.
21727
21728 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
21729 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
21730 to front-end zero cost exception handling, since it is no longer used.
21731 Remove -gnatL/-gnatZ switches.
21732
21733 * lib-writ.ads: Minor reformatting
21734 Remove doc of UX
21735
21736 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
21737
21738 * Make-lang.in: Remove references to s-except.ads
21739
21740 * s-except.ads: Removed, no longer used.
21741
da8f5fd9 21742 * s-mastop.ads, s-mastop.adb:
98b40956
AC
21743 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
21744 Remove reference to System.Exceptions.
21745
21746 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
21747 switch-b.adb: Remove code related to front-end zero cost exception
21748 handling, since it is no longer used.
21749 Remove -gnatL/-gnatZ switches.
21750
217512005-09-01 Robert Dewar <dewar@adacore.com>
21752 Gary Dismukes <dismukes@adacore.com>
21753 Javier Miranda <miranda@adacore.com>
21754
21755 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
21756 type by valid test and generate warning.
21757 (Tagged_Membership): Generate call to the run-time
21758 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
21759 Change formal name Subtype_Mark to Result_Definition in several calls to
21760 Make_Function_Specification.
21761 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
21762 check for proper accessibility of the operand of a class-wide allocator.
21763 The check can be left out if checks are suppressed or if the expression
21764 has a specific tagged type whose level is known to be safe.
21765
21766 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
21767 generates the run-time check associated with null-excluding entities.
21768 (Expand_N_Return_Statement): Add tests to determine if the accessibility
21769 check on the level of the return expression of a class-wide function
21770 can be elided. The check usually isn't needed if the expression has a
21771 specific type (unless it's a conversion or a formal parameter). Also
21772 add a test for whether accessibility checks are suppressed. Augment
21773 the comments to describe the conditions for performing the check.
21774
217752005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
21776 Javier Miranda <miranda@adacore.com>
21777 Gary Dismukes <dismukes@adacore.com>
21778 Ed Schonberg <schonberg@adacore.com>
21779
21780 * a-tags.adb (IW_Membership): Give support to
21781 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
21782 subprogram has been extended to look for the tag in the ancestors tag
21783 table.
21784 Update the structure of the GNAT Dispatch Table to reflect the
21785 additional two tables used in dispatching selects.
21786 Introduce appropriate array types and record components in
21787 Type_Specific_Data to reflect the two tables.
21788 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
21789 the TSD of a tag, indexed by position.
21790 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
21791 operation kind in the TSD of a tag, indexed by position.
21792
21793 * a-tags.ads: Introduce an enumeration type to capture different
21794 primitive operation kinds. Define a constant reflecting the number of
21795 predefined primitive operations.
21796 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
21797 of an entry wrapper.
21798 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
21799 callable entity of a primitive operation.
21800
21801 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
21802 primitive operations used in dispatching selects for limited
21803 interfaces, limited tagged, task and protected types what implement a
21804 limited interface.
21805 (Freeze_Type): Generate the bodies of the primitive operations used in
21806 dispatching selects for limited tagged, task and protected types that
21807 implement a limited interface. Generate statements to populate the two
21808 auxiliary tables used for dispatching in select statements.
21809 (Freeze_Record_Type): Add call to initialize the dispatch table entries
21810 associated with predefined interface primitive operations.
21811 (Build_Dcheck_Function): Change Set_Subtype_Mark to
21812 Set_Result_Definition.
21813 (Build_Variant_Record_Equality): Change Subtype_Mark to
21814 Result_Definition.
21815 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
21816 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
21817 (Build_Assignment): Simplify the code that adds the run-time-check.
21818 (Expand_N_Object_Declaration): Code cleanup.
21819
21820 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
21821 entries when there is a protected type that implements a limited
21822 interface.
21823
21824 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
21825 common routines used in expansion of dispatching selects.
21826 (Add_Private_Declarations): Select the appropriate protection type when
21827 there is a protected type that implements a limited interface.
21828 (Build_Parameter_Block): Generate a wrapped parameter block.
21829 (Build_Protected_Subprogram_Body): Select the appropriate type for
21830 locking entries when there is a protected type that implements a
21831 limited interface.
21832 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
21833 classified as entry wrappers.
21834 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
21835 asynchronous selects.
21836 (Expand_N_Conditional_Entry_Call): Add support for expansion of
21837 dispatching conditional selects.
21838 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
21839 protection when there is a protected type that implements limited
21840 interfaces.
21841 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
21842 timed selects.
21843 (Extract_Dispatching_Call): Extract the entity of the name of a
21844 dispatching call, the object parameter, actual parameters and
21845 corresponding formals.
21846 (Make_Initialize_Protection): Correct logic of protection initialization
21847 when there is a protected type that implements a limited interface.
21848 (Parameter_Block_Pack): Populate a wrapped parameter block with the
21849 values of actual parameters.
21850 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
21851 block and assign them to the original actual parameters.
21852
21853 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
21854 (Build_Protected_Sub_Specification): Change the type and name of the
21855 last formal to account for the increased variety of protection modes.
21856
21857 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
21858 entities. Used to save the value of the Is_Hidden attribute when the
21859 limited-view is installed.
21860 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
21861 the attribute of procedures classified as entry wrappers.
21862 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
21863 entity of a primitive wrapper.
21864 (Write_Entity_Flags): Output the name and value of the
21865 Is_Primitive_Wrapper attribute.
21866 (Write_Field27_Name): Output the name and entity of the field Wrapped_
21867 Entity.
21868 (Underlying_Type): If we have an incomplete entity that comes from
21869 the limited view then we return the Underlying_Type of its non-limited
21870 view if it is already available.
21871 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
21872 including operators.
21873 (Write_Field26_Name): Add entry for Overridden_Operation
21874 (Overridden_Operation): New attribute of functions and procedures.
21875
21876 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
21877 predefined position in the dispatch table for the primitive operations
21878 used in dispatching selects.
21879 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
21880 predefined primitive operations and replace it with
21881 Default_Prim_Op_Count.
21882 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
21883 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
21884 the names of the generated primitive operations used in dispatching
21885 selects.
21886 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
21887 case of abstract interface types. They will be inherit by the objects
21888 implementing the interface.
21889 (Make_DT): There is no need to inherit the dispatch table of the
21890 ancestor interface for the elaboration of abstract interface types.
21891 The dispatch table will be inherited by the object implementing the
21892 interface.
21893 (Copy_Secondary_DTs): Add documentation.
21894 (Validate_Position): Improve this static check in case of
21895 aliased subprograms because aliased subprograms must have
21896 the same position.
21897 (Init_Predefined_Interface_Primitives): New subprogram that initializes
21898 the entries associated with predefined primitives of all the secondary
21899 dispatch tables.
21900 (Build_Anonymous_Access_Type): Removed.
21901 (Expand_Interface_Actuals): With the previous cleanup there is no need
21902 to build an anonymous access type. This allows further cleanup in the
21903 code generated by the expander.
21904 (Expand_Interface_Conversion): If the actual is an access type then
21905 build an internal function to handle the displacement. If the actual
21906 is null this function returns null because no displacement is
21907 required; otherwise performs a type conversion that will be
21908 expanded in the code that returns the value of the displaced actual.
21909 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
21910 conversions that have no effect in the generated code because no
21911 displacement is required. Code cleanup; use local variables to
21912 avoid repeated calls to the subprogram directly_designated_type().
21913
21914 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
21915 Classify the primitive operations used in dispatching selects as
21916 predefined.
21917 (Implements_Limited_Interface): Determine whether some type either
21918 directly implements a limited interface or extends a type that
21919 implements a limited interface.
21920 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
21921 (Expand_Subtype_From_Expr): Do not build actual subtype if the
21922 expression is limited.
21923 (Find_Interface_Tag): Add code to handle class-wide types and
21924 entities from the limited-view.
21925
21926 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
21927 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
21928 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
21929 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
21930 Set_Prim_Op_Kind.
21931
21932 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
21933 of procedure name or prefix that appears as a trigger in a triggering
21934 alternative.
21935
21936 * uintp.ads: Introduce constants Uint_11 and Uint_13.
21937
219382005-09-01 Arnaud Charlet <charlet@adacore.com>
21939
21940 * s-tataat.adb, a-tasatt.adb:
21941 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
21942
21943 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
21944 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
21945 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
21946 longer used.
21947
219482005-09-01 Arnaud Charlet <charlet@adacore.com>
21949 Jose Ruiz <ruiz@adacore.com>
21950
da8f5fd9 21951 * s-taprop-vxworks.adb:
98b40956
AC
21952 Move with clauses outside Warnings Off now that dependent units are
21953 Preelaborate.
21954 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
21955 initialization of this unit.
21956 (Specific): Add new procedures Initialize and Delete so that this
21957 package can be used for VxWorks 5.x and 6.x
21958 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
21959 differences between VxWorks 5.x and 6.x
21960 Minor reformatting.
21961 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
21962 caller.
21963 Use only Preelaborate-compatible constructs.
21964
21965 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
21966 Primitives.Operations.
21967 (Delete, Initialize): New procedures.
21968
21969 * s-osinte-vxworks.adb: Body used to handle differences between
21970 VxWorks 5.x and 6.x
21971 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
21972
21973 * s-osinte-vxworks.ads: Minor reformatting.
21974 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
21975 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
21976 and 6.
21977 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
21978 between Vxworks 5 and 6.
21979 (taskLock, taskUnlock): Removeed, no longer used.
21980
21981 * adaint.c: The wait.h header is not located in the sys directory on
21982 VxWorks when using RTPs.
21983 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
21984 using RTPs.
21985 (__gnat_dup): dup is available on Vxworks when using RTPs.
21986 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
21987
21988 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
21989
21990 * expect.c: The wait.h header is not located in the sys directory on
21991 VxWorks when using RTPs.
21992
219932005-09-01 Thomas Quinot <quinot@adacore.com>
21994
21995 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
21996
21997 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
21998
21999 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
22000 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
22001 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
22002 g-soccon-freebsd.ads: Add new constants:
22003 IP_MULTICAST_IF
22004 SO_RCVTIMEO/SO_SNDTIMEO
22005 IOV_MAX
22006
da8f5fd9 22007 * gen-soccon.c:
98b40956
AC
22008 Move all target-specific file inclusions and macro definitions to
22009 gsocket.h, in order to ensure that any C code in socket.c will see a
22010 set of constants that is consistent with the contents of g-soccon.ads.
22011
22012 * gsocket.h: Code imported from gen-soccon.c:
22013 Move all target-specific file inclusions and macro definitions to
22014 gsocket.h, in order to ensure that any C code in socket.c will see a set
22015 of constants that is consistent with the contents of g-soccon.ads.
22016 This change also makes gen-soccon self-contained (removing dependencies
22017 upon GCC internal headers).
22018
22019 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
22020 iovecs at a time.
22021 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
22022
22023 * socket.c: Minor reformatting.
22024
220252005-09-01 Ed Schonberg <schonberg@adacore.com>
22026 Thomas Quinot <quinot@adacore.com>
22027
22028 * fname-sf.adb, mlib-tgt.ads,
22029 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
22030 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
22031 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
22032 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
22033 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
22034 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
22035 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
22036 makegpr.adb: Remove redundant use_clauses.
22037
220382005-09-01 Arnaud Charlet <charlet@adacore.com>
22039
da8f5fd9
AJ
22040 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
22041 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
22042 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
22043 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
22044 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
22045 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
22046 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
22047 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
22048 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22049 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
22050 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
22051 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
22052 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
22053 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
22054 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
98b40956 22055 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
da8f5fd9
AJ
22056 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22057 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
22058 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
22059 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
22060 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
22061 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
22062 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
22063 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
22064 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
22065 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
22066 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
22067 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
98b40956
AC
22068 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
22069 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
da8f5fd9
AJ
22070 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
22071 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
22072 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
22073 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
22074 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
22075 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
22076 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
22077 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
22078 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
22079 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
22080 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
22081 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
22082 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
22083 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
22084 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
22085 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
22086 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
22087 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
22088 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
22089 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
22090 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
22091 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
22092 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
22093 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
22094 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
22095 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
22096 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
22097 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
22098 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
22099 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
22100 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
22101 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
22102 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
22103 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
22104 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
22105 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
22106 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
98b40956
AC
22107 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
22108 and always use the no parameter form for consistency.
22109
22110 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
22111
221122005-09-01 Robert Dewar <dewar@adacore.com>
22113
22114 * binde.adb: Minor reformatting
22115 (Find_Elab_Order): Output warning if -p used with static elab order
22116
221172005-09-01 Robert Dewar <dewar@adacore.com>
22118
22119 * checks.adb (Check_Needed): New procedure, deals with removing checks
22120 based on analysis of short-circuited forms. Also generates warnings for
22121 improper use of non-short-circuited forms.
22122 Code clean ups.
22123
221242005-09-01 Robert Dewar <dewar@adacore.com>
22125
22126 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
22127 with 'Valid tests.
22128
221292005-09-01 Robert Dewar <dewar@adacore.com>
22130
22131 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
22132 spec.
22133 Implement new insertion char < (conditional warning)
22134 * errutil.adb, erroutc.adb: Implement new insertion char <
22135 (conditional warning).
22136 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
22137 (Error_Msg_Warn): New variable for < insertion char.
22138 * prj-nmsc.adb: Implement new errout insertion char < (conditional
22139 warning).
22140 (Check_For_Source): Change value of Source_Id only after the current
22141 source has been dealt with.
22142
221432005-09-01 Robert Dewar <dewar@adacore.com>
22144 Doug Rupp <rupp@adacore.com>
22145
22146 * exp_attr.adb: Handle vax fpt for 'Valid attribute
22147 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
22148 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
22149 (Valid_D, Valid_F, Valid_G): New functions
22150
221512005-09-01 Ed Schonberg <schonberg@adacore.com>
22152 Hristian Kirtchev <kirtchev@adacore.com>
22153 Javier Miranda <miranda@adacore.com>
22154
22155 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
22156 from object notation, the original node is unanalyzed and carries no
22157 semantic information, so that accessiblity checks must be performed on
22158 the type of the actual itself.
22159 (Expand_N_Subprogram_Declaration): Change last actual parameter for
22160 compatibility with Build_Protected_Sub_Specification.
22161 (Check_Overriding_Inherited_Interfaces): Add suport to handle
22162 overloaded primitives.
22163 (Register_Interface_DT_Entry): Use the new name of the formal
22164 the the calls to Expand_Interface_Thunk
22165
22166 * exp_dbug.ads: Augment comments on encoding of protected types to
22167 include the generation of dispatching subprograms when the type
22168 implements at least one interface.
22169
22170 * lib.ads: Extend information in Load_Stack to include whether a given
22171 load comes from a Limited_With_Clause.
22172
22173 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
22174 whether a potential circularity is harmless, because it includes units
22175 loaded through a limited_with clause. Extends previous treatment which
22176 did not handle properly arbitrary combinations of limited and
22177 non-limited clauses.
22178
221792005-09-01 Nicolas Setton <setton@adacore.com>
22180
22181 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
22182 to be encoded as typ___XBLU_lowerbound__upperbound instead of
22183 typ___XB_lowerbound__upperbound.
22184
221852005-09-01 Thomas Quinot <quinot@adacore.com>
22186
22187 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
22188 dummy access formal for RACW/RAS TypeCode TSS.
22189 (Build_TypeCode_Call): Do not generate dummy null access actual for
22190 calls to the TypeCode TSS.
22191
221922005-09-01 Ed Schonberg <schonberg@adacore.com>
22193
22194 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
22195 fully qualified name, to distinguish instances with the same local name.
22196
22197 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
22198 fully qualified.
22199
222002005-09-01 Robert Dewar <dewar@adacore.com>
22201
22202 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
22203 packed arrays.
22204
222052005-09-01 Jerome Lambourg <lambourg@adacore.com>
22206
22207 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
22208 (Free): New deallocation procedure for filter elements
22209 (Close): Deallocate any existing filter for the concerned connection
22210
222112005-09-01 Laurent Pautet <pautet@adacore.com>
22212
22213 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
22214 position set is provided, we compute one in order to reduce the maximum
22215 length of the keys. This computation first selects a character
22216 position between 1 and the minimum length of the keys in order to
22217 avoid reducing one of the keys to an empty string.
22218 (Initialize, Compute): When the ratio V to K is too low, the algorithm
22219 does not converge. The initialization procedure now comes with a
22220 maximum number of iterations such that when exceeded, an exception is
22221 raised in Compute. The user can initialize this ratio to another value
22222 and try again
22223 Reformating and updated headers.
22224
222252005-09-01 Javier Miranda <miranda@adacore.com>
22226
22227 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
22228 that given an entity T creates and returns an Itype that duplicates the
22229 contents of T. The returned Itype has the null-exclusion
22230 attribute set to True, and its Etype attribute references T
22231 to keep the association between the two entities.
22232 Update copyright notice
22233
22234 * sem_aggr.adb (Check_Can_Never_Be_Null,
22235 Aggregate_Constraint_Checks, Resolve_Aggregate,
22236 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
22237
22238 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
22239
222402005-09-01 Gary Dismukes <dismukes@adacore.com>
22241 Robert Dewar <dewar@adacore.com>
22242 Hristian Kirtchev <kirtchev@adacore.com>
22243
22244 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
22245 Result_Definition.
22246
22247 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
22248 function specs.
22249 Call Set_Result_Definition instead of Set_Subtype_Mark.
22250 (P_Subprogram_Specification): Add parsing of anonymous access result
22251 plus null exclusions. Call Set_Result_Definition instead of
22252 Set_Subtype_Mark.
22253
22254 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22255 (P_Access_Type_Definition): Add parsing for an anonymous access result
22256 subtype, plus parsing for null exclusions. Call Set_Result_Definition
22257 instead of Set_Subtype_Mark.
22258
22259 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
22260 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
22261 (Result_Definition): New function for N_Function_Specifications.
22262 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
22263 N_Function_Specification.
22264 (Set_Null_Exclusion_Present): Allow this flag for
22265 N_Function_Specification.
22266 (Set_Result_Definition): New procedure for N_Function_Specifications.
22267 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
22268 and N_Function_Specification.
22269
22270 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
22271 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
22272 Add support for LIMITED NEW for Ada 2005 AI-419
22273 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
22274 syntax for anonymous access results.
22275 Replace Subtype_Mark field by Result_Definition in
22276 N_Function_Specification and N_Access_Definition specs.
22277 Add Null_Exclusion_Present to spec of N_Function_Specification.
22278 (Result_Definition): New function for N_Function_Specification and
22279 N_Access_Function_Definition.
22280 (Set_Result_Definition): New procedure for N_Function_Specification and
22281 N_Access_Function_Definition.
22282
22283 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
22284 Result_Definition for cases of N_Access_Function_Definition and
22285 N_Function_Specification.
22286 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
22287
222882005-09-01 Vincent Celier <celier@adacore.com>
22289
22290 * lib-writ.adb: Update Copyright notice
22291 (Write_With_Lines): On platforms where file names are case-insensitive,
22292 record the file names in lower case.
22293 (Write_ALI): For D lines, on platforms where file names are
22294 case-insensitive, record the file names in lower case.
22295
222962005-09-01 Ed Schonberg <schonberg@adacore.com>
22297 Emmanuel Briot <briot@adacore.com>
22298
22299 * lib-xref.adb (Output_Overridden_Op): Display information on
22300 overridden operation.
22301
22302 * lib-xref.ads: Add documentation on overridden operations.
22303
22304 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
22305 information.
22306
22307 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
22308 overriding entity information.
22309
223102005-09-01 Vincent Celier <celier@adacore.com>
22311
22312 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
22313 including those that are inherited.
22314
223152005-09-01 Robert Dewar <dewar@adacore.com>
22316
22317 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
22318
22319 * par-prag.adb: Implement new pragma Debug_Policy
22320
22321 * sem_prag.adb Implement new pragma Debug_Policy
22322 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
22323 Component_Size attribute specification. Give warning for ignored pragma
22324 Pack.
22325
22326 * snames.h, snames.ads, snames.adb: Introduce entries in
22327 Preset_Names for Name_Disp_Asynchronous_Select,
22328 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
22329 Name_Disp_Timed_Select.
22330 New pragma Debug_Policy
22331
22332 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
22333 explicitly.
22334 Switch -gnata also sets Debug_Pragmas_Enabled
22335
22336 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
22337 handle an explicit -gnata when compiling predefined files.
22338
223392005-09-01 Vincent Celier <celier@adacore.com>
22340
22341 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
22342 directories of projects that have no Ada sources.
22343
223442005-09-01 Robert Dewar <dewar@adacore.com>
22345
22346 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
22347 (makes a difference for wide characters)
22348
da8f5fd9 22349 * widechar.adb, widechar.ads:
98b40956
AC
22350 Add Wide_Char_Byte_Count feature to count chars vs bytes
22351
223522005-09-01 Thomas Quinot <quinot@adacore.com>
22353 Ed Schonberg <schonberg@adacore.com>
22354 Robert Dewar <dewar@adacore.com>
22355
22356 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
22357 'Address attribute reference with an overloaded prefix, use the
22358 location of the prefix (not the location of the attribute reference) as
22359 the error location.
22360 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
22361 a function renaming thereof, is a valid prefix for 'Size (where it is
22362 intepreted as a function call).
22363 (Statically_Denotes_Entity): New predicate to determine whether the
22364 prefix of an array attribute can be considered static.
22365
22366 PR ada/9087
22367 (Eval_Attr): Fix failure to evaluate Component_Size for
22368 unconstrained arrays (resulted in wrong value in packed case, since
22369 back end cannot handle this case)
22370
223712005-09-01 Robert Dewar <dewar@adacore.com>
22372
22373 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
22374 error msgs for most common cases.
22375 Use new errout insertion char < (conditional warning)
22376
223772005-09-01 Javier Miranda <miranda@adacore.com>
22378 Ed Schonberg <schonberg@adacore.com>
22379
22380 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
22381 become local to the whole package.
22382 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
22383 the package was already analyzed the new algorithm "replaces" the
22384 real entities by the shadow ones. This is required to ensure that
22385 the order of these entities in the homonym chains does not change;
22386 otherwise we can have undefined references at linking time because
22387 in case of conflicts the external name of the entities will have
22388 a suffix that depends on the order of the entities in the chain.
22389 (Remove_Limited_With_Clause): Complementary code that completes the
22390 new algorithm and replaces the shadow entities by the real ones.
22391 (Install_Limited_Withed_Unit): When unchaining entities before the
22392 installation of the shadow entities, only regular entities of the
22393 public part must be taken into account. This is required to
22394 keep this routine in synch with the work done by Remove_Limited_
22395 With_Clause
22396 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
22397 even if unit is analyzed, because the analysis of the unit is
22398 idempotent in any case, and the limited view of the unit may have to
22399 be installed for proper visibility.
22400 (Expand_Limited_With_Clause): Even if the unit in the implicit
22401 with_clause has been analyzed already, a limited view of the package
22402 must be built for the current context, if it does not exist yet.
22403
224042005-09-01 Ed Schonberg <schonberg@adacore.com>
22405 Javier Miranda <miranda@adacore.com>
22406 Gary Dismukes <dismukes@adacore.com>
22407
22408 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
22409 defining entity for the instance body, make a new defining identifier
22410 rather than copying the entity of the spec, to prevent accidental
22411 sharing of the entity list.
22412 (Check_Private_View): When exchanging views of private types, build the
22413 list of exchanged views as a stack, to ensure that on exit the exchanges
22414 are undone in the proper order.
22415 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
22416 Restore the compilation environment in case of instantiation_error.
22417 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
22418 for an anonymous access result.
22419 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
22420 (Formal_Entity): Handle properly the case of a formal package that
22421 denotes a generic package renaming.
22422
224232005-09-01 Thomas Quinot <quinot@adacore.com>
22424
22425 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
22426 clause if the array aggregate is surrounded by parentheses.
22427
224282005-09-01 Cyrille Comar <comar@adacore.com>
22429 Gary Dismukes <dismukes@adacore.com>
22430 Ed Schonberg <schonberg@adacore.com>
22431 Javier Miranda <miranda@adacore.com>
22432
22433 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
22434 underlying type
22435 to check if a type is Constrained in cases related to code generation
22436 (rather than semantic checking) since otherwise we do not generate
22437 similar code for mutable private types depending if their
22438 discriminants are visible or not.
22439 (Check_Abstract_Overriding): Do not complain about failure to override
22440 the primitive operations used in dispatching selects since they will
22441 always be overriden at the freeze point of the type.
22442 (Access_Definition): Separate out handling for resetting the scope
22443 of an anonymous access function result type. Retrieve the scope
22444 of the associated function rather than using Current_Scope, which
22445 does not have a consistent value (depends on whether we're in the
22446 middle of analyzing formal parameters). Add ??? comment about
22447 finding a cleaner way to handle the special cases of scope setting.
22448 (Process_Incomplete_Dependents): A protected operation is never a
22449 dispatching operation (only its wrapper may be).
22450 (Build_Derived_Record_Type): In case of tagged private types that
22451 implement interfaces add derivation of predefined primitive
22452 operations.
22453 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
22454 by two parameters that are used in case of derivation from abstract
22455 interface types: No_Predefined_Prims is used to avoid the derivation
22456 of predefined primitives from the interface, and Predefined
22457 Prims_Only is used to complete the derivation predefined primitives
22458 in case of private tagged types implementing interfaces.
22459 Fix typo in comments
22460 (Find_Interface_In_Descendant): Protect the frontend against
22461 wrong code with large circularity chains.
22462 (Is_Private_Overriding): Add support for entities overriding interface
22463 subprograms. The test failed because Entities associated with overriden
22464 interface subprograms are always marked as hidden (and used to build
22465 the secondary dispatch table); in this case the overriden entity is
22466 available through the field abstract_interface_alias (cf. override_
22467 dispatching_operation)
22468 (Access_Definition): Set the scope of the type to Current_Scope for the
22469 case of a function with an anonymous access result type.
22470 (Access_Subprogram_Declaration): Handle creation of the type entity for
22471 an access-to-function type with an anonymous access result.
22472 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
22473 in handling for N_Access_Function_Definition.
22474 (Analyze_Subtype_Declaration): Modify the text of error message.
22475 (Derived_Type_Declaration): Modify the text of error message.
22476 (Process_Subtype): Modify the text of error message plus cleanup
22477 of one redundant error message.
22478 (Analyze_Component_Declaration): Code cleanup.
22479 (Analyze_Object_Declaration): Code cleanup.
22480 (Analyze_Subtype_Declaration): Propagate the null-exclusion
22481 attribute in case of access types. Code cleanup.
22482 (Array_Type_Declaration): Code cleanup.
22483 (Process_Discriminants): Create the new null-excluding itype
22484 if required. Code cleanup.
22485 (Process_Subtype): Create the new null-excluding itype if
22486 required. Code cleanup.
22487 (Build_Derived_Record_Type): Code cleanup to avoid calling
22488 twice the subprogram derive_subprograms in case of private
22489 types that implement interfaces. In this particular case the
22490 subprogram Complete_Subprograms_Derivation already does the
22491 job associated with the second call.
22492
6f7f72f9
EB
22493 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
22494 conversion to the full view when generating an operation for a
22495 discriminant whose type may currently be private.
98b40956
AC
22496
224972005-09-01 Ed Schonberg <schonberg@adacore.com>
22498 Javier Miranda <miranda@adacore.com>
22499
22500 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
22501 V (Obj.F), the rewriting does not involve the indexed component, but
22502 only the selected component itself.
22503 Do not apply the transformation if the analyzed node is an actual of a
22504 call to another subprogram.
22505 (Complete_Object_Operation): Retain the entity of the
22506 dispatching operation in the selector of the rewritten node. The
22507 entity will be used in the expansion of dispatching selects.
22508 (Analyze_One_Call): Improve location of the error message associated
22509 with interface.
22510 (Analyze_Selected_Component): No need to resolve prefix when it is a
22511 function call, resolution is done when parent node is resolved, as
22512 usual.
22513 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
22514 when attempting to resolve a call transformed from its object notation.
22515 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
22516 of the argument list for each interpretation of the operation.
22517 (Try_Object_Operation): The designated type of an access parameter may
22518 be an incomplete type obtained through a limited_with clause, in which
22519 case the primitive operations of the type are retrieved from its full
22520 view.
22521 (Analyze_Call): If this is an indirect call, and the return type of the
22522 access_to_subprogram is incomplete, use its full view if available.
22523
225242005-09-01 Javier Miranda <miranda@adacore.com>
22525 Gary Dismukes <dismukes@adacore.com>
22526
22527 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
22528 access types the null-exclusion and access-to-constant attributes must
22529 also match.
22530 (Analyze_Return_Statement): When the result type is an anonymous access
22531 type, apply a conversion of the return expression to the access type
22532 to ensure that appropriate accessibility checks are performed.
22533 (Analyze_Return_Type): For the case of an anonymous access result type,
22534 generate the Itype and set Is_Local_Anonymous_Access on the type.
22535 Add ??? placeholder for check to disallow returning a limited object
22536 in Ada 2005 unless it's an aggregate or a result of a function call.
22537 Change calls from Subtype_Mark to Result_Definition.
22538 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
22539 Result_Definition in call to Make_Function_Specification.
22540 (Build_Body_To_Inline): Change Set_Subtype_Mark to
22541 Set_Result_Definition.
22542 (Make_Inequality_Operator): Change formal Subtype_Mark to
22543 Result_Definition in call to Make_Function_Specification.
22544 (Process_Formals): Create the new null-excluding itype if required.
22545 (New_Overloaded_Entity): For an entity overriding an interface primitive
22546 check if the entity also covers other abstract subprograms in the same
22547 scope. This is required to handle the general case, that is, overriding
22548 other interface primitives and overriding abstract subprograms inherited
22549 from some abstract ancestor type.
22550 (New_Overloaded_Entity): For an overriding entity that comes from
22551 source, note the operation that it overrides.
22552 (Check_Conformance, Type_Conformant): Addition of one new formal
22553 to skip controlling formals in the analysis. This is used to
22554 handle overloading of abstract interfaces.
22555 (Base_Types_Match): Add missing case for types imported from
22556 limited-with clauses
22557 (New_Overloaded_Entity): Add barrier to protect the use of
22558 the "alias" attribute.
22559
225602005-09-01 Ed Schonberg <schonberg@adacore.com>
22561
22562 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
22563 verify that the procedure and the entry are mode conformant.
22564 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
22565 as a different operator, which is often a cut-and-paste error.
22566
225672005-09-01 Javier Miranda <miranda@adacore.com>
22568 Ed Schonberg <schonberg@adacore.com>
22569
22570 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
22571 used in controlling parameters exclude null because it is necessary to
22572 read the tag to dispatch, and null has no tag.
22573 (Override_Dispatching_Operation): If the previous operation is inherited
22574 from an interface, it becomes hidden and does not participate in later
22575 name resolution.
22576
225772005-09-01 Javier Miranda <miranda@adacore.com>
22578 Ed Schonberg <schonberg@adacore.com>
22579 Gary Dismukes <dismukes@adacore.com>
22580
22581 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
22582 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
22583 the expander will generate the corresponding run-time check to evaluate
22584 the expression.
22585 (Resolve_Call): Check for legal type of procedure name or prefix that
22586 appears as a trigger in a triggering alternative.
22587 (Valid_Conversion): If expression is ambiguous and the context involves
22588 an extension of System, remove System.Address interpretations.
22589 (Resolve_Qualified_Expression): Reject the case of a specific-type
22590 qualification applied to a class-wide argument. Enhance comment
22591 to explain checking of Original_Node.
22592 (Resolve_Type_Conversion): The location of the error message was not
22593 general enough to handle the general case and hence it has been removed.
22594 In addition, this patch improves the text of the message.
22595 (Resolve_Type_Conversion): Add missing support for access to interface
22596 types.
22597 (Resolve_Type_Conversion): If the target is a class-wide interface type,
22598 do not expand if the expression is the actual in a call, because proper
22599 expansion will take place when the call itself is expanded.
22600 (Resolve_Allocator): If the context is an unchecked conversion, the
22601 allocator inherits its storage pool, if any, from the target type of
22602 the conversion.
22603
226042005-09-01 Ed Schonberg <schonberg@adacore.com>
22605 Javier Miranda <miranda@adacore.com>
22606
22607 * sem_type.adb (Add_One_Interp): If a candidate operation is an
22608 inherited interface operation that has an implementation, use the
22609 implementation to avoid spurious ambiguities.
22610 (Interface_Present_In_Ancestor): In case of concurrent types we can't
22611 use the Corresponding_Record_Typ attribute to look for the interface
22612 because it is set by the expander (and hence it is not always
22613 available). For this reason we traverse the list of interfaces
22614 (available in the parent of the concurrent type).
22615 (Interface_Present_In_Ancestor): Handle entities from the limited view
22616
226172005-09-01 Ed Schonberg <schonberg@adacore.com>
22618
22619 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
22620 from the list of required components.
22621 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
22622 primitive procedure of a limited interface with a controlling first
22623 parameter.
22624 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
22625 of an entry.
22626 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
22627 capture if it is generated in the second operand of a short-circuit
22628 operation.
22629 Do not capture values for variables with address clauses.
22630 (Is_Object_Reference): Treat a function call as an object reference only
22631 if its type is not Standard_Void_Type.
22632
226332005-09-01 Ed Schonberg <schonberg@adacore.com>
22634
22635 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
22636 to a variable that is statically known to be constant.
22637
226382005-09-01 Geert Bosch <bosch@adacore.com>
22639 Robert Dewar <dewar@adacore.com>
22640
22641 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
22642 (VAXGF_Safe_First): Idem.
22643
226442005-09-01 Robert Dewar <dewar@adacore.com>
22645 Arnaud Charlet <charlet@adacore.com>
22646
22647 * g-dirope.ads: Minor reformatting
22648 Document that bounds of result of Base_Name match the input index
22649 positions.
22650 Add documentation on environment variable syntax for Expand_Path
22651
22652 * gnat_ugn.texi: Update documentation to include mention of -m switches
22653 Document new treatment of wide characters in max line length
22654 style check.
22655 Remove -gnatL/-gnatZ switches, no longer used.
22656 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
22657 of -gnata switch.
22658
22659 * gnat_rm.texi: Add doc for two argument form of pragma
22660 Float_Representation.
22661 Add documentation for pragma No_Strict_Aliasing
22662 Add note that explicit component clause overrides pragma Pack.
22663 Add documentation of pragma Debug_Policy
22664
226652005-09-01 Matthew Heaney <heaney@adacore.com>
22666
da8f5fd9
AJ
22667 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
22668 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
22669 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
98b40956
AC
22670 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
22671 draft (Draft 13, August 2005) of Ada Amendment 1.
22672
226732005-09-01 Arnaud Charlet <charlet@adacore.com>
22674
22675 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
22676 Note that the platform-specific version of g-soccon.ads for VMS is now
22677 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
22678 really is a package spec).
22679 Replace s-taspri-linux.ads by s-taspri-posix.ads
22680 Remove references to s-mastop-x86.adb
22681
22682 * system-vxworks-xscale.ads: Removed, no longer used.
22683 * s-vxwork-xscale.ads: Removed, no longer used.
22684
226852005-09-01 Robert Dewar <dewar@adacore.com>
22686
22687 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
22688 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
22689 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
22690 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
22691 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
22692 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
22693 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
22694 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
22695 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
22696 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
22697 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
22698 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
22699 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
22700 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
22701 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
22702 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
22703 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
22704 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
22705 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
22706 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
22707 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
22708
332a1c2e
AC
227092005-08-29 Arnaud Charlet <charlet@adacore.com>
22710
22711 PR ada/23187
22712 * adaint.c
da8f5fd9 22713 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
332a1c2e
AC
22714
227152005-08-29 Arnaud Charlet <charlet@adacore.com>
22716 Doug Rupp <rupp@adacore.com>
22717
22718 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
22719 when needed.
22720 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
22721 this code in the GNAT run-time.
22722
22723 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
22724
22725 PR ada/21053
22726 * init.c (__gnat_error_handler [many]): Mark "msg" as const
22727 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
22728
22729 (__gnat_inside_elab_final_code): Moved here from
22730 Standard_Library and only defined for the compiler.
22731 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
22732 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
22733 using RTPs because directly vectored Interrupt routines are not
22734 supported on this configuration.
22735 (getpid): Do not redefine this function on VxWorks when using RTPs
22736 because this primitive is well supported by the RTP libraries.
22737 (copy_msg): Correct the code that checks for buffer overflow.
22738 Discovered during code reading.
22739
227402005-08-29 Olivier Hainque <hainque@adacore.com>
22741
22742 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
22743 a library level mutable variable with an initializer, tell
22744 build_allocator to ignore the initializer's size. It may not be large
22745 enough for all the values that might be assigned to the variable later
22746 on.
22747
227482005-08-29 Arnaud Charlet <charlet@adacore.com>
22749 Eric Botcazou <ebotcazou@adacore.com>
22750
22751 * trans.c: Protect < in error msg with quote
22752 Replace GCC_ZCX by Back_End_Exceptions.
22753 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
22754 has been sufficiently aligned in the record.
22755
35fd1d77
JW
227562005-08-15 James E. Wilson <wilson@specifix.com>
22757
22758 * system-linux-alpha.ads: Change ia64 to alpha.
22759
b15341b8
KH
227602005-08-01 Kazu Hirata <kazu@codesourcery.com>
22761
22762 * decl.c, utils.c: Fix comment typos.
22763
9e4eb559
KH
227642005-07-29 Kazu Hirata <kazu@codesourcery.com>
22765
22766 * decl.c, init.c, initialize.c: Fix comment typos.
22767
4038c495
GB
227682005-07-20 Giovanni Bajo <giovannibajo@libero.it>
22769
22770 Make CONSTRUCTOR use VEC to store initializers.
22771 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
22772 CONSTRUCTOR_ELTS.
22773 * trans.c (extract_values): Likewise.
22774 * utils.c (convert, remove_conversions): Likewise.
22775 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
22776 gnat_build_constructor): Likewise.
22777
f685a2e6
AP
227782005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22779
22780 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
22781 DECL_SECTION_NAME.
22782 (compare_field_bitpos): Likewise.
22783
7c6ef73e
AP
227842005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
22785
22786 * utils.c (create_var_decl): Only set DECL_COMMON on
22787 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
22788 VAR_OR_FUNCTION_DECL_P.
22789
820cc88f 227902005-07-08 Daniel Berlin <dberlin@dberlin.org>
da8f5fd9 22791
820cc88f
DB
22792 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
22793 removed.
22794
1a9cb483
AC
227952005-07-07 Pascal Obry <obry@adacore.com>
22796
22797 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
22798 returned type on Windows.
22799
22800 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
22801 routine.
22802
22803 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
22804 exception in this case.
22805 Simplify the code as "Image (Image'Range)" = "Image".
22806
228072005-07-07 Vincent Celier <celier@adacore.com>
22808
22809 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
22810 the destructor/constructor attributes for <lib>final/<lib>init.
22811
22812 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
22813
228142005-07-07 Eric Botcazou <ebotcazou@adacore.com>
22815
22816 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
22817 type if the parameter is not passed by copy but reference by default.
22818
228192005-07-07 Javier Miranda <miranda@adacore.com>
22820
22821 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
22822 Reimplementation of the support for abstract interface types in order
22823 to leave the code more clear and easy to maintain.
22824
22825 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
22826 abstract interface types in order to leave the code clearer and easier
22827 to maintain.
22828
22829 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
22830 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
22831 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
22832 appropriate entry of the secondary dispatch table.
22833 (Make_DT): Add code to inherit the secondary dispatch tables of
22834 the ancestors.
22835
22836 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
22837 implementing both functionalities by means of a common routine, each
22838 routine has its own code.
22839
228402005-07-07 Javier Miranda <miranda@adacore.com>
22841
22842 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
22843
22844 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
22845 types:
22846 --
22847 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22848 --
22849
22850 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
22851 use of tag incomplete types.
22852
22853 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
22854 give support to tagged incomplete types.
22855
22856 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
22857 expression is a discriminant reference and its type is private, as can
22858 happen within a stream operation for a mutable record, use the full
22859 view of the type to resolve the case alternatives.
22860 (Analyze_Assignment): Check wrong dereference of incomplete types.
22861
22862 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
22863 types.
22864
22865 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
22866 incomplete types.
22867
22868 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
22869 N_Incomplete_Type_Declaration nodes.
22870
22871 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
22872 Tag_Present to give support to tagged incomplete types:
22873 --
22874 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
22875 --
22876
228772005-07-07 Olivier Hainque <hainque@adacore.com>
22878
22879 PR ada/22301
1a9cb483
AC
22880 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
22881 definitions for the Unwind wrappers in the compiler case.
22882
228832005-07-07 Ed Schonberg <schonberg@adacore.com>
22884 Javier Miranda <miranda@adacore.com>
22885
22886 * par-load.adb (Load): If a child unit is loaded through a limited_with
22887 clause, each parent must be loaded as a limited unit as well.
22888
22889 * sem_ch10.adb (Previous_Withed_Unit): Better name for
22890 Check_Withed_Unit. Return true if there is a previous with_clause for
22891 this unit, whether limited or not.
22892 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
22893 the current unit.
22894 (Is_Visible_Through_Renamings): New local subprogram of install_limited
22895 _withed_unit that checks if some package installed through normal with
22896 clauses has a renaming declaration of package whose limited-view is
22897 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
22898 of the current Draft document for Ada 2005.
22899 (Analyze_Context): Complete the list of compilation units that
22900 are allowed to contain limited-with clauses. It also contains
22901 checks that were previously done by Install_Limited_Context_Clauses.
22902 This makes the code more clear and easy to maintain.
22903 (Expand_Limited_With_Clause) It is now a local subprogram of
22904 Install_Limited_Context_Clauses, and contains the code that adds
22905 the implicit limited-with clauses for parents of child units.
22906 This functionality was prevously done by Analyze_Context.
22907
22908 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
22909 incomplete type.
22910
22911 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
22912 been erroneously named in a limited-with clause of its own context.
22913 In this case the error has been previously notified by Analyze_Context.
22914
229152005-07-07 Ed Schonberg <schonberg@adacore.com>
22916
22917 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
22918 generic package that contains local declarations with the same name.
22919 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
22920
229212005-07-07 Bernard Banner <banner@adacore.com>
22922
22923 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
22924 ia64 platform only on platforms that you the GCC unwind library
22925 rather than the system unwind library.
22926
229272005-07-07 Thomas Quinot <quinot@adacore.com>
22928
22929 * expect.c: Minor reformatting
22930
229312005-07-07 Sergey Rybin <rybin@adacore.com>
22932
22933 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
22934 --no-separate-is
22935
22936 * gnat_ugn.texi: Add description for new gnatpp option
22937 (--no-separate-is)
22938
7d300a99
AC
229392005-07-04 Thomas Quinot <quinot@adacore.com>
22940
22941 * g-expect-vms.adb, g-expect.ads, g-expect.adb
22942 (Get_Command_Output): New subprogram to launch a process and get its
22943 standard output as a string.
22944
229452005-07-04 Eric Botcazou <ebotcazou@adacore.com>
9bae2797 22946 Olivier Hainque <hainque@adacore.com>
7d300a99
AC
22947
22948 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
22949 fetch a code-range descriptor associated with the machine state. On
22950 failure set the machine state's PC to 0; on success, pass the
22951 descriptor to exc_virtual_unwind.
22952
22953 * init.c (Tru64 section): New function __gnat_set_code_loc.
22954
229552005-07-04 Vincent Celier <celier@adacore.com>
22956
da8f5fd9
AJ
22957 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22958 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7d300a99
AC
22959 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
22960 Remove all auto-initialization code, as this is now done through the
22961 constructor mechanism.
22962
22963 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
22964 __gnat_sals_init_using_constructors): New functions.
22965
22966 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
22967 Linker_Constructor and Linker_Destructor when switch -a is used.
22968
22969 * bindusg.adb: Add line for new switch -a
22970
22971 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
22972 (Gnatbind): When switch -a is used, check if it is allowed
22973
22974 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
22975
229762005-07-04 Joel Brobecker <brobecker@adacore.com>
22977
22978 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
22979 This prevents us from hitting a limitation during the debug info
22980 generation when using stabs.
22981 (Prims_Ptr): Likewise.
22982
229832005-07-04 Gary Dismukes <dismukes@adacore.com>
22984 Ed Schonberg <schonberg@adacore.com>
22985 Javier Miranda <miranda@adacore.com>
22986
22987 * checks.adb (Null_Exclusion_Static_Checks): In the case of
22988 N_Object_Declaration, only perform the checks if the Object_Definition
22989 is not an Access_Definition.
22990
6f7f72f9
EB
22991 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
22992 where the parent of an the access definition is an N_Object_Declaration
22993 when determining the Associated_Node_For_Itype and scope of an
22994 anonymous access-to-subprogram type.
7d300a99
AC
22995
22996 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
22997 Corresponding_Spec on the body created for a null procedure. Add ???
22998 comment. Remove New_Copy_Tree call on body argument to
22999 Set_Body_To_Inline.
23000
23001 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
23002 discriminants, use the type of the actual as well, because the
23003 discriminants may be read by the called subprogram.
23004
23005 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
23006 access type we do not need to handle non-limited views.
23007 (Build_Derived_Record_Type): Additional check to check that in case of
23008 private types, interfaces are only allowed in private extensions.
23009
230102005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23011
23012 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
23013 <Pragma_Linker_Destructor>: Likewise.
23014
23015 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
23016 Pragma_Linker_Destructor.
23017
23018 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
23019 ATTR_LINK_DESTRUCTOR.
23020 (static_ctors, static_dtors): New variables.
23021
23022 * misc.c (gnat_expand_body): Output current function as constructor
23023 and destructor if requested.
23024
23025 * par-prag.adb: Add processing for pragma Linker_Constructor and
23026 Linker_Destructor.
23027
23028 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
23029 extracted from Check_Interrupt_Or_Attach_Handler.
23030 (Check_Interrupt_Or_Attach_Handler): Invoke it.
23031 Implement pragma Linker_Constructor and Linker_Destructor with the
23032 help of Find_Unique_Parameterless_Procedure.
23033 Replace Name_Alias with Name_Target for pragma Linker_Alias.
23034
da8f5fd9 23035 * snames.h, snames.ads, snames.adb:
7d300a99
AC
23036 Add Name_Linker_Constructor and Name_Linker_Destructor.
23037 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
23038 * snames.adb: Remove Name_Alias.
23039
23040 * trans.c: Include cgraph.h.
23041 (build_global_cdtor): New function.
23042 (Compilation_Unit_to_gnu): Build global constructor and destructor if
23043 needed.
23044 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
23045 of objects too.
23046 (addressable_p) <COMPONENT_REF>: Unconditionally test
23047 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
23048
23049 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
23050 variable if it is external.
23051
23052 (static_ctors, static_dtors): New global variables.
23053 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
23054 <ATTR_LINK_DESTRUCTOR>: Likewise.
23055 (end_subprog_body): Chain function as constructor and destructor
23056 if requested.
23057
23058 * exp_util.adb (Force_Evaluation): Unconditionally invoke
23059 Remove_Side_Effects with Variable_Ref set to true.
23060 (Remove_Side_Effects): Handle scalar types first. Use a renaming
23061 for non-scalar types even if Variable_Ref is true and for class-wide
23062 expressions.
23063
230642005-07-04 Ed Schonberg <schonberg@adacore.com>
23065
23066 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
23067 to prevent spurious warnings.
23068
230692005-07-04 Thomas Quinot <quinot@adacore.com>
23070
23071 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
23072 Itypes. Itypes are really unexpected there.
23073 (Build_TypeCode_Function): Generalise special processing for Itypes to
23074 handle the case of numeric implicit base types as well as enumerated
23075 ones.
23076
230772005-07-04 Ed Schonberg <schonberg@adacore.com>
23078
23079 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
23080 controlled, indicate the expected type of the dereference that is
23081 created for the call to Deep_Finalize, to prevent spurious errors when
23082 the designated type is private and completed with a derivation from
23083 another private type.
23084
230852005-07-04 Vincent Celier <celier@adacore.com>
23086
23087 * make.adb (Change_To_Object_Directory): When unable to change the
23088 current dir to the object directory, output the full path of the
23089 directory.
23090
230912005-07-04 Matthew Gingell <gingell@adacore.com>
23092
23093 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
23094
23095 * indepsw-linux.adb: Replace by...
23096
23097 * indepsw-gnu.adb: ...this new file
23098
230992005-07-04 Vincent Celier <celier@adacore.com>
23100
23101 * mlib-prj.adb (Auto_Initialize): New constant String
23102 (SALs_Use_Constructors): New Boolean function
23103 (Build_Library): Call gnatbind with Auto_Initialize switch when
23104 SALs_Use_Constructors returns True.
23105
23106 * mlib-tgt.ads: Minor reformatting
23107
23108 * mlib-utl.ads: Minor reformatting
23109
23110 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
23111
231122005-07-04 Ed Schonberg <schonberg@adacore.com>
23113
23114 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
23115 single protected declarations can have an interface list.
23116 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
23117 with seriously malformed entry declarations, and lead to compilation
23118 abandoned messages.
23119
231202005-07-04 Javier Miranda <miranda@adacore.com>
23121
23122 * par-load.adb: Load the context items in two rounds.
23123
231242005-07-04 Robert Dewar <dewar@adacore.com>
23125
23126 * scng.adb: Do not consider Mod used as an attribute to be a keyword
23127
231282005-07-04 Ed Schonberg <schonberg@adacore.com>
23129 Javier Miranda <miranda@adacore.com>
23130
23131 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
23132 type extension needs a limited view.
23133 Remove previous restriction on private types available through the
23134 limited-view (only tagged private types were previously allowed).
23135 (Install_Withed_Unit): In the code that implements the
23136 legality rule given in AI-377, exclude a child unit with the name
23137 Standard, because it is a homonym of the Standard environment package.
23138
231392005-07-04 Thomas Quinot <quinot@adacore.com>
23140
23141 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
23142 overloaded function call, carry interpretations from the original tree
23143 to the copy.
23144
231452005-07-04 Ed Schonberg <schonberg@adacore.com>
23146
23147 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
23148 types check whether some designated type is a limited view, and use
23149 the non-limited view if available.
23150
231512005-07-04 Gary Dismukes <dismukes@adacore.com>
23152
23153 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
23154 constraint of full view of a private view T1 if present, when T2 is a
23155 discriminated full view.
23156
231572005-07-04 Thomas Quinot <quinot@adacore.com>
23158
23159 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
23160 actual that is a view conversion of a bit packed array reference.
23161
231622005-07-04 Ed Schonberg <schonberg@adacore.com>
23163
23164 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
23165 present before checking whether an interface type covers a synchronized
23166 type.
23167
231682005-07-04 Ed Schonberg <schonberg@adacore.com>
23169
23170 * sem_util.adb (Is_Object_Reference): An indexed or selected component
23171 whose prefix is an implicit dereference is an object reference. Removes
23172 spurious errors when compiling with -gnatc.
23173
231742005-07-04 Robert Dewar <dewar@adacore.com>
23175
23176 PR ada/22039
7d300a99
AC
23177 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
23178
231792005-07-04 Matthew Gingell <gingell@adacore.com>
23180
23181 * tracebak.c: Enable tracebacks on ia64 platforms
23182
231832005-07-04 Vincent Celier <celier@adacore.com>
23184
23185 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
23186 the GNAT BIND command, as gnatbind accepts multiples ALI files with
23187 the -L or -n switches.
23188
231892005-07-04 Vincent Celier <celier@adacore.com>
23190
23191 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
23192 correctly computed and the main project data is not modified while
23193 doing so.
23194 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
23195 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
23196 c++linker as this does not work on some platforms.
23197
231982005-07-04 Matthew Heaney <heaney@adacore.com>
23199
23200 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
23201 was changed.
23202 * a-coinve.adb: Perform constraint checks explicitly.
23203
232042005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23205 Thomas Quinot <quinot@adacore.com>
23206
23207 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
23208 new target gen-soccon.
23209
232102005-07-04 Robert Dewar <dewar@adacore.com>
23211
23212 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
23213
232142005-07-04 Thomas Quinot <quinot@adacore.com>
23215
23216 * g-socket.ads (Check_Selector): Minor rewording of comment.
23217
232182005-07-04 Vincent Celier <celier@adacore.com>
23219
23220 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
23221
232222005-07-04 Thomas Quinot <quinot@adacore.com>
23223
23224 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
23225
232262005-07-04 Sergey Rybin <rybin@adacore.com>
23227
6f7f72f9 23228 * gnat_ugn.texi: Add description of --eol gnatpp option
7d300a99
AC
23229
232302005-07-04 Eric Botcazou <ebotcazou@adacore.com>
23231 Thomas Quinot <quinot@adacore.com>
23232
6f7f72f9 23233 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
7d300a99
AC
23234 if the user wants all calls of a subprogram to be flagged,
23235 independently of whether they are made from within the same unit or
23236 another unit.
6f7f72f9
EB
23237 Mention restriction for pragma Linker_Alias on some platforms.
23238 Document pragma Linker_Constructor and Linker_Destructor.
23239 Rewrite documentation of Weak_External, Linker_Section and
23240 Linker_Alias pragmas.
7d300a99 23241
fc64d83c
AC
232422005-07-04 Arnaud Charlet <charlet@adacore.com>
23243
23244 * s-stausa.ads, s-stausa.adb: New files.
23245
cb5fee25
KC
232462005-06-30 Kelley Cook
23247
23248 * all files: Update FSF address in copyright headers.
23249 * gen-soccon.co (main): Output new FSF address in generated files.
23250
617a1b71
PB
232512005-06-28 Paul Brook <paul@codesourcery.com>
23252
23253 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
23254
0adcdb66
AC
232552005-06-14 Olivier Hainque <hainque@adacore.com>
23256 Eric Botcazou <ebotcazou@adacore.com>
23257
23258 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
23259 exc_unwind, now that we are generating proper .debug_frame output for
23260 that target.
23261
23262 * tracebak.c: Remove the mips-irix section, as we are now using the
23263 s-mastop based unwinder again.
23264 Under SPARC/Solaris, take into account the stack bias to compute the
23265 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
23266 ABI.
23267
232682005-06-14 Doug Rupp <rupp@adacore.com>
23269
23270 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
23271
23272 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
23273
232742005-06-14 Pascal Obry <obry@adacore.com>
23275
23276 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
23277 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
23278 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
23279 package name).
23280
da8f5fd9
AJ
23281 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
23282 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
23283 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
23284 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
0adcdb66 23285 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
da8f5fd9
AJ
23286 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
23287 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
23288 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
23289 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
23290 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
23291 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
23292 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
23293 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
23294 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
23295 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
23296 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
23297 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
23298 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
23299 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
23300 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
23301 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
23302 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
23303 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
23304 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
23305 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
23306 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
23307 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
23308 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
23309 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
0adcdb66
AC
23310 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
23311 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23312 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
23313 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
23314 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
23315 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
23316 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
23317 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23318 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
23319 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
23320 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23321 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
23322 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
23323 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
23324 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
23325 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
23326 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
23327 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23328 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
23329 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
23330 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
23331 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
23332 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
23333 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
23334 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23335 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
23336 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
23337 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
23338 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
23339 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23340 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
23341 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
23342 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23343 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
23344 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
23345 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
23346 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
da8f5fd9
AJ
23347 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
23348 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
0adcdb66 23349 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
da8f5fd9 23350 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
0adcdb66
AC
23351 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
23352 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
23353 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
23354 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23355 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
23356 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
23357 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
23358 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
23359 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
23360 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23361 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
23362 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
23363 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
23364 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23365 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
23366 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
23367 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
23368 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23369 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
23370 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
23371 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
23372 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23373 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
23374 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
23375 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
23376 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23377 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
23378 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
23379 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
23380 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23381 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
23382 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
23383 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
23384 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23385 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
23386 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
23387 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
da8f5fd9
AJ
23388 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
23389 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23390 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
23391 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23392 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
23393 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23394 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
0adcdb66
AC
23395 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
23396 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
23397 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
23398 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23399 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
23400 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
da8f5fd9
AJ
23401 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
23402 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
0adcdb66
AC
23403 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
23404 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
23405 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
23406 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
23407 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
23408 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
23409 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
23410 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
23411 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
23412 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
23413 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
23414
234152005-06-14 Jose Ruiz <ruiz@adacore.com>
23416 Arnaud Charlet <charlet@adacore.com>
23417
23418 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
23419 longer protected objects. They have been replaced by lower-level
23420 suspension objects made up by a mutex and a condition variable (or
23421 their equivalent given a particular OS) plus some internal data to
23422 reflect the state of the suspension object.
23423 (Initialize, Finalize): Add this initialization procedure for
23424 Suspension_Object, which is a controlled type.
23425 (Finalize): Add the finalization procedure for Suspension_Object,
23426 which is a controlled type.
23427
23428 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
23429 Ada.Synchronous_Task_Control because there is no longer a need for a
23430 VxWorks specific version of this package. Target dependencies
23431 has been moved to System.Task_Primitives.Operations.
23432
23433 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
23434 longer needed.
23435 (InitializeCriticalSection, EnterCriticalSection,
23436 LeaveCriticalSection, DeleteCriticalSection): Replace the type
23437 pCriticalSection by an anonymous access type so that we avoid problems
23438 of accessibility to local objects.
23439
23440 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
23441 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23442 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
23443 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
23444 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
23445 set the environment task mask here.
23446 (Current_State): Add this function that returns the state of the
23447 suspension object.
23448 (Set_False): Add this procedure that sets the state of the suspension
23449 object to False.
23450 (Set_True): Add this procedure that sets the state of the suspension
23451 object to True, releasing the task that was suspended, if any.
23452 (Suspend_Until_True): Add this procedure that blocks the calling task
23453 until the state of the object is True. Program_Error is raised if
23454 another task is already waiting on that suspension object.
23455 (Initialize): Add this procedure for initializing the suspension
23456 object. It initializes the mutex and the condition variable which are
23457 used for synchronization and queuing, and it sets the internal state
23458 to False.
23459 (Finalize): Add this procedure for finalizing the suspension object,
23460 destroying the mutex and the condition variable.
23461
23462 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23463 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
23464 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
23465 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
23466 which provides a low-level abstraction (using operating system
23467 primitives) for Ada.Synchronous_Task_Control.
23468 This object is made up by a mutex (for ensuring mutual exclusion), a
23469 condition variable (for queuing threads until the condition is
23470 signaled), a Boolean (State) indicating whether the object is open,
23471 and a Boolean (Waiting) reflecting whether there is a task already
23472 suspended on this object.
23473
23474 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
23475 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
23476 s-intman-vms.ads, s-intman-mingw.adb,
23477 (Initialize_Interrupts): Removed, no longer used.
23478
23479 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
23480 (Setup_Interrupt_Mask): New procedure.
23481
23482 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
23483
23484 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
23485
23486 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
23487 this is no longer done in the body of s-taprop
23488 (Server_Task): Explicitely test for Pending_Action in case
23489 System.Parameters.No_Abort is True.
23490
23491 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
23492 is no longer done in the body of s-taprop
23493
234942005-06-14 Robert Dewar <dewar@adacore.com>
23495
23496 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
23497 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
23498 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23499 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
23500 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
23501 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
23502 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
23503 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
23504 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
23505 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
23506 system-linux-hppa.ads, system-vms_64.ads,
23507 system-vxworks-alpha.ads: Minor comment update for
23508 AI-362 (unit is Pure).
23509
23510 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
23511 Add pragma Pure_05 for AI-362
23512 Make remaining conversion functions obsolescent in Ada 95
23513
23514 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23515 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
23516 Add entries for a-wichun and a-zchuni
23517 Add a-widcha a-zchara for AI-395
23518 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
23519
23520 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
23521 Add entries for a-wichun.o and a-zchuni.o
23522 Entries for a-widcha.o and a-zchara.o
23523 Add entry for a-chacon.o
23524
23525 * a-ztenau.adb: Add with of Ada.Characters.Conversions
23526
23527 * a-chacon.ads, a-chacon.adb: New files.
23528
23529 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
23530 categorization violations.
23531
23532 * a-strmap.ads: Add pragma Pure_05 for AI-362
23533 * a-strmap.ads: Add note on implicit categorization for AI-362
23534
23535 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
23536
23537 * par-prag.adb: Dummy entry for pragma Persistent_BSS
23538 Set Ada_Version_Explicit, for implementation of AI-362
23539 Add processing for pragma Pure_05 and Preelaborate_05
23540 Add entry for Assertion_Policy pragma
23541
23542 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
23543 when needed for proper processing of categorization stuff
23544
da8f5fd9 23545 * sem_cat.adb:
0adcdb66
AC
23546 For several cases, make errors in preealborate units warnings,
23547 instead of errors, if GNAT_Mode is set. For AI-362.
23548
23549 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
23550 preelaborate unit is now warning if in GNAT mode
23551
23552 * s-stoele.ads: Document AI-362 for pragma preelaborate
23553
235542005-06-14 Doug Rupp <rupp@adacore.com>
23555
23556 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
23557 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
23558 Default_Exception_Msg_Max_Length: new parameter.
23559
23560 * a-except.ads: (Exception_Msg_Max_Length): Set to
23561 System.Parameters.Default_Exception_Msg_Max_Length
23562 Add pragma Preelaborate_05 for AI-362
23563 Add warnings off to allow categorization violations for AI-362
23564
235652005-06-14 Vincent Celier <celier@adacore.com>
23566
23567 * gnatsym.adb: Adapt to modification of package Symbols: procedure
23568 Process is now in package Processing.
23569
23570 * symbols.ads, symbols.adb:
23571 (Processing): New package, containing procedure Process
23572
da8f5fd9 23573 * symbols-vms-alpha.adb:
0adcdb66
AC
23574 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
23575
23576 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
23577 symbols-processing-vms-ia64.adb: New files.
23578
235792005-06-14 Pascal Obry <obry@adacore.com>
23580
23581 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
23582 implementation. This new version generates the proper DllMain routine
23583 to initialize the SAL. The DllMain is generated in Ada and compiled
23584 before being added as option to the library build command.
23585
235862005-06-14 Doug Rupp <rupp@adacore.com>
23587 Pascal Obry <obry@adacore.com>
23588
23589 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
23590 call to decc$translate_vms.
23591 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
23592 need to remove those quotes before catenating the filename.
23593 (__gnat_locate_exec_on_path): improvements to the Win32 section:
23594 * avoid allocating the memory twice for better efficiency;
23595 * allocate 32K buffer for environment expansion as suggested by MSDN;
23596 * prepend ".;" to the path so that current directory is searched too.
23597
235982005-06-14 Robert Dewar <dewar@adacore.com>
23599
23600 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
23601 instead of raising CE (AI-241)
23602 Add warnings off to allow categorization violations for AI-362
23603
236042005-06-14 Robert Dewar <dewar@adacore.com>
23605
23606 * ali-util.adb, gnatbind.adb: Remove references to
23607 Force_RM_Elaboration_Order.
23608
23609 * switch-b.adb: Remove recognition of -f switch
23610
236112005-06-14 Pascal Obry <obry@adacore.com>
23612
23613 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
23614 implementation which is slightly more efficient.
23615
236162005-06-14 Gary Dismukes <dismukes@adacore.com>
23617 Javier Miranda <miranda@adacore.com>
23618 Ed Schonberg <schonberg@adacore.com>
23619 Hristian Kirtchev <kirtchev@adacore.com>
23620
23621 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
23622 allocator's designated type is a class-wide type, and compiling for
23623 Ada 2005, emit a run-time check that the accessibility level of the
23624 type given in the allocator's expression is not deeper than the level
23625 of the allocator's access type.
23626
23627 (Tagged_Membership): Modified to gives support to abstract interface
23628 types.
23629
23630 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
23631 Access_Level.
23632 (Descendant_Tag): New predefined function
23633 (Is_Descendant_At_Same_Level): New predefined function
23634 (Get_Access_Level): New private function
23635 (Set_Access_Level): New private procedure
23636 (IW_Membership): New function. Given the tag of an object and the tag
23637 associated with an interface, evaluate if the object implements the
23638 interface.
23639 (Register_Interface_Tag): New procedure used to initialize the table of
23640 interfaces used by the IW_Membership function.
23641 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
23642 of the dispatch table.
23643 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
23644 table of interfaces of the parent.
23645 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
23646 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
23647 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
23648 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
23649 Ada 2005 semantics for the new predefined function.
23650
23651 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
23652 call to Descendant_Tag rather than Internal_Tag.
23653 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
23654 the accessibility level of the attribute's Item parameter is not deeper
23655 than the level of the attribute's prefix type. Tag_Error is raised if
23656 the check fails. The check is only emitted for Ada_05.
23657 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
23658 requested stream attribute, use it.
23659 (Expand_N_Attribute_Reference): If the designated type is an interface
23660 then rewrite the referenced object as a conversion to force the
23661 displacement of the pointer to the secondary dispatch table.
23662 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
23663 is a dereference of an object with a constrained partial view.
23664
23665 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
23666 type is a class-wide type, emit a run-time check that the accessibility
23667 level of the returned object is not deeper than the level of the
23668 function's master (only when compiling for Ada 2005).
23669
23670 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
23671 Action_Nb_Arg): Add entries for new Get_Access_Level and
23672 Set_Access_Level routines in these tables.
23673 (Make_DT): Generate a call to set the accessibility level of the
23674 tagged type in its TSD.
23675 (Make_DT): Code cleanup. The functionality of generating all the
23676 secondary dispatch tables has been moved to freeze_record_type.
23677 (Make_Abstract_Interface_DT): Minor code cleanup.
23678 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
23679 this subprogram implements a new algorithm that provides the
23680 same functionality and it is more clear in case of primitives
23681 associated with abstract interfaces.
23682 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
23683 clean up, the functionality of this subprogram is now provided
23684 by Set_All_DT_Position.
23685 (Write_DT): New subprogram: a debugging procedure designed to be called
23686 within gdb to display the dispatch tables associated with a tagged
23687 type.
23688 (Collect_All_Interfaces): New subprogram that collects the whole list
23689 of interfaces that are directly or indirectly implemented by a tagged
23690 type.
23691 (Default_Prim_Op_Position): New subprogram that returns the fixed
23692 position in the dispatch table of the default primitive operations.
23693 (Expand_Interface_Actuals): New subprogram to generate code that
23694 displaces all the actuals corresponding to class-wide interfaces to
23695 reference the interface tag of the actual object.
23696 (Expand_Interface_Conversion): New subprogram. Reference the base of
23697 the object to give access to the interface tag associated with the
23698 secondary dispatch table.
23699 (Expand_Interface_Thunk): New subprogram that generates the code of the
23700 thunk. This is required for compatibility with the C+ ABI.
23701 (Make_Abstract_Interface_DT): New subprogram that generate the
23702 declarations for the secondary dispatch tables associated with an
23703 abstract interface.
23704 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
23705 attribute for each primitive operation covering interface subprograms
23706 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
23707 These subprograms were upgraded to give support to abstract interfaces
23708
23709 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
23710 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
23711 RE_Set_Access_Level.
23712 (RE_Unit_Table): Add entries for new Ada.Tags operations.
23713 Add support to call the followig new run-time subprograms:
23714 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
23715
23716 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
23717 match its full declaration when both have an access definition with
23718 statically matching designated subtypes.
23719 (Analyze_Component_Declaration): Delete commented out code that was
23720 incorrectly setting the scope of an anonymous access component's type.
23721 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
23722 an access discriminant when the containing type is nonlimited.
23723 (Make_Incomplete_Type_Declaration): Create an incomplete type
23724 declaration for a record type that includes self-referential access
23725 components.
23726 (Check_Anonymous_Access_Types): Before full analysis of a record type
23727 declaration, create anonymous access types for each self-referential
23728 access component.
23729 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
23730 an access component in this context is a Local_Anonymous_Access, for
23731 proper accessibility checks.
23732 (Access_Definition): Set properly the scope of the anonymous access type
23733 created for a stand-alone access object.
23734 (Find_Type_Of_Object): An object declaration may be given with an access
23735 definition.
23736 (Complete_Subprograms_Derivation): New subprogram used to complete
23737 type derivation of private tagged types implementing interfaces.
23738 In this case some interface primitives may have been overriden
23739 with the partial-view and, instead of re-calculating them, they
23740 are included in the list of primitive operations of the full-view.
23741 (Build_Derived_Record_Type): Modified to give support to private
23742 types implemening interfaces.
23743 (Access_Definition): Reject ALL on anonymous access types.
23744 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
23745 type derivation to occur at a deeper accessibility level than the
23746 parent type.
23747 For the case of derivation within a generic body however, disallow the
23748 derivation if the derived type has an ancestor that is a formal type
23749 declared in the formal part of an enclosing generic.
23750 (Analyze_Object_Declaration): For protected objects, remove the check
23751 that they cannot contain interrupt handlers if not declared at library
23752 level.
23753 (Add_Interface_Tag_Components): New subprogram to add the tag components
23754 corresponding to all the abstract interface types implemented by a
23755 record type or a derived record type.
23756 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23757 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23758 Process_Full_View, Record_Type_Declaration): Modified to give
23759 support to abstract interface types
23760 (Collect_Interfaces): New subprogram that collects the list of
23761 interfaces that are not already implemented by the ancestors
23762 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
23763 when partial view has no discriminants and full view has defaults.
23764 (Constrain_Access): Reject a constraint on a general access type
23765 if the discriminants of the designated type have defaults.
23766 (Access_Subprogram_Declaration): Associate the Itype node with the inner
23767 full-type declaration or subprogram spec. This is required to handle
23768 nested anonymous declarations.
23769 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
23770 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
23771 Process_Full_View, Record_Type_Declaration): Modified to give
23772 support to abstract interface types
23773 (Derive_Subprograms): Addition of a new formal to indicate if
23774 we are in the case of an abstact-interface derivation
23775 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
23776 to the specification because it is requied to analyze all the
23777 identifiers found in a list of interfaces
23778
23779 * debug.adb: Complete documentation of flag "-gnatdZ"
23780
23781 * exp_ch3.adb: Implement config version of persistent_bss pragma
23782 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
23783 testing for TSS presence to properly enforce visibility rules.
23784 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
23785 Make_Abstract_Interfaces_DT to generate the secondary tables
23786 associated with abstract interfaces.
23787 (Build_Init_Procedure): Modified to initialize all the tags
23788 corresponding.
23789 (Component_Needs_Simple_Initialization): Similar to other tags,
23790 interface tags do not need initialization.
23791 (Freeze_Record_Type): Modified to give support to abstract interface
23792 types.
23793 (Expand_N_Object_Declaration): Do not generate an initialization for
23794 a scalar temporary marked as internal.
23795
23796 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
23797 in-out parameter that is a component in an initialization procedure,
23798 whose constraint might depend on discriminants, and that may be
23799 misaligned because of packing or representation clauses.
23800 (Is_Legal_Copy): New predicate to determine whether a possibly
23801 misaligned in-out actual can actually be passed by copy/return. This
23802 is an error in case the type is by_reference, and a warning if this is
23803 the consequence of a DEC import pragma on the subprogram.
23804 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
23805 interface types
23806 (Expand_Inlined_Call): Mark temporary generated for the return value as
23807 internal, so that no useless scalar normalization is generated for it.
23808 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
23809 null procedure can always be inlined.
23810 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
23811 procedure, generate an explicit empty body for it.
23812
23813 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
23814 Given a type implementing an interface, returns the corresponding
23815 access_disp_table value.
23816 (Find_Interface_Tag): New subprogram. Given a type implementing an
23817 interface, returns the record component containing the tag of the
23818 interface.
23819 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
23820 previous ones that return the corresponding tag and access_disp_table
23821 entities.
23822 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
23823 is a predefined primitive operation.
23824 (Expand_Subtype_From_Expr): If the expression is a selected component
23825 within an initialization procedure, compute its actual subtype, because
23826 the component may depend on the discriminants of the enclosing record.
23827
da8f5fd9 23828 * i-cpp.ads, i-cpp.adb:
0adcdb66
AC
23829 This package has been left available for compatibility with previous
23830 versions of the frontend. As part of the new layout this is now a
23831 dummy package that uses declarations available at a-tags.ads
23832
23833 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
23834 "constant access" and "aliased [constant] access" when not compiling
23835 with -gnat05.
23836 Suppress Ada 2005 keyword warning if -gnatwY used
23837 (P_Identifier_Declarations): Add support for object declarations with
23838 access definitions.
23839 (Private_Extension_Declaration): Complete the documentation
23840 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
23841 attribute in case of private extension declaration
23842 (P_Type_Declaration): Mark as "abstract" the type declarations
23843 corresponding with protected, synchronized and task interfaces
23844 (P_Declarative_Items): "not" and "overriding" are overriding indicators
23845 for a subprogram or instance declaration.
23846
23847 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
23848 instantiation that is a dispatching operation has controlling access
23849 parameters that are null excluding.
23850 Save and restore Ada_Version_Explicit, for implementation of AI-362
23851 (Validate_Derived_Type_Instance): Add check for abstract interface
23852 types.
23853 (Analyze_Formal_Package): Establish Instantiation source for the copy of
23854 the generic that is created to represent the formal package.
23855 (Analyze_Package_Instantiation): Instantiate body immediately if the
23856 package is a predefined unit that contains inlined subprograms, and
23857 we are compiling for a Configurable_Run_Time.
23858 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
23859 If the program has a null default, generate an empty body for it.
23860
23861 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
23862 error message condition, null procedures are correctly detected now.
23863 (New_Overloaded_Entity): Bypass trivial overriding indicator check
23864 for subprograms in the context of protected types. Instead, the
23865 indicator is examined in Sem_Ch9 while analysing the subprogram
23866 declaration.
23867 (Check_Overriding_Indicator): Check consistency of overriding indicator
23868 on subprogram stubs as well.
23869 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
23870 the library level.
23871 (Analize_Subprogram_Specification): When analyzing a subprogram in which
23872 the type of the first formal is a concurrent type, replace this type
23873 by the corresponding record type.
23874 (Analyze_Subprogram_Body): Undo the previous work.
23875 (Analyze_Procedure_Call): If the call has the form Object.Op, the
23876 analysis of the prefix ends up analyzing the call itself, after which
23877 we are done.
23878 (Has_Interface_Formals): New subprogram subsidiary to analyze
23879 subprogram_specification that returns true if some non
23880 class-wide interface subprogram is found
23881 (New_Overloaded_Entity): Modified to give support to abstract
23882 interface types
23883 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
23884 access to subprograms must be recursive.
23885 (Is_Unchecked_Conversion): Improve the test that recognizes
23886 instantiations of Unchecked_Conversion, and allows them in bodies that
23887 are to be inlined by the front-end. When the body comes from an
23888 instantiation, a reference to Unchecked_Conversion will be an
23889 Expanded_Name, even though the body has not been analyzed yet.
23890 Replace Is_Overriding and Not_Overriding in subprogram_indication with
23891 Must_Override and Must_Not_Override, to better express intent of AI.
23892 (Analyze_Subprogram_Body): If an overriding indicator is given, check
23893 that it is consistent with the overrinding status of the subprogram
23894 at this point.
23895 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
23896 always inlined.
23897 If the subprogram is a null procedure, indicate that it does not need
23898 a completion.
23899
23900 * sem_disp.adb (Check_Controlling_Type): Give support to entities
23901 available through limited-with clauses.
23902 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
23903 allowed as the last primitive of a tagged type if it has no previous
23904 spec.
23905 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
23906 to give support to abstract interface types
23907
23908 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
23909 in the case where the target type is an anonymous access type of an
23910 object or component (that is, when Is_Local_Anonymous_Access is true).
23911 Prevent the special checks for conversions of access discriminants in
23912 the case where the discriminant belongs to a nonlimited type, since
23913 such discriminants have their accessibility level defined in the same
23914 way as a normal component of an anonymous access type.
23915 (Resolve_Allocator): When an allocator's designated type is a class-wide
23916 type, check that the accessibility level of type given in the
23917 allocator's expression or subtype indication is not statically deeper
23918 than the level of the allocator's access type.
23919 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
23920 name in a discriminant constraint of a record component.
23921 (Resolve_Explicit_Dereference): Do not check whether the type is
23922 incomplete when the dereference is a use of an access discriminant in
23923 an initialization procedure.
23924 (Resolve_Type_Conversion): Handle conversions to abstract interface
23925 types.
23926 (Valid_Tagged_Conversion): The conversion of a tagged type to an
23927 abstract interface type is always valid.
23928 (Valid_Conversion): Modified to give support to abstract interface types
23929 (Resolve_Actuals): Enable full error reporting on view conversions
23930 between unrelated by_reference array types.
23931 The rule for view conversions of arrays with aliased components is
23932 weakened in Ada 2005.
23933 Call to obsolescent subprogram is now considered to be a violation of
23934 pragma Restrictions (No_Obsolescent_Features).
23935 (Check_Direct_Boolean_Operator): If the boolean operation has been
23936 constant-folded, there is nothing to check.
23937 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
23938 check on possible violation of restriction No_Direct_Boolean_Operators
23939 until after expansion of operands, to prevent spurious errors when
23940 operation is constant-folded.
23941
23942 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
23943 Has_Compatible_Type): Modified to give support to abstract interface
23944 types.
23945 (Interface_Present_In_Ancestor): New function to theck if some ancestor
23946 of a given type implements a given interface
23947
23948 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
23949 prefix is a parameterless function that returns an access_to_procedure.
23950 (Transform_Object_Operation): Handle properly function calls of the
23951 form Obj.Op (X), which prior to analysis appear as indexed components.
23952 (Analyze_One_Call): Complete the error notification to help new Ada
23953 2005 users.
23954 (Analyze_Allocator): For an allocator without an initial value, where
23955 the designated type has a constrained partial view, a discriminant
23956 constraint is illegal.
23957
239582005-06-14 Robert Dewar <dewar@adacore.com>
23959
23960 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
23961 do with treatment of Set_Col when positioned at end of line character.
23962
239632005-06-14 Robert Dewar <dewar@adacore.com>
23964
23965 * atree.adb: (Elist*): Protect against uninitialized field
23966
239672005-06-14 Ed Schonberg <schonberg@adacore.com>
23968
23969 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
23970 for an attribute reference that returns an access type.
23971 (Apply_Discriminant_Check): No need for check if (designated) type has
23972 constrained partial view.
23973
23974 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
23975 both bound checks, rather than a conjunction.
23976 (Insert_Valid_Check): If the expression is an actual that is an indexed
23977 component of a bit-packed array, force expansion of the packed element
23978 reference, because it is specifically inhibited elsewhere.
23979
239802005-06-14 Vincent Celier <celier@adacore.com>
23981
23982 * clean.adb (Clean_Project): Correctly delete executable specified as
23983 absolute path names.
23984
23985 * make.adb (Gnatmake): Allow relative executable path names with
23986 directory information even when project files are used.
23987 (Change_To_Object_Directory): Fail gracefully when unable to change
23988 current working directory to object directory of a project.
23989 (Gnatmake): Remove exception handler that could no longer be exercized
23990 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
23991 may be deallocated by Normalize_Arguments.
23992 (Collect_Arguments): Eliminate empty arguments
23993
23994 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
23995 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
23996 (Check_Project): Return False when Project is No_Project. Return True
23997 when All_Projects is True.
23998 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
23999 All_Projects to True.
24000 Minor reformatting
24001
240022005-06-14 Ed Schonberg <schonberg@adacore.com>
24003 Javier Miranda <miranda@adacore.com>
24004 Thomas Quinot <quinot@adacore.com>
24005 Robert Dewar <dewar@adacore.com>
24006 Hristian Kirtchev <kirtchev@adacore.com>
24007 Gary Dismukes <dismukes@adacore.com>
24008
24009 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
24010 anonymous access types, to indicate that the accessibility level of
24011 the type is determined by that of the enclosing declaration.
24012 (Has_Persistent_BSS): New flag
24013 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
24014 of this attribute with functions.
24015 (Is_Primitive_Wrapper): Remove the barrier.
24016 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
24017 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
24018 New subprograms.
24019 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
24020 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
24021 New subprograms.
24022 (Is_Pure_Unit_Access_Type): New flag
24023 (Abstract_Interfaces): Complete the assertion to cover all usages.
24024 (Set_Is_Interface): Complete the assertion to cover all usages.
24025 (Is_Primitive_Wrapper): New attribute.
24026 (Is_Obsolescent): Now applies to all entities (though it is only set
24027 for subprograms currently)
24028 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
24029 which solves various problems concerning access subtypes.
24030 (Has_Persistent_BSS): New flag
24031 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
24032 Remove these subprograms because this attribute is currently
24033 not used.
24034 New entity flags:
24035 Has_Specified_Stream_Input (Flag190)
24036 Has_Specified_Stream_Output (Flag191)
24037 Has_Specified_Stream_Read (Flag192)
24038 Has_Specified_Stream_Write (Flag193)
24039 Present in all type and subtype entities. Set for a given view if the
24040 corresponding stream-oriented attribute has been defined by an
24041 attribute definition clause. When such a clause occurs, a TSS is set
24042 on the underlying full view; the flags are used to track visibility of
24043 the attribute definition clause for partial or incomplete views.
24044 (Is_Pure_Unit_Access_Type): New flag
24045 Clarify use of Is_Internal.
24046 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
24047 internally generated to wrap the invocation of tasks and protected
24048 types that implement interfaces.
24049 (Implementation_Base_Type): Documentation correction
24050 (Is_Obsolescent): Now applies to all entities (though it is only set
24051 for subprograms currently)
24052 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
24053 which solves various problems concerning access subtypes.
24054
24055 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
24056 for examined parameters. Identify unequal parameter list lengths as
24057 non-conformant parameters.
24058 (Overriding_Possible): Do not check for "All" qualifier in declaration
24059 of controlling access parameter, following prescription of AI-404.
24060 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
24061 that build the procedure body that wraps an entry invocation
24062 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
24063 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
24064 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
24065 give support to abstract interface types
24066
24067 * freeze.adb (Freeze_Entity): Issue error message if
24068 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
24069 type has no storage pool (Ada 2005) AI-366.
24070 Also modified to give support to abstract interface types
24071 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
24072 Inline_Always pragma.
24073
24074 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
24075 now begin an entry declaration.
24076 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
24077 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
24078 a subprogram declaration preceded by an overriding indicator.
24079 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
24080 declarations or subprogram declarations preceded by reserved words
24081 "not" or "overriding".
24082 (P_Entry_Declaration): Update comment. Parse and check overriding
24083 indicator, set semantic flags of entry declarations.
24084 (P_Task): New error message in case of private applied
24085 to a task type declaration.
24086 (P_Protected): New error message in case of private applied
24087 to a task type declaration.
24088
24089 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
24090 in which the full view of a type implementing an interface is a
24091 concurrent type.
24092 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
24093 Declare_Inherited_Private_Subprograms): If an explicit operation
24094 overrides an operation that is inherited in the private part, mark the
24095 explicit one as overriding, to enable overriding indicator checks.
24096 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
24097 full view to partial view, to simplify handling in back-end.
24098
24099 * sprint.adb: Print interface lists where needed: derived types,
24100 protected types, task types.
24101 output "is null" for null procedures. Part of implementation of
24102
24103 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
24104 relaxation of rules for access types in pure, shared passive partitions.
24105
24106 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
24107 first read discriminants into temporary objects, performing checks on
24108 the read values, then possibly performing discriminant checks on the
24109 actual (if it is constrained), and only finally reading the components
24110 into a constrained temporary object.
24111 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
24112 case of reading discriminants of a mutable record type to recognize
24113 the new form of the code generated by
24114 Build_Mutable_Record_Read_Procedure.
24115
24116 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
24117 of a simple call to Make_TSS_Name.
24118 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
24119 buffer, in order for Is_TSS to work correctly on local TSS names.
24120
24121 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
24122 Is_Local_Anonymous_Access to check legaliy of attributes in the
24123 context of access components and stand-alone access objects.
24124 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
24125 treated as available for a limited private type if there is an
24126 attribute_definition_clause that applies to its full view, but not in
24127 other cases where the attribute is available for the full view
24128 (specifically, the sole fact that the full view is non-limited does not
24129 make the attribute available for the partial view).
24130 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
24131 non-overloaded intrinsic subprogram.
24132 (Check_Stream_Attribute): Reject an attribute reference for an
24133 unavailable stream attribute even if the prefix is not a limited type
24134 (case of a 'Input attribute reference for an abstract, non-classwide
24135 type)
24136 (Stream_Attribute_Available): New function to determine whether a stream
24137 attribute is available at a place.
24138 (Check_Attribute): Use Stream_Attribute_Available instead of just
24139 testing for TSS presence on the implementation base type.
24140 (Analyze_Attribute): Modified to give support to task interfaces.
24141 (Analyze_Access_Attribute): Add error check for use of an Access (or
24142 Unrestricted_Access) attribute with a subprogram marked as
24143 Inline_Always.
24144 (Analyze_Attribute, case Attribute_Address): Add error check for use of
24145 an Address attribute with a subprogram marked as Inline_Always.
24146 Update Eval_Attribute to handle new value of Width from AI-395
24147
24148 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
24149 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
24150 Factor common code across the stream-oriented attribute circcuits into
24151 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
24152 processing is functionally identical to the previous duplicated one,
24153 except that an expression that denotes an abstract subprogram will now
24154 be rejected, as mandated by AI-195 item 5.
24155
24156 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
24157 Is_Local_Anonymous_Access to apply accessibility checks to access
24158 components and stand-alone access objects.
24159 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
24160 elsewhere.
24161 (Is_Potentially_Persistent_Type): New function
24162 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
24163 a heap-object whose type has a constrained partial view, the object is
24164 unconstrained and the component may depend on a discriminant, making its
24165 renaming illegal.
24166
24167 * sinfo.ads, sinfo.adb
24168 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
24169 (Must_Override): Flag applicable to N_Entry_Declaration.
24170 Indicate that interface_list can appear in single task and single
24171 protected declarations.
24172 Replace Is_Overriding and Not_Overriding with Must_Override and
24173 Must_Not_Override, to better express intent of AI.
24174 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
24175 of an overriding indicator in a subprogram or instance.
24176 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
24177 Add the overriding indicator [[not] overriding] construct to the
24178 following grammar productions:
24179 ENTRY_DECLARATION
24180 GENERIC_INSTANTIATION
24181 SUBPROGRAM_SPECIFICATION
24182
24183 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
24184 can start with an overriding indicator.
24185
24186 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
24187 flags accordingly on subrogram specifications or instances.
24188
da8f5fd9 24189 * sem_ch8.adb:
0adcdb66
AC
24190 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
24191 overriding_indicator, if present, is consistent with status of spec.
24192 Improve error message for null-excluding checks on controlling access
24193 parameters.
24194 (Check_In_Previous_With_Clause): Protect the frontend against
24195 previously reported critical errors in the context clauses.
24196 Save and restore Ada_Version_Explicit, for implementation of AI-362
24197 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
24198 operation verify that controlling formals of the renamed entity that
24199 are access parameters are explicitly non-null.
24200 (Find_Expanded_Name): Improve error message when prefix is an illegal
24201 reference to a private child unit.
24202
24203 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
da8f5fd9 24204 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
0adcdb66
AC
24205 Rewrite to correspond to new wide character names in AI-395
24206
6f7f72f9
EB
24207 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
24208 default procedures.
0adcdb66
AC
24209
242102005-06-14 Ed Schonberg <schonberg@adacore.com>
24211 Robert Dewar <dewar@adacore.com>
24212
24213 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
24214 code, not on the bodies of predefined operations, to cut down on
24215 spurious noise.
24216
242172005-06-14 Ed Schonberg <schonberg@adacore.com>
24218
24219 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
24220 be expanded in place. The size computation does not require a
24221 subtraction, which would raise an exception on a compiler built with
24222 assertions when the upper bound is Integer'first.
24223 (Flatten): For an array of composite components, take into account the
24224 size of the components to determine whether it is safe to expand the
24225 array into a purely positional representation.
24226
242272005-06-14 Thomas Quinot <quinot@adacore.com>
24228
24229 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
24230 denoting a formal parameter into account.
24231
242322005-06-14 Ed Schonberg <schonberg@adacore.com>
24233
24234 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
24235 the entry_call alternative of a conditional entry call, wrap the
24236 conditional entry call itself.
24237
242382005-06-14 Nicolas Setton <setton@adacore.com>
24239 Ed Schonberg <schonberg@adacore.com>
24240
24241 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
24242 the "simple_choice" member in a variant record, in accordance with the
24243 description in the package spec: the information output for a constant
24244 should be "S number", not "SS number".
24245 (Get_Encoded_Name): Return at once if not generating code. Avoids name
24246 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
24247
242482005-06-14 Thomas Quinot <quinot@adacore.com>
24249
24250 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
24251 RACW without any primitives, do not generate the if statement for
24252 dispatching by name in the PolyORB/DSA case, as it would be malformed
24253 (it would have an Elsif_Parts list that is not No_List, but with a
24254 length of 0).
24255
242562005-06-14 Robert Dewar <dewar@adacore.com>
24257
24258 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
24259
242602005-06-14 Jose Ruiz <ruiz@adacore.com>
24261
24262 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
24263 can determine whether pragma Suppress_Exception_Locations is in effect.
24264
24265 * utils2.c (build_call_raise): Do not pass the file name to the
24266 exception handler if pragma Suppress_Exception_Locations is in effect.
24267 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
24268
242692005-06-14 Emmanuel Briot <briot@adacore.com>
24270
24271 * g-debpoo.adb (Deallocate, Dereference): Improve output.
24272
242732005-06-14 Nicolas Roche <roche@adacore.com>
24274
24275 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
24276 to ""
24277 (Next_Level): Fix minor bug in handling of ../dir case
24278 (Read): Add dir separator to Directory name so that "" is understood as
24279 "/"
24280
242812005-06-14 Pascal Obry <obry@adacore.com>
24282
24283 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
24284 releasing the items.
24285
242862005-06-14 Vincent Celier <celier@adacore.com>
24287 Cyrille Comar <comar@adacore.com>
24288
24289 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
24290 with output file descriptor and with output file name.
24291 (Dup, Dup2): Now global procedures as they are used by two subprograms
24292 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
24293
242942005-06-14 Thomas Quinot <quinot@adacore.com>
24295
24296 PR ada/6717
0adcdb66
AC
24297 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
24298 broadcast address.
24299 (Create_Selector): Bind listening socket used to create the signalling
24300 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
24301 Set listen backlog to 1 to ensure that we detect socket theft by a
24302 failure of our own connect(2) call.
24303 (Check_Selector): Improve documentation of the selector mechanism.
24304 (Broadcast_Inet_Addr): New constant.
24305
243062005-06-14 Gary Dismukes <dismukes@adacore.com>
24307
24308 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
24309 type which turns out to be an incomplete and incorrect fix.
24310 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
24311 of the type is declared in a record (for determination of insertion
24312 type).
24313 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
24314 a private type and ensure that the primary entity is used for the type
24315 of the newly created function's V formal by taking the Etype of the
24316 view.
24317
243182005-06-14 Javier Miranda <miranda@adacore.com>
24319 Jose Ruiz <ruiz@adacore.com>
24320 Robert Dewar <dewar@adacore.com>
24321 Ed Schonberg <schonberg@adacore.com>
24322
24323 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
24324 that indicates if we are parsing a compilation unit found in a
24325 limited-with clause.
24326 It is use to avoid the circularity check.
24327
24328 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
24329 we are parsing a compilation unit found in a limited-with clause. This
24330 is use to avoid the circularity check.
24331
24332 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
24333 unit as a consequence of parsing a limited-with clause. This is used
24334 to avoid the circularity check.
24335
24336 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
24337 (Analyze_Context): Limited-with clauses are now allowed
24338 in more compilation units.
24339 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
24340 againts previously reported critical errors in context clauses
24341 (Install_Limited_Withed_Unit): Code cleanup plus static detection
24342 of two further errors: renamed subprograms and renamed packages
24343 are not allowed in limited with clauses.
24344 (Install_Siblings): Do not install private_with_clauses on the package
24345 declaration for a non-private child unit.
24346 (Re_Install_Parents): When a parent of the subunit is reinstalled,
24347 reset visibility of child units properly.
24348 (Install_Withed_Unit): When a child unit appears in a with_clause of its
24349 parent, it is immediately visible.
24350
243512005-06-14 Ed Schonberg <schonberg@adacore.com>
24352 Emmanuel Briot <briot@adacore.com>
24353
24354 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
24355 declared within an inlined body as referenced, to prevent spurious
24356 warnings.
24357 (Output_One_Ref): If an entity renames an array component, indicate in
24358 the ALI file that this aliases (renames) the array. Capture as well
24359 function renamings that rename predefined operations.
24360 Add information about generic parent for package and subprogram
24361 instances.
24362 (Get_Type_Reference): For a subtype that is the renaming of an actual in
24363 an instantiation, use the first_subtype to ensure that we don't generate
24364 cross-reference information for internal types.
24365 For objects and parameters of a generic private type, retain the '*'
24366 indicator to distinguish such an entity from its type.
24367
6f7f72f9
EB
24368 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
24369 to store information about instantiated entities.
0adcdb66 24370
6f7f72f9
EB
24371 * ali.adb (Scan_ALI): Add support for parsing the reference to the
24372 generic parent
0adcdb66 24373
6f7f72f9
EB
24374 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
24375 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
24376 information.
0adcdb66
AC
24377
243782005-06-10 Doug Rupp <rupp@adacore.com>
24379 Arnaud Charlet <charlet@adacore.com>
24380 Olivier Hainque <hainque@adacore.com>
24381 Jose Ruiz <ruiz@adacore.com>
24382
24383 * Make-lang.in: Add initialize.o when needed.
24384 Remove obsolete references to RT_FLAGS.
24385 Add missing dependencies for sdefault.o
24386
24387 * initialize.c: New file.
24388
24389 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
24390 [VMS] cond_signal_table: Fix problem in declaration.
24391 [VMS] __gnat_error_handler: rewrite.
24392 Move all __gnat_initialize() routines to initialize.c
24393 Specialize the former "hpux" section to "hppa hpux", as this is what the
24394 section really is here for and we now have other hpux ports that need
24395 different contents.
24396 (__gnat_adjust_context_for_raise) i386-linux: First version of this
24397 function for this target. Adjust PC by one in the machine context. This
24398 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
24399 it is more reliable to do that in the signal handler itself.
24400 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
24401 flags, so that the handler is passed the context structure to adjust
24402 prior to the raise.
24403 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
24404 SA_SIGINFO sigaction should look like. Call
24405 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
24406 Machine_State_Operations stuff.
24407 Add conditional code so that the x86_64 is also supported.
24408
244092005-06-14 Pascal Obry <obry@adacore.com>
24410
24411 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
24412 the library name.
24413
244142005-06-14 Robert Dewar <dewar@adacore.com>
24415
24416 * opt.ads, opt.adb: New flags for persistent_bss mode
24417 Add Ada_Version_Explicit, for implementation of AI-362
24418 Add Assertions_Enabled_Config and associated handling
24419 Needed since setting can be changed with Assertion_Policy pragma
24420 Add new flag Warn_On_Ada_2005_Compatibility
24421
24422 * switch-c.adb: Recognize -gnatwy/Y
24423 Set Ada_Version_Explicit, for implementation of AI-362
24424 The -gnatg switch now includes -gnatyu
24425
24426 * usage.adb: Add -gnatwy/Y
24427 Remove wrong asterisk on -gnatwX line
24428 Add line for -gnatyu switch
24429
244302005-06-14 Vincent Celier <celier@adacore.com>
24431
24432 * osint.adb (Add_Default_Search_Dirs): Put source and object
24433 directories of project files before directories coming from
24434 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
24435
244362005-06-14 Robert Dewar <dewar@adacore.com>
24437
24438 PR ada/15613
0adcdb66
AC
24439 * par-ch2.adb (Scan_Pragma_Argument): New procedure
24440 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
24441
244422005-06-14 Vincent Celier <celier@adacore.com>
24443
24444 * prep.adb (Preprocess): Ignore error when scanning the first token of
24445 a line.
24446
244472005-06-14 Vincent Celier <celier@adacore.com>
24448
24449 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
24450 (Check_Stand_Alone_Library): If the specified reference symbol file does
24451 not exist, only issue a warning when the symbol policy is not
24452 Controlled. And, when symbol policy is Compliant, set the symbol
24453 policy to Autonomous.
24454
244552005-06-14 Vincent Celier <celier@adacore.com>
24456
24457 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
24458 when the project file in a with clause is not the last one, that is the
24459 project file name is followed by a comma.
24460 * prj-pp.adb: (First_With_In_List): New Boolean global variable
24461 (Print): Issue list of project files separated by commas in with clauses
24462 according to the values returned by Is_Not_Last_In_List.
24463 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
24464 (Set_Is_Not_Last_In_List): New procedure
24465
244662005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24467
24468 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
24469
244702005-06-14 Robert Dewar <dewar@adacore.com>
24471
24472 * scng.adb: Add call to new Check_EOF routine
24473 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
24474 Add some comments regarding wide character handling
24475
24476 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
24477
24478 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
24479
24480 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
24481 characters are now considered graphic characters and hence yield false
24482 in this call.
24483
6f7f72f9
EB
24484 * nmake.adt: Modify header so that xnmake does not generate output
24485 files with multiple blank lines.
0adcdb66 24486
6f7f72f9
EB
24487 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24488 not have an extra blank line
0adcdb66
AC
24489
244902005-06-14 Gary Dismukes <dismukes@adacore.com>
24491
24492 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
24493 expression when the component type is an anonymous access type to
24494 ensure that appropriate accessibility checks are done.
24495
24496 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
24497 expression of an assignment when the target object is of an anonymous
24498 access type. This ensures that required accessibility checks are done.
24499 (One_Bound): Move the check for type Universal_Integer to
24500 Process_Bounds.
24501 (Process_Bounds): Check whether the type of the preanalyzed range is
24502 Universal_Integer, and in that case set Typ to Integer_Type prior
24503 to setting the type of the original range and the calls to One_Bound.
24504
245052005-06-14 Ed Schonberg <schonberg@adacore.com>
24506
24507 * sem_case.adb (Expand_Others_Choice): Improve warning.
24508
245092005-06-14 Ed Schonberg <schonberg@adacore.com>
24510
24511 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
24512 constraint of full view if present, when other type is discriminated.
24513 (Eval_Relational_Op): Recognize tests of pointer values against Null,
24514 when the pointer is known to be non-null, and emit appropriate warning.
24515
245162005-06-14 Robert Dewar <dewar@adacore.com>
24517 Ed Schonberg <schonberg@adacore.com>
24518
24519 PR ada/10671
0adcdb66
AC
24520 * sem_prag.adb: Implement pragma Persistent_BSS
24521 Remove obsolete pragma Persistent_Data, Persistent_Object
24522 Set Ada_Version_Explicit, for implementation of AI-362
24523 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
24524 Add processing for pragma Pure_05 and Preelaborate_05
24525 Add processing for Assertion_Policy pragma
24526 Add pragma identifiers for Assert
24527 (Analyze_Pragma, case Assert): Check number of arguments
24528 (Process_Inline): Additional guard against an illegal program, where the
24529 argument of the pragma is undefined, and warnings on redundant
24530 constructs are enabled.
24531 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
24532 Ada_05 to this pragma, specifying that the pragma is only active in
24533 Ada_05 mode.
24534 (Check_Arg_Order): New procedure
24535 Add appropriate calls to this procedure throughout
24536 Also throughout, check entity name before doing any other checks
24537
24538 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
24539 Remove obsolete pragma Persistent_Data, Persistent_Object
24540 Add entries for pragma Pure_05 and Preelaborate_05
24541 Add entries for Assertion_Policy pragma and associated names
24542 Add some names for pragma argument processing
24543
24544 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
24545
245462005-06-14 Ed Schonberg <schonberg@adacore.com>
24547
24548 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
24549 appears within a negation (either from source or as a rewriting of
24550 inequality) adjust text of warning accordingly.
24551
245522005-06-14 Thomas Quinot <quinot@adacore.com>
24553
24554 * s-strxdr.adb: Follow AI95-00132
24555
245562005-06-14 Arnaud Charlet <charlet@adacore.com>
24557
24558 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
24559
245602005-06-14 Arnaud Charlet <charlet@adacore.com>
24561 Jose Ruiz <ruiz@adacore.com>
24562
24563 * s-tposen.adb, s-tpobop.adb
24564 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
24565 the exception id.
24566 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
24567 there is no violation of the Max_Entry_Queue_Length restriction (if it
24568 has been set); Program_Error is raised otherwise.
24569 (Requeue_Call): Before requeuing the task on the target entry queue we
24570 check that there is no violation of the Max_Entry_Queue_Length
24571 restriction (if it has been set); Program_Error is raised otherwise.
24572
245732005-06-14 Robert Dewar <dewar@adacore.com>
24574
24575 * styleg.adb: Fix several remaining problems in -gnatyu switch
24576 Blank line count not reset at start
24577 Scanning outside source buffer in some cases
24578 Confusing message for blanks at end of file
24579 Non-empty blank lines not recognized
24580
24581 * nmake.adt: Modify header so that xnmake does not generate output
24582 files with multiple blank lines.
24583
6f7f72f9
EB
24584 * treeprs.adt: Remove a blank line so that output from xtreeprs does
24585 not have an extra blank line
0adcdb66
AC
24586
245872005-06-14 Sergey Rybin <rybin@adacore.com>
24588
24589 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
24590
245912005-06-14 Doug Rupp <rupp@adacore.com>
24592 Vincent Celier <celier@adacore.com>
24593
24594 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
24595 Update copyright.
24596
24597 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
24598 Remove "Library" command.
24599 Change keyword for style check -gnatyd from NOCRLF to
24600 DOS_LINE_ENDINGS.
24601 Remove useless second style check keyword NONE
24602 Remove help documentation for inexistent style check keyword
24603 RM_COLUMN_LAYOUT.
24604 Add help documentation for style check keywords DOS_LINE_ENDINGS,
24605 UNNECESSARY_BLANK_LINES and XTRA_PARENS
24606 Add UNNECESSARY_BLANK_LINES for -gnatyu
24607 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
24608
6f7f72f9 24609 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
0adcdb66
AC
24610
246112005-06-14 Vincent Celier <celier@adacore.com>
24612
24613 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
24614 gprmake was invoked with -d.
24615 (Compile_Sources): If -d was used, output the "completed ..." message
24616 for each compilation.
24617 (Scan_Arg): Recognize new switch -d
24618 When -c and at least one main is specified, set
24619 Unique_Compile to True to guarantee that no other sources will be
24620 compiled.
24621
246222005-06-14 Matthew Heaney <heaney@adacore.com>
24623
24624 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
24625 * a-swuwha.ads, a-swuwha.adb: New files
24626
24627 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
24628 * a-szuzha.ads, a-szuzha.adb: New files.
24629
24630 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
da8f5fd9
AJ
24631 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
24632 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
24633 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
24634 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
0adcdb66 24635 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
da8f5fd9 24636 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
0adcdb66
AC
24637 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
24638 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
24639 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
24640 Ada 2005 RM.
24641
246422005-06-10 Eric Botcazou <ebotcazou@adacore.com>
24643 Olivier Hainque <hainque@adacore.com>
24644 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24645 Pascal Obry <obry@adacore.com>
24646
24647 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
24648
24649 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
24650 making a temporary around a procedure call because of non-addressable
24651 actual parameter.
24652 (process_freeze_entity): If entity is a private type, capture size
24653 information that may have been computed for the full view.
24654 (tree_transform, case N_Allocator): If have initializing expression,
24655 check type for Has_Constrained_Partial_View and pass that to
24656 build_allocator.
24657 (tree_transform, case N_Return_Statement): Pass extra arg to
24658 build_allocator.
24659
24660 * decl.c (annotate_value): Remove early return if -gnatR is not
24661 specified.
24662 (gnat_to_gnu_field): Don't make a packable type for a component clause
24663 if the position is byte aligned, the field is aliased, and the clause
24664 size isn't a multiple of the packable alignment. It serves no useful
24665 purpose packing-wise and would be rejected later on.
24666 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
24667
24668 PR ada/20515
24669 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
24670 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
24671 instead.
24672 (create_concat_name): Idem.
24673
246742005-06-10 Robert Dewar <dewar@adacore.com>
24675 Eric Botcazou <ebotcazou@adacore.com>
24676 Ben Brosgol <brosgol@adacore.com>
24677 Cyrille Comar <comar@adacore.com>
24678 Sergey Rybin <rybin@adacore.com>
24679 Pascal Obry <obry@adacore.com>
24680
24681 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
24682 Document second argument (Ada_05) of pragma Obsolescent
24683 Add note that call to subprogram marked with pragma Obsolescent
24684 is now considered to be a violation of program Restrictions
24685 (No_Obsolescent_Features).
24686 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
24687 that only machine-dependent attributes are supported.
24688
da8f5fd9 24689 * gnat_ugn.texi:
0adcdb66
AC
24690 Commented out menu lines and empty section for gnatclean examples
24691 Document -gnatwy/Y
24692 Fix some over long lines
24693 Clarify and enhance documentation of ADA_PROJECT_PATH.
24694 Rework section 2.11.2(3) about linking with a non-GNU compiler.
24695 Mention new switch -fcallgraph-info.
24696 Mention new switch -fstack-usage.
24697 For gnatpp, replace '-notab' with '-N' and add this option to Index
24698 Corrected VMS example.
24699 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
24700 Minor reformatting
24701 Add documentation for -gnatyu switch (unnecessary blank lines)
24702 Document new switch -U for GNAT PRETTY and GNAT METRIC
24703 Add note about Stdcall being handled as C convention on non Windows OS.
24704 Remove some junk typo in description of gnatbind -S switch
24705 Remove reference to Extensions_Allowed pragma
24706 Document the new order of the directories to be searched (source and
24707 object directories of project files before directories in ADA_*_PATH
24708 environment variables.
24709
6f7f72f9 24710 * g-trasym.ads: Document that IRIX is supported
0adcdb66
AC
24711
247122005-06-10 Arnaud Charlet <charlet@adacore.com>
24713
24714 * Makefile.in: Add initialize.o when needed.
24715 Adapt to new VMS package body Symbols and subunits
24716 No specialized version of a-sytaco is needed for VxWorks.
24717
24718 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
24719 * a-zchara.ads, a-widcha.ads: New files.
24720
24721 * system-hpux-ia64.ads: New file.
24722
24723 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
24724 is imported from the VxWorks kernel.
24725
247262005-06-14 Robert Dewar <dewar@adacore.com>
24727
24728 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
24729 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
24730 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
24731 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
24732 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
24733 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
24734 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
24735 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
24736 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
24737 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
24738 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
24739 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
24740
247412005-06-14 Thomas Quinot <quinot@adacore.com>
24742
24743 * xeinfo.adb: Fix typo in comment
24744
247452005-06-14 Javier Miranda <miranda@adacore.com>
24746
24747 * repinfo.ads: Fix typo in comment
24748
247492005-06-14 Gary Dismukes <dismukes@adacore.com>
24750
24751 * s-finimp.adb (Parent_Tag): Delete this imported function (function
24752 Parent_Tag is now in the visible part of Ada.Tags).
24753 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
24754 using imported function.
24755
247562005-06-14 Bernard Banner <banner@adacore.com>
24757
24758 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
24759 also apply for handling support for VxSim 653.
24760
247612005-06-14 Eric Botcazou <ebotcazou@adacore.com>
24762
24763 * xsnames.adb: Add automatic generation of snames.h.
24764
247652005-06-14 Thomas Quinot <quinot@adacore.com>
24766
24767 * gen-soccon.c: Add IP_MULTICAST_IF constant
24768 Minor reformatting and adjustments to prevent warnings.
24769
247702005-06-14 Pascal Obry <obry@adacore.com>
24771
24772 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
24773
e0d161cf
AP
247742005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
24775
24776 * trans.c (gnat_gimplify_expr): Call
24777 recompute_tree_invarant_for_addr_expr when we change
24778 the operand of the ADDR_EXPR.
24779
4c714dd4
KG
247802005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24781
24782 * misc.c: Don't include errors.h.
24783
7b9997f3
KG
247842005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24785
24786 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
24787
5ff62c2e
KH
247882005-05-29 Kazu Hirata <kazu@cs.umass.edu>
24789
24790 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
24791 comment typos.
24792 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
24793
9e94c78f 247942005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
8b37cc64
NN
24795
24796 PR ada/20270
24797 * Makefile.in: Make TGT_LIB behave correctly.
24798
d4ee4d25
DD
247992005-04-23 DJ Delorie <dj@redhat.com>
24800
24801 * misc.c: Adjust warning() callers.
24802
9e94c78f 248032005-04-16 Laurent Guerby <laurent@guerby.net>
159921c0 24804
6f7f72f9
EB
24805 PR ada/18847
24806 * a-nudira.adb (Value): Check for valid string.
24807 * a-nuflra.adb (Value): Likewise.
159921c0 24808
0b026622
RS
248092005-04-11 Richard Sandiford <rsandifo@redhat.com>
24810
24811 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
24812
bde83138
KH
248132005-04-10 Kazu Hirata <kazu@cs.umass.edu>
24814
24815 * adaint.c, init.c, tracebak.c: Fix comment typos.
24816 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
24817
9e94c78f 248182005-04-07 Laurent Guerby <laurent@guerby.net>
ad9945b5
LG
24819 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24820
24821 * Makefile.in: Add make ifeq define for hppa linux tasking support.
24822 * system-hpux.ads: Define Signed_Zeros to be True.
24823 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
24824
45f7cb60
KH
248252005-04-01 Kazu Hirata <kazu@cs.umass.edu>
24826
24827 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
24828 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
24829 typos.
24830
5662a50d
TT
248312005-03-30 Tom Tromey <tromey@redhat.com>
24832
24833 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
24834
e6e375cc
AL
248352005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
24836
24837 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
24838
5db8bc34
AC
248392005-03-29 Robert Dewar <dewar@adacore.com>
24840
24841 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
24842 fixed-point expression has value that is not a multiple of the Small
24843 value.
24844
24845 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
24846
24847 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
24848 nanoseconds.
24849
24850 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
24851
248522005-03-29 Vincent Celier <celier@adacore.com>
24853
24854 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
24855 (Build_Dynamic_Library.Version_String): Return the empty string when
24856 Lib_Version is empty or when the symbol policy is not Autonomous.
24857
24858 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
24859 a symbol is not in the reference symbol file, increase the Major ID
24860 and set the Minor ID to 0.
24861 Use gsmatch=lequal instead of gsmatch=equal
24862
248632005-03-29 Doug Rupp <rupp@adacore.com>
24864
24865 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
24866 name and translate.
24867
248682005-03-29 Javier Miranda <miranda@adacore.com>
24869
24870 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
24871 (Inherit_DT): The first formal has been redefined as a Tag.
24872 This allows us the removal of the subprogram Get_TSD.
24873 (TSD): Replace the call to Get_TSD by the actual code.
24874
24875 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
24876 (Make_DT): Upgrade the call to Inherit_TSD according to the
24877 new interface: the first formal is now a Tag.
24878
24879 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
24880 redefined as a Tag.
24881 This change allows us to remove the subprogram Get_TSD.
24882 (CPP_Get_TSD): Subprogram removed.
24883 (TSD): Replace the call to CPP_Get_TSD by the actual code.
24884
24885 * rtsfind.ads: Remove support to call the run-time
24886 subprogram Get_TSD
24887
248882005-03-29 Robert Dewar <dewar@adacore.com>
24889
da8f5fd9 24890 * errutil.adb, errout.adb:
5db8bc34
AC
24891 Minor comment updates on Line_Terminator references
24892
24893 * par-ch10.adb: Add ??? comment about line terminator
24894
24895 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
24896 (check dos line terminator).
24897 (Check_Line_Max_Length): New procedure, split off from the existing
24898 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24899 be properly recognized.
24900
24901 * styleg.adb: Add ??? comment for line terminator reference
24902
24903 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
24904 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
24905
24906 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
24907 (check dos line terminator).
24908 (Check_Line_Max_Length): New procedure, split off from the existing
24909 Check_Line_Terminator routine. Separating this out allows -gnatyf to
24910 be properly recognized.
24911
da8f5fd9 24912 * stylesw.ads, stylesw.adb:
5db8bc34
AC
24913 Add handling for new -gnatyd switch (check dos line terminator)
24914
24915 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
24916 Recognize -gnatwb/-gnatwB switches
24917 Include Warn_On_Bad_Fixed_Value for -gnatg
24918
da8f5fd9 24919 * usage.adb:
5db8bc34
AC
24920 Add line for new -gnatyd switch (check dos line terminator)
24921
24922 * usage.adb: Add lines for -gnatwb/-gnatwB
24923
24924 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
24925
24926 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
24927
24928 * gnat_ugn.texi: Fix overlong lines
24929 Document new -gnatyd switch
24930 Document new -gnatwb/-gnatwB switches
24931
249322005-03-29 Ed Schonberg <schonberg@adacore.com>
24933
24934 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
24935 order to retrieve the component list of the type, before examining
24936 individual components.
24937
24938 * sem_type.adb (Covers): Types are compatible if one is the base type
24939 of the other, even though their base types might differ when private
24940 views are involved.
24941
249422005-03-29 Thomas Quinot <quinot@adacore.com>
24943
24944 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
24945 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
24946 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
24947 analyzed if expansion is disabled (which could otherwise cause spurious
24948 error messages if expansion has been disabled due to previous
24949 (unrelated) errors).
24950
24951 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
24952 is disabled, the entity denoted by the argument is the access type
24953 itself, not an underlying record type, so there is no need to go back
24954 to the Corresponding_Remote_Type.
24955
249562005-03-29 Gary Dismukes <dismukes@adacore.com>
24957 Robert Dewar <dewar@adacore.com>
24958
24959 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
24960 expand a call to an instance of
24961 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
24962 Constructor actual of the instance. A class-wide membership
24963 check is also generated, to ensure that the tag passed to the instance
24964 denotes a type in the class.
24965 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
24966 of Name_Generic_Dispatching_Constructor.
24967
24968 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
24969 05 unit for AI-260-02).
24970
24971 * a-tgdico.ads: New file.
24972
24973 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
24974 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
24975
24976 * snames.ads, snames.adb (Preset_Names): Add entry for
24977 Generic_Dispatching_Constructor.
24978
24979 PR ada/20300
5db8bc34
AC
24980 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
24981 character type cases.
24982 (Analyze_Subprogram_Renaming): Add special handling for
24983 the case of renaming of stream attributes when the renaming denotes a
24984 generic formal subprogram association for an abstract formal subprogram.
24985 Check that the attribute is a primitive stream attribute (and not
24986 a class-wide stream attribute) and then rewrite the attribute name
24987 as the name of the appropriate compiler-generated stream primitive.
24988
249892005-03-29 Robert Dewar <dewar@adacore.com>
24990
24991 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
24992 recursive calls.
24993 (Is_Possibly_Unaligned_Object): Correct typo that
24994 resulted in inaccurate result for unaligned scalars within records.
24995
249962005-03-29 Ed Schonberg <schonberg@adacore.com>
24997
24998 * freeze.adb (Freeze_Record_Type): If the type of the component is an
24999 itype whose parent is controlled and not yet frozen, do not create a
25000 freeze node for the itype if expansion is disabled.
25001
250022005-03-29 Vincent Celier <celier@adacore.com>
25003
25004 * make.adb (Gnatmake): Don't fail if the main project file is declared
25005 as having no Ada sources. Do not display message "no sources to
25006 compile" in quiet output.
25007
250082005-03-29 Doug Rupp <rupp@adacore.com>
25009
25010 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
25011 extra tools.
25012
250132005-03-29 Robert Dewar <dewar@adacore.com>
25014
25015 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
25016 child.
25017
250182005-03-29 Robert Dewar <dewar@adacore.com>
25019
25020 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
25021 missing TYPE Improve the error message generated when compiling a
25022 limited interface in Ada83 or Ada95 mode.
25023
250242005-03-29 Robert Dewar <dewar@adacore.com>
25025
25026 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
25027 rather than proceed ahead using a junk attribute name.
25028
250292005-03-29 Vincent Celier <celier@adacore.com>
25030
25031 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
25032
25033 * prj-part.adb (Parse_Single_Project): Set the location of a project
25034 on its defining identifier, rather than on the reserved word "project".
25035
25036 * prj-proc.adb (Expression): Adapt to the fact that default of external
25037 references may be string expressions, not always literal strings.
25038 (Recursive_Process): Set Display_Name equal to Name
25039 when Location is No_Location, that is when there is no actual file.
25040 Get the Display_Name of the project from the source, when it is not a
25041 virtual project.
25042 (Process): Use the Display_Name in error messages
25043
25044 * prj-strt.adb (External_Reference): Allow default to be string
25045 expressions, not only literal strings.
25046
250472005-03-29 Vincent Celier <celier@adacore.com>
25048
25049 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
25050 file and the reference symbol file to be the same file.
25051
250522005-03-29 Thomas Quinot <quinot@adacore.com>
25053
25054 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
25055 forbid conversion of a local access-to-subprogram type to a remote one.
25056
25057 * sem_util.adb (Wrong_Type): For a record type that is the expanded
25058 equivalent type for a remote access-to-subprogram type, go back to the
25059 original RAS entity when displaying an error message, so the casing is
25060 the original source casing.
25061
250622005-03-29 Robert Dewar <dewar@adacore.com>
25063
25064 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
25065 on param update.
25066
250672005-03-29 Ed Schonberg <schonberg@adacore.com>
25068
25069 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
25070 subtype if code is being pre-analyzed, to prevent un-expanded
25071 references to protected formals, among others.
25072 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
25073 interpretation that can be a call, include the result of the call as a
25074 possible interpretation of the dereference.
25075
25076 * sem_ch5.adb (Process_Bounds): Determine type of range by
25077 pre-analyzing a copy of the original range, and then analyze the range
25078 with the expected type.
25079
25080 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
25081 with an overloaded prefix where not all interpretations yield an
25082 access to subprogram, do not rewrite node as a call.
25083 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
25084 the node as a call once the context identifies the interpretation of
25085 the prefix whose call yields the context type.
25086 (Valid_Conversion): For the case of a conversion between
25087 local access-to-subprogram types, check subtype conformance using
25088 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
25089 detailed error message.
25090
250912005-03-29 Ed Schonberg <schonberg@adacore.com>
25092
25093 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
25094 indicator, indicate that the formal can never be null.
25095 (Process_Formals): If a formal has a non_null indicator, insert the
25096 resulting subtype immediately before the enclosing subprogram decl,
25097 and not at the beginning of the corresponding declarative part, to
25098 prevent access before elaboration (Ada2005).
25099
251002005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25101
25102 PR ada/19956
25103 * utils.c (finish_record_type): Use variable_size when setting sizes.
25104
251052005-03-29 Robert Dewar <dewar@adacore.com>
25106
25107 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
25108 guarantee Unix style line terminators for the output files, even when
25109 running on windows.
25110
251112005-03-29 Robert Dewar <dewar@adacore.com>
25112
25113 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
25114 buffer if an exception is raised.
25115
251162005-03-29 Ed Falis <falis@adacore.com>
25117
25118 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
25119 VxWorks 653 1.4
25120
251212005-03-29 Robert Dewar <dewar@adacore.com>
25122
25123 * sem_util.ads: Minor reformatting
25124 * gnat_rm.texi: Minor editing.
25125
251262005-03-29 Eric Botcazou <ebotcazou@adacore.com>
25127
25128 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
25129 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
25130
aad9ff31
AL
251312005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
25132
25133 * adaint.c (__gnat_portable_spawn): Adjust cast.
25134
d101034c
JM
251352005-03-23 Joseph S. Myers <joseph@codesourcery.com>
25136
25137 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
25138
3a0c4f5a
AC
251392005-03-17 Pascal Obry <obry@adacore.com>
25140
25141 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
25142 used.
25143
25144 * expect.c (__gnat_waitpid): Moved here from adaint.c.
25145 Reimplement under Win32 using Win32 API.
25146
25147 (__gnat_kill) [Win32]: Properly close the process handle before leaving
25148 this routine.
25149
251502005-03-17 Eric Botcazou <ebotcazou@adacore.com>
25151
25152 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
25153 (DECL_RENAMED_OBJECT): New accessor macro.
25154 (SET_DECL_RENAMED_OBJECT): New setter macro.
25155
25156 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
25157 object in all cases. Attach the renamed object to the VAR_DECL.
25158 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
25159 field is not prescribed.
25160
25161 * misc.c (gnat_handle_option): Handle -gnatO separately.
25162 (gnat_print_decl) <VAR_DECL>: New case.
25163 Print the DECL_RENAMED_OBJECT node.
25164
25165 * lang.opt: Declare separate -gnatO option.
25166
25167 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
25168 pointer, replace it with the renamed object.
25169 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
25170 pointer type if the source is not a fat pointer type whose underlying
25171 array has the same non-zero alias set as that of the destination array.
25172
251732005-03-17 Javier Miranda <miranda@adacore.com>
25174
25175 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
25176 (Get_Inheritance_Depth): Removed.
25177 (Set_Inheritance_Depth): Removed.
25178
25179 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
25180 subprogram Get_Expanded_Name because it is not referenced by the
25181 frontend.
25182
25183 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
25184 (CPP_Get_Inheritance_Depth): Removed.
25185 (CPP_Set_Inheritance_Depth): Removed.
25186
25187 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
25188
251892005-03-17 Robert Dewar <dewar@adacore.com>
25190
25191 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
25192 3, since we now expect GCC 3 to do all the work.
25193
251942005-03-17 Javier Miranda <miranda@adacore.com>
25195
25196 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
25197 of one barrier to avoid wrong usage of this attribute.
25198
25199 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
25200 First_Private_Entity.
25201
25202 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
25203 the subprogram against wrong usage.
25204 Adapt the code to traverse the entities in the
25205 scope of a record_type because in addition to its usage regarding
25206 packages, this subprogram is also called by Expand_N_Freeze_Entity
25207 to install the visible declarations of the enclosing scope of a
25208 record_type_with_private to establish the proper visibility before
25209 freezing the entity and related subprograms.
25210
252112005-03-17 Ed Schonberg <schonberg@adacore.com>
25212
25213 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
25214 entry formals.
25215
252162005-03-17 Thomas Quinot <quinot@adacore.com>
25217
25218 * exp_ch3.adb (Check_Attr): New subprogram.
25219 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
25220 into a new Check_Attr subprogram, in order to provide a more
25221 explanatory error message (including the name of the missing attribute).
25222 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
25223 subprogram determines whether a default implementation exists for a
25224 given stream attribute.
25225 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
25226 Determine whether to generate a default implementation for each stream
25227 attribute separately, as this depends on the specific attribute.
25228
25229 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
25230 limited extension where a stream attribute is missing for a limited
25231 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
25232 generate a bogus reference to the missing attribute to prevent
25233 cascaded errors. Instead, generate a null statement.
25234
25235 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
25236 available for a limited type if it has been specified for an ancestor
25237 of the type.
25238
252392005-03-17 Ed Schonberg <schonberg@adacore.com>
25240
25241 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
25242 entity is an operator.
25243
252442005-03-17 Thomas Quinot <quinot@adacore.com>
25245
25246 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25247 spec, to make this predicate available to other units.
25248
25249 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
25250 reimplementing it.
25251
25252 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
25253 when no distribution runtime library is available.
25254
25255 * sem_res.adb, sem_dist.adb: Disable expansion of remote
25256 access-to-subprogram types when no distribution runtime library is
25257 available.
25258 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
25259 predicate available to other units.
25260
25261 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
25262 spec, to make this predicate available to other units.
25263
252642005-03-17 Vincent Celier <celier@adacore.com>
25265
25266 * make.adb (Insert_Project_Sources): Make sure the Q is always
25267 initialized.
25268
25269 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
25270 the default for the tree, not the global default naming.
25271
25272 * prj-proc.adb (Recursive_Process): No need to put the default naming
25273 in the project data, it's already there.
25274
252752005-03-17 Doug Rupp <rupp@adacore.com>
25276
25277 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
25278
6f7f72f9
EB
25279 * 5xcrtl.ads: Renamed to...
25280 * s-crtl-vms64.ads: ...this new file
3a0c4f5a
AC
25281
252822005-03-17 Robert Dewar <dewar@adacore.com>
25283
25284 PR ada/19519
3a0c4f5a
AC
25285 * namet.adb (Copy_One_Character): Set proper wide character encoding
25286 for upper half character if we have upper half encoding.
25287
252882005-03-17 Robert Dewar <dewar@adacore.com>
25289
25290 * par.adb (Par): Improved msg for attempt to recompile predefined unit
25291
252922005-03-17 Thomas Quinot <quinot@adacore.com>
25293
25294 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
25295 tagged limited type, the TSS is a newly built renaming declaration:
25296 insert it using Set_TSS, not Copy_TSS.
25297
252982005-03-17 Javier Miranda <miranda@adacore.com>
25299
25300 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
25301 Try_Object_Operation): Analyze the object that is accessible
25302 through the prefix of the subprogram call before we apply
25303 the transformation of the object-operation notation.
25304
253052005-03-17 Jose Ruiz <ruiz@adacore.com>
25306
25307 * s-taprob.adb (Initialize_Protection): Initialize the protected
25308 object's owner to Null_Task.
25309 (Lock): If pragma Detect_Blocking is in effect and the caller of this
25310 procedure is already the protected object's owner then Program_Error
25311 is raised. In addition the protected object's owner is updated.
25312 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
25313 of this procedure is already the protected object's owner then
25314 Program_Error is raised.
25315 In addition the protected object's owner is updated.
25316 (Unlock): Remove the ownership of the protected object.
25317
25318 * s-taprob.ads (Protection): Add the field Owner, used to store the
25319 protected object's owner.
25320 This component is needed for detecting one type of potentially blocking
25321 operations (external calls on a protected subprogram with the same
25322 target object as that of the protected action). Document the rest of
25323 the components.
25324
25325 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
25326 Initialize the protected object's owner to Null_Task.
25327 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
25328 caller of this procedure is already the protected object's owner then
25329 Program_Error is raised.
25330 Do not raise Program_Error when this procedure is called from a
25331 protected action.
25332 (Unlock_Entries): Remove the ownership of the protected object.
25333 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
25334 of this procedure is already the protected object's owner then
25335 Program_Error is raised.
25336 Do not raise Program_Error when this procedure is called from
25337 a protected action.
25338
25339 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
25340 used to store the protected object's owner.
25341
25342 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
25343 effect and this procedure (a potentially blocking operation) is called
25344 from whithin a protected action, Program_Error is raised.
25345 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
25346 and this procedure (a potentially blocking operation) is called from
25347 whithin a protected action, Program_Error is raised.
25348
253492005-03-17 Vincent Celier <celier@adacore.com>
25350 Nicolas Setton <setton@adacore.com>
25351
25352 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
25353 switch, not supported by the linker on Darwin. Add '_' before
25354 <library>init, as this character is added unconditionally by the
25355 compiler.
25356 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
25357 correct one ".dylib". This fixes detection of the archive files when
25358 building library projects.
25359
253602005-03-17 Vincent Celier <celier@adacore.com>
25361
25362 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
25363 -gnat83, -gnat95 and -gnat05.
25364
253652005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
25366
25367 * gnat_ugn.texi: Document gnatmem restriction
25368
253692005-03-17 Thomas Quinot <quinot@adacore.com>
25370
25371 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
25372 cleanup
25373
253742005-03-17 Robert Dewar <dewar@adacore.com>
25375
25376 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
25377 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
25378 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
25379
25380 * casing.adb: Comment improvements
25381
253822005-03-17 Pascal Obry <obry@adacore.com>
25383
25384 * g-expect.adb: Minor reformatting.
25385
a1286ef5
ZW
253862005-03-15 Zack Weinberg <zack@codesourcery.com>
25387
25388 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
25389 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
25390 to dependencies.
25391
2532808d
VC
253922005-03-15 Vincent Celier <celier@adacore.com>
25393
a1286ef5
ZW
25394 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
25395 Add new parameter In_Tree to specify the project tree: needed
25396 by the project manager. Adapt to changes in project manager
25397 using new parameter In_Tree.
2532808d 25398
e2d6b9b9
JJ
253992005-03-15 Jakub Jelinek <jakub@redhat.com>
25400
25401 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
25402 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
25403 ada/bldtools to avoid make -jN failures.
25404
813edff1
EB
254052005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25406
25407 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
25408 to NULL_TREE on entry.
25409
4f51c6e7
AC
254102005-03-15 Robert Dewar <dewar@adacore.com>
25411
25412 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
25413 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
25414 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
25415 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
25416 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
25417 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
25418 system-interix.ads, system-solaris-sparc.ads,
25419 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
25420 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
25421 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
25422 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
25423 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
25424 Compiler_System_Version to be False.
25425
25426 * opt.ads: Add new flag Opt.Address_Is_Private
25427
25428 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
25429 Add new parameter Compiler_System_Version to avoid checking for
25430 completeness of parameters when compiler is compiling itself.
25431 Allows old versions of GNAT to be compiled with new compiler.
25432
254332005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25434
25435 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
25436 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
25437 calling thread.
25438 (Stack_Base_Available): New flag.
25439 (Get_Page_Size): New overloaded functions imported from C.
25440 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
25441 PROT_ON, PROT_OFF): New constants.
25442 (mprotect): New function imported from C.
25443 (pthread_teb_t): New record type.
25444
25445 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
25446 (Create_Task): Account for the Yellow Zone and the guard page.
25447
254482005-03-15 Vincent Celier <celier@adacore.com>
25449
25450 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25451 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25452 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25453 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
25454 Library_File_Name_For): Add new parameter In_Tree
25455 to specify the project tree: needed by the project manager.
25456 Adapt to changes in project manager using new parameter In_Tree.
25457 Remove local imports, use functions in System.CRTL.
25458
25459 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
25460 to use the project manager.
25461
25462 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
25463 In_Tree to designate the project tree. Adapt to changes in the project
25464 manager, using In_Tree.
25465
25466 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
25467 Copy_Interface_Sources): Add new parameter In_Tree to specify the
25468 project tree: needed by the project manager.
25469 (Build_Library): Check that Arg'Length >= 6 before checking if it
25470 contains "--RTS=...".
25471
25472 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
25473 Library_File_Name_For): Add new parameter In_Tree to specify the
25474 project tree: needed by the project manager.
25475
25476 * prj.ads, prj.adb: Major modifications to allow several project trees
25477 in memory at the same time.
25478 Change tables to dynamic tables and hash tables to dynamic hash
25479 tables. Move tables and hash tables from Prj.Com (in the visible part)
25480 and Prj.Env (in the private part). Move some constants from the visible
25481 part to the private part. Make other constants deferred.
25482 (Project_Empty): Make it a variable, not a function
25483 (Empty_Project): Add parameter Tree. Returns the data with the default
25484 naming data of the project tree Tree.
25485 (Initialize): After updating Std_Naming_Data, copy its value to the
25486 component Naming of Project Empty.
25487 (Register_Default_Naming_Scheme): Use and update the default naming
25488 component of the project tree, instead of the global variable
25489 Std_Naming_Data.
25490 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
25491 Tree is not defaulted, return the default naming data of the Tree.
25492 (Initial_Buffer_Size): Constant moved from private part
25493 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
25494 variables initialized in procedure Initialize.
25495 (Add_To_Buffer): Add two in out parameters to replace global variables
25496 Buffer and Buffer_Last.
25497 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
25498 functions.
25499 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
25500 hash tables.
25501 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25502 for the project tree.
25503 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
25504 constant at the beginning of the package spec, so that they cane be used
25505 in subprograms before their full declarations.
25506 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
25507 (Empty_Project): Add parameter of type Project_Node_Ref
25508 (Private_Project_Tree_Data): Add component Default_Naming of type
25509 Naming_Data.
25510 (Buffer, Buffer_Last): remove global variables
25511 (Add_To_Buffer): Add two in out parameters to replace global variables
25512 Buffer and Buffer_Last.
25513 (Current_Packages_To_Check): Remove global variable
25514 (Empty_Name): Move to private part
25515 (No-Symbols): Make it a constant
25516 (Private_Project_Tree_Data): New type for the private part of the
25517 project tree data.
25518 (Project_Tree_Data): New type for the data of a project tree
25519 (Project_Tree_Ref): New type to designate a project tree
25520 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
25521 for the project tree.
25522
25523 * prj-attr.ads: Add with Table; needed, as package Prj no longer
25524 imports package Table.
25525
25526 * prj-com.adb: Remove empty, no longer needed body
25527
25528 * prj-com.ads: Move most of the content of this package to package Prj.
25529
25530 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
25531 designate the project node tree and Packages_To_Check to replace
25532 global variable Current_Packages_To_Check.
25533 Add new parameters In_Tree and Packages_To_Check to local subprograms,
25534 when needed. Adapt to changes in project manager with project node tree
25535 In_Tree.
25536
25537 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
25538 project tree to most subprograms. Move tables and hash tables to
25539 private part of package Prj.
25540 Adapt to changes in project manager using project tree In_Tree.
25541
25542 * prj-makr.adb (Tree): New constant to designate the project node tree
25543 Adapt to change in project manager using project node tree Tree
25544
25545 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
25546 display the Library_Src_Dir and the Library_Dir.
25547 Add new parameter In_Tree to designate the project node tree to most
25548 subprograms. Adapt to changes in the project manager, using project tree
25549 In_Tree.
25550 (Check_Naming_Scheme): Do not alter the casing on platforms where
25551 the casing of file names is not significant.
25552 (Check): Add new parameter In_Tree to designate the
25553
25554 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
25555 designate the project tree.
25556 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
25557
25558 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
25559 to replace those that were in the private part of package Prj.
25560 Add new parameter In__Tree to designate the project node tree to most
25561 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25562 (Post_Parse_Context_Clause): When specifying the project node of a with
25563 clause, indicate that it is a limited with only if there is "limited"
25564 in the with clause, not necessarily when In_Limited is True.
25565 (Parse): Add new parameter In_Tree to designate the project node tree
25566
25567 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
25568 designate the project node tree. Adapt to change in Prj.Tree with
25569 project node tree In_Tree.
25570
25571 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
25572 tree In_Tree in the call to function Empty_Process to give its initial
25573 value to the project data Processed_Data.
25574 Add new parameters In_Tree to designate the project tree and
25575 From_Project_Node_Tree to designate the project node tree to several
25576 subprograms. Adapt to change in project manager with project tree
25577 In_Tree and project node tree From_Project_Node_Tree.
25578
25579 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
25580 to replace those that were in the private part of package Prj.
25581 Add new parameter In_Tree to designate the project node tree to most
25582 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
25583
25584 * prj-tree.ads, prj-tree.adb: Add new parameter of type
25585 Project_Node_Tree_Ref to most subprograms.
25586 Use this new parameter to store project nodes in the designated project
25587 node tree.
25588 (Project_Node_Tree_Ref): New type to designate a project node tree
25589 (Tree_Private_Part): Change table to dynamic table and hash tables to
25590 dynamic hash tables.
25591
25592 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
25593 the project tree to most subprograms. Adapt to changes in project
25594 manager using project tree In_Tree.
25595
25596 * makegpr.adb (Project_Tree): New constant needed to use project
25597 manager.
25598
255992005-03-15 Olivier Hainque <hainque@adacore.com>
25600
25601 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
25602 for sigactions with SA_SIGINFO set. Call
25603 __gnat_adjust_context_for_raise before raising, to perform the
25604 potentially required adjustments to the machine context for the GCC
25605 unwinder.
25606
25607 * raise.h (__gnat_adjust_context_for_raise): New prototype.
25608
25609 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
25610 Adjust PC by one in the provided machine context.
25611 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
25612 so that the handler is passed the context structure to adjust prior to
25613 the raise.
25614 (__gnat_error_handler) HPUX: Adjust the signature to match what an
25615 SA_SIGINFO sigaction should look like. Call
25616 __gnat_adjust_context_for_raise before actually raising.
25617 (__gnat_adjust_context_for_raise): Default noop to help PC
25618 adjustments before raise from signal handlers.
25619 (__gnat_error_handler): Indirectly call a predicate function to
25620 determine if a condition should be resignaled or not.
25621 (__gnat_set_resignal_predicate): User interface to modify the predicate.
25622 (__gnat_default_resignal_p): Default GNAT predicate.
25623
256242005-03-15 Doug Rupp <rupp@adacore.com>
25625
25626 * adaint.c: Prefix #include of VMS system header files with vms/
25627 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
25628 Do not define a dummy function "convert_addresses" under Darwin,
25629 not needed.
25630
25631 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
25632 with vms/
25633
256342005-03-15 Nicolas Setton <setton@adacore.com>
25635
25636 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
25637 PPC/AIX.
25638
256392005-03-15 Robert Dewar <dewar@adacore.com>
25640
25641 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
25642 AI-386.
25643
25644 * a-retide.ads: Minor comment changes
25645
256462005-03-15 Robert Dewar <dewar@adacore.com>
25647
25648 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
25649 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
25650 Realloc_For_Chunk to private part of package.
25651 New subprograms for AI-301
25652
25653 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
25654 Get_Line procedure.
25655 Avoid unnecessary use of Get/Set_Wide_String
25656
256572005-03-15 Robert Dewar <dewar@adacore.com>
25658
25659 PR ada/13470
a1286ef5 25660 * a-stunau.ads, a-stunau.adb:
4f51c6e7
AC
25661 Change interface to allow efficient (and correct) implementation
25662 The previous changes to allow extra space in unbounded strings had
25663 left this interface a bit broken.
25664
25665 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
25666
25667 * g-spipat.ads, g-spipat.adb: New interface for Get_String
25668 Minor reformatting (function specs)
25669
25670 * g-spitbo.adb: New interface for Get_String
25671
25672 * g-spitbo.ads: Minor reformatting
25673
25674 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
25675
25676 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
25677
256782005-03-15 Javier Miranda <miranda@adacore.com>
25679 Robert Dewar <dewar@adacore.com>
25680 Thomas Quinot <quinot@adacore.com>
25681 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25682
25683 * atree.ads, atree.adb: Add support for Elist24 field
25684
25685 * atree.h: Fix wrong definition of Field27
25686 Add support for Elist16 field
25687 Add support for Elist24 field
25688
25689 * einfo.ads, einfo.adb (Abstract_Interfaces,
25690 Set_Abstract_Interfaces): New subprograms.
25691 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
25692 subprograms.
25693 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
25694 entities rather than a single node.
25695 (Is_Interface, Set_Is_Interface): New subprogram
25696 (First_Tag_Component): New syntesized attribute
25697 (Next_Tag_Component): New synthesized attribute
25698 (Write_Entity_Flags): Upgraded to write Is_Interface
25699 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
25700 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
25701 (Task_Body_Procedure): New subprogram to read this attribute.
25702 (Set_Task_Body_Procedure): New subprogram to set this attribute.
25703 (Has_Controlled_Component): Now applies to all entities.
25704 This is only a documentation change, since it always worked to apply
25705 this to other than composite types (yielding false), but now this is
25706 official.
25707 Update documentation on Must_Be_Byte_Aligned for new spec
25708
25709 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
25710 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
25711 uses of the Access_Disp_Table attribute to reference the first dispatch
25712 table associated with a tagged type. As
25713 part of the implementation of abstract interface types,
25714 Access_Disp_Table has been redefined to contain a list of dispatch
25715 tables (rather than a single dispatch table).
25716 Similarly, upgrade all the references to Tag_Component by the
25717 new attribute First_Tag_Component.
25718 (Find_Inherited_TSS): Moved to exp_tss.
25719 Clean up test in Expand_N_Object_Declaration for cases
25720 where we need to do a separate assignment of the initial value.
25721 (Expand_N_Object_Declaration): If the expression in the
25722 declaration of a tagged type is an aggregate, no need to generate an
25723 additional tag assignment.
25724 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
25725 is to be deleted.
25726 Bit packed array ops are only called if operands are known to be
25727 aligned.
25728 (Component_Equality): When returning an N_Raise_Program_Error statement,
25729 ensure that its Etype is set to Empty to avoid confusing GIGI (which
25730 expects that only expressions have a bona fide type).
25731 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
25732 determine the amount of data to be copied.
25733
25734 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
25735 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
25736 INTERFACE_TYPE_DEFINITION ::=
25737 [limited | task | protected | synchronized] interface
a1286ef5 25738 [AND interface_list]
4f51c6e7
AC
25739
25740 * par-ch3.adb (P_Type_Declaration): Modified to give support to
25741 interfaces.
25742 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
25743 interfaces.
25744 (P_Interface_Type_Definition): New subprogram that parses the new
25745 syntax rule of Ada 2005 interfaces
25746 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
25747 messages by the correct RENAMES (quotes removed).
25748
25749 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
25750 attribute First_Tag_Component.
25751
25752 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
25753 (Interface_List, Set_Interface_List): New subprograms.
25754 (Interface_Present, Set_Interface_Present): New subprograms.
25755 (Limited_Present, Set_Limited_Present): Available also in derived
25756 type definition nodes.
25757 (Protected_Present, Set_Protected_Present): Available also in
25758 record type definition and
25759 derived type definition nodes.
25760 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
25761 (Task_Present, Set_Task_Present): New subprogram.
25762 (Task_Body_Procedure): Removed.
25763 (Set_Task_Body_Procedure): Removed.
25764 These subprogram have been removed because the attribute
25765 Task_Body_Procedure has been moved to the corresponding task type
25766 or task subtype entity to leave a field free to store the list
25767 of interfaces implemented by a task (for AI-345)
25768 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
25769 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
25770 expression flag Do_Range_Check
25771 (Exception_Junk): Change to Flag7 to accomodate above change
25772 (Box_Present, Default_Name, Specification, Set_Box_Present,
25773 Set_Default_Name, Set_Specification): Expand the expression
25774 "X in N_Formal_Subprogram_Declaration" into the corresponding
25775 two comparisons. Required to use the csinfo tool.
25776
25777 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
25778 "with string" given.
25779
a1286ef5
ZW
25780 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
25781 expression given.
4f51c6e7
AC
25782
25783 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
25784 in 2005 mode
25785
25786 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
25787 attribute Task_Body_Procedure rather than the old semantic field that
25788 was available in the task_type_declaration node.
25789
25790 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
25791 interface type definitions.
25792 (P_Formal_Derived_Type_Definition): Modified to handle the list of
25793 interfaces.
25794
25795 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
25796 task type declaration.
25797 (P_Protected): Modified to handle the list of interfaces in a
25798 protected type declaration.
25799
258002005-03-15 Doug Rupp <rupp@adacore.com>
25801 Vincent Celier <celier@adacore.com>
25802
25803 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
25804 (Gen_Output_File_C): Likewise.
25805 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
25806
258072005-03-15 Thomas Quinot <quinot@adacore.com>
25808
25809 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
25810 is an N_Raise_Constraint_Error node, create a new copy of it without
25811 going through a call to Duplicate_Subexpr.
25812
258132005-03-15 Eric Botcazou <ebotcazou@adacore.com>
25814 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25815 Nicolas Setton <setton@adacore.com>
25816 Ed Schonberg <schonberg@adacore.com>
25817
25818 PR ada/19900
25819 PR ada/19408
25820 PR ada/19140
25821 PR ada/20255
4f51c6e7
AC
25822 * decl.c (gnat_to_gnu_field): Reject aliased components with a
25823 representation clause that prescribes a size not equal to the rounded
25824 size of their types.
25825 (gnat_to_gnu_entity, case E_Component): Always look at
25826 Original_Record_Component if Present and not the entity.
25827 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
25828 of tagged extension types by not making field for components that are
25829 inside the parent.
25830 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
25831 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
25832 expression to the type of the object when the object is constant.
25833 Reverse defer_debug_incomplete_list before traversing it, so that trees
25834 are processed in the order at which they were added to the list. This
25835 order is important when using the stabs debug format.
25836 If we are deferring the output of debug information, also defer this
25837 output for a function return type.
25838 When adding fields to a record, prevent emitting debug information
25839 for incomplete records, emit the information only when the record is
25840 complete.
25841 (components_to_record): New parameter defer_debug.
25842 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
25843 (gnat_to_gnu_field_decl): New function.
25844 (substitution_list, annotate_rep): Call it.
25845 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
25846 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
25847 No longer update discriminants to not be a COMPONENT_REF.
25848 (copy_alias_set): Strip padding from input type; also handle
25849 unconstrained arrays properly.
25850
25851 * gigi.h (write_record_type_debug_info): New function.
25852 Convert to use ANSI-style prototypes. Remove unused
25853 declarations for emit_stack_check, elab_all_gnat and
25854 set_second_error_entity.
25855 (gnat_to_gnu_field_decl): New decl.
25856
25857 * utils.c (write_record_type_debug_info): New function.
25858 (finish_record_type): Delegate generation of debug information to
25859 write_record_type_debug_info.
25860 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
25861 (update_pointer_to): Fix pasto.
25862 (convert) <UNION_TYPE>: Accept slight type variations when
25863 converting to an unchecked union type.
25864
25865 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
25866 replace the N_Freeze_Entity with a null statement.
25867
25868 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
25869 within a constrained subcomponent of an enclosing record, place the
25870 freeze nodes in the scope stack entry for the enclosing record.
25871 (Undelay_Type): New Subprogram.
25872 (Set_Small_Size): Pass T, the type to modify; all callers changed.
25873 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
25874 within records; allow them to have freeze nodes if their base types
25875 aren't frozen yet.
25876
017205f5
EB
25877 * exp_util.adb (Remove_Side_Effects): Properly test for
25878 Expansion_Delayed and handle case when it's inside an
25879 N_Qualified_Expression.
25880
4f51c6e7
AC
25881 * sem_ch3.adb (Derived_Type_Declaration): New predicate
25882 Comes_From_Generic, to recognize accurately that the parent type in a
25883 derived type declaration can be traced back to a formal type, because
25884 it is one or is derived from one, or because its completion is derived
25885 from one.
25886 (Constrain_Component_Type): If component comes from source and has no
25887 explicit constraint, no need to constrain in in a subtype of the
25888 enclosing record.
25889 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
25890 Minor change to propagate Is_Ada_2005 flag
25891
25892 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
25893 Expansion_Delayed is False.
25894 (assoc_to_constructor): Ignore fields that have a
25895 Corresponding_Discriminant.
25896 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
25897 function returns "by target", dereference the target pointer using the
25898 type of the actual return value.
25899 <all>: Be prepared for a null gnu_result.
25900 (processed_inline_subprograms): Check flag_really_no_inline
25901 instead of flag_no_inline.
25902 (set_second_error_entity): Remove unused function.
25903 (gnat_to_gnu, case N_Selected_Component): Call
25904 gnat_to_gnu_field_decl.
25905 (assoc_to_constructor): Likewise.
25906
259072005-03-15 Robert Dewar <dewar@adacore.com>
25908 Ed Schonberg <schonberg@adacore.com>
25909 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25910
4f51c6e7
AC
25911 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
25912 Must_Be_Byte_Aligned for cases where we do not need to use a
25913 System.Pack_nn unit.
25914
25915 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
25916 as procedures.
25917 Needed now that we do some processing for IN parameters as well. This
25918 may well fix some unrelated errors.
25919 (Expand_Call): Handle case of unaligned objects (in particular those
25920 that come from packed arrays).
25921 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
25922 renamed entity is an inherited operation, re-expand the call using the
25923 original operation, which is the one to call.
25924 Detect attempt to inline parameterless recursive subprogram.
25925 (Represented_As_Scalar): Fix to work properly with private types
25926 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
25927 accurate estimate. Yields True in far fewer cases than before,
25928 improving the quality of code that depends on this test.
4f51c6e7
AC
25929
25930 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
25931 over both visible and private declarations to remove them from tree,
25932 and mark subprograms declared in package as eliminated, to prevent
25933 spurious use in subsequent compilation of generic units in the context.
25934
25935 * exp_util.ads: Minor cleanup in variable names
25936
25937 * sem_eval.ads, sem_eval.adb: Minor reformatting
25938 (Compile_Time_Known_Bounds): New function
25939
259402005-03-15 Ed Schonberg <schonberg@adacore.com>
25941
25942 * exp_ch7.adb (Convert_View): Use base types of underlying types when
25943 determining whether an unchecked conversion is needed for the argument
25944 of an initialization call.
25945
259462005-03-15 Ed Schonberg <schonberg@adacore.com>
25947
25948 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
25949 that appears in the instantiation rather than the internal subtype
25950 generated in the wrapper package, to avoid anomalies in gigi when the
25951 target is derived from a private type whose full view is an access type.
25952
259532005-03-15 Robert Dewar <dewar@adacore.com>
25954
25955 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
25956 not needed.
25957 Add documentation to replace the use of this flag
25958 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
25959 the x86_64.
25960
259612005-03-15 Thomas Quinot <quinot@adacore.com>
25962
25963 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
25964 here from exp_attr so it can be shared between exp_attr and exp_dist.
25965 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
25966 all TSS names, not a subset thereof, and the previous name introduced
25967 an unnecessarily confusion that a distinction might exist between
25968 "OK" TSS names and some "not OK" TSS names.
25969
259702005-03-15 Doug Rupp <rupp@adacore.com>
25971
25972 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
25973 Command_Name.
25974
259752005-03-15 Pascal Obry <obry@adacore.com>
25976 Eric Botcazou <ebotcazou@adacore.com>
25977
25978 PR ada/20226
25979 PR ada/20344
4f51c6e7
AC
25980 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
25981 when IN_RTS. This is to work around a bootstrap path problem.
25982
25983 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
25984 table and pass it to __gnat_install_SEH_handler().
25985 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
25986
25987 * lang.opt: Fix specification of -fRTS=.
25988
259892005-03-15 Doug Rupp <rupp@adacore.com>
25990 Bernard Banner <banner@adacore.com>
25991 Vincent Celier <celier@adacore.com>
25992 Arnaud Charlet <charlet@adacore.com>
25993
25994 PR ada/6852
25995 This change works fine when gnatlib is built from the gcc directory,
25996 but does not work when using the libada Makefile, since GCC_FOR_TARGET
25997 is not passed to ada/Makefile.in, so more work is needed by a
25998 Makefile/configure expert.
25999
26000 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
26001 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
26002 Setup gnatlink switch -M for x86_64 linux, as it is already setup
26003 for Linux x86.
26004 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
26005 Run ranlib on libgccprefix.a
26006 Define PREFIX_OBJS for Darwin, to build libgccprefix.
26007 (ADA_INCLUDE_SRCS): Split Ada packages.
26008
260092005-03-15 Robert Dewar <dewar@adacore.com>
26010
26011 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
26012
26013 * impunit.adb: Add GNAT.UTF_32
26014
26015 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
26016
26017 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
26018 now uses GNAT.UTF_32).
26019
26020 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
26021 capabilities for categorizing characters using Unicode categories
26022
260232005-03-15 Ed Schonberg <schonberg@adacore.com>
26024
26025 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
26026 instantiation that has been rewritten as a package body, retrieve spec
26027 to generate proper name for implicit_with_clause.
26028 (Install_Parents): Recognize a parent that is an instantiation but has
26029 been rewritten as a package declaration during analysis.
26030
260312005-03-15 Javier Miranda <miranda@adacore.com>
26032 Ed Schonberg <schonberg@adacore.com>
26033
26034 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
26035 parameter reported some error we immediately return. This improves the
26036 behaviour of the frontend in case of errors.
26037 (Install_Parent, Remove_Parent): Introduce new flag
26038 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
26039 ancestor of a generic child unit, when the child is being instantiated.
26040 (Inline_Instance_Body): If we are compiling the private
26041 part or the body of a child unit, restore the proper visibility of the
26042 parents after compiling the instance body.
26043
260442005-03-15 Ed Schonberg <schonberg@adacore.com>
26045 Javier Miranda <miranda@adacore.com>
26046
26047 PR ada/15608
26048 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
26049 of a private type, in which case it is underlying_type that denotes
26050 the proper task. Also modified to use the new entity attribute
26051 that is directly available in the task type and task subtype entities
26052 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
26053 arrays when other dimensions than the first are constrained by
26054 discriminants of an enclosing record.
26055 (Insert_Explicit_Dereference): If the prefix is an indexed component or
26056 a combination of indexed and selected components, find ultimate entity
26057 and generate the appropriate reference for it, to suppress spurious
26058 warnings.
26059 (Note_Possible_Modification): If an entity name has no entity, return.
26060 (Is_Variable): A function call never denotes a variable.
26061 (Requires_Transient_Scope): For record types, recurse only on
26062 components, not on internal subtypes that may have been generated for
26063 constrained components.
26064
260652005-03-15 Ed Schonberg <schonberg@adacore.com>
26066
26067 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
26068 Eliminated as candidates for resolution. Both efficient, and avoids
26069 anomalies with operators declared in deleted code.
26070 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
26071 expansion is disabled (as when compiling a generic) to prevent spurious
26072 warnings on prefixes of selected components.
26073
260742005-03-15 Ed Schonberg <schonberg@adacore.com>
26075
26076 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
26077 attached to a list before checking whether it appears in the private
26078 declarations of the current package.
26079 (Make_Inequality_Operator): Insert declaration in proper declarative
26080 list rather than just setting the Parent field, so that
26081 Is_Private_Declaration can handle it properly.
26082
260832005-03-15 Ed Schonberg <schonberg@adacore.com>
26084
26085 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
26086 a renaming a body, check that the renamed subprogram in not intrinsic.
26087 (Find_Direct_Name): If several use_visible entities hide
26088 each other, and the context is a predefined file compiled through
26089 rtsfind, keep only the entity that comes from a predefined file.
26090
260912005-03-15 Geert Bosch <bosch@adacore.com>
26092
26093 * s-fatgen.adb (Valid): Extend special exceptions to account for long
26094 long float padding to also cover AMD64 and IA64.
26095
260962005-03-15 Gary Dismukes <dismukes@adacore.com>
26097
26098 * s-imgwch.adb: Add with and use of Interfaces.
26099 (Img_Wide_Character): Change type of Val to Unsigned_16.
26100 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
26101
261022005-03-15 Matthew Gingell <gingell@adacore.com>
26103
26104 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
26105
261062005-03-15 Robert Dewar <dewar@adacore.com>
26107
26108 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
26109
26110 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
26111
26112 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
26113
261142005-03-15 Robert Dewar <dewar@adacore.com>
26115
26116 * s-bitops.adb, s-bitops.ads,
26117 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
26118 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
26119 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
26120 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
26121 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
26122 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
26123 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
26124 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
26125 reformatting.
26126
261272005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26128
26129 * utils2.c (build_binary_op): Fix typo.
26130
261312005-03-15 Doug Rupp <rupp@adacore.com>
26132
26133 * s-crtl.ads (popen,pclose): New imports.
26134
261352005-03-15 Cyrille Comar <comar@adacore.com>
26136
26137 * comperr.adb (Compiler_Abort): remove references to obsolete
26138 procedures in the bug boxes for various GNAT builds.
26139
261402005-03-15 Vincent Celier <celier@adacore.com>
26141
26142 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
26143
261442005-03-15 Geert Bosch <bosch@adacore.com>
26145 Arnaud Charlet <charlet@adacore.com>
26146 Robert Dewar <dewar@adacore.com>
26147 Cyrille Comar <comar@adacore.com>
26148 Sergey Rybin <rybin@adacore.com>
26149
26150 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
26151 too specific and long-winded to be appropriate for the GNAT User's
26152 Guide.
26153 Warn about use of GCC switches not documented in the GNAT User's Guide,
26154 as these may cause generated code to not conform to Ada semantics.
26155 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
26156 Add documentation for -gnat95 and -gnat05 switches
26157 Remove paragraph documenting obsolete way to refer to third party
26158 libraries.
26159 Add a few references to Ada_05 that were missing.
26160 Update documentation on -gnatZ/-gnatL.
26161 Document limitation when using -m64 under Solaris.
26162 Change the "Name Casing" subsection of the pretty-printer section
26163 according to the changes in the dictionary processing.
26164
26165 * gnat_rm.texi: Document the Ada_05 pragma.
26166 Section on record representation clauses describes the new more
26167 relaxed rules about placement of large packed bit array components.
26168 Add documentation of GNAT.UTF_32
26169
9e94c78f 261702005-03-12 Daniel Berlin <dberlin@dberlin.org>
c75ab022
DB
26171
26172 * misc.c (gnat_post_options): Turn off structural
26173 aliasing for now.
4f51c6e7 26174
9e94c78f 261752005-03-08 Laurent Guerby <laurent@guerby.net>
391bdf45
LG
26176
26177 * system-linux-sparc.ads: Fix typo in previous commit.
26178
9e94c78f
EB
261792005-03-07 James A. Morrison <phython@gcc.gnu.org>
26180 Laurent Guerby <laurent@guerby.net>
fe8a06f2 26181
a1286ef5
ZW
26182 PR ada/20035
26183 * system-linux-sparc.ads: New.
26184 * Makefile.in: Add sparc linux entry.
fe8a06f2 26185
a1286ef5 261862005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
9811fd17 26187
a1286ef5 26188 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
9811fd17
DS
26189 parameters as unused.
26190
5395b47b
NN
261912005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
26192 Partial merge from libada-gnattools-branch:
26193
26194 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5
ZW
26195 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
26196 into code in gnattools/Makefile.in. Remove direct dependencies on
26197 stamp-tools by tools clauses.
5395b47b 26198 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
a1286ef5 26199 * config-lang.in: Add gnattools to $lang_dirs.
5395b47b 26200
4fa0972f
AP
262012005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
26202
26203 PR ada/19942
2532808d 26204 * utils.c (gnat_type_for_mode): Return null instead of ICE because
a1286ef5 26205 we asked for an unknown mode.
4fa0972f 26206
bd0b34a8
RH
262072005-02-12 Richard Henderson <rth@redhat.com>
26208
26209 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
26210 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
26211
0ebbef54
AJ
262122005-02-10 Andreas Jaeger <aj@suse.de>
26213
26214 * init.c (__gnat_initialize): Mark parameter as unused.
26215
fc5a191d
AC
262162005-02-09 Doug Rupp <rupp@adacore.com>
26217
26218 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
26219 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
26220
262212005-02-09 Doug Rupp <rupp@adacore.com>
26222
26223 * gnatchop.adb (dup, dup2),
26224 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
26225
26226 * gnatlbr.adb (mkdir),
26227 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
26228
26229 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
26230
262312005-02-09 Doug Rupp <rupp@adacore.com>
26232
26233 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
26234
262352005-02-09 Robert Dewar <dewar@adacore.com>
26236 Thomas Quinot <quinot@adacore.com>
26237 Javier Miranda <miranda@adacore.com>
26238 Pascal Obry <obry@adacore.com>
26239 Ed Schonberg <schonberg@adacore.com>
26240 Doug Rupp <rupp@adacore.com>
26241 Gary Dismukes <dismukes@adacore.com>
26242 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26243
26244 * g-zstspl.ads: New file.
26245
26246 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
26247
26248 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
26249 Ada 95 mode
26250 Add definition of Wide_Wide_Space for AI-285
26251
26252 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
26253 interface (to support Ada 95 and Ada 2005 units).
26254 Add Unbounded_IO files
26255 Add entries for Wide_Wide packages for AI-285
26256 Add list of containers packages to Ada 2005 unit list
26257
26258 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
26259 support new Unbounded_IO package cleanly.
26260
26261 * g-utf_32.ads, g-utf_32.adb: New files.
26262
26263 * Makefile.rtl: Add entry for g-utf_32
26264 Add new files for Unbounded_IO
26265 Adjust make file for new AI-285 wide wide packages
26266 Add AI-302 containers to the run time.
26267
26268 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
26269 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
26270 subprograms for AI-301.
26271
26272 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
26273
26274 * a-stunau.ads: Minor comment correction
26275
26276 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
26277 etc.
26278 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
26279 (Check_RPC): Update to match changes in expanded code.
26280 Clean up unused entity.
26281
26282 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
26283 was not taken into account.
26284 This includes proper initialization with Normalize_Scalars.
26285 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
26286 normalize scalars cases (particularly the latter) to do a better job
26287 of finding invalid representations.
26288
26289 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
26290
26291 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
26292 used
26293
26294 * exp_dist.adb: Add support for wide wide character type
26295 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
26296 private part, generate stub bodies at the end of the private part,
26297 not the visible part.
26298 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
26299 PolyORB support.
26300 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
26301 generic wrapper to execute final processing after completing the
26302 expansion of the RPC receiver for an RACW.
26303
26304 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
26305 packages and attributes.
26306 (Preset_Names): Addition of the new reserved words of Ada 2005,
26307 that is interface, overriding and synchronized.
26308 (Get_Pragma_Id): Give support to the use of the new reserved word
26309 "interface" as a pragma name.
26310 (Is_Pragma_Name): Give support to the use of the new reserved word
26311 "interface" as a pragma name.
26312 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
26313 attribute implementation.
26314
26315 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
26316 checks to entities that are output parameters of Asm operations.
26317 Handle the Stream_Size attribute.
26318 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
26319
26320 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
26321
26322 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
26323 for second parameter being 0.0.
26324 Add support for wide wide character type.
26325 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
26326
26327 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
26328 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
26329 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
26330 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
26331 for wide wide character cases.
26332
26333 * cstand.adb: Create entities for Wide_Wide_Character and
26334 Wide_Wide_String.
26335
26336 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
26337 accordance with AI-258.
26338 Add new declarations for 16/32 bit C character types (Part of AI285)
26339
26340 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
26341 (Obsolescent_Warning): New field
26342 (Rep_Clause): New local subprogram used to share code. Returns the rep
26343 clause for which the name is given in parameter.
26344 (Has_Stream_Size_Clause): New routine.
26345 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
26346 (Address_Clause): Implementation is now using Rep_Clause.
26347 (Alignment_Clause): Idem.
26348 (Size_Clause): Idem.
26349
26350 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
26351 entity in non-Ada 2005 mode and generate warning.
26352
26353 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
26354 (Prag): Code cleanup. Remove old gnat pragma "overriding"
26355
26356 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
26357 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
26358 on the named unit if the pragma is not in the current compilation unit,
26359 so that elaboration calls in the current unit can set up an elaboration
26360 dependency on the named unit, as needed.
26361 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
26362 subprogram as well as for subprograms declared within a package.
26363 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
26364 pragma overriding.
26365
26366 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
26367 to z) to avoid some instances of duplication for Wide_Wide packages.
26368
26369 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
26370 characters.
26371
26372 * scn.adb: Char_Literal_Value field is now a Uint
26373
26374 * scng.adb: Significant rewrite to handle new Ada 2005 features
26375 allowing wide and wide wide characters in program text, e.g. for
26376 identifiers, as described in AI-285.
26377 (Set_Reserved): New procedure, makes setting up keywords cleaner.
26378 (Initialize_Scanner): Register the new reserved words of Ada 2005.
26379 (Scan): Give support to the new reserved words.
26380
26381 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
26382 warning notifying that interface, overriding, and synchronized are
26383 new reserved words.
26384 (P_Pragma): Allow the use of the new reserved word "interface" as
26385 a pragma name.
26386
26387 * gnatls.adb, gnatbind.adb,
26388 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
26389 identifiers named "interface" to "SAL_Interface".
26390
26391 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
26392 (Structured Exception handling).
26393 (Gen_Main_C): Idem.
26394
a1286ef5 26395 * bindgen.adb:
fc5a191d
AC
26396 (Gen_Main_Ada): Set the default exit code if specified.
26397 (Gen_Main_C): Likewise.
26398 Part of *DC20-006.
26399 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
26400 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
26401
26402 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
26403 new -Xnnn switch.
26404
26405 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
26406 has a collision with the new Ada 2005 "interface" reserved word.
26407
26408 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
26409 generate a warning notifying that interface, overriding, and
26410 synchronized are new reserved words.
26411
26412 * scans.ads (Token_Type): Addition of the tokens corresponding to the
26413 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
26414 and Tok_Synchronized.
26415
26416 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
26417 "dispatching" rather than "primitive" operations, since dispatching
26418 calls are now allowed to abstract formal subprograms (which are not
26419 primitive).
26420 Char_Literal_Value field is now a Uint
26421 (Resolve_Slice): If the prefix is an access to an unconstrained array,
26422 compute the actual subtype of the designated object to impose the proper
26423 index constraints.
26424 (Resolve_Selected_Component): Do not insert an access check if the
26425 prefix is an access type: such a node is expanded into an explicit
26426 dereference, on which the access check is performed anyway. Removes
26427 expensive duplicate checks.
26428 (Resolve_Call): Use new flag Is_Obsolescent and field
26429 Obsolescent_Warning so that pragma Obsolescent works on library
26430 subprograms.
26431 Add support for wide wide character type
26432 (Resolve_Allocator): Replace the error message on wrong null-exclusion
26433 value by a warning message.
26434 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
26435 as fixed-point, and one of the operands is non-static and universal, it
26436 can only be an illegal exponentiation operation, in which case there is
26437 no real value to retrieve.
26438
26439 * exp_strm.adb: Add support for wide wide character type
26440 (Build_Elementary_Input_Call): Compute the size of the stream element by
26441 querying the rep chain to find the Stream_Attribute attribute value.
26442 (Build_Elementary_Write_Call): Ditto.
26443
26444 * sem_aggr.adb: Char_Literal_Value field is now a Uint
26445 Add support for wide wide character type
26446 Replace the error messages on wrong null-exclusion value by warnings
26447 as described in Ada 2005.
26448 (Resolve_Extension_Aggregate): Document the fact that the error
26449 message on class-wide expressions in extensions aggregates.
26450
26451 * sem_case.adb: Add support for wide wide character type
26452
26453 * sem_ch13.adb: Add support for wide wide character type
26454 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
26455
26456 * sem_ch3.adb: Add support for wide wide character type
26457 (Process_Subtype): If constraint is illegal for the type, set Ekind of
26458 now-useless Itype, to prevent cascaded errors on a compiler built
26459 without -gnatp.
26460
26461 * sem_ch8.adb: Add with and use of Sem_Disp.
26462 (Analyze_Subprogram_Renaming): Replace unclean uses of
26463 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
26464 of Corresponding_Spec to Empty).
26465 (Attribute_Renaming): Replace use of Corresponding_Spec with
26466 Corresponding_ Formal_Spec and simplify condition.
26467 (Use_One_Package): Check that scope of homonym of identifier is defined,
26468 before checking whether it is a wrapper package.
26469 Add support for wide wide character type
26470
26471 * sem_eval.adb: Add support for wide wide character type.
26472 (Eval_Arithmetic_Op): Check for compile time known signed integer
26473 overflow in the non-static case.
26474 (Subtypes_Statically_Match): A formal scalar type and its base type do
26475 not statically match.
26476
26477 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
26478 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
26479 subtype).
26480 (Unit_Declaration_Node): Ditto.
26481 (Is_Variable_Prefix): For the case of an indexed component whose prefix
26482 has a packed array type, the prefix has been rewritten into a type
26483 conversion. Determine variable-ness from the converted expression.
26484 Handle wide wide character cases.
26485
26486 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
26487
26488 * stringt.ads, stringt.adb: Handle full UTF-32 range.
26489 Remove ["0A"] from comment, since it can look like a line terminator.
26490 Currently we don't permit this, but this is under discussion by the
26491 ARG, and it is easy enough to use a different example.
26492
26493 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
26494 handling UTF-32 encoding for wide wide character.
26495 Implement new brackets coding ["hhhhhhhh"]
26496 Add UTF-8 encodings for full UTF-32 range
26497
26498 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
26499
26500 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
26501 bit range Add full UTF-32 support.
26502 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
26503 notify that constraint error will be raised at run-time
26504 because a null value is assigned to a null-excluding object.
26505 Remove some obsolete declarations and make Char_Code
26506 unsigned.
26507
26508 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
26509 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
26510 Rcheck subprograms.
26511
26512 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
26513 wrong null-exclusion value by a warning message.
26514 (Enable_Range_Check): Do range check if the prefix is an
26515 explicit dereference whose designated object is an unconstrained array.
26516 Current algorithm for removing duplicate checks is over-eager in this
26517 case.
26518
26519 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
26520 null-exclusion value by a warning message
26521
26522 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
26523 completely. Add support for Uint2 field
26524
26525 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
26526 exp_prag.adb: Char_Literal_Value field is now a Uint.
26527
26528 * exp_util.adb (Insert_Actions): Replace
26529 N_Formal_Subprogram_Declaration by
26530 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
26531 Char_Literal_Value field is now a Uint.
26532
26533 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
26534 defined for subprogram renaming declarations. When set, the field
26535 indicates the defining entity of a corresponding formal subprogram
26536 when the renaming corresponds to a formal subprogram association in an
26537 instantiation.
26538 (Set_Corresponding_Formal_Spec): New procedure to return
26539 Corresponding_Formal_Spec field.
26540 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
26541 (which is now a subtype).
26542 Char_Literal_Value field is now a Uint
26543
26544 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
26545 pointer to the base of the dispatch table.
26546 Minor changes to comments.
26547 (Controlling_Type): New function for determining the tagged type
26548 associated with a tagged primitive subprogram.
26549 (Expand_Dispatching_Call): Add support for a controlling actual that is
26550 directly a value of type Ada.Tag rather than a tagged object.
26551
26552 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
26553 describing the new layout.
26554 (Dispatch_Table): The expander computes the actual array size, allocates
26555 the Dispatch_Table record accordingly, and generates code that displaces
26556 the base of the record after the Typeinfo_Ptr component. The access to
26557 these components is done by means of local functions.
26558 (Offset_To_Top): New function.
26559 (Typeinfo_Ptr): New function.
26560 (Get_TSD): Modified to access the new position of the TSD.
26561 (Set_TSD): Modified to save the TSD in its new position.
26562
26563 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
26564 case of formal abstract subprograms. Add check and message for -gnat05.
26565 Update comments.
26566
26567 * sem_ch12.adb: Add with and use for Sem_Disp.
26568 (Analyze_Associations): Minor change from "=" to "in" for use of
26569 N_Formal_Subtype_Declaration (which is now a subtype).
26570 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
26571 N_Formal_Subtype_Declaration (which is now a subtype).
26572 (Analyze_Formal_Subprogram): Add handling for
26573 N_Formal_Abstract_Subprogram, marking the formal as abstract and
26574 dispatching, setting the controlling status of the formal parameters
26575 and result, and issuing an error if there is no controlling type for
26576 the formal subprogram.
26577 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
26578 which is an unclean use of that field, we set the new field
26579 Corresponding_Formal_Spec to make the formal subprogram available to
26580 processing in Analyze_Subprogram_Declaration.
26581 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
26582 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
26583 Constrained, so that it is is does not statically match its anonymous
26584 base type.
26585
26586 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
26587 abstract formal subprograms in error check for functions returning
26588 abstract types. Set scope of new designator for
26589 a parameterless subprogram, so that it is available when checking the
26590 body for nested subprograms, before full analysis of said body.
26591 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
26592 subprogram only if inner one comes from source.
26593 (Analyze_Function_Call): If the call is given in object notation, the
26594 analysis of the name rewrites the node and analyzes it with the proper
26595 argument list. After analyzing the name, if the call has been rewritten
26596 and the result type is set, no further analysis is needed.
26597 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
26598 mark in function specification, in a context where the formals are
26599 visible and hide outer homographs.
26600
26601 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
26602 as the tagged type for the cases of abstract formal subprograms and
26603 renamings of those. Clean up spec comments.
26604 (Check_Dispatching_Context): Add error message to indicate "abstract
26605 procedure", covering the case of a call to a formal abstract procedure
26606 that has statically tagged operands.
26607 (Check_Dispatching_Call): Check for the case of an actual given by
26608 a tag-indeterminate function call whose type is an ancestor of the
26609 containing call's associated tagged type. This situation can occur
26610 for inherited primitives with function defaults. In this case we
26611 use the tagged type's tag directly as the controlling argument for
26612 the calls.
26613 (Expand_Call): Name change on call to Expand_Dispatch_Call.
26614
26615 * sprint.adb (Sprint_Node_Actual): Split
26616 N_Formal_Subprogram_Declaration into two alternatives for the new
26617 cases N_Formal_Abstract_Subprogram_Declaration and
26618 N_Formal_Concrete_Subprogram_Declaration.
26619 Char_Literal_Value field is now a Uint.
26620
26621 * trans.c: Get rid of junk Uint2 reference.
26622 Char_Literal_Value field is now a Uint.
26623 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
26624 (gigi): Correct third arg to gimplify_body.
26625
26626 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
26627 (TYPE_LANG_FLAG_0): Check for record or union.
26628
26629 * treepr.adb: Char_Literal_Value field is now a Uint
26630
26631 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
26632 UI_From_CC.
26633
26634 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
26635 Add full UTF-32 support
26636 Char_Code is now 32 bits
26637
26638 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
26639 wide character UTF_32 line terminators.
26640 Initialize Main_Source_File to avoid error when no main
26641 source is loaded.
26642
26643 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
26644 (Main_Source_File) when no main source has been loaded, to avoid
26645 potential crash.
26646
266472005-02-09 Robert Dewar <dewar@adacore.com>
26648
a1286ef5
ZW
26649 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
26650 Fix name of Set routine
fc5a191d
AC
26651
26652 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
26653 fixed packages.
26654
26655 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
26656 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
26657 fixed packages
26658
26659 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
26660 forms of Get_Line subprograms for AI-301.
26661
26662 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
26663 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
26664 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
26665 a-stwima.ads: Minor reformatting.
26666
266672005-02-09 Doug Rupp <rupp@adacore.com>
26668 Thomas Quinot <quinot@adacore.com>
26669
26670 * adaint.c, adaint.h
26671 [VMS] (to_ptr32): New function.
26672 (MAYBE_TO_PTR32): New macro.
26673 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
26674 for pointer size.
26675 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
26676 [VMS] (#define fork()): Remove since unneccessary.
26677 (__gnat_set_close_on_exec): New routine to support
26678 GNAT.OS_Lib.Set_Close_On_Exec.
26679
26680 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
26681 the parent side as close-on-exec so that they are not inherited by the
26682 child.
26683
26684 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
26685 set or clear the FD_CLOEXEC flag on a file descriptor.
26686
266872005-02-09 Eric Botcazou <ebotcazou@adacore.com>
26688 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26689
6f7f72f9 26690 PR ada/19386
a1286ef5 26691 * decl.c:
fc5a191d
AC
26692 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
26693 on the field if Pragma Component_Alignment (Storage_Unit).
26694 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
26695 side-effects as if it were a constant; also make SAVE_EXPR to protect
26696 side-effects.
26697 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
26698 UNION_TYPE.
26699 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
26700 (components_to_record): Test it.
26701 Fix improper usage of REFERENCE_CLASS_P.
26702
26703 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
26704 RECORD_TYPE.
26705
26706 * utils2.c: Minor reformatting.
26707
26708 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
26709 handle other cases like RECORD_TYPE.
26710
26711 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
26712
267132005-02-09 Ed Schonberg <schonberg@adacore.com>
26714
26715 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
26716 component of an array of arrays in an assignment context, and the
26717 aggregate has component associations that require sliding on
26718 assignment, force reanalysis of the aggregate to generate a temporary
26719 before the assignment.
26720 (Must_Slide): Make global to the package, for use in Gen_Assign.
26721
267222005-02-09 Ed Schonberg <schonberg@adacore.com>
26723
26724 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
26725 unchecked union with no inferable discriminants, return a
26726 Raise_Program_Error node, rather than inserting it at the point the
26727 type is frozen.
26728 (Expand_Record_Equality, Component_Equality): Handle properly the case
26729 where some subcomponent is an unchecked union whose generated equality
26730 code raises program error.
26731
267322005-02-09 Doug Rupp <rupp@adacore.com>
26733
26734 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
26735 [VMS] (#define exit hack): Remove.
26736
267372005-02-09 Pascal Obry <obry@adacore.com>
9e94c78f 26738 Arnaud Charlet <charlet@adacore.com>
fc5a191d
AC
26739
26740 * init.c (__gnat_initialize): Add a new parameter eh which contains the
26741 address of the exception registration. The Win32 version of this
26742 routine calls __gnat_install_SEH_handler() to initialize the SEH
26743 (Structured Exception Handling) handler.
26744 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
26745 SEH (Structured Exception Handling) now.
26746 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
26747 (__gnat_initialize for ppc-vxworks): Adjust comments and the
26748 preprocessor condition protecting the call to the extra eh setup
26749 subprogram, which is only available for the ppc target.
26750 (__gnat_clear_exception_count): replaced reference to
26751 variable taskIdCurrent by call to taskIdSelf(), cleaner.
26752
26753 * seh_init.c: New file.
26754
26755 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
26756 (GNATBIND_OBJS): Idem.
26757
26758 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
26759 routine takes a new parameter (a pointer to the exception registration
26760 for the SEH (Structured Exception Handling) support.
26761
26762 * raise.h: (__gnat_install_SEH_handler): New prototype.
26763 Update copyright notice.
26764
26765 * s-tassta.adb (Task_Wrapper): Declare the exception registration
26766 record and initialize it by calling __gnat_install_SEH_handler.
26767
267682005-02-09 Vincent Celier <celier@adacore.com>
26769
26770 * make.adb (Gnatmake): Do not fail when the main project has no object
26771 directory.
26772
267732005-02-09 Doug Rupp <rupp@adacore.com>
26774
26775 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
26776 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
26777 [VMS]: Add translations for g-enblsp.adb.
26778
26779 * s-asthan-vms.adb: Removed.
26780 * s-asthan-vms-alpha.adb: Added.
26781
267822005-02-09 Pascal Obry <obry@adacore.com>
26783
26784 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
26785 (LIBGNAT_OBJS): Add seh_init.o.
26786
267872005-02-09 Arnaud Charlet <charlet@adacore.com>
26788
26789 PR ada/16592
fc5a191d
AC
26790 * Makefile.in: Link all gnat tools with -static-libgcc, since
26791 -shared-libgcc is now used by default on some systems (e.g. linux with
26792 recent binutils).
26793 Remove references to Makefile.prolog/generic, no longer used.
26794
267952005-02-09 Vincent Celier <celier@adacore.com>
26796
26797 * prj-makr.adb (Process_Directory): Put file name in canonical case
26798 before matching against the patterns.
26799 If gnatname has been invoked as <prefix>-gnatname
26800 then invoke the compiler as <prefix>-gcc, not just "gcc".
26801
268022005-02-09 Ed Schonberg <schonberg@adacore.com>
26803
26804 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
26805 with expansion disabled. The actual subtype is needed among other
26806 places when the selected component appears in the context of a loop
26807 bound, and denotes a packed array.
26808 (Operator_Check): Always use the first subtype in the
26809 error message, to avoid the appearance of internal base types.
26810 (Transform_Object_Operation): Copy each actual in full
26811 to the parameter associations of the constructed call, rather than
26812 using the shallow copy mechanism of New_Copy_List. This ensures that
26813 the chaining of named associations is done properly.
26814 (Complete_Object_Operation): Rewrite node, rather than
26815 replacing it, so that we can trace back to the original selected
26816 component.
26817
26818 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
26819 and calls that use object notation, if the called function is not
26820 declared in a withed unit, place the elaboration constraint on the
26821 unit in the context that makes the function accessible.
26822 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
26823 imposes an elaboration constraint between two packages.
26824
268252005-02-09 Ed Schonberg <schonberg@adacore.com>
26826
26827 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
26828 views of a private type after handling its private dependents, to
26829 maintain proper stack discipline between entry and exit from the
26830 package.
26831
268322005-02-09 Cyrille Comar <comar@adacore.com>
26833
26834 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
26835 Minor reformatting.
26836
268372005-02-09 Arnaud Charlet <charlet@adacore.com>
26838
26839 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
26840 fields for foreign threads.
26841
268422005-02-09 Doug Rupp <rupp@adacore.com>
26843
26844 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
26845 recursion warnings when compiled with -gnatdm.
26846
268472005-02-09 Robert Dewar <dewar@adacore.com>
26848
26849 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
26850 Slight fix to documentation of -gnaty with no parameters
26851
26852 * xr_tabls.ads: Add ??? comment for missing overall comment
26853
26854 * xsinfo.adb: Make default file name be sinfo.h, since this is what
26855 we now use by default.
26856
26857 * xsnames.adb: Adjust end of file test to look for five space followed
26858 by '#' instead of six spaces. The format of xsnames.adb was modified
26859 in the last update.
26860
26861 * a-numeri.ads: Add reference to AI-388 for greek letter pi
26862 identifier.
26863
26864 * clean.adb: Minor reformatting.
26865
26866 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
26867 gnatname.adb: Minor reformatting
26868 Add 2005 to copyright output when utility is run
26869
26870 * csets.adb: Eliminate obsolete comment
26871
26872 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
26873 Update comments.
26874
26875 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
26876
268772005-02-09 Sergey Rybin <rybin@adacore.com>
26878
26879 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
26880 the difference between compact and incompact layout and add the record
26881 representation clause to the example illustrating different layouts.
26882 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
26883 component clauses").
26884
268852005-02-09 Florian Villoing <villoing@adacore.com>
26886
26887 * gnat_ugn.texi: Fix typos.
26888 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
26889 @file.
26890 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
26891 in the generated documentation.
26892
268932005-02-09 Arnaud Charlet <charlet@adacore.com>
26894
26895 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
26896 longer supported.
26897 Update linker wrapper when linking with non GNU C++.
26898
268992005-02-09 Pascal Obry <obry@adacore.com>
26900
a1286ef5 26901 * gnat_ugn.texi:
fc5a191d
AC
26902 Document the procedure to debug the DllMain routine on Windows.
26903 Add note about -funwind-tables and mixed Ada and C/C++ programming in
26904 ZCX mode.
26905 Document new BIND qualifer /RETURN_CODES=VMS.
26906
269072005-02-09 Ben Brosgol <brosgol@adacore.com>
26908
26909 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
26910 Edited gnatmetric chapter
26911
269122005-02-09 Robert Dewar <dewar@adacore.com>
26913
a1286ef5 26914 * gnat_rm.texi:
fc5a191d
AC
26915 Changes to document new wide wide character support
26916 For AI-285
26917 Update documentation on Normalize_Scalars and Initialize_Scalars
26918
269192005-02-09 Pascal Obry <obry@adacore.com>
26920
26921 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
26922
269232005-02-09 Jose Ruiz <ruiz@adacore.com>
26924
26925 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
26926 from the VxWorks kernel) that is needed for getting the active
26927 priority of the different tasks.
26928
26929 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
26930 Use a pragma Elaborate_Body in the spec file instead.
26931 Noticed by code reading.
26932
269332005-02-09 Thomas Quinot <quinot@adacore.com>
26934
26935 * exp_util.ads: Minor correction in comment.
26936
269372005-02-09 Arnaud Charlet <charlet@adacore.com>
26938
26939 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
26940 since this procedure is now too complex to be worth inlining.
26941
c6a912da
RH
269422005-02-09 Richard Henderson <rth@redhat.com>
26943
26944 * utils.c (gnat_define_builtin): Remove.
26945 (gnat_install_builtins): Use build_common_builtin_nodes.
26946
4c2d6a70
AC
269472005-02-09 Arnaud Charlet <charlet@adacore.com>
26948
26949 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26950 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
26951 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
26952 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
26953 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
26954 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
26955 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
26956 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
26957 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
26958 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26959 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
26960 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
26961 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
26962 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
26963 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
26964 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
26965 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
26966 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
26967 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
26968 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
26969 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
26970 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
26971 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
26972 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
26973 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
26974 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
26975 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26976 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
26977 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
26978 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
26979 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26980 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
26981 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
26982 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
26983 library.
26984
9e94c78f 269852005-01-27 Laurent Guerby <laurent@guerby.net>
74a22497
LG
26986
26987 * Makefile.in: Fix a-intnam.ads from previous commit,
26988 add 2005 to copyright.
26989 * a-intman-rtems.ads: Renamed to...
26990 * a-intnam-rtems.ads:
26991
9e94c78f 269922005-01-27 Laurent Guerby <laurent@guerby.net>
7d921ba4
LG
26993
26994 * Makefile.in: Rename GNAT RTEMS specific files.
a1286ef5 26995 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
da8f5fd9 26996 5rosinte.ads, 5rparame.adb: Replaced by files below.
7d921ba4
LG
26997 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
26998 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
26999
9e94c78f
EB
270002005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
27001 Laurent Guerby <laurent@guerby.net>
9011d4bb
JS
27002
27003 PR ada/19488
27004 * 5rosinte.ads: Add No_Key constant.
a1286ef5
ZW
27005 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
27006 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
9011d4bb 27007
9e94c78f 270082005-01-26 Laurent Guerby <laurent@guerby.net>
d487e3c1
LG
27009
27010 PR ada/19414
27011 * i-cobol.adb (Valid_Numeric): Handle zero length case.
a1286ef5 27012
3f38e738
RH
270132005-01-20 Richard Henderson <rth@redhat.com>
27014
27015 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
27016 a-intnam-linux.ads and system-linux-alpha.ads.
27017 * a-intnam-linux-alpha.ads: Remove file.
27018 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
27019 * system-linux-alpha.ads: New file.
27020
4d960a7e
JJ
270212005-01-18 Jakub Jelinek <jakub@redhat.com>
27022
27023 PR ada/13470
27024 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
27025 set to the new string.
27026
b4c6a3a2
TM
270272005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
27028
27029 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
27030 to True.
27031
8d5e1df2
RH
270322005-01-18 Richard Henderson <rth@redhat.com>
27033
27034 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
27035 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
27036 for alpha-linux.
27037 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
27038
03eef11c
AP
270392005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
27040
27041 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
27042 (GCC_ZCX_Support): Likewise.
27043
bc7566ca
BB
270442005-01-11 Bastian Blank <waldi@debian.org>
27045
27046 * system-linux-s390.ads: Define Preallocated_Stacks.
27047 * system-linux-s390x.ads: Likewise.
27048
e550819c
AC
270492005-01-04 Arnaud Charlet <charlet@adacore.com>
27050
27051 * gnat_ugn.texi: Fix texi errors with null variables.
27052
376a74d4
AC
270532005-01-03 Thomas Quinot <quinot@adacore.com>
27054
27055 * gen-soccon.c: New utility program to generate g-soccon.ads
27056 automatically.
27057
27058 * socket.c, gsocket.h: Split inclusion of system header files into a
27059 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
27060
27061 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
27062 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27063 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
27064 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27065 should not be edited by hand anymore, but should be regenerated using
27066 gen-soccon.
27067
270682005-01-03 Robert Dewar <dewar@adacore.com>
27069 Ed Schonberg <schonberg@adacore.com>
27070 Vincent Celier <celier@adacore.com>
27071
27072 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
27073 on/off, since this is an obsolescent feature, for which we now generate
27074 a warning.
27075
27076 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
27077 warning mode is set and obsolescent usage of this attribute occurs.
27078 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
27079 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
27080 predates, and partly motivates, the adoption of the AI.
27081 Implement new Ada 2005 attribute Mod
27082
27083 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
27084 attribute Mod.
27085
27086 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
27087
27088 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
27089 pragma restrictions.
27090 New entry for Ada 2005 attribute Mod.
27091
a1286ef5 27092 * par-prag.adb:
376a74d4
AC
27093 Add recognition of new pragma Restrictions No_Dependence
27094 Recognize restriction No_Obsolescent_Features at parse time
27095
27096 * bcheck.adb: Add circuitry for checking for consistency of
27097 No_Dependence restrictions.
27098
27099 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
27100 restrictions.
27101
27102 * restrict.ads, restrict.adb: Add subprograms to deal with
27103 No_Dependence restrictions.
27104
27105 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
27106 restrictions.
27107
27108 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
27109 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
27110
27111 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
27112 dummy parameter to scng instantiation.
27113 Needed for new restriction No_Obsolescent_Features
27114
27115 * scn.adb: (Obsolescent_Check): New procedure
27116 Needed for new restriction No_Obsolescent_Features
27117
27118 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
27119 specified by AI-285, needed for implementation of AI-388 (adding greek
27120 pi to Ada.Numerics).
27121 Add new generic formal to scng, needed for new restriction
27122 No_Obsolescent_Features.
27123
27124 * s-rident.ads: Add new restriction No_Obsolescent_Features.
27125
27126 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
27127 restrictions lines.
27128 (Scan_ALI): When finding an unexpected character on an R line, raise
27129 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
27130 Ignore_Errors is True, default restrictions are set and scanning of the
27131 ALI file continues with the next line. Also, when Bad_R_Line is raised
27132 and Ignore_Errors is True, skip to the end of le line.
27133
27134 * sem_ch10.adb: Check that explicit with's do not violate
27135 No_Dependence restrictions.
27136 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
27137 illegal context clauses containing child units of instance.
27138
27139 * sem_prag.adb: Processing and checking for new No_Dependence
27140 restrictions.
27141 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
27142 analyze and check the External argument.
27143
27144 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
27145
271462005-01-03 Robert Dewar <dewar@adacore.com>
27147
27148 * atree.adb: Add a fifth component to entities
27149 This allows us to add 32 flags and four new fields
27150
27151 * atree.ads: Add a fifth component to entities
27152 This allows us to add 32 flags and four new fields
27153
27154 * einfo.ads, einfo.adb: Document new fields and new flags now available
27155 Add routines for printing new fields
27156
27157 * treepr.adb: Call routines to print out additional fields if present
27158
271592005-01-03 Arnaud Charlet <charlet@adacore.com>
27160
27161 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
27162 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
27163
27164 * Makefile.in: Add support to build shared Ada libraries on solaris x86
27165 Remove gpr2make, replaced by gprmake.
27166 Remove references to gnatmem and libaddr2line.
27167 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
27168 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
27169 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
27170 a-numaux-darwin.ads and a-numaux-darwin.adb
27171 Enable mlib-tgt-lynxos.adb on lynxos.
27172
27173 * Make-lang.in: Remove rules for gpr2make.
27174 When generating sdefault.adb, do not call Relocate_Path
27175 on S3 for function Target_Name, as it is not a path.
27176 Remove references to gnatmem and libaddr2line.
27177
27178 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
27179 files.
27180
271812005-01-03 Samuel Tardieu <tardieu@adacore.com>
27182
27183 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
27184 address is incompatible with its base type alignment constraints when
27185 this can be decided statically.
27186
271872005-01-03 Olivier Hainque <hainque@adacore.com>
27188
27189 * decl.c (compatible_signatures_p): New function. The intended purpose
27190 is to check if two function signatures for a call-site and a callee are
27191 compatible enough for the call to be valid. The underlying purpose is
27192 to check if a call to a mapped builtin is using the right interface.
27193 The current code actually does not check antyhing - this a placeholder
27194 for future refinements.
27195 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
27196 builtin calls for convention Intrinsic.
27197
27198 * gigi.h (builtin_decl_for): Declare (new function).
27199
27200 * utils.c (gnat_install_builtins): Install the target specific builtins.
27201 (builtin_decl_for): New function, provide a dummy body for now.
27202
272032005-01-03 Geert Bosch <bosch@adacore.com>
27204
27205 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
27206 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
27207 (Pred): Implement in terms of Succ.
a1286ef5 27208
376a74d4
AC
27209 * trans.c (convert_with_check): Reimplement conversion of float to
27210 integer.
27211
272122005-01-03 Ed Schonberg <schonberg@adacore.com>
27213 Vincent Celier <celier@adacore.com>
27214
27215 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
27216 bounds can be negative, and must be declared Int, not Nat.
27217
27218 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
27219 array is checked after using the index in the array.
27220
27221 * makegpr.adb (Add_Switches): Check if there is a package for the
27222 processor. If there is no package, do not look for switches.
27223
272242005-01-03 Ed Schonberg <schonberg@adacore.com>
27225
27226 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
27227 generation of predefined stream operations (specs and bodies) should
27228 proceed. Under various restrictions these subprograms must not be
27229 generated.
27230
272312005-01-03 Thomas Quinot <quinot@adacore.com>
27232
a1286ef5 27233 * exp_dist.adb:
376a74d4
AC
27234 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
27235 amount of PCS-specific code in RACW stubs generation.
27236 (Copy_Specification): Set Etype on copied formal parameter entities, as
27237 this information is needed for PolyORB stubs generation.
27238 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
27239 variable Dynamic_Async.
27240 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
27241 (Build_RPC_Receiver_Specification): Make generic again, as recent
27242 changes have allowed RPC receivers to have the same profile for both
27243 variants of the PCS.
27244 Reorganise RPC receiver generation to reduce differences between the
27245 structure of GARLIC and PolyORB RPC receivers.
27246 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
27247 PCS-specific.
27248 Simplify elaboration code for RCI packages.
27249
27250 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
27251 generation to reduce differences between the structure of GARLIC and
27252 PolyORB RPC receivers.
27253
27254 * s-stratt.adb: Fix typo in comment.
27255
272562005-01-03 Thomas Quinot <quinot@adacore.com>
27257
27258 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
27259 copied from Make_Init_Call).
27260
27261 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
27262 reads and assignments on a temporary variable declared with appropriate
27263 discriminants.
27264
272652005-01-03 Robert Dewar <dewar@adacore.com>
27266
27267 * i-c.adb (To_C): Raise CE if string is null and Append_Null
27268
272692005-01-03 Robert Dewar <dewar@adacore.com>
27270
27271 * i-cstrin.adb (Update): Do not append a null in form called with a
27272 String. This avoids unintended behavior.
27273
272742005-01-03 Arnaud Charlet <charlet@adacore.com>
27275
27276 PR ada/17527
27277 * init.c: Fix warnings on Free BSD section.
27278
272792005-01-03 Arnaud Charlet <charlet@adacore.com>
27280
27281 PR ada/16949
27282 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
27283 xsinfo.adb).
27284
272852005-01-03 Vincent Celier <celier@adacore.com>
27286
27287 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
27288 libraries when Unique_Compile is True (-u switch).
27289 (Gnatmake): ditto.
27290
272912005-01-03 Robert Dewar <dewar@adacore.com>
27292
27293 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
27294 upper case letter or underscore after W, as allowed by spec.
27295
272962005-01-03 Arnaud Charlet <charlet@adacore.com>
27297
27298 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
27299 darwin port by using proper type definitions from header files.
27300 Use SIGTERM instead of SIGABRT for SIGADAABORT.
27301
273022005-01-03 Robert Dewar <dewar@adacore.com>
27303
27304 * par.adb: Enhance error message handling for configuration file
27305 pragmas.
27306
273072005-01-03 Robert Dewar <dewar@adacore.com>
27308
27309 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
27310 removed during the previous update (test properly for case of dividing
27311 largest negative number by -1, which generates overflow).
27312
273132005-01-03 Ed Schonberg <schonberg@adacore.com>
27314 Sergey Rybin <rybin@adacore.com>
27315
27316 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
27317 to use as the defining identifier for a formal package.
27318 (Remove_Parent): If the instance takes place within (an instance of)
27319 a sibling, preserve private declarations of common parent.
27320
273212005-01-03 Ed Schonberg <schonberg@adacore.com>
27322
27323 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
27324 to determine whether one of the operands is a fixed-point type for
27325 which a user-defined multiplication or division operation might be
27326 defined.
27327
27328 * sem_res.adb (Valid_Conversion): The legality rules for conversions
27329 of access types are symmetric in Ada 2005: either designated type can
27330 be unconstrained.
27331
273322005-01-03 Vincent Celier <celier@adacore.com>
27333
27334 * s-fileio.adb (Temp_File_Record): Change length of string component
27335 Name from L_tmpnam + 1 to max_path_len + 1.
27336
273372005-01-03 Arnaud Charlet <charlet@adacore.com>
27338
27339 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
27340 Self_Id.Deferral_Level = 0.
27341 (Do_Pending_Action): Move this function to the spec.
27342
27343 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
27344 Do_Pending_Action explicitely when needed, in case we're using
27345 No_Abort restrictions.
27346
27347 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
27348 deferral level since it will not get changed by the generated code.
27349 Keeping a default value of 1 would prevent some operations (e.g.
27350 select or delay) to proceed successfully.
27351
273522005-01-03 Ben Brosgol <brosgol@adacore.com>
27353 Robert Dewar <dewar@adacore.com>
27354 Cyrille Comar <comar@adacore.com>
27355
27356 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
27357 porting guide chapter (vms version).
27358 Revised doc title (removed "for native platforms") and subtitle.
27359 Add discussion on warning flag for obsolescent features. First we
27360 note that it applies to obsolete GNAT features, which was previously
27361 omitted. Second we contrast the behavior with that of the new
27362 Ada 2005 AI-368 restriction No_Obsolescent_Features.
27363 Preliminary rewriting of GNAT & libraries chapter in order to take
27364 into account default project locations & new project manager
27365 capabilities.
27366
273672005-01-03 Robert Dewar <dewar@adacore.com>
27368
27369 * cstand.adb (Create_Operators): Clean up format and documentation of
27370 unary and binary operator result tables. No change in code, just
27371 reformatting and addition of comments.
27372
27373 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
27374 sem_ch2.adb: Minor reformatting
27375
27376 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
27377 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
27378 comments for Tree_Read and Tree_Write.
27379
273802005-01-03 Pascal Obry <obry@adacore.com>
27381
27382 * exp_attr.ads: Minor reformatting.
27383
273842005-01-03 Romain Berrendonner <berrendo@adacore.com>
27385
27386 * comperr.adb (Compiler_Abort): Add specialized message for GAP
27387 versions.
27388
273892005-01-03 Ed Schonberg <schonberg@adacore.com>
27390
27391 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
27392 whether the ancestor type is private, as may be the case with nested
27393 instantiations.
27394
9e94c78f 273952004-12-30 Sohail Somani <sohail@sohailsomani.com>
15cd18b9
SS
27396
27397 PR ada/19128
27398 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
27399
2614034e 274002004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
15cd18b9 27401
2614034e
EB
27402 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
27403 * utils2.c (build_unary_op): Likewise.
27404
ad50bc8d
RH
274052004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27406
27407 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
27408
ed9c846c
RH
274092004-12-19 Richard Henderson <rth@redhat.com>
27410
27411 * trans.c (gigi): Update gimplify_body call.
27412
08f2586c
NS
274132004-12-09 Nathan Sidwell <nathan@codesourcery.com>
27414
27415 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
27416
180684eb
AC
274172004-12-07 Ed Falis <falis@adacore.com>
27418
27419 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
27420 current task being suspended.
27421
27422 * init.c (__gnat_clear_exception): added to reset VxWorks exception
27423 count.
27424 (__gnat_map_signal): removed test for current task being suspended.
27425
274262004-12-07 Gary Dismukes <dismukes@adacore.com>
27427
27428 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
27429 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
27430 targets (such as AAMP).
27431
274322004-12-07 Ed Schonberg <schonberg@adacore.com>
27433
27434 * atree.adb (Visit_Itype): Create a new name for the generated itype,
27435 because the back-end may otherwise treat it as a redefinition of the
27436 old symbol.
27437
274382004-12-07 Eric Botcazou <ebotcazou@adacore.com>
27439
27440 * back_end.adb (Scan_Back_End_Switches): Accept --param.
27441
27442 * lang-specs.h: Accept --param.
27443
274442004-12-07 Vincent Celier <celier@adacore.com>
27445
27446 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
27447 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
27448 Current_Body_Suffix => Ada_Body_Suffix).
27449 Take into account Externally_Built attribute.
27450
27451 * clean.adb (In_Extension_Chain): Always return False when one of the
27452 parameter is No_Project.
27453 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
27454 Ada_Language_Index).
27455 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
27456 Process_Languages for procedure Parse).
27457
27458 * gnatcmd.adb (Carg_Switches): New table.
27459 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
27460 Adapt to name changes in package Prj (Current_Spec_Suffix =>
27461 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
27462
27463 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
27464 Header_Num and function Hash are now declared in package Prj,
27465 not Prj.Com.
27466
27467 * prj.adb (Suffix_Of): New function.
27468 (Set (Suffix)): New procedure.
27469 (Hash): One function moved from Prj.Com
27470 (Is_Present, Language_Processing_Data_Of): New functions
27471 (Set): Two new procedures
27472 (Add_Language_Name, Display_Language_Name): New procedures
27473
27474 * prj.ads: (Suffix_Of): New function
27475 (Set (Suffix)): New procedure
27476 Add several types and tables for multi-language support.
27477 (Header_Num): Type moved from Prj.Com
27478 (Hash): Two functions moved from Prj.Com
27479 (Is_Present, Language_Processing_Data_Of): New functions
27480 (Set): Two new procedures
27481 (Add_Language_Name, Display_Language_Name): New procedures
27482 (Naming): Component name changes:
27483 Current_Spec_Suffix => Ada_Spec_Suffix,
27484 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
27485 Impl_Suffixes, Supp_Suffixes.
27486 (Project_Data): New components: Externally_Built, Supp_Languages,
27487 First_Language_Processing, Supp_Language_Processing, Default_Linker,
27488 Default_Linker_Path.
27489
27490 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
27491 new package Language_Processing with its attributes (Compiler_Driver,
27492 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
27493 Binder_Driver, Default_Linker).
27494
27495 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
27496 (Header_Num): Type moved to package Prj
27497
27498 * prj-env.adb: Adapt to name changes in package Prj
27499 (Current_Spec_Suffix => Ada_Spec_Suffix,
27500 Current_Body_Suffix => Ada_Body_Suffix).
27501
27502 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
27503 default to the project path, except the "-" is one of the directories
27504 in env var ADA_PROJECT_PATH.
27505 (Current_Project_Path): Global variable, replacing Project_Path
27506 that was in the body of Prj.Part.
27507 (Project_Path): New function
27508 (Set_Project_Path): New procedure
27509 Initialize Current_Project_Path during elaboration of the package
27510 Remove dependency on Prj.Com, no longer needed
27511
27512 * prj-ext.ads (Project_Path): New function
27513 (Set_Project_Path): New procedure
27514
27515 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
27516 suffix is defined for language <lang>.
27517 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
27518 accessing directly the components of Naming.
27519 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
27520 Reorganise of this package.
27521 Break procedure Check in several procedures.
27522
27523 * prj-nmsc.ads: Replace all procedures (Ada_Check,
27524 Other_Languages_Check and Language_Independent_Check) with a single
27525 procedure Check.
27526
27527 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
27528 Process_Languages, no longer needed.
27529
27530 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
27531 Current_Project_Path.
27532 Remove elaboration code, moved to the body of Prj.Ext
27533 Use new function Prj.Ext.Project_Path instead of old variable
27534 Project_Path.
27535 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
27536 When comparing with project paths on the stack, first put the resolved
27537 path in canonical case.
27538 (Parse_Single_Project): Set the path name of the project file in the
27539 tree to the normalized path.
27540
27541 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
27542 parameter Process_Languages, no longer needed.
27543 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
27544 Other_Languages_Check.
27545
27546 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
27547 to store the resolved canonical path of the project file.
27548 Remove dependency to Prj.Com, no longer needed
27549
27550 * prj-util.adb: Adapt to name changes in package Prj
27551 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
27552 Ada_Body_Suffix).
27553
27554 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
27555 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
27556 Externally_Built, Include_Option, Language_Processing.
27557
27558 * makegpr.adb: Numerous changes due to changes in packages
27559 Prj and Prj.Nmsc.
27560
27561 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
27562 default to the project path, except whe "-" is one of the directories
27563 in env var ADA_PROJECT_PATH.
27564 (Gnatls): In verbose mode, add the new section "Project Search Path:"
27565
275662004-12-07 Robert Dewar <dewar@adacore.com>
27567
27568 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
27569
27570 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
27571 set -gnatR3m mode.
27572
27573 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
27574 flag. No longer needed now that we handle this in gnat1drv.adb.
27575
27576 * repinfo.ads: Minor reformatting
27577
275782004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27579 Olivier Hainque <hainque@adacore.com>
27580 Eric Botcazou <ebotcazou@adacore.com>
27581
27582 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
27583 TYPE_SIZE_UNIT of result type if SIZE is not specified.
27584 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
27585 of a bitfield, which we know is useless and causes trouble because of
27586 alignment implications.
27587
27588 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
27589 BSS sections.
27590 (process_attributes): Clear DECL_COMMON again when a section attribute
27591 is present.
27592 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
27593 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
27594 (create_field_decl): Special case ADDRESSABLE negative to mean
27595 "no bitfield creation", to be used by make_aligning_type. Don't
27596 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
27597 fields claimed addressable still have to be bitfields. Use
27598 value_factor_p instead of a raw binop construction to check for the
27599 position's alignment.
27600
276012004-12-07 Geert Bosch <bosch@adacore.com>
27602
27603 * eval_fat.adb: Revert previous change.
27604
276052004-12-07 Thomas Quinot <quinot@adacore.com>
27606 Ed Schonberg <schonberg@adacore.com>
27607
27608 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
27609 with an implicit dereference as its prefix, use
27610 Insert_Explicit_Dereference instead of merely rewriting the prefix into
27611 an explicit dereference. This ensures that a reference to the original
27612 prefix is generated, if appropriate.
27613
27614 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
27615 dereference is rewritten to an explicit one, generate a reference to
27616 the entity denoted by its prefix using the original prefix node, so
27617 the dereference can be properly recorded as a read of the denoted
27618 access value, if appropriate.
27619
27620 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
27621 emitting 'assigned but never read' warning on a variable on the basis
27622 that it has an access type.
27623 (Check_References): Emit unreferenced warning when the scope is a
27624 subprogram body.
27625
276262004-12-07 Robert Dewar <dewar@adacore.com>
27627 Ed Schonberg <schonberg@adacore.com>
27628
27629 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
27630 intrinsic
27631
27632 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
27633 leaving call unchanged.
27634 This deals with the case where the pragma Import specified
27635 an external name, to be handled by the back end.
27636
27637 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
27638 subprogram which is Imported with convention Intrinsic if an
27639 External_Name argument is specified.
27640 (Process_Import_Or_Interface): Properly diagnose link name argument.
27641 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
27642 with Sem_Ch6.Cannot_Inline.
27643 (Process_Inline): Provide separate warning for inapplicable inline
27644 pragma.
27645 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
27646 treatment is uniform on different targets.
27647
276482004-12-07 Ed Schonberg <schonberg@adacore.com>
27649
27650 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
27651 construct is rewritten, preserve end label to permit source navigation.
27652
276532004-12-07 Thomas Quinot <quinot@adacore.com>
27654
27655 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
27656 Specific_Build_Stub_Target): New subprograms.
27657 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
27658 the PCS implementation used, using the above PCS-customized subprograms.
27659 Minor reformatting.
27660 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
27661 for generation of DSA code targeted to the PolyORB PCS.
27662 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
27663 implementation of the partition communication subsystem in ancillary
27664 subprograms.
27665 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
27666 PolyORB_Support.Build_Stub_Type): New subrograms containing the
27667 PCS-specific part of Add_Stub_Type.
27668 (Insert_Partition_Check): Use runtime library function to perform
27669 E.4(19) check.
27670
a1286ef5
ZW
27671 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
27672 (RE_Same_Partition): New entity, from s-parint.
180684eb 27673
a1286ef5 27674 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
180684eb
AC
27675
276762004-12-07 Gary Dismukes <dismukes@adacore.com>
27677
27678 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
27679 Output the copyright message on a separate line from the version
27680 message.
27681
276822004-12-07 Joel Brobecker <brobecker@adacore.com>
27683
27684 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
27685 compile-time warning.
27686
276872004-12-07 Robert Dewar <dewar@adacore.com>
27688
27689 * g-regpat.adb: (Match): Change a misuse of or to or else
27690
276912004-12-07 Ed Schonberg <schonberg@adacore.com>
27692
15cd18b9 27693 * lib-xref.adb:
180684eb
AC
27694 (Generate_Reference): Handle properly a reference to an entry formal,
27695 when an accept statement has a pragma Unreferenced for it.
27696
27697 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
27698 and the Has_Pragma_Unreferenced flag for each formal before analyzing
27699 the body, to ensure that warnings are properly emitted for each accept
27700 statement of a given task entry.
27701
277022004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
27703
27704 * Makefile.in: Add support for foreign threads on VMS.
27705
277062004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27707
27708 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
27709 Remove.
27710 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
27711
27712 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
27713
27714 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
27715 exception.
27716 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
27717
277182004-12-07 Robert Dewar <dewar@adacore.com>
27719
27720 * nlists.adb (Prepend_Debug): Remove parameters and nest within
27721 Prepend.
27722 (Remove_Next_Debug): Same fix
27723
27724 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
27725 maintain back pointers now, though we did not used to, and comments
27726 were out of date).
27727 (Prepend): Remove pragma Inline.
27728 (Remove_Next): Same cleanup
27729
277302004-12-07 Thomas Quinot <quinot@adacore.com>
27731
27732 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
27733 used to record an implicit dereference as a read operation on its
27734 prefix when operating under -gnatc. Necessary to avoid spurious
27735 'variable assigned but never read' warnings in that mode.
27736 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
27737 is a non-overloaded implicit dereference, call the above subprogram to
27738 ensure proper recording of references.
27739
277402004-12-07 Gary Dismukes <dismukes@adacore.com>
27741
27742 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
27743 to be resolved later as part of Analyze_Iteration_Scheme's call to
27744 Make_Index.
27745
277462004-12-07 Ed Schonberg <schonberg@adacore.com>
27747
27748 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
27749 prefix is not a scalar type, place error message on prefix, not on
27750 type entity.
27751
277522004-12-07 Bernard Banner <banner@adacore.com>
27753
27754 * vxaddr2line.adb: Add support for x86 vxworks
27755
277562004-12-07 Thomas Quinot <quinot@adacore.com>
27757
27758 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
27759 documentation of the behaviour of these functions when passed an IP
27760 address that has no record in the system hosts database and no reverse
27761 record in the DNS.
27762
27763 * cstand.adb, a-tags.ads: Fix typos in comment.
27764
277652004-12-07 Robert Dewar <dewar@adacore.com>
27766
27767 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
27768 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
27769 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
27770 s-poosiz.ads: Minor reformatting
27771
27772 * make.adb: Minor reformatting
27773 Add some ??? comments asking for more comments
27774
27775 * s-poosiz.adb: Minor reformatting
27776 Add comments on alignment requirement
27777
27778 * sinfo.ads: Remove obsolete comment and fix typo.
27779
277802004-12-07 Vincent Celier <celier@adacore.com>
27781 Sergey Rybin <rybin@adacore.com>
27782
27783 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
27784 Files" with the new tool and package names.
27785 Reformatting to suppress most of the warnings for line too long
27786 Document the new section "Project Search Path:" in the output of
27787 gnatls -v.
27788 Add gnatmetric section
27789
277902004-12-07 Vincent Celier <celier@adacore.com>
27791
27792 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
27793 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
27794 and -eit to -ept. Added qualifier
27795 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
27796
ed986c8e
AS
277972004-11-27 Andreas Schwab <schwab@suse.de>
27798
27799 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
27800
3c13948a
AC
278012004-11-25 Arnaud Charlet <charlet@adacore.com>
27802
27803 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
27804 internal implementation unit GNAT.Sockets.Thin,
27805 as their usage for sockets is non-portable (using the read and write
27806 functions from the system runtime library is fine on UNIX but won't
27807 work under Windows).
27808
27809 * mingw32.h: Update copyright notice.
27810
061fd2bf
AC
278112004-11-25 Arnaud Charlet <charlet@adacore.com>
27812
27813 * ada-tree.h: Minor reformatting of previous change to avoid lines
27814 longer than 79 characters.
27815
e850e1f4
OH
278162004-11-25 Olivier Hainque <hainque@adacore.com>
27817
27818 * tb-gcc.c: GCC infrastructure based implementation of
27819 __gnat_backtrace.
27820
39afeb1a
SB
278212004-11-24 Steven Bosscher <stevenb@suse.de>
27822
27823 * misc.c (gnat_post_options): Don't clear
27824 flag_inline_functions.
27825
9633a6ac
AP
278262004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
27827
27828 PR ada/17986
27829 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
27830 tree.
27831
7fe16580
AJ
278322004-11-21 Andreas Jaeger <aj@suse.de>
27833
27834 * stylesw.adb: Change Style_Check_Subprogram_Order to
27835 Style_Check_Order_Subprograms.
27836
9716416b
AC
278372004-11-18 Arnaud Charlet <charlet@adacore.com>
27838
27839 * adaint.h, adaint.c
27840 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
27841 to avoid warnings.
27842 Add also a cast to kill another warning.
27843 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
27844 parameter with the priority class of the parent process instead of
27845 always using the NORMAL_PRIORITY_CLASS.
27846 (__gnat_dup): New function.
27847 (__gnat_dup2): New function.
27848 (__gnat_is_symbolic_link): Enable the effective body of this
27849 function when __APPLE__ is defined.
27850
27851 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
27852 Update comments.
27853
278542004-11-18 Olivier Hainque <hainque@adacore.com>
27855
27856 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
27857 address of which may be used to represent "others" and "all others"
27858 choices in exception tables, instead of the current harcoded
27859 (void *)0 and (void *)1.
27860 (Setup_Exception): Do nothing in the GNAT SJLJ case.
27861
27862 * gigi.h (others_decl, all_others_decl): New decls representing the
27863 new Others_Value and All_Others_Value objects.
27864 (struct attrib): Rename "arg" component as "args", since GCC expects a
27865 list of arguments in there.
27866
27867 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
27868 corresponding objects exported by a-exexpr, instead of hardcoded dummy
27869 addresses.
27870
27871 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
27872 others_decl and all_others_decl instead of hardcoded dummy addresses
27873 to represent "others" and "all others" choices, which is cleaner and
27874 more flexible with respect to the possible eh pointer encoding policies.
27875
27876 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
27877 (process_attributes): Account for the naming change of the "args"
27878 attribute list entry component.
27879
27880 * decl.c (build_attr_list): Rename into prepend_attributes to allow
27881 cumulating attributes for different entities into a single list.
27882 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
27883 attributes for the current entity and propagate first subtype
27884 attributes to other subtypes.
27885 <E_Procedure>: Attribute arguments are attr->args and not
27886 attr->arg any more.
27887 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
27888 argument provided, as this is what GCC expects. Use NULL_TREE instead
27889 of 0 for trees.
27890
278912004-11-18 Robert Dewar <dewar@adacore.com>
27892
15cd18b9 27893 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
9716416b
AC
27894 Minor reformatting througout (including new function specs)
27895 Add ??? comments asking for clarification.
27896
278972004-11-18 Thomas Quinot <quinot@adacore.com>
27898
27899 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
27900 incomplete duplicate implementation of this subprogram from butil.
27901
279022004-11-18 Thomas Quinot <quinot@adacore.com>
27903
27904 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
27905 procedures factors the common processing for building an RPC receiver
27906 for an RCI package or an RACW type.
27907 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
27908 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
27909 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
27910 in use.
27911 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
27912 Add_RACW_Features.
27913 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
27914 Add_RAST_Features.
27915 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
27916 distribution subprogram identifiers that are either subprogram numbers
27917 or strings.
27918 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
27919 string distribution identifiers assigned to a given subprogram.
27920 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
27921 (Add_RAS_Dereference_TSS): Add comments.
27922 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
27923 is not referenced yet because it will be used by the PolyORB DSA
27924 implementation.
27925 (Insert_Partition_Check): Remove fossile code.
27926 (First_RCI_Subprogram_Id): Document this constant.
27927 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
27928 RAS_Access TSS.
27929 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
27930 replaced with calls to Get_Library_Unit_Name_String. Previously there
27931 were several instances of the same code in different locations in the
27932 compiler; this checkin completes the replacement of all of these
27933 instances with calls to a common subprogram.
27934 Minor reformatting.
27935
27936 * sem_dist.adb: Remove comment noting that RPC receiver generation
27937 should be disabled for RACWs that implement RASs.
27938 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
27939
27940 * sem_util.ads, sem_util.adb (Has_Stream): New function
27941 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
27942 qualified name of a library unit into the name buffer.
27943 (Note_Possible_Modification): Generate a reference only
27944 if the context comes from source.
27945
27946 * snames.ads (PCS_Names): New subtype corresponding to names of
27947 supported implementations of the Partition Communication Subsystem
27948 (PCS) (i.e. the runtime library support modules for the distributed
27949 systems annex).
27950
279512004-11-18 Robert Dewar <dewar@adacore.com>
27952 Ed Schonberg <schonberg@adacore.com>
27953
27954 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
27955 (Has_Rep_Pragma): New function
27956 (Has_Attribute_Definition_Clause): New function
27957 (Record_Rep_Pragma): Moved here from sem_ch13.adb
27958 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
27959
27960 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
27961
27962 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
27963 (Expand_Pragma_Psect_Object): New procedure
27964 These procedures contain the revised and cleaned up processing for
27965 these two pragmas. This processing was formerly in Sem_Prag, but
27966 is more appropriately moved here. The cleanup involves making sure
27967 that the pragmas are properly attached to the tree, and that no
27968 nodes are improperly shared.
27969
27970 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
27971 pragmas to Exp_Prag, which is more appropriate.
27972 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
27973 check for duplicates Remove use of Is_Psected flag, no longer needed.
27974 Use new Make_String_Literal function with string.
27975
27976 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
27977 that are functions return universal values, that have to be converted
27978 to the context type.
27979 Use new Make_String_Literal function with string.
27980 (Get_Stream_Convert_Pragma): New function, replaces the use of
27981 Get_Rep_Pragma, which had to be kludged to work in this case.
27982
27983 * freeze.adb: Use new Has_Rep_Pragma function
27984
27985 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
27986 function with string.
27987 Use new Has_Rep_Pragma function.
27988
27989 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
27990 string argument.
27991
279922004-11-18 Robert Dewar <dewar@adacore.com>
27993
27994 * errout.ads, errout.adb: (First_Sloc): New function
27995
27996 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
27997 check (-gnatyx) instead of being included as a redundant construct
27998 warning.
27999
28000 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
28001 Style_Check_Order_Subprograms.
28002
28003 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
28004 stylesw.adb: Add Style_Check_Xtra_Parens
28005
28006 * usage.adb: Add line for -gnatyx (check extra parens)
28007
28008 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
28009
280102004-11-18 Ed Schonberg <schonberg@adacore.com>
28011 Robert Dewar <dewar@adacore.com>
28012
28013 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
28014 discriminant of a constrained subtype, analyze the copy of the
28015 corresponding constraint, because in some cases it may be only
28016 partially analyzed.
28017 Removes long-lived ??? comments.
28018
28019 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
28020 handled controlled or secondary-stack expressions within the
28021 iteration_scheme of a loop.
28022
28023 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
28024 bounds that may contain functions calls, to prevent memory leaks when
28025 the bound contains a call to a function that uses the secondary stack.
28026 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
28027 generate temporaries for loop bounds that might contain function calls
28028 that require secondary stack and/or finalization actions.
28029
28030 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
28031 selected component and the selector is overloadable (not just a
28032 function) treat as function call, Analyze_Call will disambiguate if
28033 necessary.
28034 (Analyze_Selected_Component): Do not generate an actual subtype for the
28035 selected component if expansion is disabled. The actual subtype is only
28036 needed for constraint checks.
28037 (Analyze_Allocator): If restriction No_Streams is set, then do
28038 not permit objects to be declared of a stream type, or of a
28039 composite type containing a stream.
28040
28041 * restrict.ads: Remove the a-stream entry from Unit_Array, since
28042 No_Streams no longer prohibits with'ing this package.
28043
28044 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
28045 discriminants, but the parent base has unknown discriminants, there is
28046 no discriminant constraint to inherit. Such a discrepancy can arise
28047 when the actual for a formal type with unknown discriminants is a
28048 similar private type whose full view has discriminants.
28049 (Analyze_Object_Declaration): If restriction No_Streams is set, then
28050 do not permit objects to be declared of a stream type, or of a
28051 composite type containing a stream.
28052
280532004-11-18 Ed Schonberg <schonberg@adacore.com>
28054
28055 * exp_dbug.ads: Update documentation to reflect simpler encoding for
28056 protected operations.
28057
28058 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
28059 generated name, it complicates decoding in gdb and hinders debugging
28060 of protected operations.
28061 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
28062 flag for the protected entry barrier function.
28063 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
28064 flag for the protected entry function.
28065
280662004-11-18 Nicolas Setton <setton@adacore.com>
28067
28068 * expect.c: Define __unix__ when __APPLE__ is defined.
28069
28070 * Makefile.in: Inform the value of the variable GMEM_LIB in the
28071 Darwin-specific section.
28072
28073 * lang-specs.h: Change the placement of the %1 marker.
28074 Works around the fact that gcc adds -fPIC by default under Darwin.
28075
280762004-11-18 Ed Schonberg <schonberg@adacore.com>
28077
28078 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
28079 type of the object with the packed array type, set the Analyzed flag
28080 on the object if it is an entity or simple indexed component, to avoid
28081 spurious type errors.
28082
280832004-11-18 Gary Dismukes <dismukes@adacore.com>
28084
28085 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
28086 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
28087 separate line from the version message.
28088
280892004-11-18 Ed Falis <falis@adacore.com>
28090
28091 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
28092 vthreads.
28093 (init_float): Eliminate initialization of floating point status for
28094 AE653. The instructions have no effect for vThreads.
28095
280962004-11-18 Vincent Celier <celier@adacore.com>
28097
28098 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
28099 gnatbind is invoked with -shared.
28100
281012004-11-18 Jose Ruiz <ruiz@adacore.com>
28102
28103 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
28104 for Detect_Blocking which is redundant with the check done within the
28105 procedure Protected_Single_Entry_Call.
28106 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
28107 Detect_Blocking which is redundant with the check done within the
28108 procedure Protected_Single_Entry_Call.
28109
281102004-11-18 Vincent Celier <celier@adacore.com>
28111
28112 * makegpr.adb (Compile): Put the compiling switches (in package
28113 Compiler and on the command line) immediately after "-c", instead of
28114 at the end of the command line invocation of the compiler, when
28115 compiling a non-Ada file.
28116 (Build_Global_Archive): When there is no need to rebuild the archive,
28117 set Global_Archive_Exists, so that the archive is passed to the linker
28118 if one is needed.
28119
281202004-11-18 Robert Dewar <dewar@adacore.com>
28121 Sergey Rybin <rybin@adacore.com>
28122
15cd18b9 28123 * gnat_ugn.texi:
9716416b
AC
28124 Remove extra paren check from list of checks for redundant constructs
28125 Add documentation of new -gnatyx style check (check extra parens)
28126 Remove paragraph about gnatelim debug options.
28127
28128 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
28129 objects rather than forbidding dependencies on the package Ada.Streams.
28130
28131 * sinfo.ads: Add ??? note that we should document pragmas passed to
28132 back end.
28133
28134 * g-expect.ads: Fix a few typos in the comments.
28135
9e637a26
JM
281362004-11-09 Joseph S. Myers <joseph@codesourcery.com>
28137
28138 * misc.c (gnat_handle_option): Use %< and %> for quoting in
28139 warning message.
28140
0506cb1c
RO
281412004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28142
28143 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
28144
426e7d28
AS
281452004-11-07 Andreas Schwab <schwab@suse.de>
28146
28147 * Makefile.in (install-gnatlib): Remove spurious hyphen.
28148
8785609e 281492004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
bb342a77
AP
28150
28151 PR ada/18228
28152 * Makefile.in (darwin): Set soext to .dylib.
28153
0ca5fab2
AC
281542004-10-26 Vincent Celier <celier@gnat.com>
28155 Thomas Quinot <quinot@act-europe.fr>
28156
28157 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
28158 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
28159 there is no use of GNAT.Sockets.Constants.
28160 Remove remaining pragma Import for C_Write
28161 Remove C_Read and C_Write from internal implementation unit
28162 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
28163 the read and write functions from the system runtime library is fine
28164 on UNIX but won't work under Windows).
28165
28166 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
28167 (Check_Selector): Use C_Recv instead of C_Read.
28168 Selectors are the GNAT.Sockets abstraction to perform a select()
28169 call on a set of descriptors. To allow abortion of an ongoing
28170 select operation, some data is written to a dedicated socket that
28171 is always monitored.
28172 Under Windows, the write and read library functions cannot operate
28173 on sockets, so we need to use send and recv instead, which is portable
28174 across all supported platforms.
28175
28176 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
28177 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
28178 (using the read and write functions from the system runtime library is
28179 fine on UNIX but won't work under Windows).
28180
281812004-10-26 Nicolas Setton <setton@act-europe.fr>
28182
28183 * mlib-tgt-darwin.adb: New file.
28184
28185 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28186 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28187 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
28188 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
28189 subprogram body.
28190
28191 * Makefile.in: Add support for building shared libraries under Darwin.
28192 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
28193 the low level EH init subprogram to be called from __gnat_initialize.
28194
28195 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
28196 indicates which options to pass to the archive indexer.
28197
28198 * mlib-utl.adb: Add support for calling ranlib with additional
28199 options. This is needed for instance under Mac OS X.
28200 (Ranlib_Options): New global variable, used to store the potential
28201 options to pass to ranlib.
28202 (Ar): Use Ranlib_Options when spawning ranlib.
28203 (Initialize): Set the value of ranlib option.
28204
282052004-10-26 Olivier Hainque <hainque@act-europe.fr>
28206
28207 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
28208 instead of 8K, to reflect the real potential needs for stack-checking
28209 in the ZCX case.
28210
282112004-10-26 Pascal Obry <obry@gnat.com>
28212
28213 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
28214
28215 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
28216 Windows only the initial thread stack size can be set so it is good to
28217 start we a low stack size.
28218 The OS will adjust the size as needed.
28219
282202004-10-26 Olivier Hainque <hainque@act-europe.fr>
28221 Nicolas Setton <setton@act-europe.fr>
28222
28223 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
28224 "__unix__" instead of "unix".
28225 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
28226 sections were just mistakenly ignored. The former is
28227 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
28228 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
28229 of hpux. This prevents an unwanted definition of the symbol
28230 convert_addresses in adaint.o.
28231
282322004-10-26 Gary Dismukes <dismukes@gnat.com>
28233
28234 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
28235 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
28236
282372004-10-26 Cyrille Comar <comar@act-europe.fr>
28238
28239 * a-filico.ads, a-filico.adb: fix incorrect header.
28240
282412004-10-26 Javier Miranda <miranda@gnat.com>
28242
28243 * a-ststio.ads: Fix typo in identifier
28244
282452004-10-26 Thomas Quinot <quinot@act-europe.fr>
28246
28247 * sem_ch4.adb: Minor reformatting.
28248
282492004-10-26 Ed Schonberg <schonberg@gnat.com>
28250
28251 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
28252 enabled, check the result of unary and binary operations when the
28253 expression is the right-hand side of an assignment.
28254
282552004-10-26 Vincent Celier <celier@gnat.com>
28256
28257 * clean.adb (Delete): Do not output warnings when in quiet output and
28258 not in verbose mode.
28259 (Force_Deletions): New Boolean flag, defaulted to False
28260 (Delete): Only delete a file if it is writable, and when
28261 Force_Deletions is True.
28262 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
28263 (Usage): Line for new switch -f
28264 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
28265 own.
28266
282672004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28268
28269 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
28270 JM type only if its size matches that of the wrapper. When a size is
28271 prescribed and the field is not aliased, remove the wrapper of a JM
28272 type only if the size is not greater than that of the packed array.
28273 (gnat_to_gnu_entity): Change the extension of packed array wrappers
28274 from LJM to JM.
28275
282762004-10-26 Geert Bosch <bosch@gnat.com>
28277
28278 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
28279 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28280 (Pred): Implement in terms of Succ.
28281
282822004-10-26 Ed Schonberg <schonberg@gnat.com>
28283
28284 * exp_aggr.adb (Safe_Component): An aggregate component that is an
28285 unchecked conversion is safe for in-place use if the expression of the
28286 conversion is safe.
28287 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
28288 be expandable in place even if the aggregate does not come from source.
28289 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
28290 designated object of an allocator in place, rather than building it
28291 first on the stack. The previous scheme forces a full copy of the array,
28292 and may be altogether unsusable if the size of the array is too large
28293 for stack allocation.
28294
282952004-10-26 Robert Dewar <dewar@gnat.com>
28296
28297 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
28298 compares if the component is atomic.
28299
28300 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
28301 array assignment if the component type is atomic.
28302
283032004-10-26 Ed Schonberg <schonberg@gnat.com>
28304 Eric Botcazou <ebotcazou@act-europe.fr>
28305
28306 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
28307 is aliased and is a by_reference type, do not pass by copy.
28308 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
28309 detect whether the call is in the right side of an assignment or
28310 the expression of an object declaration. Recurse on component
28311 association within aggregates.
28312 Call it in the condition that determines whether the temporary is
28313 necessary for correct stack-checking.
28314
283152004-10-26 Thomas Quinot <quinot@act-europe.fr>
28316
28317 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
28318 RACW_Type, used in the PolyORB version.
28319 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
28320 version and the GARLIC version.
28321
15cd18b9 28322 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
0ca5fab2
AC
28323 Rename RCI_Info to RCI_Locator for better consistency between the
28324 GARLIC and PolyORB versions of the distributed systems annex.
28325 (DSA_Implementation_Name): This enumeration lists the possible
28326 implementations of the Partition Communication Subsystem for the
28327 Distributed Systems Annex (DSA). The three available implementations
28328 are the dummy stub implementation (No_DSA), and two versions based on
28329 two different distribution runtime libraries: GARLIC and PolyORB. Both
28330 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
28331 technology.
28332 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
28333 that organization.
28334
28335 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
28336 between the GARLIC and PolyORB versions of the distributed systems
28337 annex.
28338 Remove RE_Unbounded_Reclaim_Pool since it is unused.
28339
283402004-10-26 Gary Dismukes <dismukes@gnat.com>
28341
28342 * gnat1drv.adb: Suppress calling the back end when
28343 Frontend_Layout_On_Target is true.
28344
283452004-10-26 Thomas Quinot <quinot@act-europe.fr>
28346
28347 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
28348 Set_Read_Only): New subprograms.
28349 These new routines allow the user to set or unset the Owner execute
28350 and Owner write permission flags on a file.
28351
28352 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
28353 GNAT.OS_Lib.Set_Executable instead of rolling our own.
28354
283552004-10-26 Matthew Gingell <gingell@gnat.com>
28356
28357 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
28358
283592004-10-26 Pascal Obry <obry@gnat.com>
28360
28361 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
28362 memory before the faulting page we properly test the process read
28363 access for this address using appropriate Win32 routine.
28364 (HPUX sections): guard with "__hpux__" instead of "hpux".
28365
283662004-10-26 Robert Dewar <dewar@gnat.com>
28367
28368 * lib-xref.adb (Generate_Reference): Don't complain about reference to
28369 entry parameter if pragma Unreferenced set, since we do not properly
28370 handle the case of multiple parameters.
28371
283722004-10-26 Vincent Celier <celier@gnat.com>
28373
28374 * prj-env.adb: (Contains_ALI_Files): New Boolean function
28375 (Ada_Objects_Path.Add): For a library project, add to the object path
28376 the library directory only if there is no object directory or if the
28377 library directory contains ALI files.
28378 (Set_Ada_Paths.Add.Recursive_Add): Ditto
28379
283802004-10-26 Vincent Celier <celier@gnat.com>
28381
28382 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
28383 extension of library projects.
28384
28385 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
28386 path defaults to ".:<prefix>/lib/gnat".
28387 (Parse): For an extending all project, allow direct import of a project
28388 that is virtually extended.
28389
28390 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
28391 the specified name is directly imported, return its ID. Otherwise, if
28392 an extension of this project is imported, return the ID of the
28393 extension.
28394
283952004-10-26 Robert Dewar <dewar@gnat.com>
28396
28397 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
28398 (Sub3): New procedure, used by Scaled_Divide
28399 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
28400 correct more than one instance of failure to propagate carries
28401 correctly.
28402 (Double_Divide): Handle overflow case of largest negative number
28403 divided by minus one.
28404
28405 * s-arit64.ads (Double_Divide): Document that overflow can occur in
28406 the case of a quotient value out of range.
28407 Fix comments.
28408
284092004-10-26 Robert Dewar <dewar@gnat.com>
28410
28411 * s-bitops.adb (Bit_Eq): Remove redundant check.
28412
28413 * s-bitops.ads: Minor comment updates
28414 Change some occurrences of Address to System.Address
28415
28416 * s-carsi8.ads: Fix minor cut-and-paste error in comments
28417
284182004-10-26 Ed Schonberg <schonberg@gnat.com>
28419
28420 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
28421 accessibility check to prefix that is a protected operation.
28422
284232004-10-26 Ed Schonberg <schonberg@gnat.com>
28424
28425 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
28426 empty, post message on stub.
28427
284282004-10-26 Ed Schonberg <schonberg@gnat.com>
28429 Javier Miranda <miranda@gnat.com>
28430
28431 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
28432 current instance appears within a unit that is directly in the context
28433 of the main unit.
28434 Used to determine whether the body of the instance should be analyzed
28435 immediately after its spec, to make its subprogram bodies available
28436 for front-end inlining.
28437 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
28438 constraint is not allowed on the component type (AARM 12.5.3(3))
28439
284402004-10-26 Cyrille Comar <comar@act-europe.fr>
28441
28442 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
28443 'Storage_Pool): enhance, document & limit detection of non-sharable
28444 internal pools.
28445
28446 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
28447
28448 * s-pooglo.ads: Add more documentation now that this pool is properly
28449 documented.
28450
284512004-10-26 Ed Schonberg <schonberg@gnat.com>
28452
28453 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
28454 or protected type with discriminants, do not constrain the
28455 corresponding record type if the subtype declaration has no
28456 discriminant constraints. This can be the case in source code, or in
28457 the subtype declaration created to rename an actual type within an
28458 instantiation.
28459
284602004-10-26 Ed Schonberg <schonberg@gnat.com>
28461
28462 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
28463 different kind of stub (possibly wrong name for file), do not check
28464 for conformance.
28465 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
28466 includes call to some function that returns an unconstrained type, do
28467 not inline.
28468
284692004-10-26 Ed Schonberg <schonberg@gnat.com>
28470
28471 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
28472 appear in the code for the main unit. Dependencies among units in the
28473 context of the main unit are established when those other units are
28474 compiled. Otherwise spurious elaboration constraints can generate
28475 incorrect elaboration circularities.
28476
284772004-10-26 Thomas Quinot <quinot@act-europe.fr>
28478 Ed Schonberg <schonberg@gnat.com>
28479
28480 * sem_util.adb (Is_Aliased_View): Defend against the case where this
28481 subprogram is called with a parameter that is not an object name. This
28482 situation arises for some cases of illegal code, which is diagnosed
28483 later, and in this case it is wrong to call Is_Aliased, as that might
28484 cause a compiler crash.
28485 (Explain_Limited_Type): Refine previous fix to include
28486 inherited components of derived types, to provide complete information.
28487
28488 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
28489 is the prival for a protected object.
28490 It is necessary to mark this entity as a variable, in addition to
28491 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
28492 modified to avoid checking the Aliased flag on entities that are not
28493 objects. (Checking that flag for non-objects is erroneous and could
28494 lead to a compiler crash).
28495
284962004-10-26 Robert Dewar <dewar@gnat.com>
28497
28498 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
28499 X_Frac = 0.5, then we know that the number X must be positive.
28500 (Succ): Remove the same redundant test, and also fix the primary test
28501 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
28502 Minor reformatting
28503 (Decompose): Add fuller comments to spec
28504
285052004-10-26 Pascal Obry <obry@gnat.com>
28506
28507 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
28508 validity (process must have read access). Set to 0 in all other cases.
28509 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
28510 violation on Win32.
28511 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
28512 segmentation violation.
28513
285142004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
28515
28516 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
28517 whose type is a constructed subtype of an aliased object with an
28518 unconstrained nominal subtype, convert the actual to the constructed
28519 subtype before taking its address.
28520
285212004-10-26 Vincent Celier <celier@gnat.com>
28522
28523 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
28524 (Is_Path_Name_Case_Sensitive): New function
28525
28526 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
28527 (Base_Name, Simple_Name, Current_Directory, Compose,
28528 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
28529 the result.
28530
285312004-10-26 Cyrille Comar <comar@act-europe.fr>
28532 Vasiliy Fofanov <fofanov@act-europe.fr>
28533 Vincent Celier <celier@gnat.com>
28534
28535 * gnat_ugn.texi: Generalize "finding memory problems" section into a
28536 "memory management issues" section and document some of the useful
28537 memory pools provided as part of the GNAT library.
28538 Remove "virtual" from declaration of A::method2 in
28539 the simple example of Ada/C++ mixed system.
28540 Library Projects may be virtually extended: their virtual extensions
28541 are not Library Projects.
28542 Added section on extending project hierarchies.
28543
d65c6710 285442004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
aa75e737
AL
28545
28546 * adaint.c (__gnat_get_libraries_from_registry): Cast value
28547 to LPBYTE.
28548 (__gnat_portable_spawn): Remove const.
28549
28550 * mingw32.h (MAXPATHLEN): Check for previous definition.
28551
95e19580
MK
285522004-10-17 Matthias Klose <doko@debian.org>
28553
28554 * gnatvsn.ads: Set gnat library version to 4.0.
28555
88a6ecb6
VC
285562004-10-05 Vincent Celier <celier@gnat.com>
28557
a1286ef5 28558 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
88a6ecb6 28559
9e94c78f 285602004-10-04 Laurent Guerby <laurent@guerby.net>
110aba14
LG
28561
28562 PR ada/15156
28563 * Makefile.in: Define and use RANLIB_FLAGS.
88a6ecb6 28564
09552763
PO
285652004-10-04 Pascal Obry <obry@gnat.com>
28566
28567 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
28568 other x86 platforms).
28569
a8e490b7
OH
285702004-10-04 Olivier Hainque <hainque@act-europe.fr>
28571
28572 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
28573 in general and triggers stack alignment adjustment for thread entry
28574 points on targets where this is necessary.
28575
71c10a83
BB
285762004-10-04 Bernard Banner <banner@gnat.com>
28577
28578 PR ada/13897
71c10a83
BB
28579 * Makefile.in: Add section for powerpc linux
28580 Add variant i-vxwork-x86.ads
28581
28582 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
28583
9a03df55
OH
285842004-10-04 Olivier Hainque <hainque@act-europe.fr>
28585
28586 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
28587 table registration calls when need be. Ensures no reference to the crt
28588 ctors symbol are issued in the SJLJ case, which avoids possible
28589 undefined symbol errors in the case of modules to be statically linked
28590 with the kernel.
28591
28d6470f
JM
285922004-10-04 Javier Miranda <miranda@gnat.com>
28593
28594 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
28595 in-line the code corresponding to subprogram Analyze_Actuals. In
28596 addition, analyze the actuals only in case of subprogram call.
28597
06237875
EF
285982004-10-04 Ed Falis <falis@gnat.com>
28599
28600 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
28601
259d6c3a
SR
286022004-10-04 Sergey Rybin <rybin@act-europe.fr>
28603
28604 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
28605 in the documentation.
28606
6f21ed26
RD
286072004-10-04 Robert Dewar <dewar@gnat.com>
28608
28609 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
28610 IF and CASE.
28611 (Analyze_Block_Statement): Add circuitry to detect following dead code
28612 (Check_Unreachable_Code): Handle case of block exit
28613
4cded177
RD
286142004-10-04 Robert Dewar <dewar@gnat.com>
28615
28616 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
28617 (XMatchD): Avoid warning for Logic_Error call
28618
c6a60aa1
RD
286192004-10-04 Robert Dewar <dewar@gnat.com>
28620
28621 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
28622 consider expressions buried within a procedure actual to be an actual.
28623 This caused some blowups with uses of packed slices within a procedure
28624 actual.
28625
1fdebfe5
RD
286262004-10-04 Robert Dewar <dewar@gnat.com>
28627
28628 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
28629 longer need to be initialized to zero.
28630 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
28631 initialized to zero.
28632
28633 * checks.adb (Expr_Known_Valid): Packed arrays are now always
28634 considered valid, even if the representation is modular. That's correct
28635 now that we no longer initialize packed modular arrays to zero.
28636
28637 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
28638 suffixes. These are now documented as the only cases in which the
28639 debugger ignores outer records.
28640 Previously, the spec allowed arbitrary suffixes for this purpose.
28641 Change name of LJM to JM for packed array pad records
28642 Create separate section on packed array handling, and add a whole new
28643 set of comments to this section describing the situation with packed
28644 modular types and justification requirements depending on endianness.
28645
cd91501c
RD
286462004-10-04 Robert Dewar <dewar@gnat.com>
28647
28648 * a-except.adb: Add a comment for last change
28649
28650 * einfo.ads: Minor spelling correction in comment
28651
28652 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
28653
28654 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
28655 messages.
28656
28657 * sem_util.ads: Minor comment update
28658
c71c53a8
ES
286592004-10-04 Ed Schonberg <schonberg@gnat.com>
28660
28661 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
28662 Inline_Always when in Configurable_Run_Time mode.
28663
28664 * sem_prag.adb (Process_Convention): If entity is an inherited
28665 subprogram, apply convention to parent subprogram if in same scope.
28666 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
28667 when in Configurable_Run_Time mode.
28668
71d9e9f2
ES
286692004-10-04 Ed Schonberg <schonberg@gnat.com>
28670
28671 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
28672 class_wide type after component list has been inherited.
28673
0b525bee
ES
286742004-10-04 Ed Schonberg <schonberg@gnat.com>
28675
28676 * sem_ch12.adb (Check_Generic_Actuals): New predicate
28677 Denotes_Previous_Actual, to handle properly the case of a private
28678 actual that is also the component type of a subsequent array actual.
28679 The visibility status of the first actual is not affected when the
28680 second is installed.
28681 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
28682 make fully recursive the treatment of formals of packages declared
28683 with a box.
28684 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
28685 the above on exit from an instantiation.
28686 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
28687 current instantiation which is now complete.
28688 (Analyze_Package_Instantiation): No instantiated body is needed if the
28689 main unit is generic. Efficient, and avoid anomalies when a instance
28690 appears in a package accessed through rtsfind.
28691
27ad9660
ES
286922004-10-04 Ed Schonberg <schonberg@gnat.com>
28693
28694 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
28695 do not generate a declaration for a temporary if the call is part of a
28696 library-level instantiation.
28697
1c6c6771
ES
286982004-10-04 Ed Schonberg <schonberg@gnat.com>
28699
28700 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
28701 searching for a limited component to flag.
28702
28703 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
28704 expansion of Input, to account for the fact that the implicit call
28705 generated by the attribute reference must freeze the user-defined
28706 stream subprogram. This is only relevant to 'Input, because it can
28707 appear in an object declaration, prior to the body of the subprogram.
28708
28709 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
28710 expansion can proceed and further errors uncovered.
28711 (Minor clean up): Fix cases of using | instead of \ for continuation
28712 messages.
28713
8005f3e5
RK
287142004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28715
28716 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
28717
28718 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
28719 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
28720 Use gcc_assert and gcc_unreachable.
28721
28722 * decl.c (gnat_to_gnu_entity, case object): Check and process a
28723 specified alignment before validating size.
28724 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
28725 stripped-down declaration for the type of the inner field when making
28726 a JM type.
28727
28728 * utils.c (finish_record_type): Do not compute the size in units
28729 incrementally. Instead compute it once for the rep clause case.
28730 Use gcc_assert and gcc_unreachable.
28731
6a294a29
VC
287322004-10-04 Vincent Celier <celier@gnat.com>
28733
28734 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
28735 in file name.
28736 (Is_Valid_Path_Name): Take '/' as a directory separator.
28737
9a080ea3
VC
287382004-10-04 Vincent Celier <celier@gnat.com>
28739
28740 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
28741 (Extended_Project) only if Extended_Project is defined, to avoid
28742 assertion error.
28743 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
28744 resolved path.
28745 (Parse_Single_Project): Ditto.
28746
28747 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
28748 Add_To_Project_Path for virtual projects.
28749
51004cb5
VC
287502004-10-04 Vincent Celier <celier@gnat.com>
28751
15cd18b9
SS
28752 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28753 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28754 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
51004cb5
VC
28755 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
28756 parameter Options_2.
28757
28758 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
28759 Build_Dynamic_Library with an empty Options_2.
28760
28761 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
28762 default anymore.
28763
28764 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
28765 directory separator, if any.
28766 (Gprmake): Do not allow mains on the command line for library projects.
28767 Do not attempt to link when the project is a library project.
28768 (Library_Opts): New table to store Library_Options.
28769 (Build_Library): If Library_Options is specified, pass these options
28770 when building a shared library.
28771
3b37ffbf
JR
287722004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28773
28774 * s-tposen.adb (Service_Entry): The object must be always unlocked at
28775 the end of this procedure now that the unlock operation was inserted
28776 by the expander.
28777
b23e28d5
JR
287782004-10-04 Jose Ruiz <ruiz@act-europe.fr>
28779
28780 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
28781 corresponding to the Preallocated_Stacks flags in System.
28782 (Get_Target_Parameters): Including the processing for
28783 Preallocated_Stacks.
28784
15cd18b9
SS
28785 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
28786 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
28787 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
28788 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
28789 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
28790 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
28791 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
28792 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
28793 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
28794 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
b23e28d5
JR
28795 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
28796 used to signal whether the compiler creates the required stacks and
28797 descriptors for the different tasks (when True) or it is done by the
28798 underlying operating system at run time (when False).
28799 It is initially set to False in all targets.
28800
28801 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
28802 if it is supported by the target.
28803 (Make_Task_Create_Call): Pass the stack address if it has been
28804 previously created. Otherwise pass a Null_Address.
28805
28806 * snames.adb: Add _stack.
28807
28808 * snames.ads: Add Name_uStack. Required to allow the expander to
28809 statically allocated task stacks.
28810
28811 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
28812 Stack_Address argument.
28813 Check that its value is equal to Null_Address because this target does
28814 not support the static stack allocation.
28815
6fd459bb
TQ
288162004-10-04 Thomas Quinot <quinot@act-europe.fr>
28817
28818 * usage.adb: Change "pragma inline" to "pragma Inline" in information
28819 and error messages
28820
5885facb
TQ
288212004-10-04 Thomas Quinot <quinot@act-europe.fr>
28822
28823 * exp_dist.adb: Split declaration of asynchronous flag out of
28824 Add_RACW_Read_Attribute.
28825 Minor reformatting for better alignment with PolyORB version.
28826 Store the entity for the asynchronous flag of an RACW, rather than the
28827 expression, in the asynchronous flags table. This will allow this flag
28828 to be used in other subprograms beside Add_RACW_Read_Attribute.
28829
d6c7ed50
TQ
288302004-10-04 Thomas Quinot <quinot@act-europe.fr>
28831
28832 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
15cd18b9
SS
28833 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28834 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
28835 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
d6c7ed50
TQ
28836 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
28837 sockets constant MSG_NOSIGNAL (Linux-specific).
28838 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
28839 all Send operations.
28840 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
28841 from trigerring SIGPIPE.
28842 Rename components to avoid clash with Ada 2005 possible reserved
28843 word 'interface'.
28844 (Check_Selector): When the select system call returns with an error
28845 condition, propagate Socket_Error to the caller.
28846
0f0377f6
JH
288472004-10-01 Jan Hubicka <jh@suse.cz>
28848
28849 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
28850
2c9beb8a
RD
288512004-09-23 Robert Dewar <dewar@gnat.com>
28852
28853 PR ada/17540
2c9beb8a
RD
28854 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
28855 instead do this at freeze time (we won't do it if there is an address
28856 clause).
28857 Change "pragma inline" to "pragma Inline" in information and error
28858 messages.
28859 Minor reformatting.
28860
28861 * freeze.adb (Check_Address_Clause): Remove previous change, not the
28862 right way of doing things after all.
28863 (Freeze_Entity): For object, set Is_Public for imported entities
28864 unless there is an address clause present.
28865
2494e673
OH
288662004-09-21 Olivier Hainque <hainque@act-europe.fr>
28867
28868 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
28869 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
28870 ensures proper handling of types with rep clauses, which might have
28871 their TYPE_SIZE set already.
28872
910d20fc
RD
288732004-09-21 Robert Dewar <dewar@gnat.com>
28874
28875 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
28876 packed array types in both little- and big-endian cases. This change
28877 ensures that we no longer count on the unused bits being initialized
28878 for such types (and in particular ensures that equality testing will
28879 only read the relevant bits).
28880 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28881 These changes mean that we no longer need to initialize small packed
28882 arrays.
28883 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
28884 optimization to an LJM field as to its parent field.
28885
28886 * ada-tree.h, trans.c, utils.c, utils2.c:
28887 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
28888
8f235343
JH
288892004-09-20 Jan Hubicka <jh@suse.cz>
28890
28891 * utils.c (gnat_finalize): Remove.
28892 (end_subprog_body): Directly call cgraph_finalize_function;
28893 do not lower the nested functions.
28894
bb9be5eb
RD
288952004-09-20 Robert Dewar <dewar@gnat.com>
28896
28897 PR ada/17540
bb9be5eb
RD
28898 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
28899 if an address clause is present, since that means that the Import
28900 should be ignored.
28901
796ef2e2
AC
289022004-09-20 Arnaud Charlet <charlet@act-europe.fr>
28903
28904 * 5tsystem.ads: Removed, no longer used.
28905
6615c446
JO
289062004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
28907 Zack Weinberg <zack@codesourcery.com>
28908
28909 * ada-tree.def: Use tree_code_class enumeration constants
28910 instead of code letters.
28911 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
28912 Update for new tree-class enumeration constants.
28913
93ed8a01
VC
289142004-09-17 Vincent Celier <celier@gnat.com>
28915
28916 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
28917 capabilities of the general project manager.
28918
c885d7a1
AC
289192004-09-09 Vincent Celier <celier@gnat.com>
28920
28921 * a-direct.ads: Add pragma Ada_05
28922 (Directory_Entry_Type): Give default value to component Kind to avoid
28923 not initialized warnings.
28924
28925 * a-direct.adb (Current_Directory): Remove directory separator at the
28926 end.
28927 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
28928 an existing directory.
28929 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
28930 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
28931 Convert the result to File_Size.
28932
28933 * prj.ads: (Project_Error): New exception
28934
28935 * prj-attr.adb: Except in procedure Initialize, Fail comes from
28936 Prj.Com, not from Osint.
28937 (Attrs, Package_Attributes): Tables moved to private part of spec
28938 (Add_Attribute, Add_Unknown_Package): Moved to new child package
28939 Prj.Attr.PM.
28940 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
28941 Prj.Project_Error after call to Fail.
28942 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
28943 Fail. Check that package name is not already in use.
28944
28945 * prj-attr.ads: Comment updates to indicate that all subprograms may be
28946 used by tools, not only by the project manager, and to indicate that
28947 exception Prj.Prj_Error may be raised in case of problem.
28948 (Add_Unknown_Package, Add_Attribute): Moved to new child package
28949 Prj.Attr.PM.
28950 (Attrs, Package_Attributes): Table instantiations moved from the body to
28951 the private part to be accessible from Prj.Attr.PM body.
28952
28953 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
28954 from new package Prj.Attr.PM.
28955 (Parse_Attribute_Declaration): Call Add_Attribute from new package
28956 Prj.Attr.PM.
28957
28958 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
28959
28960 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
28961 instead of Elaboration_Checks).
28962
28963 * a-calend.adb: Minor reformatting
28964
289652004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28966
28967 * gigi.h (maybe_pad_type): New declaration.
28968 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
28969
28970 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
28971
28972 * cuintp.c: Convert to use buildN.
28973
28974 * decl.c (maybe_pad_type): No longer static.
28975 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
28976 target pointer.
28977 Convert to use buildN.
28978
28979 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
28980 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
28981 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
28982 RHS.
28983 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
28984 (gnat_gimplify_expr, case ADDR_EXPR): New case.
28985 Convert to use buildN.
28986
28987 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
28988 TREE_READONLY for const.
28989 Convert to use buildN.
28990
28991 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
28992 (create_var_decl): Refine when TREE_STATIC is set.
28993 Convert to use buildN.
28994
289952004-09-09 Gary Dismukes <dismukes@gnat.com>
28996
28997 * gnat_ugn.texi: Delete text relating to checking of ali and object
28998 consistency.
28999
29000 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
29001 routines.
29002
290032004-09-09 Jose Ruiz <ruiz@act-europe.fr>
29004
29005 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
29006 pragmas recognized by GNAT.
29007
29008 * gnat_rm.texi: Document pragma Detect_Blocking.
29009
29010 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
29011 raise Program_Error if called from a protected operation.
29012
29013 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
29014 the protected action nesting level.
29015 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
29016 protected action nesting level.
29017 (Unlock): When pragma Detect_Blocking is active decrease the protected
29018 action nesting level.
29019
29020 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
29021 Protected_Action_Nesting.
29022
29023 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
29024 Common_ATCB record. It contains the dynamic level of protected action
29025 nesting for each task. It is needed for checking whether potentially
29026 blocking operations are called from protected operations.
29027 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
29028 Detect_Blocking is active or not in the partition.
29029
29030 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
29031 raise Program_Error if called from a protected operation.
29032 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
29033 Program_Error if called from a protected operation.
29034 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
29035 Program_Error if called from a protected operation.
29036
29037 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
29038 raise Program_Error if called from a protected operation.
29039
29040 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
29041 raise Program_Error if called from a protected operation, and increase
29042 the protected action nesting level.
29043 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
29044 Program_Error if called from a protected operation, and increase the
29045 protected action nesting level.
29046 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
29047 protected action nesting level.
29048
29049 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
29050 raise Program_Error if called from a protected operation, and increase
29051 the protected action nesting level.
29052 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
29053 Program_Error if called from a protected operation, and increase the
29054 protected action nesting level.
29055 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
29056 raise Program_Error if called from a protected operation.
29057 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
29058 active, raise Program_Error if called from a protected operation.
29059 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
29060 protected action nesting level.
29061
29062 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
29063 insertion of the statement raising Program_Error. The run time
29064 contains the required machinery for handling that.
29065
29066 * sem_util.ads: Change comment associated to procedure
29067 Check_Potentially_Blocking_Operation.
29068 This procedure does not insert a call for raising the exception because
29069 that is currently done by the run time.
29070
29071 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
29072
29073 * init.c: Add the global variable __gl_detect_blocking that indicates
29074 whether pragma Detect_Blocking is active (1) or not (0). Needed for
29075 making the pragma available at run time.
29076 (__gnat_set_globals): Pass and update the detect_blocking parameter.
29077
29078 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
29079 pragma Detect_Blocking is active.
29080
29081 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
29082
29083 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
29084 DB is found in the ali file. Any unit compiled with pragma
29085 Detect_Blocking active forces its effect in the whole partition.
29086
29087 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
29088 Detect_Blocking is active and delay is called from a protected
29089 operation.
29090
29091 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
29092 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
29093 Detect_Blocking is active (0 otherwise).
29094 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
29095 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
29096 otherwise).
29097
290982004-09-09 Thomas Quinot <quinot@act-europe.fr>
29099
29100 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
29101 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
29102 package.
29103
29104 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
29105 (Register_Receiving_Stub): Add Subp_Info formal parameter.
29106 Update API in placeholder implemetation of s-parint to reflect changes
29107 in distribution runtime library.
29108
29109 * sem_ch3.adb (Expand_Derived_Record): Rename to
29110 Expand_Record_Extension.
29111
29112 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
29113 primitive operations of potentially distributed object types that have
29114 non-controlling anonymous access formals.
29115
29116 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
29117 subprogram.
29118 New implementation of expansion for remote access-to-subprogram types,
29119 based on the RACW infrastructure.
29120 This version of sem_dist is compatible with PolyORB/DSA as well as
29121 GLADE.
29122
29123 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
29124 Asynchrronous that applies to a remote access-to-subprogram type, mark
29125 the underlying RACW type as asynchronous.
29126
29127 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
29128 __gnat_using_gnu_linker to 1.
29129
29130 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
29131 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
29132 GNAT.Perfect_Hash_Generators, and remove the empty
29133 GNAT.Perfect_Hash package.
29134
29135 * atree.adb: Minor reformatting
29136
29137 * exp_ch3.adb (Expand_Derived_Record): Rename to
29138 Expand_Record_Extension.
29139 (Build_Record_Init_Proc.Build_Assignment): The default expression in
29140 a component declaration must remain attached at that point in the
29141 tree so New_Copy_Tree copies it if the enclosing record type is derived.
29142 It is therefore necessary to take a copy of the expression when building
29143 the corresponding assignment statement in the init proc.
29144 As a side effect, in the case of a derived record type, we now see the
29145 original expression, without any rewriting that could have occurred
29146 during expansion of the ancestor type's init proc, and we do not need
29147 to go back to Original_Node.
29148
29149 * exp_ch3.ads (Expand_Derived_Record): Rename to
29150 Expand_Record_Extension.
29151
29152 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
29153 Returns the RACW type used to implement a remote access-to-subprogram
29154 type.
29155 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
29156 New subprograms. Used to create a proxy tagged object for a remote
29157 subprogram. The proxy object is used as the designated object
29158 for RAS values on the same partition (unless All_Calls_Remote applies).
29159 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
29160 System.Partition_Interface.Get_Unique_Remote_Pointer.
29161 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
29162 Renamed from Add_RAS_*_Attribute.
29163 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
29164 subprograms.
29165 New implementation of expansion for remote access-to-subprogram types,
29166 based on the RACW infrastructure.
29167
29168 * exp_dist.ads (Copy_Specification): Update comment to note that this
29169 function can copy the specification from either a subprogram
29170 specification or an access-to-subprogram type definition.
29171
291722004-09-09 Ed Schonberg <schonberg@gnat.com>
29173
29174 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
29175 in an instance, between an explicit subprogram an one inherited from a
29176 type derived from an actual.
29177
29178 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
29179 add a polling call if the subprogram is to be inlined by the back-end,
29180 to avoid repeated calls with multiple inlinings.
29181
29182 * checks.adb (Apply_Alignment_Check): If the expression in the address
29183 clause is a call whose name is not a static entity (e.g. a dispatching
29184 call), treat as dynamic.
29185
291862004-09-09 Robert Dewar <dewar@gnat.com>
29187
29188 * g-trasym.ads: Minor reformatting
29189
29190 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
29191 packed arrays, since unused bits are expected to be zero for a
29192 comparison.
29193
291942004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
29195
29196 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
29197 comment.
29198
291992004-09-09 Pascal Obry <obry@gnat.com>
29200
29201 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
29202 enable map file generation. Add the right option to generate the map
29203 file if Map_File is set to True.
29204
29205 * gnatdll.adb (Gen_Map_File): New variable.
29206 (Syntax): Add info about new -m (Map_File) option.
29207 (Parse_Command_Line): Add support for -m option.
29208 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
29209 Minor reformatting.
29210
292112004-09-09 Laurent Pautet <pautet@act-europe.fr>
29212
29213 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
29214 new gnatdist implementation.
29215 Define a subpackage isolating the output routines specific to this
29216 verbose mode.
29217
292182004-09-09 Joel Brobecker <brobecker@gnat.com>
29219
29220 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
29221
29222 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
29223
292242004-09-09 Cyrille Comar <comar@act-europe.fr>
29225
29226 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
29227 internal unit.
29228
29229 * opt.ads: Add Ada_Version_Runtime constant used to decide which
29230 version of the language is used to compile the run time.
29231
292322004-09-09 Arnaud Charlet <charlet@act-europe.fr>
29233
29234 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
29235 of variable length temporaries for function return now that the
29236 back-end and gigi support it.
29237
23c7b149 292382004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6cdb2c6e
AC
29239
29240 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
29241
29242 * trans.c (struct stmt_group): Delete field GLOBAL.
29243 (gnat_init_stmt_group): Do not initialize it.
29244 (call_to_gnu): Use save_expr, not protect_multiple_eval.
29245 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
29246 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
29247 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
29248 (start_stmt_group): Likewise.
29249 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
29250
29251 * utils2.c (ggc.h): Include.
29252 (build_call_raise): Call build_int_cst, not build_int_2.
29253
29254 * utils.c (gnat_init_decl_processing): Fix arg to
29255 build_common_tree_nodes.
29256 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
29257 (gnat_define_builtin): Set built_in_decls.
29258 (init_gigi_decls): Call build_int_cst, not build_int_2.
29259
29260 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
29261 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
29262 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
29263 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
29264 SET_TYPE_MODULE): Use them.
29265 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
29266 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
29267 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
29268 SET_TYPE_ADA_SIZE): Likewise.
29269 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
29270 (DECL_CONST_CORRESPONDING_VAR,
29271 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
29272 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
29273 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
29274 (TYPE_RM_SIZE_NUM): New macro.
29275 (TYPE_RM_SIZE): Modified to use above.
29276
29277 * cuintp.c: (build_cst_from_int): New function.
29278 (UI_To_gnu): Use it.
29279
29280 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
29281 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
29282 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
29283 MIN_EXPR for the size, copy it into new.
29284
23c7b149 292852004-09-01 Robert Dewar <dewar@gnat.com>
6cdb2c6e
AC
29286
29287 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
29288 packed indexed component where array is an IN OUT formal. This
29289 generated garbage code previously.
29290
29291 * gnat_ugn.texi: Document -fverbose-asm
29292
29293 * gnat-style.texi: Minor updates (note that boolean constants and
29294 variables are joined with AND/OR rather than short circuit forms).
29295
23c7b149 292962004-09-01 Ed Schonberg <schonberg@gnat.com>
6cdb2c6e
AC
29297
29298 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
29299 it is an upward conversion of an untagged type with no representation
29300 change.
29301
23c7b149 293022004-09-01 Thomas Quinot <quinot@act-europe.fr>
6cdb2c6e
AC
29303
29304 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
29305 System.Partition_Interface.
29306
29307 * checks.adb (Apply_Access_Checks): Do not generate checks when
29308 expander is not active (but check for unset reference to prefix of
29309 dereference).
29310
29311 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
29312 pragma Debug as an if statement with a constant condition, for
29313 consistent treatment of entity references contained within the
29314 enclosed procedure call.
29315
23c7b149 293162004-09-01 Vincent Celier <celier@gnat.com>
6cdb2c6e
AC
29317
29318 * bindgen.adb: (Set_EA_Last): New procedure
29319 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
29320 Set_EA_Last.
29321 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
29322 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
29323 linked without errors.
29324 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
29325 ST and EA.
29326 (Gen_Exception_Table_C): Correct same bugs
29327
29328 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
29329
29330 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
29331 on Windows, make sure that the drive letter is in upper case.
29332
29333 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
29334 Windows, when the drive letter is added and Case_Sensitive is True, the
29335 drive letter is forced to upper case.
29336
29337 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
29338 to Options_2 for the call to MLib.Utl.Gcc.
29339
29340 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
29341 directory separator when defining BASE_DIR.
29342
23c7b149 293432004-09-01 Pascal Obry <obry@gnat.com>
6cdb2c6e
AC
29344
29345 * gprcmd.adb (Extend): Do not output trailing directory separator. This
29346 is not needed and it confuses Windows GNU/make which does not report
29347 directory terminated by a slash as a directory.
29348 (gprcmd): Idem for "pwd" internal command.
29349
29350 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
29351 target names rewrite to fix regressions with recent version of
29352 GNU/make. Starting with GNU/make 3.80 the pipe character was not
29353 handled properly anymore.
29354
4eb104c1
AS
293552004-09-01 Andreas Schwab <schwab@suse.de>
29356
29357 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
29358 * raise.c [!IN_RTS]: Undef abort.
29359
6a6bfc8e
NS
293602004-08-27 Nathan Sidwell <nathan@codesourcery.com>
29361
ce552f75
NS
29362 * utils2.c (build_allocator): Use ssize_int.
29363
6a6bfc8e
NS
29364 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
29365
f8b7bf58
AS
293662004-08-27 Andreas Schwab <schwab@suse.de>
29367
29368 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
29369
15793d0c
NS
293702004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29371 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6615c446 29372
15793d0c
NS
29373 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
29374
7d60be94
NS
293752004-08-25 Nathan Sidwell <nathan@codesourcery.com>
29376
29377 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
29378 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29379 * utils.c (init_gigi_decls): Likewise.
29380 * utils2.c (build_call_raise, build_allocator): Likewise.
6615c446 29381
8c1d6d62
NS
293822004-08-24 Nathan Sidwell <nathan@codesourcery.com>
29383
7d60be94 29384 * utils.c (gnat_init_decl_processing): Adjust
8c1d6d62
NS
29385 build_common_tree_nodes call.
29386
3224bead
NS
293872004-08-20 Nathan Sidwell <nathan@codesourcery.com>
29388
29389 * utils2.c (build_allocator): Use build_int_cst for negative
29390 size types.
29391
4766261d
RH
293922004-08-18 Richard Henderson <rth@redhat.com>
29393
29394 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
29395
1f6c00df
NS
293962004-08-16 Nathan Sidwell <nathan@codesourcery.com>
29397
29398 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
29399 call.s
29400 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
29401 (gnat_to_gnu): Likewise.
29402
4c46b835
AC
294032004-08-16 Pascal Obry <obry@gnat.com>
29404
29405 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
29406 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
29407 option and not mdll anymore. Update comment.
29408
294092004-08-16 Pascal Obry <obry@gnat.com>
29410
29411 * bld.adb (Put_Include_Project): Properly handle directory separators
29412 on Windows.
29413
294142004-08-16 Ed Schonberg <schonberg@gnat.com>
29415
29416 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
29417 decreasing the number of allocated junk nodes while searching for the
29418 appropriate subprogram.
29419
4a90aeeb
NS
294202004-08-15 Nathan Sidwell <nathan@codesourcery.com>
29421
29422 * cuintp.c (UI_To_gnu): Use build_int_cst..
29423 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
29424 * utils.c (init_gigi_decls): Likewise.
29425 * utils2.c (build_call_raise): Likewise.
29426
244e5a2c
AC
294272004-08-13 Olivier Hainque <hainque@act-europe.fr>
29428
29429 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
29430 for a global aliased object with a variable size and an unconstrained
29431 nominal subtype, pretend there is no initializer if the one we have is
29432 incomplete, and avoid referencing an inexistant component in there. The
29433 part we have will be rebuilt anyway and the reference may confuse
29434 further operations.
29435
294362004-08-13 Thomas Quinot <quinot@act-europe.fr>
29437
29438 * einfo.ads: Minor reformatting
29439
29440 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
29441 restrictions in the ALI if we only want to warn about violations.
29442
294432004-08-13 Vincent Celier <celier@gnat.com>
29444
29445 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
29446 when creating a new Unit_Record in table Units.
29447
29448 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
29449 that are violated, if any.
29450
29451 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
29452 add directory separator if path already ends with a directory separator.
29453
294542004-08-13 Ed Schonberg <schonberg@gnat.com>
29455
29456 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
29457 unit, this is an attempt to inline a construct that is not available in
29458 the current restricted mode, so abort rather than trying to continue.
29459
29460 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
29461 discriminants that rename those of the parent, recover names of
29462 original discriminants for the constraint on the full view of the
29463 parent.
29464 (Complete_Private_Subtype): Do not create a subtype declaration if the
29465 subtype is an itype.
29466
29467 * gnat_rm.texi: Added section on implementation of discriminated
29468 records with default values for discriminants.
29469
294702004-08-13 Ed Schonberg <schonberg@gnat.com>
29471
29472 PR ada/15601
29473 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
29474 the second operand is overloaded.
29475
1a186ec5
RH
294762004-08-10 Richard Henderson <rth@redhat.com>
29477
29478 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
29479 add __builtin_alloca.
29480
89f1a702
RH
294812004-08-10 Richard Henderson <rth@redhat.com>
29482
29483 * config-lang.in (boot_language): Yes.
29484
5d09245e
AC
294852004-08-09 Thomas Quinot <quinot@act-europe.fr>
29486
29487 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
29488 from complaining on potential uninitialized reference.
29489 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
29490 new specification and test explicitly for non-zero return value.
29491
29492 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
29493 returning C.int, to avoid using a derived boolean type.
29494
29495 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
29496 Duplicate_Subexpr_No_Checks in preference to direct use of
29497 Remove_Side_Effects and New_Copy_Tree.
29498 Clear Comes_From_Source on prefix of 'Size attribute reference.
29499
29500 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
29501 g-socthi-vxworks.adb: Change calls to
29502 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
29503 and test explicitly for non-zero return value.
29504
6615c446 29505 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
5d09245e
AC
29506 (Is_Socket_In_Set): Declare imported function as returning C.int, to
29507 avoid using a derived boolean type.
29508
295092004-08-09 Albert Lee <lee@gnat.com>
29510
29511 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
29512
295132004-08-09 Pascal Obry <obry@gnat.com>
29514
29515 * gnat_ugn.texi: Document new way to build DLLs on Windows using
29516 GCC's -shared option.
29517
29518 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
29519 Options_2 parameter (options put after object files).
29520
295212004-08-09 Olivier Hainque <hainque@act-europe.fr>
29522
29523 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
29524 ignore overflows on low and high bounds of an index to also account for
29525 differences in signedness between sizetype and gnu_index_subtype.
29526 These are as legitimate as the ones caused by a lower TYPE_PRECISION
29527 on sizetype.
29528
295292004-08-09 Robert Dewar <dewar@gnat.com>
29530
29531 * s-solita.ads, s-solita.adb: Minor reformatting
29532
29533 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
29534 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
29535 obsolescent section
29536 Add note that No_Implicit_Conditionals does not suppress
29537 run time constraint checks.
29538
29539 * vms_conv.ads: Minor reformatting
29540
29541 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
29542 and necessary for following change).
29543 (Mark): Return new format Mark_Id containing sec stack address
29544 (Release): Use sec stack address from Mark_Id avoiding Self call
29545
29546 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
29547 pointer (cleanup and necessary for following change).
29548 Define Mark_Id as record containing address of secondary stack, that way
29549 Release does not need to find the stack again, decreasing the number of
29550 calls to Self and improving efficiency.
29551
29552 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
29553
29554 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
29555 case variable into the individual case branches when possible.
29556
29557 * sem_ch11.adb: Minor reformatting
29558
29559 * prj.ads: Correct spelling of suffixs
29560
29561 * prj-nmsc.adb: Minor reformatting
29562 Correct spelling suffixs throughout (also in identifiers)
29563
29564 * freeze.adb: Minor spelling correction
29565
29566 * exp_ch2.adb: Cleanups to handling of Current_Value
29567 (no functional effect).
29568
29569 * bld.adb: Correct spelling of suffixs
29570
29571 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
29572
295732004-08-09 Ed Schonberg <schonberg@gnat.com>
29574
29575 PR ada/15408
5d09245e
AC
29576 * sem_ch7.adb (Install_Private_Declarations): In the body of the
29577 package or of a child, private entities are both immediately_visible
29578 and not hidden.
29579
295802004-08-09 Ed Schonberg <schonberg@gnat.com>
29581
29582 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
29583 there are no range checks on the value of the literal.
29584
29585 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
29586 wrapped is the triggering alternative of an asynchronous select, action
29587 statements mustbe inserted before the select itself.
29588
29589 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
29590 case where the prefix is a protected function call.
29591 (Resolve_Attribute, case 'Access): The attribute reference on a
29592 subprogram is legal in a generic body if the subprogram is declared
29593 elsewhere.
29594
295952004-08-09 Vincent Celier <celier@gnat.com>
29596
29597 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
29598 languages, otherwise building the library may fail with unresolved
29599 symbols.
29600 (Compile_Sources): Do not build libraries if -c switch is used
29601
29602 * gnatlink.adb (Process_Args): New switches -M and -Mmap
29603 (Write_Usage): If map file creation is supported, output new switches
29604 -M and -Mmap.
29605 (Gnatlink): When -M is specified, add the necessary switch(es) to the
29606 gcc call, when supported.
29607
29608 * Makefile.in: Added indepsw.o to the object list for gnatlink
29609 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
29610
29611 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
29612 indepsw.adb, indepsw.ads: New files.
29613
296142004-08-09 Bernard Banner <banner@gnat.com>
29615
29616 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
29617
29618 * Makefile.in: add section for vxworks x86
29619
296202004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
29621
29622 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
29623 per-object constrained components where the discriminant is of an
29624 Access type.
29625 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
29626 the parent initialization procedure for derived Unchecked_Unions.
29627 Instead, derived Unchecked_Unions build their own initialization
29628 procedure.
29629 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
29630 Check the body of the subprogram for details.
29631 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
29632 functions for derived Unchecked_Union types by introducing a condition.
29633 Allow the creation of TSS equality functions for Unchecked_Unions.
29634 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
29635 Add formal parameter Discr to function signature. Discr is used to
29636 control the generated case statement for Unchecked_Union types.
29637 (Make_Eq_If): Rename formal parameter Node to E in function signature.
29638
29639 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
29640 Unchecked_Unions.
29641 Check the body of the subprogram for details.
29642 (Expand_Composite_Equality): Augment composite type equality to include
29643 correct handling of Unchecked_Union components.
29644 (Expand_N_In): Add condition to detect illegal membership tests when the
29645 subtype mark is a constrained Unchecked_Union and the expression lacks
29646 inferable discriminants, and build a Raise_Program_Error node.
29647 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
29648 to detect types that contain components of unconstrained Unchecked_Union
29649 subtype. Add condition to detect equality between types that have an
29650 unconstrained Unchecked_Union component, and build a Raise_Program_Error
29651 node. Add condition to detect equality between Unchecked_Union types
29652 that lack inferable discriminants, and build a Raise_Program_Error node.
29653 Otherwise build a TSS equality function call.
29654 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
29655 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
29656 with the operand lacking inferable discriminants, and build a Raise_
29657 Program_Error node.
29658 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
29659 composite equality.
29660 (Has_Inferable_Discriminants): Implement new predicate for objects and
29661 expressions of Unchecked_Union type. Check the body of subprogram for
29662 details.
29663 (Has_Unconstrained_UU_Components): Add function
29664 Component_Is_Unconstrained_UU. It is used to detect whether a single
29665 component is of an unconstrained Unchecked_Union subtype. Add function
29666 Variant_Is_Unconstrained_UU. It is used to detect whether a single
29667 component inside a variant is of an unconstrained Unchecked_Union type.
29668
29669 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
29670 inferred discriminant values. Add condition to generate a case
29671 statement with an inferred discriminant as the switch.
29672 (Make_Component_List_Assign): Introduce a Boolean flag that determines
29673 the behaviour of the subprogram in the presence of an Unchecked_Union.
29674 Add condition to trigger the usage of the inferred discriminant value
29675 as the generated case statement switch.
29676 (Make_Field_Assign): Introduce a Boolean flag that determines the
29677 behaviour of the subprogram in the presence of an Unchecked_Union. Add
29678 condition to trigger the usage of the inferred discriminant value as
29679 the right-hand side of the generated assignment.
29680
29681 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
29682 parameter generation when dealing with Unchecked_Unions.
29683
29684 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
29685 checks for Unchecked_Unions.
29686
29687 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
29688
29689 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
29690 Raise_Program_Error nodes for the execution of Read and Write
29691 attributes of Unchecked_Union types and the execution of Input and
29692 Output attributes of Unchecked_Union types that lack default
29693 discriminant values.
29694
29695 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
29696 Unchecked_Union. Add procedure Check_Component. It is used to inspect
29697 per-object constrained components of Unchecked_Unions for being
29698 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
29699 check individual components withing a variant.
29700
29701 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
29702 comparison of Unchecked_Unions.
29703 (Resolve_Equality_OP): Remove guard that prevents equality between
29704 Unchecked_Unions.
29705
29706 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
29707 of component subtypes for Unchecked_Union components.
29708 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
29709 since it is the actual subtype.
29710
29711 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
29712 pass of Unchecked_Union subtypes as generic actuals to formal types
29713 that lack known_discriminant_parts or that are derived Unchecked_Union
29714 types, and do nothing. In any other case, produce an error message.
29715
29716 * sem_ch3.adb (Analyze_Component_Declaration): Add function
29717 Contains_POC. It determines whether a constraint uses the discriminant
29718 of an enclosing record type.
29719 Add condition to detect per-object constrained component and set the
29720 appropriate flag.
29721 (Derived_Type_Declaration): Remove guard that prevents derivation from
29722 Unchecked_Union types.
29723 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
29724 Union subtypes.
29725
29726 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
29727 references to Unchecked_Union discriminants.
29728
29729 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
29730 formal generation when dealing with Unchecked_Unions.
29731 (Set_Actual_Subtypes): Add condition to prevent generation of actual
29732 subtypes for Unchecked_Unions.
29733
29734 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
29735 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
29736 completions of discriminated partial views by Unchecked_Unions and
29737 produce an error message.
29738
297392004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29740
29741 * trans.c (struct stmt_group): New field, GLOBAL.
29742 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
29743 (struct elab_info): New struct.
29744 (elab_info_list, gnu_elab_proc_stack): New variables.
29745 (Compilation_Unit_to_gnu): New procedure.
29746 (gigi): Call it and also handle elaboration procs we've saved.
29747 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
29748 global field from parent.
29749 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
29750 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
29751 (start_stmt_group): Initialize global field from parent.
29752 (add_decl_expr): Set to global for current statement group.
29753 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
29754 post.
29755
29756 * utils.c (global_bindings_p): True when no current_function_decl; no
29757 longer check current_binding_level.
29758
297592004-08-09 Ben Brosgol <brosgol@gnat.com>
29760
29761 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
29762 choice.
29763
29764 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
29765
160ff372
AS
297662004-08-06 Andreas Schwab <schwab@suse.de>
29767
29768 * utils.c (gnat_define_builtin): Remove second parameter of
29769 make_decl_rtl.
29770 (begin_subprog_body): Likewise.
29771
615cbd95
AC
297722004-07-26 Arnaud Charlet <charlet@act-europe.fr>
29773
29774 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
29775 optimization, not supported by the tree-ssa back-end.
29776
297772004-07-26 Olivier Hainque <hainque@act-europe.fr>
29778
29779 * s-mastop-irix.adb: Update comments.
29780
29781 * a-except.adb (Exception_Information): Raise Constraint_Error if
29782 exception Id is Null_Id.
29783 This is required behavior, which is more reliably and clearly checked
29784 at the top level interface level.
29785
297862004-07-26 Javier Miranda <miranda@gnat.com>
29787
29788 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
29789 call if a component has no default_expression and the box is used.
29790
29791 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
29792 default_expression and you use box, it behaves as if you had declared a
29793 stand-alone object.
29794 (Resolve_Record_Aggregate): If a component has no default_expression and
29795 you use box, it behaves as if you had declared a stand-alone object.
29796
29797 * sem_ch10.adb (Install_Siblings): Do not make visible the private
29798 entities of private-with siblings.
29799
298002004-07-26 Ed Schonberg <schonberg@gnat.com>
29801
29802 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
29803 for a component of an itype, set the parent pointer for analysis,
29804 there is no list in which to insert it.
29805
29806 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
29807 bona-fide renamings, not for inherited operations.
29808
29809 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
29810 actual for a formal that is an access parameter, create local
29811 finalization list even if the expression is not an aggregate.
29812
298132004-07-26 Ed Schonberg <schonberg@gnat.com>
29814
29815 PR ada/16213
29816 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
29817 Diagnose properly illegal subprogram renamings that are library units.
29818
298192004-07-26 Ed Schonberg <schonberg@gnat.com>
29820
29821 PR ada/15588
29822 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
29823 conversion rewritten as an unchecked conversion, check that original
29824 expression is a variable.
29825
29826 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
29827 unchecked_conversion, create new node rather than rewriting in place,
29828 to preserve original construct.
29829
298302004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29831
29832 * gigi.h (gnat_expand_body): Deleted.
29833
29834 * Make-lang.in: (trans.o): Depends on function.h.
29835
29836 * misc.c: (gnat_expand_body): Moved to here.
29837
29838 * trans.c (gnat_expand_body_1): Deleted.
29839 (gnat_expand_body): Moved from here.
29840 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
29841 (add_stmt): Check for marked visited with global_bindings_p.
29842 (gnat_gimplify_expr, case COMPONENT_REF): New case.
29843 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
29844
29845 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
29846 VIEW_CONVERT_EXPR if not operation type.
29847
29848 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
29849 fat pointer.
29850
29851 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
29852 changes: reformatting of negation operators, removing unneeded
29853 inequality comparison with zero, converting equality comparisons with
29854 zero to negations, changing int/0/1 to bool/false/true, replace calls
29855 to gigi_abort with abort, and various other similar changes.
29856
298572004-07-26 Vincent Celier <celier@gnat.com>
29858
29859 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
29860 "setup".
29861
29862 * make.adb (Gnatmake): Fail when a library is not present and there is
29863 no object directory.
29864
29865 * mlib-prj.adb (Check_Library): No need to check if the library needs
29866 to be rebuilt if there is no object directory, hence no object files
29867 to build the library.
29868
29869 * opt.ads (Setup_Projects): New Boolean flag.
29870
29871 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
29872 Location.
29873 Create directory when Kind /= "" and in "gnat setup". Report error if
29874 directory cannot be created.
29875 (Ada_Check): Create library interface copy dir if it does not exist
29876 and we are in "gnat setup".
29877 (Find_Sources): No error if in "gnat setup" and no Ada sources were
29878 found.
29879 (Language_Independent_Check): Create object directory, exec directory
29880 and/or library directory if they do not exist and we are in
29881 "gnat setup".
29882
29883 * vms_conv.ads: (Command_Type): New command Setup.
29884
29885 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
29886
29887 * vms_data.ads: Add qualifiers/switches for new built-in command
29888 "setup".
29889
b785f485
RH
298902004-07-25 Richard Henderson <rth@redhat.com>
29891
29892 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
29893 DECL_IGNORED_P on RESULT_DECL.
29894
35ae2ed8
AC
298952004-07-20 Olivier Hainque <hainque@act-europe.fr>
29896
29897 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
29898 allocation and potentially overflowing update with
29899 Tailored_Exception_Information. Use the sec-stack free procedural
29900 interface to output Exception_Information instead.
29901
29902 * a-except.adb (To_Stderr): New subprogram for character, and string
29903 version moved from a-exextr to be visible from other separate units.
29904 (Tailored_Exception_Information): Remove the procedural version,
29905 previously used by the default Last_Chance_Handler and not any more.
29906 Adjust various comments.
29907
29908 * a-exexda.adb: Generalize the exception information procedural
29909 interface, to minimize the use of secondary stack and the need for
29910 local buffers when the info is to be output to stderr:
29911 (Address_Image): Removed.
29912 (Append_Info_Character): New subprogram, checking for overflows and
29913 outputing to stderr if buffer to fill is of length 0.
29914 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
29915 (Append_Info_Address, Append_Info_Exception_Name,
29916 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
29917 Append_Info_Basic_Exception_Traceback,
29918 Append_Info_Exception_Information): New subprograms.
29919 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
29920 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
29921 Exception_Info_Maxlength, Exception_Name_Length,
29922 Exception_Message_Length): New subprograms.
29923 (Exception_Information): Use Append_Info_Exception_Information.
29924 (Tailored_Exception_Information): Use
29925 Append_Info_Basic_Exception_Information.
29926 Export services for the default Last_Chance_Handler.
29927
29928 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
29929 other separate units.
29930
299312004-07-20 Vincent Celier <celier@gnat.com>
29932
29933 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
29934
299352004-07-20 Ed Schonberg <schonberg@gnat.com>
29936
29937 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
29938 emit itype references for the designated types of component types that
29939 are declared outside of the full record declaration, and that may
29940 denote a partial view of that record type.
29941
299422004-07-20 Ed Schonberg <schonberg@gnat.com>
29943
29944 PR ada/15607
29945 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
29946 which is the designated type in an access component declaration, to the
29947 list of incomplete dependents of the parent type, to avoid elaboration
29948 issues with out-of-scope subtypes.
29949 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
29950 full view of the parent.
29951
299522004-07-20 Ed Schonberg <schonberg@gnat.com>
29953
29954 PR ada/15610
29955 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
29956 entities that are hidden, such as references to generic actuals
29957 outside an instance.
29958
299592004-07-20 Javier Miranda <miranda@gnat.com>
29960
29961 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
29962 support to the new notation.
29963 (Analyze_Selected_Component): Add call to Try_Object_Operation.
29964
299652004-07-20 Jose Ruiz <ruiz@act-europe.fr>
29966
29967 * s-taprob.adb: Adding the elaboration code required for initializing
29968 the tasking soft links that are common to the full and the restricted
29969 run times.
29970
29971 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
29972 restricted run time has been moved to the package
29973 System.Soft_Links.Tasking.
29974
29975 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
29976 restricted run time has been moved to the package
29977 System.Soft_Links.Tasking.
29978
29979 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
29980
29981 * s-solita.ads, s-solita.adb: New files.
29982
299832004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29984
29985 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
29986 Case_Statement_to_gnu): Split off from gnat_to_gnu.
29987 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
29988 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
29989 Exception_Handler_to_gnu_zcx): Likewise.
29990
6e34d3a3
JM
299912004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
29992
29993 * gigi.h (builtin_function): Declare.
29994
523456db
AC
299952004-07-15 Robert Dewar <dewar@gnat.com>
29996
29997 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
29998 reformatting
29999
30000 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
30001 access values as an example of a warning.
30002
30003 * gnat_rm.texi: Document new attribute Has_Access_Values
30004
30005 * gnat-style.texi: Document that box comments belong on nested
30006 subprograms
30007
30008 * sem_util.ads (Has_Access_Values): Improved documentation
30009
30010 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
30011
30012 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
30013 (Process_Interface_Name): Call to this new procedure
30014 (Set_Extended_Import_Export_External_Name): Call to this new procedure
30015
30016 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
30017
30018 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
30019
30020 * einfo.ads: Minor comment typo fixed
30021
300222004-07-15 Jose Ruiz <ruiz@act-europe.fr>
30023
30024 * snames.adb: Add _atcb.
30025
30026 * snames.ads: Add Name_uATCB.
30027
30028 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
30029 (in the expanded code) when using the restricted run time.
30030
30031 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
30032 a in parameter in order to allow ATCBs to be preallocated (in the
30033 expanded code).
30034
30035 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
30036 order to allow ATCBs to be preallocated. In case of error, the ATCB is
30037 deallocated in System.Tasking.Stages.
30038
30039 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
30040 order to allow ATCBs to be preallocated.
30041
30042 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
30043 here. It was previously done in Initialize_ATCB.
30044
30045 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
30046
30047 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
30048 Restricted run time.
30049
30050 * exp_ch3.adb: When using the Restricted run time, pass the
30051 preallocated Ada_Task_Control_Block when creating a task.
30052
300532004-07-15 Ed Schonberg <schonberg@gnat.com>
30054
30055 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
30056 function call that is itself an actual in an enclosing call, diagnose
30057 problem here rather than assuming that resolution will catch it.
30058
30059 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
30060 the local copy of a generic unit for a formal package, and the generic
30061 is a child unit, install private part of ancestors before compiling
30062 private part of spec.
30063
30064 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
30065 use scope entities rather than tree structures, to handle properly
30066 parent units that are instances rewritten as bodies for inlining
30067 purposes.
30068
30069 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
30070 Remove_Parents): Handle properly a parent unit that is an
30071 instantiation, when the unit has been rewritten as a body for inlining
30072 purposes.
30073
30074 * par.adb (Goto_List): Global variable to collect goto statements in a
30075 given unit, for use in detecting natural loops.
30076
30077 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
30078 use in detecting natural loops.
30079
30080 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
30081 backwards goto's, and rewrite as a infinite loop, to improve locality
30082 of temporaries.
30083
30084 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
30085 subcomponent that includes an indexed reference, to prevent the
30086 generation of copies that would miscompile the desired assignment
30087 statement.
30088 (Build_Task_Image_Decls): Add a numeric suffix to
30089 generated name for string variable, to avoid spurious conflicts with
30090 the name of the type of a single protected object.
30091
30092 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
30093 loop with an explicit exit statement, to avoid generating an
30094 out-of-range value with 'Succ leading to spurious constraint_errors
30095 when compiling with -gnatVo.
30096
300972004-07-15 Thomas Quinot <quinot@act-europe.fr>
30098
30099 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
30100 might not be analyzed yet, even if its Etype is already set (case of an
30101 unchecked conversion built using Unchecked_Convert_To, for example).
30102 If the prefix has already been analyzed, this will be a nop anyway.
30103
30104 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
30105 controller type, or an assignment of a record type with controlled
30106 components, copy only user data, and leave the finalization chain
30107 pointers untouched.
30108
301092004-07-15 Vincent Celier <celier@gnat.com>
30110
30111 * make.adb (Collect_Arguments): Improve error message when attempting
30112 to compile a source not part of any project, when -x is not used.
30113
30114 * prj.ads: (Defined_Variable_Kind): New subtype
30115
30116 * prj-attr.adb (Register_New_Package): Two new procedures to register
30117 a package with or without its attributes.
30118 (Register_New_Attribute): Mew procedure to register a new attribute in a
30119 package.
30120 New attribute oriented subprograms: Attribute_Node_Id_Of,
30121 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30122 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30123 Next_Attribute.
30124 New package oriented subprograms: Package_Node_Id_Of,
30125 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30126
30127 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
30128 type.
30129 (Package_Node_Id): Now a private, self initialized type
30130 (Register_New_Package): New procedure to register a package with its
30131 attributes.
30132 New attribute oriented subprograms: Attribute_Node_Id_Of,
30133 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
30134 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
30135 Next_Attribute.
30136 New package oriented subprograms: Package_Node_Id_Of,
30137 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
30138
30139 * prj-dect.adb (Parse_Attribute_Declaration,
30140 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
30141
30142 * prj-makr.adb (Make): Parse existing project file before creating
30143 other files. Fail if there was an error during parsing.
30144
30145 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
30146 new spec of Prj.Attr.
30147
30148 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
30149 to new spec of Prj.Attr.
30150
301512004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30152
30153 * utils2.c: Fix typo in comment.
30154
301552004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
54805e13
RK
30156
30157 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
30158 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
30159
a1c7af89
AS
301602004-07-14 Andreas Schwab <schwab@suse.de>
30161
30162 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
30163
a5cb3b30
AC
301642004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30165
30166 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
30167 object type.
30168 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
30169 TYPE_STUB_DECL.
30170
30171 * misc.c (gnat_types_compatible_p): New function.
30172 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
30173 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
30174
30175 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
30176 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
30177 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
30178 (mark_visited): Don't mark dummy type.
6615c446 30179 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
a5cb3b30
AC
30180 parameter, we must remove any LJM building from GNU_NAME.
30181 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
30182 (pos_to_constructor): Use int_const_binop.
30183 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
30184 PARM_DECL.
30185
30186 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
30187 (gnat_pushlevel): Set TREE_USE on BLOCK node.
30188 (gnat_install_builtins): Add __builtin_memset.
30189
301902004-07-13 Olivier Hainque <hainque@act-europe.fr>
30191
30192 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
30193 for a renaming, stabilize the initialization expression if we are at a
30194 local level. At the local level, uses of the renaming may be performed
30195 by a direct dereference of the initializing expression, and we don't
30196 want possible variables there to be evaluated for every use.
30197
30198 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
30199 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
30200 them on the way. Account for the fact that we may introduce side
30201 effects in the process.
30202
0976078c
RH
302032004-07-13 Richard Henderson <rth@redhat.com>
30204
30205 * misc.c (default_pass_by_ref): Use pass_by_reference.
30206
9dcf6e73
JM
302072004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
30208
30209 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
30210 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
30211
ac45df5d
RH
302122004-07-08 Richard Henderson <rth@redhat.com>
30213
30214 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
30215 commentary.
30216
15ce9ca2
AC
302172004-07-06 Vincent Celier <celier@gnat.com>
30218
30219 * vms_conv.ads: Minor reformatting.
30220 Alphabetical order for enumerated values of type Command_Type, to have
30221 the command in alphabetical order for the usage.
30222
30223 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
30224 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
30225
30226 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
30227
30228 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
30229 (Add_Archive_Path): Only add the global archive if there is one.
30230 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
30231 or not any object file to put in the global archive, and don't build
30232 a global archive if there is none.
30233 (X_Switches): New table
30234 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
30235 in the X_Switches table, if any.
30236 (Initialize): Make sure the X_Switches table is empty
30237 (Scan_Arg): Record -X switches in table X_Switches
30238
30239 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
30240
30241 * make.adb: Minor comment fix
30242
30243 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
30244 invoked with directory information, add the directory in front of the
30245 path.
30246
30247 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
30248 invoked with directory information, add the directory in front of the
30249 path.
30250
30251 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
30252 when Keep_Temporary_Files is False.
30253 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
30254 directory information, add the directory in front of the path.
30255 When not on VMS, handle new switch -dn before the command to set
30256 Keep_Temporary_Files to True.
30257 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
30258 everywhere.
30259
30260 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
30261 invoked with directory information, add the directory in front of the
30262 path.
30263
302642004-07-06 Thomas Quinot <quinot@act-europe.fr>
30265
30266 * snames.ads, snames.adb (Name_Stub): New name for the distributed
30267 systems annex.
30268
30269 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
30270 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
30271
30272 * g-socket.adb (To_Timeval): Fix incorrect conversion of
30273 Selector_Duration to Timeval for the case of 0.0.
30274
30275 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
30276 documentation from Evolve_And_Then.
30277
302782004-07-06 Jose Ruiz <ruiz@act-europe.fr>
30279
30280 * s-taprop-tru64.adb, s-taprop-os2.adb,
30281 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
30282
302832004-07-06 Robert Dewar <dewar@gnat.com>
30284
30285 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
30286 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
30287 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
30288 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
30289 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
30290 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
30291 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
30292 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
30293 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
30294 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
30295 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
30296 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
30297 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
30298 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
30299 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
30300 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
30301 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
30302 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
30303 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
30304 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
30305 vms_data.ads: Minor reformatting,
30306 Fix bad box comment format.
30307
30308 * gnat_rm.texi: Fix minor grammatical error
30309
30310 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
30311
30312 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
30313 more cases of discriminated records to be recognized as not needing a
30314 secondary stack.
30315 (Has_Access_Values): New function.
30316
30317 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
30318
30319 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
30320 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
30321 with LRM terminology).
30322 Change terminology in comments primitive type => elementary type.
30323
303242004-07-06 Ed Schonberg <schonberg@gnat.com>
30325
30326 PR ada/15602
30327 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
30328 parameters do not impose any requirements on the presence of a body.
30329
303302004-07-06 Ed Schonberg <schonberg@gnat.com>
30331
30332 PR ada/15593
30333 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
30334 compilation unit and is in an open scope at the point of instantiation,
30335 assume that a body may be present later.
30336
303372004-07-06 Ed Schonberg <schonberg@gnat.com>
30338
30339 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
30340 Improve error message when specified size is not supported.
30341
30342 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
30343 is never a primitive operation.
30344
cb42deba
AS
303452004-07-05 Andreas Schwab <schwab@suse.de>
30346
30347 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
30348 RECORD_OR_UNION_CHECK.
30349 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
30350
98877933
KC
303512004-07-04 Kelley Cook <kcook@gcc.gnu.org>
30352
30353 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
30354 dependency on xgnatugn, instead build it via a submake.
30355 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
30356
8fff4fc1
RH
303572004-07-04 Richard Henderson <rth@redhat.com>
30358
30359 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
30360
4dfa0342
RH
303612004-07-01 Richard Henderson <rth@redhat.com>
30362
30363 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
30364 * utils.c (max_size): Likewise.
30365
909f21b3
RK
303662004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30367
30368 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
30369 and rest_of_type_compilation; add arg to create_*_decl.
15cd18b9 30370 (annotate_decl_with_node): Deleted.
909f21b3
RK
30371 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
30372 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
30373 (get_current_block_context, gnat_pushdecl): New declarations.
30374 (gnat_init_stmt_group): Likewise.
30375 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
30376 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
30377 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
30378 (gnat_init): Call gnat_init_stmt_group.
30379 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
30380 (gnu_pending_elaboration_list): Deleted.
30381 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
30382 (gigi): Rearrange initialization calls and move some to last above.
30383 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
30384 Delete calls to add_decl_expr; add arg to create_*_decl.
30385 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
6615c446 30386 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
909f21b3
RK
30387 begin_subprog_body and call it.
30388 Don't push and pop ggc context.
30389 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30390 (add_stmt): Remove handling of DECL_EXPR from here.
30391 If not in function, mark visited.
30392 (add_decl_expr): Put global at top level.
30393 Check for cases of DECL_INITIAL we have to handle here.
30394 (process_type): Add extra arg to create_type_decl.
30395 (build_unit_elab): Rework to just gimplify.
30396 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
30397 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
30398 (get_pending_elaborations, pending_elaborations_p): Likewise.
30399 (push_pending_elaborations, pop_pending_elaborations): Likewise.
30400 (get_elaboration_location, insert_elaboration_list): Likewise.
30401 (gnat_binding_level): Renamed from ada_binding_level.
30402 (init_gnat_to_gnu): Don't clear pending_elaborations.
30403 (global_bindings_p): Treat as global if no current_binding_level.
30404 (set_current_block_context): New function.
30405 (gnat_pushdecl): Renamed from pushdecl; major rework.
30406 All callers changed.
30407 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
30408 (finish_record_type): Call call pushdecl for stub decl.
30409 (function_nesting_depth): Deleted.
30410 (begin_subprog_body): Delete obsolete code.
30411 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
6615c446 30412
246d2ceb
AC
304132004-06-28 Robert Dewar <dewar@gnat.com>
30414
30415 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30416 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
30417 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
30418 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
30419 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
30420
30421 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
30422 deal with problem of inefficient slices on machines with strict
30423 alignment, when the slice is a component of a composite.
30424
30425 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
30426 machines, we need the check there as well.
30427
304282004-06-28 Ed Schonberg <schonberg@gnat.com>
30429
30430 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
30431 determine safe copying direction for overlapping slice assignments
30432 when component is controlled.
30433
30434 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
30435 formal derived type in the actual for a formal package are visible in
30436 the enclosing instance.
30437
304382004-06-28 Ed Schonberg <schonberg@gnat.com>
30439
30440 PR ada/15600
30441 * sem_util.adb (Trace_Components): Diagnose properly an illegal
30442 circularity involving a private type whose completion includes a
30443 self-referential component.
30444 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
30445 renaming or an instantiation from an implicit derived operation.
30446
304472004-06-28 Pascal Obry <obry@gnat.com>
30448
30449 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
30450 DLL.
30451 (Library_File_Name_For): Idem.
30452
304532004-06-28 Matthew Gingell <gingell@gnat.com>
30454
30455 * g-traceb.ads: Add explanatory note on the format of addresses
30456 expected by addr2line.
30457
304582004-06-28 Jerome Guitton <guitton@act-europe.fr>
30459
30460 * Makefile.in: Force debugging information on s-tasdeb.adb,
30461 a-except.adb and s-assert.adb needed by the debugger.
30462
304632004-06-28 Vincent Celier <celier@gnat.com>
30464
30465 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
30466 Need_To_Build_Lib.
30467 (Gnatmake): Ditto.
30468
30469 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
30470
30471 * prj.adb: Minor reformatting
30472 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
30473
30474 * prj.ads: Comment updates
30475 Minor reformatting
30476 (Project_Data): Change Flag1 to Need_To_Build_Lib.
30477 Remove Flag2: not used.
30478
30479 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
30480 declaration.
30481
30482 * gnat_ugn.texi: Put a "null;" declaration in one project file example
30483
30484 * gnat_rm.texi: Document Empty declarations "null;".
30485
30486 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
30487 front of the linker options.
30488 (Link_Foreign): Put the global archives and the libraries in front of
30489 the linker options.
30490
304912004-06-28 Javier Miranda <miranda@gnat.com>
30492
30493 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
30494 (RTU_Loaded): Code cleanup
30495 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
30496 withed predefined units.
30497
30498 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
30499 explicitly withed predefined units.
30500 Fix typo in comment
30501
30502 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
30503 explicitly withed predefined units.
30504
bce3da32
RK
305052004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30506
30507 * ada-tree.def (DECL_STMT): Deleted.
30508 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
30509 (DECL_STMT_VAR): Deleted.
30510 * decl.c: add_decl_stmt now add_decl_expr.
30511 * gigi.h: Likewise.
30512 * trans.c: Likewise.
15cd18b9 30513 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
bce3da32
RK
30514 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
30515 (add_stmt): Only handle padded type here.
30516 (add_stmt_with_node): Allow gnat_node to not be present.
30517 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
30518 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
30519 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
30520 make a SAVE_EXPR for the entire fat pointer.
30521 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
30522 (create_index_type): Make a DECL_EXPR.
30523 (end_subprog_body): Don't call allocate_struct_function here but
30524 do clear cfun.
30525
0da2c8ac
AC
305262004-06-25 Pascal Obry <obry@gnat.com>
30527
30528 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
30529 Relocatable from Build_Dynamic_Library call.
30530
30531 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
30532 Relocatable are now synonym.
30533
30534 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
30535
30536 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
30537 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
30538 call.
30539
30540 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
30541 Lib_Address and Relocatable.
30542 (Default_DLL_Address): Removed.
30543
6615c446
JO
30544 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30545 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
0da2c8ac
AC
30546 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
30547 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
30548 (Default_DLL_Address): Removed.
30549
30550 * mlib-tgt-mingw.adb: Ditto.
30551 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
30552
30553 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
30554 the initial thread stack size.
30555
30556 * a-strmap.ads: Move package L to private part as it is not used in
30557 the spec. Found while reading code.
30558
305592004-06-25 Olivier Hainque <hainque@act-europe.fr>
30560
30561 * tracebak.c: Introduce support for a GCC infrastructure based
30562 implementation of __gnat_backtrace.
30563
30564 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
30565 any more. Use accessors instead. This eases maintenance and relaxes
30566 some alignment constraints.
30567 (_GNAT_Exception structure): Remove the Ada specific fields
30568 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
30569 a-exexpr.adb.
30570 (is_handled_by, __gnat_eh_personality): Replace component references to
30571 exception structure by use of the new accessors.
30572
30573 * init.c (__gnat_initialize): Adjust comments to match the just
30574 reverted meaning of the -static link-time option.
30575
30576 * adaint.c (convert_addresses): Arrange not to define a stub for
30577 mips-irix any more, as we now want to rely on a real version from a
30578 recent libaddr2line.
30579
30580 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
30581 the personality routine can use them and not have to rely on a C
30582 counterpart of the record anymore. This simplifies maintenance and
30583 relaxes the constraint of having Standard'Maximum_Alignment match
30584 BIGGEST_ALIGNMENT.
30585 Update comments, and add a section on the common header alignment issue.
30586
305872004-06-25 Geert Bosch <bosch@gnat.com>
30588
30589 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
30590 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
30591
305922004-06-25 Robert Dewar <dewar@gnat.com>
30593
30594 * gnat_rm.texi: Fix section on component clauses to indicate that the
30595 restriction on byte boundary placement still applies for bit packed
30596 arrays.
30597 Add comment on stack usage from Initialize_Scalars
30598
30599 * gnat_ugn.texi: Add documentation for -gnatyLnnn
30600
30601 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
30602 limiting nesting level.
30603
30604 * usage.adb: Add line for -gnatyLnnn switch
30605
30606 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
30607 sem_ch13.adb, exp_aggr.adb: Minor reformatting
30608
30609 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
30610 type as well as on the subtype. This corrects a problem in freeze in
30611 setting alignments of atomic types.
30612
30613 * sem_eval.ads: Minor comment typo fixed
30614
30615 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
30616 level. Minor reformatting.
30617
30618 * fname.adb (Is_Predefined_File_Name): Require a letter after the
30619 minus sign. This means that file names like a--b.adb will not be
30620 considered predefined.
30621
30622 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
30623 record Test new flag and give diagnostic for bad component clause.
30624 (Freeze_Entity): Set alignment of array from component alignment in
30625 cases where this is safe to do.
30626
30627 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
30628 arrays.
30629
30630 * cstand.adb: (Create_Standard): Set alignment of String to 1
30631
30632 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
30633
30634 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
30635 code in the common constrained array cases.
30636
30637 * a-storio.adb: Change implementation to avoid possible alignment
30638 problems on machines requiring strict alignment (data should be moved
30639 as type Buffer, not type Elmt).
30640
30641 * checks.adb (Apply_Array_Size_Check): Improve these checks by
30642 killing the overflow checks which we really do not need (64-bits is
30643 enough).
30644
306452004-06-25 Vincent Celier <celier@gnat.com>
30646
30647 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
30648 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
30649 inconditionally for the main project.
30650 (Recursive_Add_Archives.Add_Archive_Path): New procedure
30651 (Link_Executables.Check_Time_Stamps): New procedure
30652 (Link_Executables.Link_Foreign): New procedure
30653 Changes made to reduce nesting level of this package
30654 (Check): New procedure
30655 (Add_Switches): When not in quiet output, check that a switch is not
30656 the concatenation of several valid switches. If it is, issue a warning.
30657 (Build_Global_Archive): If the global archive is rebuilt, linking need
30658 to be done.
30659 (Compile_Sources): Rebuilding a library archive does not imply
30660 rebuilding the global archive.
30661 (Build_Global_Archive): New procedure
30662 (Build_Library): New name for Build_Archive, now only for library
30663 project
30664 (Check_Archive_Builder): New procedure
30665 (Create_Global_Archive_Dependency_File): New procedure
30666 (Gprmake): Call Build_Global_Archive before linking
30667 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
30668 throughout.
30669 (Scan_Arg): Display the Copyright notice when -v is used
30670
30671 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
30672 for gnatls.
30673
30674 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
30675 COMPILE.
30676 Add new GNAT LIST qualifier /FILES=
30677 Added qualifier /DIRECTORY= to GNAT METRIC
30678 Added qualifier /FILES= to GNAT METRIC
30679 Added qualifier /FILES to GNAT PRETTY
30680
30681 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
30682 to take into account both versions of the switch.
30683
30684 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
30685 always be the last switch to the gcc driver. Disable switch storing so
30686 that switches automatically added by the gcc driver are not put in the
30687 ALI file.
30688
30689 * prj.adb (Project_Empty): Take into account changes in components of
30690 Project_Data.
30691
30692 * prj.ads (Languages_Processed): New enumaration value All_Languages.
30693
30694 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
30695 used. Split Boolean component Ada_Sources_Present in two Boolean
30696 components Ada_Sources_Present and Other_Sources_Present.
30697 Minor reformatting
30698
30699 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
30700 instead of Sources_Present.
30701 (Set_Ada_Paths.Add.Recursive_Add): Ditto
30702
30703 * prj-nmsc.adb: Minor reformatting
30704 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
30705 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
30706 Check_Ada_Naming_Scheme.
30707 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
30708 throughout.
30709
30710 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
30711 In_Limited.
30712 Make sure that all cycles where there is at least one "limited with"
30713 are detected.
30714 (Parse_Single_Project): New Boolean parameter In_Limited
30715
30716 * prj-proc.adb (Recursive_Check): When Process_Languages is
30717 All_Languages, call first Prj.Nmsc.Ada_Check, then
30718 Prj.Nmsc.Other_Languages_Check.
30719
30720 * prj-proc.adb (Process): Use Ada_Sources_Present or
30721 Other_Sources_Present (instead of Sources_Present) depending on
30722 Process_Languages.
30723
30724 * lang-specs.h: Keep -g and -m switches in the same order, and as the
30725 last switches.
30726
30727 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
30728 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
30729 False.
30730 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
30731 False.
30732
30733 * lib.ads (Disable_Switch_Storing): New procedure.
30734
30735 * make.adb: Modifications to reduce nesting level of this package.
30736 (Check_Standard_Library): New procedure
30737 (Gnatmake.Check_Mains): New procedure
30738 (Gnatmake.Create_Binder_Mapping_File): New procedure
30739 (Compile_Sources.Compile): Add switch -gnatez as the last option
30740 (Display): Never display -gnatez
30741
6615c446 30742 * Makefile.generic:
0da2c8ac
AC
30743 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
30744
30745 * gnatcmd.adb (Check_Project): New function
30746 (Process_Link): New procedure to reduce nesting depth
30747 (Check_Files): New procedure to reduce the nesting depth.
30748 For GNAT METRIC, include the inherited sources in extending projects.
30749 (GNATCmd): When GNAT LS is invoked with a project file and no files,
30750 add the list of files from the sources of the project file. If this list
30751 is too long, put it in a temp text files and use switch -files=
30752 (Delete_Temp_Config_Files): Delete the temp text file that contains
30753 a list of source for gnatpp or gnatmetric, if one has been created.
30754 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
30755 in the project file is too large, create a temporary text file that
30756 list them and pass it to the tool with "-files=<temp text file>".
30757 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
30758
30759 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
30760 generated file is in not in Ada.
30761
30762 * gnatls.adb: Remove all parameters And_Save that are no longer used.
30763 (Scan_Ls_Arg): Add processing for -files=
30764 (Usage): Add line for -files=
30765
30766 * g-os_lib.adb (On_Windows): New global constant Boolean flag
30767 (Normalize_Pathname): When on Windows and the path starts with a
30768 directory separator, make sure that the resulting path will start with
30769 a drive letter.
30770
30771 * clean.adb (Clean_Archive): New procedure
30772 (Clean_Project): When there is non-Ada code, delete the global archive,
30773 the archive dependency files, the object files and their dependency
30774 files, if they exist.
30775 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
30776
307772004-06-25 Thomas Quinot <quinot@act-europe.fr>
30778
30779 * sinfo.ads: Fix typo in comment.
30780
30781 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
30782 the TSS for remote access-to-subprogram types, since these TSS are
30783 always present once the type has been analyzed.
30784 (RAS_E_Dereference): Same.
30785
30786 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
30787 reference raises Bad_Attribute, mark the reference as analyzed so the
30788 node (and any children resulting from rewrites that could have occurred
30789 during the analysis that ultimately failed) is not analyzed again.
30790
30791 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
30792
30793 * exp_dist.adb: Minor comment fix.
30794
30795 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
30796 type is an anonymous access type, no unchecked deallocation of the
30797 allocated object can occur. If the object is controlled, attach it with
30798 a count of 1. This allows attachment to the Global_Final_List, if
30799 no other relevant list is available.
30800 (Get_Allocator_Final_List): For an anonymous access type that is
30801 the type of a discriminant or record component, the corresponding
30802 finalisation list is the one of the scope of the type.
30803
308042004-06-25 Ed Schonberg <schonberg@gnat.com>
30805
30806 * sem_ch3.adb (Replace_Type): When computing the signature of an
30807 inherited subprogram, use the first subtype if the derived type
30808 declaration has no constraint.
30809
30810 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
30811 before applying previous optimization. Minor code cleanup.
30812
30813 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
30814 placed at the beginning of an unpacked record without explicit
30815 alignment, a slice of it will be aligned and does not need a copy when
30816 used as an actual.
30817
308182004-06-25 Ed Schonberg <schonberg@gnat.com>
30819
30820 PR ada/15591
30821 PR ada/15592
30822 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
30823 reference is written with expressions mimicking parameters.
30824
308252004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
30826
30827 PR ada/15589
30828 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
30829 STEP 2a. The constraints of a full type declaration of a derived record
30830 type are checked for conformance with those declared in the
30831 corresponding private extension declaration. The message
30832 "not conformant with previous declaration" is emitted if an error is
30833 detected.
30834
308352004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
30836
30837 * g-traceb.ads: Document the need for -E binder switch in the spec.
30838
30839 * g-trasym.ads: Document the need for -E binder switch in the spec.
30840
308412004-06-25 Jose Ruiz <ruiz@act-europe.fr>
30842
30843 * sem_prag.adb: Add handling of pragma Detect_Blocking.
30844
30845 * snames.h, snames.ads, snames.adb: Add entry for pragma
30846 Detect_Blocking.
30847
30848 * s-rident.ads: Change reference to pragma Detect_Blocking.
30849
30850 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
30851 system.ads.
30852
30853 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
30854 to indicate whether pragma Detect_Blocking is active.
30855
30856 * par-prag.adb: Add entry for pragma Detect_Blocking.
30857
30858 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
30859 of not handling WITH.
30860 Note that this replaces the previous update which was incorrect.
30861
308622004-06-25 Javier Miranda <miranda@gnat.com>
30863
30864 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
30865 use-clauses to have a clean environment.
30866
30867 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
30868 the installation of the use-clauses to stablish a clean environment in
30869 case of compilation of a separate unit; otherwise the call to
30870 use_one_package is protected by the barrier Applicable_Use.
30871
30872 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
30873 the installation of the use-clauses to stablish a clean environment in
30874 case of compilation of a separate unit.
30875 (End_Use_Clauses): Minor comment cleanup.
30876
308772004-06-25 Sergey Rybin <rybin@act-europe.fr>
30878
30879 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
30880
65355d53
RH
308812004-06-23 Richard Henderson <rth@redhat.com>
30882
30883 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
30884
c0e3aa48
RK
308852004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30886
30887 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
30888 now bool instead of int.
30889 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
30890 * trans.c (gnu_switch_label_stack): New function.
30891 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
30892 elaboration of renamed entity returns.
30893 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
30894 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
30895 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
30896 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
30897 DECL_SIZE_UNIT and simplify variable-sized case.
30898 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
30899 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
30900 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
30901 (build_unit_elab): Disable for now.
30902 * utils.c (mark_visited): New function.
30903 (pushdecl): Walk tree to call it for global decl.
30904 (update_pointer_to): Update all variants of pointer and ref types.
30905 Add arg to COMPONENT_REF.
30906 (convert): Likewise.
30907 Move check for converting between variants lower down.
30908 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
30909 (build_allocator): Don't force type of MODIFY_EXPR.
30910 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
30911 put_var_into_stack.
30912
966389ee
RK
309132004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30914
30915 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
30916 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
30917 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
30918 subprograms.
30919 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
30920 all callers changed.
30921 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
30922 the way that EXIT_STMT finds the loop label.
30923 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
30924 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
30925 (add_stmt): Use annotate_with_locus insted of setting directly.
30926 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
30927 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
30928 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
30929 (build_vms_descriptor): Add extra args to ARRAY_REF.
30930 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
30931 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
30932 New cases.
30933 (build_binary_op): Don't make explicit CONVERT_EXPR.
30934 Add extra rgs to ARRAY_REF.
30935
cc335f43
AC
309362004-06-14 Pascal Obry <obry@gnat.com>
30937
30938 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
30939 Windows. Fix minor typo.
30940
30941 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
30942 which is now supported on Windows. With this implementation using the
30943 Library Project feature is no different on Windows than on UNIX.
30944
309452004-06-14 Vincent Celier <celier@gnat.com>
30946
30947 * makegpr.adb (Compile_Sources): Nothing to do when there are no
30948 non-Ada sources.
30949
30950 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
30951
30952 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
30953 found, show the project name and the path of the previously parsed
30954 project file.
30955
309562004-06-14 Ed Schonberg <schonberg@gnat.com>
30957
30958 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
30959 array, avoid copying the actual before the call.
30960
309612004-06-14 Thomas Quinot <quinot@act-europe.fr>
30962
30963 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
30964 Instead, allocate memory on worst-case alignment assumptions, and then
30965 return an aligned address within the allocated zone.
30966
309672004-06-14 Robert Dewar <dewar@gnat.com>
30968
30969 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
30970 elab entities in predefined units in No_Run_Time_Mode.
30971 (Gen_Adainit_C): Same fix
30972 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
30973 units in No_Run_Time_Mode
30974 (Gen_Elab_Calls_C): Same fix
30975
30976 * symbols-vms-alpha.adb: Minor reformatting
30977
30978 * g-debpoo.ads: Minor reformatting
30979
30980 * lib.adb (In_Same_Extended_Unit): Version working on node id's
30981
30982 * lib.ads (In_Same_Extended_Unit): Version working on node id's
30983
30984 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
30985 working on nodes.
30986
30987 * make.adb: Minor reformatting
30988
30989 * par-ch12.adb: Minor reformatting
30990
30991 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
30992
30993 * prj-strt.adb: Minor reformatting
30994
30995 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
30996 be more general.
30997
30998 * sem_attr.adb: Minor reformatting
30999
31000 * sem_ch7.adb: Minor reformatting
31001
31002 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
31003 for type in the same unit as the object declaration.
31004
31005 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
31006 static string expressions and not just string literals.
31007 Minor reformatting
31008 (Set_Warning): Reset restriction warning flag for restriction pragma
31009 Implement pragma Profile_Warnings
31010 Implement pragma Profile (Restricted)
31011 Give obolescent messages for old restrictions and pragmas
31012
31013 * snames.h, snames.ads, snames.adb: Add new entry for pragma
31014 Profile_Warnings.
31015
31016 * s-rident.ads: Add declarations for restrictions required by profile
31017 Restricted and profile Ravenscar.
31018
31019 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
31020
31021 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
31022 configuration pragmas.
31023
5453d5bd
AC
310242004-06-11 Vincent Celier <celier@gnat.com>
31025
31026 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
31027 gnatsym, when symbol policy is Restricted.
31028
31029 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
31030 gnatsym, when symbol policy is Restricted.
31031
31032 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
31033 read the symbol file.
31034 (Finalize): Fail in symbol policy Restricted if a symbol in the original
31035 symbol file is not in the object files. Do not create a new symbol file
31036 when symbol policy is Restricted.
31037
31038 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
31039 in Scng.
31040
31041 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
31042 Restricted.
31043 (Usage): Line for new switch -R
31044
31045 * make.adb (Initialize): When the platform is not VMS, add the
31046 directory where gnatmake is invoked in the front of the path, if
31047 gnatmake is invoked with directory information. Change the Scan_Args
31048 while loop to a for loop.
31049 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
31050 if Depth is equal or greater than the proposed depth, there is nothing
31051 to do.
31052 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
31053 instead of 0.
31054
31055 * prj.ads: Add new symbol policy Restricted.
31056
31057 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
31058 with the new parameters Check_All_Labels and Case_Location.
31059
31060 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
31061 (Library_Symbol_File needs to be defined).
31062
31063 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
31064 and Case_Location If Check_All_Labels is True, check that all values of
31065 the string type are used, and output warning(s) if they are not.
31066
31067 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
31068 and Case_Location.
31069
31070 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
31071
31072 * gnat_ugn.texi: Update documentation about the library directory in
31073 Library Projects.
31074
31075 * makegpr.adb (Display_Command): In verbose mode, also display the
31076 value of the CPATH env var, when the compiler is gcc.
31077 (Initialize): Change the Scan_Args while loop to a for loop
31078 (Compile_Individual_Sources): Change directory to object directory
31079 before compilations.
31080
31081 * symbols.ads: New symbol policy Restricted.
31082
310832004-06-11 Olivier Hainque <hainque@act-europe.fr>
31084
31085 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
31086 is now taken care of internally in the Exception_Propagation package
31087 and does not require clients assistance any more.
31088
31089 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
31090 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
31091 functions. Helpers to maintain a predicate required in the handling of
31092 occurrence transfer between tasks.
31093 This is now handled internally and does not require clients assistance
31094 for the setup/propagate separation anymore.
31095 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
31096 allocation strategy, handle the Setup_And_Not_Propagated predicate and
31097 document.
31098
31099 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
31100 raise_after_setup, now that everything is handled internally within the
31101 setup/propagation engine.
31102
311032004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31104
31105 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
31106 Add additional conditions for the case of an actual being a simple
31107 name or literal. Improve inlining by preventing the generation
31108 of temporaries with a short lifetime (one use).
31109
311102004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
31111
31112 PR ada/15587
5453d5bd
AC
31113 * einfo.ads: Minor comment updates for Has_Completion and
31114 E_Constant list of flags.
31115
31116 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
31117 and constant redeclarations now set the Has_Completion flag of their
31118 defining identifiers.
31119
31120 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
31121 Inspect_Deferred_Constant_Completion.
31122 Used to detect private deferred constants that have not been completed
31123 either by a constant redeclaration or pragma Import. Emits error message
31124 "constant declaration requires initialization expression".
31125
31126 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
31127 completes a deferred constant.
31128
311292004-06-11 Geert Bosch <bosch@gnat.com>
31130
31131 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
31132
31133 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
31134 calculating exponent for scaling denormal numbers.
31135 (Leading_Part): Properly raise Constraint_Error for zero or negative
31136 Adjustment.
31137 (Remainder): Properly raise Constraint_Error for zero divisor.
31138
311392004-06-11 Thomas Quinot <quinot@act-europe.fr>
31140
31141 * sem_util.adb: Minor reformatting.
31142
31143 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
31144 dereference when accessing the entry parameter record.
31145 (Check_Array_Type): Always check for possible implicit dereference.
31146 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31147 Abort if a pointer is still present (denoting that an implicit
31148 dereference was left in the tree by the front-end).
31149
31150 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
31151 dereference when accessing the entry parameter record.
31152 (Check_Array_Type): Always check for possible implicit dereference.
31153 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
31154 Abort if a pointer is still present (denoting that an implicit
31155 dereference was left in the tree by the front-end).
31156
311572004-06-11 Emmanuel Briot <briot@act-europe.fr>
31158
31159 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
31160 message, like the compiler itself does. Easier to parse the output.
31161
31162 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
31163
31164 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
31165 be base names, and not includes directories.
31166
311672004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31168
31169 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
31170 so that dependencies are properly taken into account by make.
31171
311722004-06-11 Arnaud Charlet <charlet@act-europe.fr>
31173
31174 PR ada/15622
31175 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
31176 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
31177
311782004-06-11 Jerome Guitton <guitton@act-europe.fr>
31179
31180 * Makefile.in (install-gnatlib): install target-specific run-time files.
31181
31182 * Make-lang.in: Remove obsolete targets.
31183
311842004-06-11 Ed Schonberg <schonberg@gnat.com>
31185
31186 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
31187 specification, to catch misuses of program unit names.
31188
31189 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
31190 superfluous conversions in an instance.
31191
311922004-06-11 Ed Schonberg <schonberg@gnat.com>
31193
31194 PR ada/15403
5453d5bd
AC
31195 * sem_ch12.adb (Save_References): If operator node has been folded to
31196 enumeration literal, associated_node must be discarded.
31197
311982004-06-11 Jose Ruiz <ruiz@act-europe.fr>
31199
31200 * s-stchop-vxworks.adb: Add required pragma Convention to
31201 Task_Descriptor because it is updated by a C function.
31202
a98f59be
AC
312032004-06-08 Arnaud Charlet <charlet@act-europe.fr>
31204
31205 PR ada/15568
a98f59be
AC
31206 * Makefile.in: Remove target specific SO_OPT on IRIX
31207
821e1ea1
RK
312082004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31209
31210 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
31211 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
31212 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
31213 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
31214 (STMT_STMT, USE_STMT): New statement codes.
31215 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
31216 * ada-tree.h: Reflect above changes.
15cd18b9 31217 (struct tree_loop_id): Deleted.
821e1ea1
RK
31218 (union lang_tree_node, struct lang_decl, struct lang_type):
31219 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
31220 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
31221 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
31222 (IS_ADA_STMT): New macro.
31223 * decl.c (annotate_decl_with_node): New function.
31224 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
31225 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
31226 Call add_stmt_with_node to do needed assignments.
31227 Add call to update setjmp buffer directly, not via EXPR_STMT.
31228 (maybe_variable): Argment GNAT_NODE deleted.
31229 * gigi.h (maybe_variable): Likewise.
31230 (make_transform, add_stmt_with_node, set_block_for_group): New.
31231 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
31232 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
31233 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
31234 (set_lineno, set_lineno_from_sloc): Likewise.
31235 (record_code_position, insert_code_for): Likewise.
31236 (gnat_poplevel): Now returns void.
31237 (end_subprog_body): Now takes argument.
31238 * misc.c (cgraph.h, tree-inline.h): New includes.
31239 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
31240 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
31241 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
31242 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
31243 (gnat_parse_file): Don't set immediate_size_expand.
31244 Call cgraph functions.
31245 (gnat_expand_expr): Remove most cases.
31246 (record_code_position, insert_code_for): Remove from here.
31247 * trans.c (toplev.h, tree-gimple.h): Now included.
31248 (discard_file_names): Deleted.
31249 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
31250 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
31251 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
31252 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
31253 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
31254 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
31255 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
31256 (set_block_for_group, add_stmt_list): Likewise.
31257 (start_stmt_group): Renamed from start_block_stmt.
31258 (end_stmt_group): Likewise, from end_block_stmt.
31259 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
31260 (gigi): Don't set discard_file_names or call set_lineno.
31261 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
31262 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
31263 Numerous changes throughout to reflect new names and complete
31264 function-at-a-time implementation.
31265 (gnat_expand_stmt): Delete or comment out all cases.
31266 (process_inlined_subprograms): Use add_stmt.
31267 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
31268 call set_lineno; also remove unneeded block handling.
31269 (process_type): Remove unneeded block handling.
31270 (build_unit_elab): Remove calls to deleted functions.
31271 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
31272 (tree-dump.h): Likewise.
31273 (struct ada_binding_level): Add field jmpbuf_decl.
31274 (gnat_define_builtin, gnat_install_builtins): New.
31275 (gnat_gimplify_function, gnat_finalize): Likewise.
31276 (gnat_poplevel): No longer return BLOCK, set it instead.
31277 Remove code dealing with nested functions.
31278 (gnat_init_decl_processing): Also set size_type_node.
31279 Call gnat_install_builtins.
31280 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
31281 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
31282 Remove special-case for "main".
31283 (end_subprog_body): Add arg and rework for tree-ssa.
31284 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
31285 Add case for BOOLEAN_TYPE.
31286 * utils2.c (rtl.h): Now include.
31287 (build_call_raise): Test Debug_Flag_NN directly.
31288 (build_call_alloc_dealloc): Don't use local stack allocation for now.
31289 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
31290 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
31291
0ab80019
AC
312922004-06-07 Robert Dewar <dewar@gnat.com>
31293
31294 * a-direct.ads, einfo.ads: Minor comment updates
31295
31296 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
31297 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31298 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
31299 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
31300 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
31301
31302 * s-interr-sigaction.adb: Remove unreferenced variable
31303 (Attached_Interrupts). Minor reformatting.
31304 Avoid use of variable I (replace by J).
31305
31306 * par-ch10.adb: Fix text of one error message
31307
31308 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
31309 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
31310 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
31311 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
31312 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
31313 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
6615c446 31314 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
0ab80019
AC
31315 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
31316 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
31317 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
31318 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
31319 2005 support.
31320
313212004-06-07 Doug Rupp <rupp@gnat.com>
31322
31323 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
31324
31325 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
31326
31327 * mlib-tgt-vms-ia64.adb: New file.
31328
31329 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
31330 Add mlib-tgt-vms-ia64.adb
31331 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
31332 Move to alpha specific ifeq section.
31333 Add VMS specific versions of symbols.adb
31334 Renaming of 5q vms files.
31335
31336 * 5qsystem.ads renamed to system-vms_64.ads.
31337
313382004-06-07 Vincent Celier <celier@gnat.com>
31339
31340 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
31341 explain that when a time of day corresponding to the non existing hour
31342 on the day switching to DST is specified, Split may return a different
31343 value for Seconds.
31344
31345 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
31346 to GNAT PRETTY.
31347
31348 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
31349 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
31350
31351 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
31352 to False.
31353 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
31354 the linking options.
31355 (Build_Library.Check_Libs): On VMS, if there is a dependency on
31356 g-trasym.ads, set Gtrasymobj_Needed to True.
31357
31358 * prj-attr.adb: Add new package Metrics for gnatmetric
31359
31360 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
31361 canonical case to take into account files with upper case characters on
31362 Windows.
31363 (Ada_Check): Load the reference symbol file name in the name buffer to
31364 check it, not the symbol file name.
31365
31366 * snames.ads, snames.adb: Add standard name Metrics (name of project
31367 file package for gnatmetric).
31368
31369 * vms_conv.ads: Add Metric to Comment_Type
31370
31371 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
31372
31373 * vms_data.ads: Add qualifiers for GNAT METRIC
31374
31375 * makegpr.adb (Link_Executables): Take into account the switches
31376 specified in package Linker of the main project.
31377
313782004-06-07 Thomas Quinot <quinot@act-europe.fr>
31379
31380 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
31381 the index of the last element is Units.Last, not Units.Table'Last
31382 (which is usually not a valid index within the actually allocated
31383 storage for the table).
31384
31385 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
31386 determines whether to generate a call to a checked storage pool
31387 Dereference action.
31388 Generate such a call only for a dereference that either comes from
31389 source, or is the result of rewriting a dereference that comes from
31390 source.
31391
313922004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
31393
31394 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
31395
313962004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
31397
31398 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
31399 file level, elaborate the stride for inner dimensions in alignment
31400 units, not bytes.
31401
31402 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
31403 in a comment.
31404
314052004-06-07 Javier Miranda <miranda@gnat.com>
31406
31407 * exp_ch6.adb: Correct wrong modification in previous patch
31408
314092004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
31410
31411 * g-trasym.ads: Corrected comment to properly reflect level of support
31412 on VMS.
31413
314142004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
31415
31416 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
31417 includes case of a variable referenced on the left hand side of an
31418 assignment, therefore remove redundant code. Variables and prefixes of
31419 indexed or selected components are now marked as referenced on left
31420 hand side. Warnings are now properly emitted when variables or prefixes
31421 are assigned but not read.
31422
31423 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
31424 left hand side referenced variables. Private access types do not
31425 produce the warning "variable ... is assigned but never read".
31426 Add also additional checks to left hand side referenced variables.
31427 Aliased, renamed objects and access types do not produce the warning
31428 "variable ... is assigned but never read" since other entities may read
31429 the memory location.
31430
314312004-06-07 Jerome Guitton <guitton@act-europe.fr>
31432
31433 * Makefile.in: In the powerpc/vxworks-specific section, restore
31434 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
31435 by mistake).
31436
314372004-06-07 Ed Schonberg <schonberg@gnat.com>
31438
31439 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
31440 predefined operators.
31441 Removes spurious type errors from g-trasym-vms.adb.
31442
31443 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
31444 distinct from the operator appearing in the source, call appropriate
31445 routine to insert conversions when needed, and complete resolution of
31446 node.
31447 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
31448 interpretations for rewritten right operand.
31449 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
31450 the other operand is overloaded and the context is a type conversion.
31451
314522004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31453
31454 * ada-tree.def (BLOCK_STMT): Now has two operands.
31455 (BREAK_STMT): New.
31456
31457 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
31458
31459 * gigi.h: (gnat_poplevel): Now returns a tree.
31460
31461 * trans.c (end_block_stmt): Add arg; all callers changed.
31462 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
31463 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
31464 (add_stmt): Set TREE_TYPE.
31465 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
31466 (gnat_expand_stmt, case BREAK_STMT): New case.
31467
31468 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
31469
314702004-06-07 Jose Ruiz <ruiz@act-europe.fr>
31471
31472 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
31473 procedure Set_Stack_Size that is not needed.
31474
314752004-06-07 Sergey Rybin <rybin@act-europe.fr>
31476
31477 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
31478 used for gnatpp input file and for the files upon which it depends
31479
314802004-06-07 Ben Brosgol <brosgol@gnat.com>
31481
31482 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31483
314842004-06-07 Arnaud Charlet <charlet@act-europe.fr>
31485
31486 * gnatvsn.ads: Bump version numbers appropriately.
31487 Add new build type.
31488
314892004-06-07 Pascal Obry <obry@gnat.com>
31490
31491 * gnat_ugn.texi: Improve comments about imported names and link names
31492 on Windows. Add a note about the requirement to use -k gnatdll's option
31493 when working with a DLL which has stripped stdcall symbols (no @nn
31494 suffix).
31495
8a36a0cc
AC
314962004-05-27 Vincent Celier <celier@gnat.com>
31497
31498 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
31499 COMMENTS_LAYOUT=UNTOUCHED
31500
31501 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
31502 symbols-vms-alpha.adb
31503
315042004-05-27 Thomas Quinot <quinot@act-europe.fr>
31505
31506 * sem.ads: Clarify documentation on checks suppression.
31507
31508 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
31509
315102004-05-27 Ed Schonberg <schonberg@gnat.com>
31511
31512 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
31513 the case of multiple derivations.
31514 (Is_Object_Reference): For a selected component, verify that the prefix
31515 is itself an object and not a value.
31516
31517 * sem_ch12.adb (Same_Instantiated_Constant): New name for
31518 Same_Instantiated_Entity.
31519 (Same_Instantiated_Variable): Subsidiary to
31520 Check_Formal_Package_Instance, to recognize actuals for in-out generic
31521 formals that are obtained from a previous formal package.
31522 (Instantiate_Subprogram_Body): Emit proper error when
31523 generating code and the proper body of a stub is missing.
31524
31525 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
31526 has a universal interpretation, do the disambiguation here.
31527
31528 * exp_ch4.adb (Expand_N_Type_Conversion,
31529 Expand_N_Unchecked_Type_Conversion): Special handling when target type
31530 is Address, to avoid typing anomalies when Address is a visible integer
31531 type.
31532
31533 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
31534 to determine whether a subprogram should not be marked Pure, even when
31535 declared in a pure package.
31536
315372004-05-27 Jose Ruiz <ruiz@act-europe.fr>
31538
31539 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
31540
31541 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
31542 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
31543 Update the documentation about the Ravenscar profile, following the
31544 definition found in AI-249.
31545
31546 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
31547 setting the Profile (Ravenscar). This must be done in addition to
31548 setting the required restrictions.
31549
31550 * rtsfind.ads: Add the set of operations defined in package
31551 Ada.Interrupts.
31552
31553 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
31554 restriction.
31555
315562004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
31557
31558 lang-specs.h: Always require -c or -S and always redirect to /dev/null
31559 if -gnatc or -gnats is passed.
31560
315612004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
31562
31563 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
31564 a significant reference. Warnings are now properly emitted when a
31565 discriminated type is not referenced.
31566
31567 * lib-xref.adb (Generate_Reference): A deferred constant completion,
31568 record representation clause or record type discriminant does not
31569 produce a reference to its corresponding entity. Warnings are now
31570 properly emitted when deferred constants and record types are not
31571 referenced.
31572
315732004-05-27 Geert Bosch <bosch@gnat.com>
31574
31575 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
31576 Fixes ACATS Annex G tests.
31577
315782004-05-27 Robert Dewar <dewar@gnat.com>
31579
31580 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
31581 handling WITH
31582
315832004-05-27 Arnaud Charlet <charlet@act-europe.fr>
31584
31585 * s-interr.adb (Server_Task): Take into account case of early return
31586 from sigwait under e.g. linux.
31587
315882004-05-27 Sergey Rybin <rybin@act-europe.fr>
31589
31590 * gnat_ugn.texi: Add description for the new gnatpp options:
31591 -rnb - replace the original source without creating its backup copy
31592 -c0 - do not format comments
31593
0fb2ea01
AC
315942004-05-24 Geert Bosch <bosch@gnat.com>
31595
31596 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
31597 with 192 bits of precision, sufficient to reduce a double-extended
31598 arguments X with a maximum relative error of T'Machine_Epsilon, for X
31599 in -2.0**32 .. 2.0**32.
31600 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
31601 reduction by the processor, which only uses a 68-bit approximation of
31602 Pi.
31603 (Tan): Always reduce arguments and compute function either using
31604 the processor's fptan instruction, or by dividing sin and cos as needed.
31605
316062004-05-24 Doug Rupp <rupp@gnat.com>
31607
31608 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
31609 gcc error on 32/64 bit VMS.
31610
316112004-05-24 Olivier Hainque <hainque@act-europe.fr>
31612
31613 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
31614 since this is what we get for stack overflows although not documented
31615 as such.
31616 Document the issues which may require adjustments to our signal
31617 handlers.
31618
316192004-05-24 Ed Schonberg <schonberg@gnat.com>
31620
31621 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
31622 enclosing dynamic scope if the instantiation is within a generic unit.
31623
316242004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31625
31626 * exp_dbug.ads: Fix typo.
31627
31628 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
31629 Rename it to its proper name: system-linux-ia64.ads
31630 (stamp-gnatlib1): Remove extra target specific run time files when
31631 setting up the rts directory.
31632
316332004-05-24 Javier Miranda <miranda@gnat.com>
31634
31635 * einfo.ads, einfo.adb (Limited_Views): Removed.
31636 (Limited_View): New attribute that replaces the previous one. It is
31637 now a bona fide package with the limited-view list through the
31638 first_entity and first_private attributes.
31639
31640 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
31641 limited-private-with clause.
31642 (Install_Limited_Withed_Unit): Install the private declarations of a
31643 limited-private-withed package. Update the installation of the shadow
31644 entities according to the new structure (see Build_Limited_Views)
31645 (Build_Limited_Views): Replace the previous implementation of the
31646 limited view by a package entity that references the first shadow
31647 entity plus the first shadow private entity (required for limited-
31648 private-with clause)
31649 (New_Internal_Shadow_Entity): Code cleanup.
31650 (Remove_Limited_With_Clause): Update the implementation to undo the
31651 new work carried out by Build_Limited_Views.
31652 (Build_Chain): Complete documentation.
31653 Replace Ada0Y by Ada 0Y in comments
31654 Minor reformating
31655
31656 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
31657 types the level of accessibility depends on the enclosing type
31658 declaration.
31659
31660 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
31661 entities. Complete documentation of previous change.
31662
316632004-05-24 Robert Dewar <dewar@gnat.com>
31664
31665 * namet.adb: Minor reformatting
31666 Avoid use of name I (replace by J)
31667 Minor code restructuring
31668
31669 * sem_ch6.adb: Minor reformatting
31670
31671 * lib-writ.adb: Do not set restriction as active if this is a
31672 Restriction_Warning case.
31673
31674 * sem_prag.adb: Reset restriction warning flag if real pragma
31675 restriction encountered.
31676
31677 * s-htable.adb: Minor reformatting
31678 Change rotate count to 3 in Hash (improves hash for small strings)
31679
31680 * 5qsystem.ads: Add comments for type Address (no literals allowed).
31681
31682 * gnat_ugn.texi: Add new section of documentation "Code Generation
31683 Control", which describes the use of -m switches.
31684
316852004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
31686
a1db9d9c
AC
31687 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
31688 through the DECL_INITIAL for renamed variables.
0fb2ea01 31689
7599f1b0
AC
316902004-05-24 Arnaud Charlet <charlet@act-europe.fr>
31691
31692 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
31693
c37bb106
AC
316942004-05-19 Joel Brobecker <brobecker@gnat.com>
31695
31696 * exp_dbug.ads: Correct comments concerning handling of overloading,
31697 since we no longer use $ anymore.
31698
316992004-05-19 Sergey Rybin <rybin@act-europe.fr>
31700
31701 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
31702 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
31703 with illegal subunits.
31704
317052004-05-19 Ed Schonberg <schonberg@gnat.com>
31706
31707 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
31708 body with front-end inlining enabled, check whether an inline pragma
31709 appears immediately after the body and applies to it.
31710
31711 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
31712 enabled and the pragma appears after the body of the subprogram.
31713
b5e792e2
AC
317142004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31715
31716 Part of function-at-a-time conversion
31717
31718 * misc.c (adjust_decl_rtl): Deleted.
31719 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
31720 Define.
31721
31722 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
31723 (add_decl_stmt, add_stmt, block_has_vars): New functions.
31724 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
31725
31726 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
31727 when making a decl.
31728 (gnat_to_gnu_entity): Likewise.
31729 Use add_stmt to update setjmp buffer.
31730 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
31731 flush_addressof.
31732 No longer call adjust_decl_rtl.
31733 (DECL_INIT_BY_ASSIGN_P): New macro.
31734 (DECL_STMT_VAR): Likewise.
31735
31736 * trans.c (gigi): Call start_block_stmt to make the outermost
31737 BLOCK_STMT.
31738 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
31739 Call start_block_stmt and end_block_stmt temporarily.
31740 Use gnat_expand_stmt instead of expand_expr_stmt.
31741 (add_decl_stmt): New function.
31742 (tree_transform): Call it.
31743 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
31744 (end_block_stmt): Set type and NULL_STMT.
31745 (gnat_expand_stmt): Make recursize call instead of calling
31746 expand_expr_stmt.
31747 (gnat_expand_stmt, case DECL_STMT): New case.
31748 (set_lineno_from_sloc): Do nothing if global.
31749 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
31750 (start_block_stmt, add_stmt, end_block_stmt): New functions.
31751 (build_block_stmt): Call them.
31752 (gnat_to_code): Don't expand NULL_STMT.
31753 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
31754 args.
31755 (tree_transform): Likewise.
31756 (tree_transform, case N_Null_Statement): Return NULL_STMT.
31757 (gnat_expand_stmt, case NULL_STMT): New case.
31758 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
31759 IF_STMT_TRUE.
31760
31761 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
31762 TREE_ADDRESSABLE.
31763
31764 * utils.c (create_var_decl): Do not call expand_decl or
31765 expand_decl_init.
31766 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
31767 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
31768 here.
31769 (struct e_stack): Add chain_next to GTY.
31770 (struct binding_level): Deleted.
31771 (struct ada_binding_level): New struct.
31772 (free_block_chain): New.
31773 (global_binding_level, clear_binding_level): Deleted.
31774 (global_bindings_p): Rework to see if no chain.
31775 (kept_level_p, set_block): Deleted.
31776 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
31777 new data structure and work directly on BLOCK node.
31778 (gnat_poplevel): Similarly.
31779 (get_decls): Look at BLOCK_VARS.
31780 (insert_block): Work directly on BLOCK node.
31781 (block_has_var): New function.
31782 (pushdecl): Rework for new binding structures.
31783 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
31784 poplevel.
31785 (build_subprog_body): Likewise.
31786 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
31787
31788 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
31789
31790 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
31791 (DECL_STMT_VAR): Likewise.
31792
317932004-05-17 Robert Dewar <dewar@gnat.com>
31794
31795 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
31796 procedure
31797
31798 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
31799 of restriction synonyums by using
31800 Restrict.Process_Restriction_Synonyms.
31801
31802 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
31803
31804 * s-restri.ads (Tasking_Allowed): Correct missing comment
31805
31806 * s-rident.ads: Add entries for restriction synonyms
31807
31808 * ali.adb: Fix some problems with badly formatted ALI files that can
31809 result in infinite loops.
31810
31811 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
31812 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
31813 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
31814 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
31815 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
31816 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
31817 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
31818 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
31819 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
31820 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
31821 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
31822 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
31823 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
31824 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
31825 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31826 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31827 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
31828 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
31829 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
31830 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
31831 to Task_Id (minor cleanup).
31832
318332004-05-17 Vincent Celier <celier@gnat.com>
31834
31835 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
31836 directory separator.
31837
31838 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
31839 project being extended, if Languages is not declared in extending
31840 project.
31841
318422004-05-17 Javier Miranda <miranda@gnat.com>
31843
31844 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
31845 limited view of a visible sibling.
31846
9bc856dd
AC
318472004-05-14 Robert Dewar <dewar@gnat.com>
31848
31849 * gnat_ugn.texi: Minor change to -gnatS documentation
31850
31851 * sprint.adb: Remove some instances of Assert (False) and for this
31852 purpose replace them by output of a ??? string.
31853
31854 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
31855 Assert (False).
31856
31857 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
31858 flag processing. This was suppressing required dependencies in
31859 No_Run_Time mode and is not needed since the binder does not generate
31860 references for things in libgnat anyway.
31861
31862 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
31863 warning.
31864
318652004-05-14 Thomas Quinot <quinot@act-europe.fr>
31866
31867 * gnat_ugn.texi: Document AIX-specific issue with initialization of
31868 resolver library.
31869
31870 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
31871 action for the case of an actual parameter in an init proc call.
31872
318732004-05-14 Ed Schonberg <schonberg@gnat.com>
31874
31875 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
31876 subtype, check visible entities in base type.
31877
31878 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
31879 actions if the object is a renaming.
31880
31881 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
31882 Check_Formal_Package_Instance, to determine more precisely when the
31883 formal and the actual denote the same entity.
31884
318852004-05-14 Javier Miranda <miranda@gnat.com>
31886
31887 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
31888
31889 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
31890 corresponding to a private_with must be removed from visibility; it
31891 will be made visible later, just before we analyze the private part of
31892 the package.
31893 (Check_Private_Child_Unit): Allow private_with clauses in public
31894 siblings.
31895 (Install_Siblings): Make visible the private entities of private-withed
31896 siblings.
31897 (Install_Withed_Unit): Do not install the private withed unit if we
31898 are compiling a package declaration and the Private_With_OK flag was
31899 not set by the caller. These declarations will be installed later,
31900 just before we analyze the private part of the package.
31901
31902 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
31903 during the evaluation of the expression that initializes the object,
31904 decorate it with the expected type to avoid cascade errors.
31905 Code cleanup.
31906
31907 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
31908 subprogram we have to install the private_with clauses after its
31909 specification has been analyzed (as documented in AI-262.TXT).
31910
31911 * sem_ch8.adb (Has_Private_With): New function. Determines if the
31912 current compilation unit has a private with on a given entity.
31913 (Find_Direct_Name): Detect the Beaujolais problem described in
31914 AI-262.TXT
31915
31916 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
31917 provides the functionality of the function Is_Ancestor that was
31918 previously available in sem_ch10. It has been renamed to avoid
31919 overloading.
31920
31921 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
31922
319232004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31924
31925 * utils.c (build_vms_descriptor): Use SImode pointers.
31926
319272004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
31928
31929 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
31930
319312004-05-14 GNAT Script <nobody@gnat.com>
31932
31933 * Make-lang.in: Makefile automatically updated
31934
084c663c
AC
319352004-05-14 Arnaud Charlet <charlet@act-europe.fr>
31936
31937 Renaming of target specific files for clarity
31938
6615c446 31939 * Makefile.in: Rename GNAT target specific files.
084c663c
AC
31940
31941 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
31942 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
31943 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
31944 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
31945 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
31946 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
31947 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
31948 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
31949 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
31950 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
31951 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
31952 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
31953 51osinte.adb, 51osinte.ads, 51system.ads,
31954 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31955 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
31956 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
31957 56tpopsp.adb, 57system.ads, 58system.ads,
31958 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
31959 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
31960 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
31961 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
31962 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
31963 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
31964 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
31965 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
31966 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
31967 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
31968 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
31969 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
31970 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
31971 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
31972 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
31973 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
31974 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
31975 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
31976 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
31977 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
31978 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
31979 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
31980 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
31981 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
31982 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
31983 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
31984 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
31985 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
31986 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
31987 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
31988 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
31989 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
31990 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
31991 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
31992 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
31993 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
31994 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
31995 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
31996 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
31997 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
31998
31999 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
32000 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
32001 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
32002 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
32003 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
32004 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
32005 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
32006 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
32007 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
32008 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
32009 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
32010 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
32011 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
32012 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
32013 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
32014 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
32015 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
32016 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
32017 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
32018 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
32019 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
32020 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
32021 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
32022 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
32023 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
32024 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
32025 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
32026 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
32027 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
32028 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
32029 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
32030 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
32031 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
32032 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
32033 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
32034 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
32035 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
32036 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
32037 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
32038 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
32039 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
32040 s-osinte-vms.ads, s-osinte-vxworks.adb,
32041 s-osinte-vxworks.ads, s-osprim-mingw.adb,
32042 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
32043 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
32044 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
32045 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
32046 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
32047 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
32048 s-stchop-vxworks.adb, s-taprop-dummy.adb,
32049 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
32050 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
32051 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
32052 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32053 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
32054 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
32055 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
32056 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
32057 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
32058 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
32059 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
32060 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
32061 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
32062 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
32063 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
32064 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
32065 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
32066 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
32067 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
32068 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
32069 system-irix-o32.ads, system-linux-x86_64.ads,
32070 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32071 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
32072 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
32073 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
32074 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
32075 system-vxworks-mips.ads, system-vxworks-ppc.ads,
32076 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
32077 above.
32078
90afe2c9
ZW
320792004-05-13 Zack Weinberg <zack@codesourcery.com>
32080
32081 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
32082
6de9cd9a
DN
320832004-05-13 Diego Novillo <dnovillo@redhat.com>
32084
32085 Merge from tree-ssa-20020619-branch.
32086
32087 * config-lang.in (boot_language, build_by_default): Set
32088 to no.
32089 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
32090 (max_size): Add static chain op for call_expr.
32091
f5657d67
RS
320922004-05-12 Richard Sandiford <rsandifo@redhat.com>
32093
32094 PR target/15331
32095 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
32096
4413b636
RS
320972004-05-11 Roger Sayle <roger@eyesopen.com>
32098
32099 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
32100 COND_EXPR.
32101
5950a3ac
AC
321022004-05-10 Doug Rupp <rupp@gnat.com>
32103
32104 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
32105 system.aux_dec.
32106
32107 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
32108
32109 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
32110
32111 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
32112 Fixes undefined symbols in IA64 gnatlib.
32113
32114 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
32115
32116 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
32117 Short_Address). This will be moved to system.auxdec.
32118
321192004-05-10 Thomas Quinot <quinot@act-europe.fr>
32120
32121 * sem_util.adb: Replace test for presence of a node that is always
32122 present with a call to Discard_Node.
32123
32124 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
32125 Analyze on the library unit node after generation of distribution stub
32126 constructs. The call was a no-op because Unit_Node has already been
32127 Analyzed, and the tree fragments for the distribution stubs are
32128 analyzed as they are inserted in Exp_Dist.
32129 Update comment regarding to distribution stubs to reflect that we
32130 do not generate stub in separate files anymore.
32131
32132 * einfo.ads: Clarify the fact that a tagged private type has the
32133 E_Record_Type_With_Private Ekind.
32134
32135 * erroutc.adb: Minor reformatting
32136
32137 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
32138 values if line length is increased using -gnatyM (noticed during code
32139 reading).
32140
32141 * eval_fat.adb: Minor reformatting
32142 Put spaces around exponentiation operator
32143
321442004-05-10 Ed Schonberg <schonberg@gnat.com>
32145
32146 PR ada/15005
32147 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
32148 has been rewritten as an explicit dereference, retrieve type of
32149 original node to check for possibly unconstrained record type.
32150
321512004-05-10 Ed Schonberg <schonberg@gnat.com>
32152
32153 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
32154 overriding, use the operation of the parent unconditionally.
32155
32156 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
32157 operation when either operand is a literal, to avoid further
32158 ambiguities.
32159
32160 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
32161 overridden by a previous explicit declaration, mark the previous entity
32162 as overriding.
32163
32164 * sem_disp.adb (Check_Dispatching_Operation): New predicate
32165 Is_Visibly_Controlled, to determine whether a declaration of a
32166 primitive control operation for a derived type overrides an inherited
32167 one. Add warning if the explicit declaration does not override.
32168
321692004-05-10 Vincent Celier <celier@gnat.com>
32170
32171 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
32172 some cases when the sources are no longer present.
32173
32174 * make.adb (Collect_Arguments): Fail if an external source, not part
32175 of any project need to be compiled, when switch -x has not been
32176 specified.
32177
32178 * makeusg.adb: Document new switch -x
32179
32180 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
32181 defaulted to False.
32182
32183 * switch-m.adb (Scan_Make_Switches): New switch -x
32184
32185 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
32186 gnatmake switch -x.
32187
32188 * gnat_ugn.texi: Document new gnatmake switch -x
32189
321902004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
32191
32192 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
32193
32194 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
32195 (process_attributes): Likewise.
32196
321972004-05-10 Joel Brobecker <brobecker@gnat.com>
32198
32199 * s-inmaop.ads: Fix spelling mistake in one of the comments.
32200
322012004-05-10 Robert Dewar <dewar@gnat.com>
32202
32203 * gnat_ugn.texi: Document that for config pragma files, the maximum
32204 line length is always 32767.
32205
32206 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
32207 literals is now allowed.
32208
32209 * gnat-style.texi: Remove statement about splitting long lines before
32210 an operator rather than after, since we do not follow this rule at all.
32211 Clarify rule (really lack of rule) for spaces around exponentiation
32212
32213 * sem_elim.adb: Allow concatenation of string literals as well as a
32214 single string literal for pragma arguments.
32215
32216 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
32217
32218 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
32219 written for append case.
32220
32221 * frontend.adb: Changes to avoid checking max line length in config
32222 pragma files.
32223
32224 * g-os_lib.ads: Minor reformatting
32225
32226 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
32227 wrong in any case. Instead use standard value. Noticed during code
32228 reading.
32229
32230 * opt.ads (Max_Line_Length): New field, used to implement removal of
32231 limitation on length of lines when scanning config pragma files.
32232
32233 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
32234 makeutl.ads, makeutl.adb: Minor reformatting
32235
32236 * scn.adb: Do not check line length while scanning config pragma files
32237 Do not check line length while scanning out license information
32238
32239 * scng.adb: Changes to avoid line length checks while parsing config
32240 pragma files.
32241
322422004-05-10 GNAT Script <nobody@gnat.com>
32243
32244 * Make-lang.in: Makefile automatically updated
32245
48664302
AC
322462004-05-05 Arnaud Charlet <charlet@act-europe.fr>
32247
32248 * osint.adb (Find_Program_Name): Fix handling of VMS version
32249 number.
32250
aa720a54
AC
322512004-05-05 Emmanuel Briot <briot@act-europe.fr>
32252
32253 * g-os_lib.ads (Invalid_Time): New constant
32254
32255 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
32256 return OS_Time instead of time_t to match what is imported by Ada.
32257 Now return -1 if the file doesn't exist, instead of a random value
32258
322592004-05-05 Robert Dewar <dewar@gnat.com>
32260
32261 * usage.adb: Add line for -gnatR?s switch
32262
32263 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
32264
32265 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
32266 and for Match (Data_First, Data_last)
32267
32268 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
32269 written when we are dealing with multi-unit files.
32270
322712004-05-05 Jerome Guitton <guitton@act-europe.fr>
32272
32273 * Makefile.in: Remove unused targets and variables.
32274
322752004-05-05 Vincent Celier <celier@gnat.com>
32276
32277 * switch-m.adb: New gnatmake switch -eI
32278
32279 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
32280 of new gnatmake switch -eInnn.
32281
32282 * makegpr.adb: Take into account new parameters Index and Src_Index in
32283 Prj.Util.
32284
32285 * clean.adb: Implement support for multi-unit sources, including new
32286 switch -i.
32287
32288 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
32289 Src_Index.
32290
32291 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
32292 (Extract_From_Q): New out parameter Index
32293 (Mark, Is_Marked): Subprograms moved to Makeutl
32294 (Switches_Of): New parameter Source_Index
32295 (Add_Switch): New parameter Index
32296 (Check): New parameter Source_Index
32297 (Collect_Arguments): New parameter Source_Index
32298 (Collect_Arguments_And_Compile): New parameter Source_Index
32299 (Compile): New parameter Source_Index
32300 Put subprograms in alphabetical order
32301 Add support for multi-source sources, including in project files.
32302
32303 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
32304 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
32305 Make.
32306
32307 * makeusg.adb: New gnatmake switch -eInnn
32308
32309 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
32310 Prj.Util.Value_Of.
32311
32312 * opt.ads (Main_Index): New variable, defaulted to 0.
32313
32314 * osint.ads, osinte.adb (Add_File): New parameter Index
32315 (Current_Source_Index): New function
32316
32317 * prj.adb: Take into account new components Index and Src_Index
32318
32319 * prj.ads (String_Element): New component Index
32320 (Variable_Value): New component Index
32321 (Array_Element): New component Src_Index
32322
32323 * prj-attr.adb: Indicate that optional index may be specified for
32324 attributes Main, Executable, Spec, Body and some of Switches.
32325
32326 * prj-attr.ads (Attribute_Kind): New values for optional indexes
32327 (Attribute_Record): New component Optional_Index
32328
32329 * prj-com.ads (File_Name_Data): New component Index
32330
32331 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
32332
32333 * prj-env.adb (Put): Output optional index
32334
32335 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
32336 attributes Spec and Body.
32337
32338 * prj-nmsc.adb: Process optional indexes
32339
32340 * prj-pp.adb: Ouput "at" for optional indexes
32341
32342 * prj-proc.adb: Take into account optional indexes
32343
32344 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
32345 Optional_Index. For string literal,
32346 process optional index when Optional_Index is True.
32347 (Parse_Expresion): New Boolean parameter Optional_Index
32348
32349 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
32350 (Set_Source_Index_Of): New procedure
32351
32352 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
32353 index.
32354
32355 * prj-util.ads (Executable_Of): New parameter Index
32356 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
32357 New parameter Src_Index, defaulted to 0.
32358
323592004-05-05 Ed Schonberg <schonberg@gnat.com>
32360
32361 PR ada/15257
32362 * sem_ch3.adb (Access_Definition): If this is an access parameter
32363 whose designated type is imported through a limited_with clause, do
32364 not add the enclosing subprogram to the list of private dependents of
32365 the type.
32366
323672004-05-05 Ed Schonberg <schonberg@gnat.com>
32368
32369 PR ada/15258
32370 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
32371 a limited_with clause, and the other is its non-limited view.
32372
323732004-05-05 Thomas Quinot <quinot@act-europe.fr>
32374
32375 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
32376
90afe2c9 32377 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
32378 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
32379 Stand.Boolean_Literals to produce references to entities
32380 Standard_False and Standard_True from compile-time computed boolean
32381 values.
32382
32383 * stand.ads (Boolean_Literals): New variable, provides the entity
32384 values for False and True, for use by the expander.
32385
323862004-05-05 Doug Rupp <rupp@gnat.com>
32387
32388 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
32389 5vinmaop.adb: Unchecked convert Short_Address vice Address
32390
32391 * adaint.c, raise.c: Caste CRTL function return value
32392 to avoid gcc error on 32/64 bit IVMS.
32393
32394 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
32395 target = IA64/VMS.
32396
32397 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
32398
32399 * 5qsystem.ads (Address): Declare as Long_Integer
32400 (Short_Address): Declare as 32 bit subtype of Address
32401 Declare abstract address operations to avoid gratuitous ambiguities.
32402
324032004-05-05 Jose Ruiz <ruiz@act-europe.fr>
32404
32405 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
32406 instead of the old Boolean_Entry_Barriers.
32407 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
32408
324092004-05-05 GNAT Script <nobody@gnat.com>
32410
32411 * Make-lang.in: Makefile automatically updated
32412
1ab2888d
AC
324132004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32414
32415 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
32416
9f4fd324
AC
324172004-05-03 Olivier Hainque <hainque@act-europe.fr>
32418
32419 PR ada/15152
9f4fd324
AC
32420 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
32421 alone. Replacing object references by literals is inappropriate in a
32422 so low level context.
32423
324242004-05-03 Arnaud Charlet <charlet@act-europe.fr>
32425
32426 * a-exexpr.adb: Add comments
32427
324282004-05-03 Joel Brobecker <brobecker@gnat.com>
32429
32430 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
32431 declare the Ancestor_Tags array in Type_Specific_Data with a small size
32432 without risking a bounds check error when accessing one of its
32433 components.
32434 (Type_Specific_Data): Define Ancestor_Tags as a small array.
32435 This prevents us from hitting a limitation during the debug info
32436 generation when using stabs.
32437
32438 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
32439 small array.
32440 This prevents us from hitting a limitation during the debug info
32441 generation when using stabs.
32442
324432004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
32444
32445 lang-specs.h: Remove -gnatz* from specs.
32446
324472004-05-03 Vincent Celier <celier@gnat.com>
32448
32449 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
32450
32451 * Make-lang.in, Makefile.in: Add gprmake
32452
324532004-05-03 Thomas Quinot <quinot@act-europe.fr>
32454
32455 * sem_aggr.adb: Fix typo in comment.
32456
324572004-05-03 Robert Dewar <dewar@gnat.com>
32458
32459 * make.adb: Minor reformatting
32460
32461 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
32462
32463 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
32464 so that it works when address is not a private type.
32465
32466 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
32467 properly with rewritten unchecked conversions. This prevents
32468 order-of-elaboration issues that can otherwise arise.
32469 (Minimum_Size): Don't check size of access types under VMS
32470
32471 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
32472 interpretations of integer literals as type System.Address.
32473
32474 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
32475 (Is_Descendent_Of): New function
32476
324772004-05-03 Jose Ruiz <ruiz@act-europe.fr>
32478
32479 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32480 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
32481 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
32482
32483 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
32484 of the old Max_Entry_Queue_Depth.
32485
32486 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
32487 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
32488 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
32489
32490 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
32491 New entry for proper handling of Max_Entry_Queue_Depth.
32492 New entry for proper handling of No_Dynamic_Interrupts.
32493
32494 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
32495 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32496 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
32497 the GNAT specific restriction Max_Entry_Queue_Depth.
32498 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
32499 the GNAT specific restriction No_Dynamic_Interrupts.
32500
32501 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
32502 instead of the old Boolean_Entry_Barriers.
32503 Use the new restriction No_Dynamic_Attachment instead of the old
32504 No_Dynamic_Interrupts.
32505
32506 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
32507 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
32508
32509 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
32510 of the old Max_Entry_Queue_Depth.
32511
325122004-05-03 GNAT Script <nobody@gnat.com>
32513
32514 * Make-lang.in: Makefile automatically updated
32515
d935a36e
AC
325162004-04-29 Ed Schonberg <schonberg@gnat.com>
32517
32518 * checks.adb (Enable_Range_Check): If the prefix of an index component
32519 is an access to an unconstrained array, perform check unconditionally.
32520
325212004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32522
32523 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
32524 Component_Clause.
32525
325262004-04-29 Olivier Hainque <hainque@act-europe.fr>
32527
32528 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
32529 alternate stack setting. There was no support for the tasking cases
32530 and the changes eventually caused a number of side-effect failures in
32531 the non-tasking case too.
32532
325332004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
32534
32535 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
32536 -gnats is passed.
32537
325382004-04-29 Vincent Celier <celier@gnat.com>
32539
32540 * make.adb (Gnatmake): Increase max size of argument array for
32541 gnatbind for the potential addition of -F.
32542 If there are Stand-Alone Library projects, invoke gnatbind with -F to
32543 be sure that elaboration flags will be checked.
32544
32545 * switch-c.adb: Correct call to Scan_Pos for -gnateI
32546
325472004-04-29 Thomas Quinot <quinot@act-europe.fr>
32548
32549 * sem_warn.adb (Check_References): Move '<access-variable> may be
32550 null' warning out of under Warn_On_No_Value_Assigned.
32551
325522004-04-29 Ed Falis <falis@gnat.com>
32553
32554 * gnat_ugn.texi: Fixed texi error
32555
325562004-04-29 Robert Dewar <dewar@gnat.com>
32557
32558 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
32559 abstract operations if they come from predefined files.
32560
32561 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
32562 Dynamic, not RM).
32563
32564 * s-addope.adb: Correct obvious error in mod function
32565
325662004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
32567
32568 * Makefile.in: Add target pairs for powerpc darwin*
32569 tasking support.
32570
32571 * a-intnam-darwin.ads, s-osinte-darwin.adb,
32572 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
32573
ea16c81b
UW
325742004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32575
32576 * Makefile.in: Add target macro definitions for s390*-linux*.
32577 * system-linux-s390.ads: New file.
32578 * system-linux-s390x.ads: New file.
32579
f0e6f845
JM
325802004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
32581
32582 * gnat_ugn.texi: Correct argument to @setfilename.
32583
e8c2eedc
UW
325842004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
32585
32586 * a-exexpr.adb (Unwind_Word): New data type.
32587 (Unwind_Exception): Use it as type of Private1 and Private2.
32588
32589 * raise.c (db_action_for): Fix debug printf.
32590
f2c9e65a
AC
325912004-04-27 Ed Schonberg <schonberg@gnat.com>
32592
32593 * a-wtmoio.ads: Formal type must be a modular type, not a signed
32594 integer type.
32595
325962004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32597
32598 * decl.c (gnat_to_gnu_entity, case object): Call
32599 __builtin_update_setjmp_buf.
32600
32601 * gigi.h (update_setjmp_buf): Deleted.
32602 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
32603
32604 * misc.c: (update_setjmp_buf): Deleted.
32605
32606 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
32607 around block of RTL.
32608
32609 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
32610
35b7fa6a
AC
326112004-04-26 Thomas Quinot <quinot@act-europe.fr>
32612
32613 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
32614 subprogram for which no pragma All_Calls_Remote applies, store the
32615 address of the real subprogram in the underlying record type, so local
32616 dereferences do not go through the PCS.
32617
326182004-04-26 Robert Dewar <dewar@gnat.com>
32619
32620 * i-c.ads: Add some type qualifications to avoid ambiguities when
32621 compiling with s-auxdec.ads and a non-private address type.
32622
326232004-04-26 Arnaud Charlet <charlet@act-europe.fr>
32624
32625 * Makefile.rtl: Fix error in previous check-in:
32626 Add s-addope.o to non tasking object list (rather than tasking object
32627 list).
32628
326292004-04-26 Javier Miranda <miranda@gnat.com>
32630
32631 * sem_aggr.adb: Fix typo in comments
32632 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
32633 Required to check the null-exclusion attribute.
32634
32635 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
32636 case of anonymous access types in record and array components. For a
32637 component definition the level is the same of the enclosing composite
32638 type.
32639
32640 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
32641 that are anonymous access types the level of accessibility depends on
32642 the enclosing type declaration. In order to have this information, set
32643 the scope of the anonymous access type to the enclosing record type
32644 declaration.
32645 (Array_Type_Declaration): In case of components that are anonymous
32646 access types the level of accessibility depends on the enclosing type
32647 declaration. In order to have this information, set the scope of the
32648 anonymous access type to the enclosing array type declaration.
32649
32650 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
32651 access type.
32652
32653 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
32654 renaming of anonymous access-to-constant types allowed if and only if
32655 the renamed object is access-to-constant.
32656
32657 * sem_util.adb (Type_Access_Level): In case of anonymous access types
32658 that are component_definition or discriminants of a nonlimited type,
32659 the level is the same as that of the enclosing component type.
32660
326612004-04-26 Sergey Rybin <rybin@act-europe.fr>
32662
32663 * sem_elim.adb: Some minor code reorganization from code reading. Fix
32664 misprint in the function name (File_Name_Match).
32665
9e94c78f 326662004-04-23 Laurent Guerby <laurent@guerby.net>
5a944040 32667
90afe2c9 32668 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 32669 install.
90afe2c9 32670
d0fd1344
RO
326712004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32672
32673 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
32674
cc4f0de1
AC
326752004-04-23 Emmanuel Briot <briot@act-europe.fr>
32676
32677 * adaint.c (__gnat_try_lock): No longer requires that the parent
32678 directory be writable, the directory itself is enough.
32679 (gnat_is_absolute_path): Change profile, so that the call from
32680 GNAT.OS_Lib can be made more efficient.
32681
32682 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
32683 from GNAT.OS_Lib can be made more efficient.
32684
32685 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
32686 one copy of the file name. Found by code reading.
32687
326882004-04-23 Vincent Celier <celier@gnat.com>
32689
32690 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
32691 Correct documentation on gnatmake switches transmitted to the compiler
32692
32693 * ali.ads: Minor comment fix
32694
326952004-04-23 Javier Miranda <miranda@gnat.com>
32696
32697 * sem_ch6.adb: (Confirming Types): Code cleanup
32698
32699 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
32700 subprogram types: E_Anonymous_Access_Subprogram_Type and
32701 E_Anonymous_Access_Protected_Subprogram_Type.
32702
327032004-04-23 Thomas Quinot <quinot@act-europe.fr>
32704
32705 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32706 whether a pragma All_Calls_Remote applies to the subprogram on which
32707 'Access is taken.
32708 No functional change is introduced by this revision; the new parameter
32709 will be used to allow calls to local RCI subprograms to be optimized
32710 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32711 as is already done in the PolyORB implementation of the DSA.
32712
32713 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
32714 whether a pragma All_Calls_Remote applies to the subprogram on which
32715 'Access is taken.
32716 No functional change is introduced by this revision; the new parameter
32717 will be used to allow calls to local RCI subprograms to be optimized
32718 to not use the PCS in the case where no pragma All_Calls_Remote applies,
32719 as is already done in the PolyORB implementation of the DSA.
32720
327212004-04-23 Robert Dewar <dewar@gnat.com>
32722
32723 * Makefile.rtl: Add entry for s-addope.o in run time library list
32724 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
32725 * s-addope.ads, s-addope.adb: New files.
32726
90afe2c9
ZW
32727 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
32728 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
32729 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
32730 System.Address to be non-private and signed.
32731
32732 * sem_elim.adb: Minor reformatting (fairly extensive)
32733 Some minor code reorganization from code reading
32734 Add a couple of ??? comments
32735
327362004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32737
32738 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 32739 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
32740
32741 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
32742
327432004-04-23 Sergey Rybin <rybin@act-europe.fr>
32744
32745 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
32746 Eliminate' section.
32747
32748 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
32749 no longer used as a parameter name for Eliminate pragma).
32750
9e94c78f 327512004-04-22 Laurent Guerby <laurent@guerby.net>
78bad775
LG
32752
32753 PR optimization/14984
32754 PR optimization/14985
32755 * trans.c (gigi): Fix non determinism leading to bootstrap
32756 comparison failures.
32757
af4b9434
AC
327582004-04-21 Pascal Obry <obry@gnat.com>
32759
32760 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
32761 passed to spawnvp() to properly handle program pathname with spaces on
32762 Win32.
32763
327642004-04-21 Emmanuel Briot <briot@act-europe.fr>
32765
32766 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
32767 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
32768 unlocked in case of exceptions.
32769
327702004-04-21 Joel Brobecker <brobecker@gnat.com>
32771
32772 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
32773 This function does not exist anymore.
32774
327752004-04-21 Thomas Quinot <quinot@act-europe.fr>
32776
32777 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
32778
32779 * link.c: Move variables to the __gnat name space.
32780
32781 * Makefile.in: list link.o explicitly when needed.
32782
32783 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
32784
327852004-04-21 Javier Miranda <miranda@gnat.com>
32786
32787 * einfo.adb (Original_Access_Type): New subprogram
32788 (Set_Original_Access_Type): New subprogram
32789 (Write_Field21_Name): Write the name of the new field
32790
32791 * einfo.ads (Original_Access_Type): New field present in access to
32792 subprogram types.
32793 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
32794 E_Anonymous_Access_Protected_Subprogram_Type.
32795
32796 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
32797 subprogram types.
32798
32799 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
32800 to anonymous access to subprogram types.
32801
32802 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
32803 to subprogram types.
32804
32805 * sem_ch3.adb (Access_Definition): Complete decoration of entities
32806 corresponding to anonymous access to subprogram types.
32807 (Analyze_Component_Declaration): Add new actual to the call to
32808 subprogram replace_anonymous_access_to_protected_subprogram.
32809 (Array_Type_Declaration): Add new actual to the call to subprogram
32810 replace_anonymous_access_to_protected_subprogram.
32811 (Process_Discriminants): Add new actual to the call to subprogram
32812 replace_anonymous_access_to_protected_subprogram.
32813 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
32814
32815 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
32816 formal.
32817
32818 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
32819 access to subprogram types.
32820
32821 * sem_util.adb (Has_Declarations): Addition of package_specification
32822 nodes.
32823
328242004-04-21 Ed Schonberg <schonberg@gnat.com>
32825
32826 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
32827 inlined flags to renamed entity only if in current unit.
32828
328292004-04-21 Thomas Quinot <quinot@act-europe.fr>
32830
32831 * s-parint.ads: Add DSA implementation marker.
32832
32833 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
32834 value of System.Partition_Interface.DSA_Implementation to determine
32835 what version of the distributed systems annex is available (no
32836 implementation, GLADE, or PolyORB).
32837
328382004-04-21 Joel Brobecker <brobecker@gnat.com>
32839
32840 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
32841
328422004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32843
32844 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
32845 with new type if alias sets differ.
32846 Fixes ACATS c41103b.
32847
328482004-04-21 Vincent Celier <celier@gnat.com>
32849
32850 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
32851 Add array Lang_Args for the language specific compiling argument
32852 switches.
32853
32854 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
32855
328562004-04-21 Sergey Rybin <rybin@act-europe.fr>
32857
32858 * gnat_rm.texi: Update the descripton of the Eliminate pragma
32859 according to the recent changes in the format of the parameters of the
32860 pragma (replacing Homonym_Number with Source_Location).
32861
7324bf49
AC
328622004-04-19 Arnaud Charlet <charlet@act-europe.fr>
32863
32864 * 5isystem.ads: Removed, unused.
32865
32866 * gnat_rm.texi: Redo 1.13 change.
32867
328682004-04-19 Robert Dewar <dewar@gnat.com>
32869
32870 * s-stoele.ads: Clean up definition of Storage_Offset (the new
32871 definition is cleaner, avoids the kludge of explicit Standard operator
32872 references, and also is consistent with a visible System.Address with
32873 no visible operations.
32874
32875 * s-geveop.adb: Add declarations to avoid assumption of visible
32876 operations on type System.Address (since these might not be available
32877 if Address is a non-private type for which the operations
32878 are made abstract).
32879
32880 * sem_eval.adb: Minor reformatting
32881
32882 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
32883 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
32884 reformatting (new function spec format).
32885
32886 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
32887 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
32888 s-caun64.adb: Add declarations to avoid assumption of visible
32889 operations on type System.Address (since these might not be available
32890 if Address is a non-private type for which the operations are made
32891 abstract).
32892
32893 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
32894
32895 * exp_intr.adb: Minor comment update
32896
32897 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
32898
32899 * 5omastop.adb: Add declarations to avoid assumption of visible
32900 operations on type System.Address (since these might not be available
32901 if Address is a non-private type for which the operations
32902 are made abstract).
32903
329042004-04-19 Vincent Celier <celier@gnat.com>
32905
32906 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
32907
32908 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
32909 defaulted to Ada.
32910
32911 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
32912 defaulted to Ada.
32913 Call Check with Process_Languages.
32914 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
32915 with Process_Languages.
32916 (Recursive_Check): New Boolean parameter Process_Languages. Call
32917 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
32918 Process_Languages.
32919
32920 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
32921
32922 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
32923 parameter Ada_Main, defaulted to True.
32924 Check for Ada specific characteristics only when Ada_Main is True.
32925
32926 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
32927
32928 * prj.adb: (Project_Empty): Add new Project_Data components.
32929
32930 * prj.ads: New types and tables for non Ada languages.
32931 (Project_Data): New components Languages, Impl_Suffixes,
32932 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
32933 Include_Path, Include_Data_Set.
32934
32935 * prj-env.ads, prj-env.adb: Minor reformatting
32936
32937 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
32938 Put subprograms in alphabetical order
32939
32940 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
32941 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
32942 Opt.Follow_Links.
32943
32944 * mlib-prj.adb: Back out modification in last version, as they are
32945 incorrect.
32946 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
32947
32948 * make.adb: (Mains): Moved to package Makeutl
32949 (Linker_Opts): Moved to package Makeutl
32950 (Is_External_Assignment): Moved to package Makeutl
32951 (Test_If_Relative_Path): Moved to package Makeutl
32952 (Gnatmake): Move sorting of linker options to function
32953 Makeutl.Linker_Options_Switches.
32954
8f9df7d8
VC
32955 * makeutl.ads, makeutl.adb: New files.
32956
7324bf49
AC
32957 * Makefile.in: Add makeutl.o to the object files for gnatmake
32958
32959 * makeusg.adb: Add line for new switch -eL.
32960
32961 * gnatls.adb (Image): New function.
32962 (Output_Unit): If in verbose mode, output the list of restrictions
32963 specified by pragmas Restrictions.
32964
32965 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
32966 Text_IO.
32967
32968 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
32969 needed, to put it in the range 1970 (included) - 2026 (excluded).
32970 (Time_Of): Do not shift Unix_Min_Year (1970).
32971 Shift the date by multiple of 56 years, if needed, to put it in the
32972 range 1970 (included) - 2026 (excluded).
32973
32974 * adaint.h, adaint.c (__gnat_set_executable): New function.
32975
329762004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32977
32978 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
32979 and pop GC context.
32980 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
32981 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
32982 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
32983 (tree_transform, case N_Code_Statement): Likewise.
32984 (gnat_expand_stmt, case LABEL_STMT): Don't look at
32985 LABEL_STMT_FIRST_IN_EH.
32986 (gnat_expand_stmt, case ASM_STMT): New case.
32987
32988 * utils2.c (build_unary_op): Properly set TREE_READONLY of
32989 UNCONSTRAINED_ARRAY_REF.
32990
32991 * utils.c (poplevel): Temporarily push/pop GC context around inline
32992 function expansion.
32993
32994 * decl.c (maybe_variable): Properly set TREE_READONLY of
32995 UNCONSTRAINED_ARRAY_REF.
32996 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
32997
32998 * ada-tree.def: (ASM_STMT): New.
32999
33000 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
33001 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
33002 ASM_STMT_INPUT): New.
33003 (ASM_STMT_CLOBBER): Likewise.
33004
330052004-04-19 Thomas Quinot <quinot@act-europe.fr>
33006
33007 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
33008 general rcheck mechanism to raise Program_Error for E.4(18), instead
33009 of a custom raiser in System.Partition_Interface.
33010 Part of general cleanup work before PolyORB integration.
33011
33012 * snames.ads, snames.adb: Add new runtime library entities and names
33013 for PolyORB DSA.
33014
33015 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33016 exp_dist.
33017 (Build_Subprogram_Id): New subprogram provided by exp_dist
33018 Code reorganisation in preparation for PolyORB integration.
33019
33020 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
33021 exp_dist.
33022 (Build_Subprogram_Id): New subprogram provided by exp_dist
33023
33024 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
33025 actual parameter types for call to dereference of an
33026 access-to-subprogram type.
33027
33028 * rtsfind.ads: Add new runtime library entities and names for PolyORB
33029 DSA.
33030
33031 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
33032 instead, which has the same behaviour here since we never pass it a
33033 NULL pointer.
33034
33035 * link.c (run_path_option, Solaris case): Use -Wl, as for other
33036 platforms.
33037
33038 * Makefile.in: adjust object file lists for gnatlink and gnatmake
33039 to account for new dependency upon Interfaces.C.Strings + link.o
33040 For x86 FreeBSD, use 86numaux.
33041
33042 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
33043 from Mlib.Tgt to Mlib.
33044
33045 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
33046 target-independent.
33047
33048 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
33049 target-specific versions of this subprogram, now implemented as a
33050 target-independent function in Mlib.
33051
33052 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
33053 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
33054 (Linker_Library_Path_Option): Remove target-specific versions of this
33055 subprogram, now implemented as a target-independent function in Mlib.
33056
33057 * atree.adb: (Allocate_Initialize_Node): New subprogram.
33058 Factors out node table slots allocation.
33059 (Fix_Parents): New subprogram.
33060 Encapsulate the pattern of fixing up parent pointers for syntactic
33061 children of a rewritten node.
33062 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
33063 (Rewrite): Use New_Copy when creating saved copy of original node.
33064 (Replace): Use Copy_Node to copy nodes.
33065
330662004-04-19 Javier Miranda <miranda@gnat.com>
33067
33068 * sprint.adb (Sprint_Node_Actual): Give support to the new
33069 Access_To_Subprogram node available in Access_Definition nodes. In
33070 addition, give support to the AI-231 node fields: null-exclusion,
33071 all-present, constant-present.
33072
33073 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
33074
90afe2c9 33075 * sinfo.ads, sinfo.adb:
7324bf49
AC
33076 New field Access_To_Subprogram_Definition in Access_Definition nodes
33077
33078 * sem_ch6.adb (Process_Formals): Move here the code that creates and
33079 decorates internal subtype declaration corresponding to the
33080 null-excluding formal. This code was previously in Set_Actual_Subtypes.
33081 In addition, carry out some code cleanup on this code. In case of
33082 access to protected subprogram call
33083 Replace_Anonymous_Access_To_Protected_Subprogram.
33084 (Set_Actual_Subtypes): Code cleanup.
33085
33086 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
33087 Find_Type in case of anonymous access renamings. Add warning in case of
33088 null-excluding attribute used in anonymous access renaming.
33089
33090 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
33091 subprogram
33092
33093 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
33094 subprogram.
33095 (Access_Definition): In case of anonymous access to subprograms call
33096 the corresponding semantic routine to decorate the node.
33097 (Access_Subprogram_Declaration): Addition of some comments indicating
33098 some code that probably should be added here. Detected by comparison
33099 with the access_definition subprogram.
33100 (Analyze_Component_Declaration): In case of access to protected
33101 subprogram call Replace_Anonymous_Access_To_Protected.
33102 (Array_Type_Declaration): In case of access to protected subprogram call
33103 Replace_Anonymous_Access_To_Protected_Subprogram.
33104 (Process_Discriminants): In case of access to protected subprogram call
33105 Replace_Anonymous_Access_To_Protected_Subprogram.
33106
33107 * par.adb (P_Access_Definition): New formal that indicates if the
33108 null-exclusion part was present.
33109 (P_Access_Type_Definition): New formal that indicates if the caller has
33110 already parsed the null-excluding part.
33111
33112 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
33113 (P_Identifier_Declarations): Code cleanup and give support to renamings
33114 of anonymous access to subprogram types.
33115 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
33116 (P_Array_Type_Definition): Give support to AI-254.
33117 (P_Component_Items): Give support to AI-254.
33118 (P_Access_Definition): New formal that indicates if the header was
33119 already parsed by the caller.
33120 (P_Access_Type_Definition): New formal that indicates if the caller has
33121 already parsed the null-excluding part.
33122
33123 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
33124 call to P_Access_Definition.
33125
331262004-04-19 Geert Bosch <bosch@gnat.com>
33127
33128 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
33129 the delicate semantics of floating-point to integer conversion.
33130 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
33131
33132 * eval_fat.adb (Machine_Mantissa): Moved to spec.
33133 (Machine_Radix): New function.
33134
33135 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
33136 conversion checks.
33137 (Machine_Radix): New function also for use in conversion checks.
33138
331392004-04-19 Ed Schonberg <schonberg@gnat.com>
33140
33141 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
33142
33143 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
33144 to decorate the access-to-protected subprogram and the equivalent type.
33145
33146 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
33147 to anonymous access to subprogram types.
33148
33149 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
33150 constant-folding, for legality checks in contexts that require an RM
33151 static expression.
33152
33153 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
33154 temporary but stack checking is not enabled, increment serial number
33155 to so that symbol generation is consistent with and without stack
33156 checking.
33157
33158 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
33159 independent on whether stack checking is enabled, caller must check
33160 the corresponding flag.
33161
33162 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
33163 range checks.
33164 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
33165 parent if it has discriminants.
33166 (Build_Derived_Private_Type): Constructed full view does
33167 not come from source.
33168 (Process_Discriminants): Default discriminants on a tagged type are
33169 legal if this is the internal completion of a private untagged
33170 derivation.
33171
33172 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
33173 no constraint checks, because it corresponds to an existing object.
33174
33175 * sem_prag.adb (Process_Convention): Pragma applies
33176 only to subprograms in the same declarative part, i.e. the same unit,
33177 not the same scope.
33178
33179 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
33180 ignore type mismatch on a numeric conversion if expression comes from
33181 expansion.
33182
331832004-04-19 Sergey Rybin <rybin@act-europe.fr>
33184
33185 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
33186 Homonym_Number parameter, add processing for Source_Location parameter
33187 corresponding.
33188 (Check_Eliminated): Remove the check for homonym numbers, add the check
33189 for source location traces.
33190
33191 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
33192 with Arg_Source_Location corresponding to the changes in the format of
33193 the pragma.
33194
33195 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
33196 Eliminate pragma corresponding to the changes in the format of the
33197 pragma: Homonym_Number is replaced with Source_Location, two ways of
33198 distinguishing homonyms are mutially-exclusive.
33199
332002004-04-19 Joel Brobecker <brobecker@gnat.com>
33201
33202 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
33203
33204 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
33205 No_Dollar_In_Label, no longer necessary, as it is always True.
33206 (Strip_Suffixes): Likewise.
33207
332082004-04-19 Gary Dismukes <dismukes@gnat.com>
33209
33210 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
33211 modulus for compatibility with size clause on targets with 16-bit
33212 Integer.
33213
33214 * layout.adb (Discrimify): In the case of private types, set Vtyp to
33215 full type to fix type mismatches on calls to size functions for
33216 discriminant-dependent array components.
33217
332182004-04-19 Jerome Guitton <guitton@act-europe.fr>
33219
33220 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
33221 lib.
33222
332232004-04-19 Pascal Obry <obry@gnat.com>
33224
33225 * mdll-utl.adb (Locate): New version is idempotent.
33226
9e94c78f 332272004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
33228
33229 PR ada/14988 (partial)
33230 * impunit.adb: Fix typo.
90afe2c9 33231
cce0244b
NN
332322004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
33233
33234 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
33235 and install-rts-cert targets. Remove all gnatlib and gnattools
33236 targets and all other rts-* targets (moved to libada). Remove (now)
33237 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
33238 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
33239
af152989
AC
332402004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33241
33242 * trans.c (tree_transform): Shortcut returning error_mark_node for
33243 statements in annotate_only_mode.
33244 (tree_transform, case N_Label, case N_Return_Statement,
33245 N_Goto_Statement): Make statement tree instead of generating code.
33246 (tree_transform, case N_Assignment_Statement): No longer check
33247 type_annotate_only.
33248 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
33249 RETURN_STMT): New.
33250 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
33251 New fcns.
33252 (gnat_to_gnu): Collect any RTL generated and deal with it.
33253 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
33254 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
33255 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
33256
33257 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
33258
33259 * ada-tree.def (EXPR_STMT): Fix typo in name.
33260 (BLOCK_STMT, IF_STMT): New nodes.
33261
33262 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
33263 LABEL_STMT_FIRST_IN_EH): New macros.
33264 (RETURN_STMT_EXPR): Likewise.
33265
33266 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
33267 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
33268
332692004-04-08 Thomas Quinot <quinot@act-europe.fr>
33270
33271 * atree.ads: Correct documentation on extended nodes.
33272
33273 * link.c: Set run_path_option for FreeBSD.
33274
332752004-04-08 Vincent Celier <celier@gnat.com>
33276
33277 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
33278 one of the ALI file, do not link with DEC lib.
33279
33280 * par.adb Remove the last two characters ("%s" or "%b") when checking
33281 if a language defined unit may be recompiled.
33282
332832004-04-08 Ed Schonberg <schonberg@gnat.com>
33284
33285 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
33286 removal of abstract operation leaves no possible interpretation for
33287 expression.
33288
33289 * sem_eval.adb (Eval_Qualified_Expression): Use
33290 Set_Raises_Constraint_Error on node when needed, so that it does not
33291 get optimized away by subsequent optimizations.
33292
33293 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
33294 operands even when they are not wrapped in a type conversion.
33295
332962004-04-08 Olivier Hainque <hainque@act-europe.fr>
33297
33298 * sem_prag.adb (Set_Exported): Warn about making static as result of
33299 export only when the export is coming from source. This may be not
33300 be true e.g. on VMS where we expand export pragmas for exception codes
33301 together with imported or exported exceptions, and we don't want the
33302 user to be warned about something he didn't write.
33303
333042004-04-08 Thomas Quinot <quinot@act-europe.fr>
33305
33306 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
33307 duplication between normal entities and those declared as renamings.
33308 No functional change.
33309
90afe2c9 33310 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
33311 inline functions returning an unconstrained result.
33312
333132004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
33314
33315 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
33316 conform to what other front-ends do.
33317
333182004-04-08 Doug Rupp <rupp@gnat.com>
33319
33320 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
33321 libraries.
33322
3984e89a
AC
333232004-04-06 Pascal Obry <obry@gnat.com>
33324
33325 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
33326
33327 * osint.adb (Program_Name): Do not look past a directory separator.
33328
333292004-04-06 Thomas Quinot <quinot@act-europe.fr>
33330
33331 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
33332
33333 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
33334 requirement for preserving a copy of the original assignment node.
33335
33336 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
33337
333382004-04-06 Olivier Hainque <hainque@act-europe.fr>
33339
33340 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
33341 when supported.
33342
333432004-04-06 Ed Schonberg <schonberg@gnat.com>
33344
33345 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
33346 operator calls in functional notation, and apply
33347 Universal_Interpretation to operands, not to their type.
33348
333492004-04-06 Robert Dewar <dewar@gnat.com>
33350
33351 * 5wdirval.adb: Minor reformatting
33352
333532004-04-06 Ed Falis <falis@gnat.com>
33354
33355 * gnat_rm.texi: Improve a reference to the GCC manual
33356
30c20106
AC
333572004-04-05 Vincent Celier <celier@gnat.com>
33358
33359 * adaint.h, adaint.c: Add function __gnat_named_file_length
33360
33361 * impunit.adb: Add Ada.Directories to the list
33362
33363 * Makefile.in: Add VMS and Windows versions of
33364 Ada.Directories.Validity package body.
33365
33366 * Makefile.rtl: Add a-direct and a-dirval
33367
33368 * mlib-tgt.ads: Minor comment update.
33369
33370 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
33371 a-direct.ads, a-direct.adb: New files.
33372
333732004-04-05 Vincent Celier <celier@gnat.com>
33374
33375 PR ada/13620
33376 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
33377 just to the compiler.
33378
333792004-04-05 Robert Dewar <dewar@gnat.com>
33380
33381 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
33382 returned string is 1.
33383
33384 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
33385
33386 * eval_fat.ads: Minor reformatting
33387
33388 * g-curexc.ads: Document that lower bound of returned string values
33389 is always one.
33390
33391 * gnatlink.adb: Add ??? comment for previous change
33392 (need to document why this is VMS specific)
33393
33394 * s-stoele.ads: Minor reformatting
33395
33396 * tbuild.ads: Minor reformatting throughout (new function specs)
33397
33398 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
33399 after WITH.
33400
33401 * scng.adb: Minor reformatting
33402
334032004-04-05 Geert Bosch <bosch@gnat.com>
33404
33405 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
33406 (Leading_Part): Still perform truncation to machine number if the
33407 specified radix_digits is greater or equal to machine_mantissa.
33408
334092004-04-05 Javier Miranda <miranda@gnat.com>
33410
33411 * par-ch3.adb: Complete documentation of previous change
33412 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
33413 (aliased must appear before constant).
33414
33415 * par-ch4.adb: Complete documentation of previous change.
33416
33417 * par-ch6.adb: Complete documentation of previous change.
33418
33419 * sinfo.ads: Fix typo in commment.
33420
334212004-04-05 Ed Schonberg <schonberg@gnat.com>
33422
33423 * sem_ch3.adb (Inherit_Components): If derived type is private and has
33424 stored discriminants, use its discriminants to constrain parent type,
33425 as is done for non-private derived record types.
33426
33427 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
33428 Ada 2005 AI-310: an abstract non-dispatching operation is not a
33429 candidate interpretation in an overloaded call.
33430
33431 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
33432 expression is Null and target type is not an access type (e.g. a
33433 non-private address type).
33434
334352004-04-05 Thomas Quinot <quinot@act-europe.fr>
33436
33437 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
33438 statement whose right-hand side is an inlined call, save a copy of the
33439 original assignment subtree to preserve enough consistency for
33440 Analyze_Assignment to proceed.
33441
33442 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
33443 complete assignment subtree which is now unnecessary, as the expansion
33444 of inlined call has been improved to preserve a consistent assignment
33445 tree. Note_Possible_Modification must be called only
33446 after checks have been applied, or else unnecessary checks will
33447 be generated.
33448
33449 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
33450 of explicit dereferences that do not Come_From_Source:
33451 - be selective on cases where we must go back to the dereferenced
33452 pointer (an assignment to an implicit dereference must not be
33453 recorded as modifying the pointer);
33454 - do not rely on Original_Node being present (Analyze_Assignment
33455 calls Note_Possible_Modification on a copied tree).
33456
33457 * sem_warn.adb (Check_References): When an unset reference to a pointer
33458 that is never assigned is encountered, prefer '<pointer> may be null'
33459 warning over '<pointer> is never assigned a value'.
33460
334612004-04-05 Ramon Fernandez <fernandez@gnat.com>
33462
33463 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
33464 the ABI.
33465
334662004-04-05 Olivier Hainque <hainque@act-europe.fr>
33467
33468 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
33469 libexc. We currently don't reference anything in this library and
33470 linking it in triggers linker warnings we don't want to see.
33471
33472 * init.c: Update comments.
33473
4f976745
RK
334742004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33475
33476 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
33477 * utils.c (create_field_decl): Likewise.
33478 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
33479
6da7d579
AC
334802004-04-02 Arnaud Charlet <charlet@act-europe.fr>
33481
33482 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
33483 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
33484 Add info directory entry and category.
33485
18c6ada9
JH
334862004-04-02 Jan Hubicka <jh@suse.cz>
33487
33488 * utils.c: Include function.h
33489 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
33490
7cd4527e
AC
334912004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33492
33493 PR ada/14150
33494 * Make-lang.in: Clean up generation of documentation
33495
33496 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
33497
33498 * xgnatug.adb: Removed, replaced by xgnatugn.adb
33499
33500 * xgnatugn.adb: Replaces xgnatug.adb
33501
33502 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
33503
33504 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
33505
33506 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33507 gnat_ug_wnt.texi: Removed.
33508
0c250f07
AC
335092004-04-01 Arnaud Charlet <charlet@act-europe.fr>
33510
33511 * utils2.c: Update copyright notice.
33512
6b6fcd3e
AC
335132004-04-01 Robert Dewar <dewar@gnat.com>
33514
33515 * checks.adb: Minor reformatting throughout
33516 Note that prev checkin added RM reference to alignment warning
33517
335182004-04-01 Ed Schonberg <schonberg@gnat.com>
33519
33520 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
33521 non-static when building aggregate for bit-packed array.
33522
33523 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
33524 function call that is itself the actual in a procedure call, build
33525 temporary for it.
33526
33527 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
33528 a string literal, create a temporary for it, constant folding only
33529 handles scalars here.
33530
335312004-04-01 Vincent Celier <celier@gnat.com>
33532
33533 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
33534 Error_Msg_SP): New empty procedures to instantiate the Scanner.
33535 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
33536 tokens.
33537 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
33538 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
33539 and get the checksum.
33540
33541 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
33542 already in the Q.
33543 Increase the Marking_Label at the end of the Multiple_Main_Loop,
33544 instead of at the beginning.
33545
33546 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
33547 directly.
33548 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
33549 on VMS.
33550
33551 * osint.ads (Multi_Unit_Index_Character): New Character global variable
33552
33553 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
33554 not '~' directly.
33555
33556 * par.adb: Remove test on file name to detect language defined units.
33557 Add test on unit name, after parsing, to detect language defined units
33558 that are not compiled with -gnatg (except System.RPC and its children)
33559
33560 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
33561 following units without style checking.
33562
33563 * switch-c.adb: Change -gnatC to -gnateI
33564
33565 * usage.adb: Document new switch -gnateInnn
33566
33567 * scng.adb (Accumulate_Token_Checksum): New procedure
33568 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
33569 word or literal number.
33570 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
33571 numbers.
33572
335732004-04-01 Thomas Quinot <quinot@act-europe.fr>
33574
33575 * a-tasatt.adb,
33576 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
33577 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
33578 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
33579 5vtpopde.adb: Add missing 'constant' keywords.
33580
335812004-04-01 Javier Miranda <miranda@gnat.com>
33582
33583 * par-ch4.adb: (P_Allocator): Code cleanup
33584
33585 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
33586 attribute.
33587
33588 * sinfo.ads: Complete documentation of previous change
33589
335902004-04-01 Pascal Obry <obry@gnat.com>
33591
33592 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
33593 only on VMS. This special handling was done because an old GNU/ld bug
33594 on Windows which has been fixed.
33595
335962004-04-01 GNAT Script <nobody@gnat.com>
33597
33598 * Make-lang.in: Makefile automatically updated
33599
8df83eae
RK
336002004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33601
33602 * decl.c (gnat_to_gnu_entity, make_type_from_size):
33603 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
33604 * trans.c (tree_transform, convert_with_check): Likewise.
33605 * utils.c (gnat_signed_or_unsigned_type): Likewise.
33606 (build_vms_descriptor, unchecked_convert): Likewise.
33607 * utils2.c (nonbinary_modular_operation): Likewise.
33608
2820d220
AC
336092004-03-29 Javier Miranda <miranda@gnat.com>
33610
33611 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
33612 (Install_Null_Excluding_Check): Local subprogram that determines whether
33613 an access node requires a runtime access check and if so inserts the
33614 appropriate run-time check.
33615 (Apply_Access_Check): Call Install_Null_Excluding check if required
33616 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
33617
33618 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
33619
33620 * einfo.ads: Fix typo in comment
33621
33622 * exp_ch3.adb (Build_Assignment): Generate conversion to the
33623 null-excluding type to force the corresponding run-time check.
33624 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
33625 type to force the corresponding run-time check.
33626
33627 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
33628 the null-excluding type to force the corresponding run-time check.
33629
33630 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
33631 case of access types unless they have the null-excluding attribute.
33632
33633 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
33634 part.
33635
33636 * exp_util.ads: Fix typo in comment
33637
33638 * par.adb (P_Null_Exclusion): New subprogram
33639 (P_Subtype_Indication): New formal that indicates if the null-excluding
33640 part has been scanned-out and it was present
33641
33642 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
33643
33644 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
33645 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
33646 type to force the corresponding run-time check
33647 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
33648 components
33649 (Resolve_Array_Aggregate): Carry out some static checks
33650 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
33651
33652 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
33653 attribute must be set only if specified by means of the null-excluding
33654 part. In addition, we must also propagate the access-constant attribute
33655 if present.
33656 (Access_Subprogram_Declaration, Access_Type_Declaration,
33657 Analyze_Component_Declaration, Analyze_Object_Declaration,
33658 Array_Type_Declaration, Process_Discriminants,
33659 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
33660 and carry out some static checks.
33661 (Build_Derived_Access_Type): Set the null-excluding attribute
33662 (Derived_Type_Declaration, Process_Subtype): Carry out some static
33663 checks.
33664
33665 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
33666
33667 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
33668
33669 * sem_ch6.adb (Process_Formals): Carry out some static checks.
33670 (Set_Actual_Subtypes): Generate null-excluding subtype if the
33671 null-excluding part was present; it is not required to be done here in
33672 case of anonymous access types.
33673 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
33674 value.
33675
33676 * sem_res.adb (Resolve_Actuals): Carry out some static check
33677 (Resolve_Null): Allow null in anonymous access
33678
33679 * sinfo.adb: New subprogram Null_Exclusion_Present
33680 All_Present and Constant_Present available on access_definition nodes
33681
33682 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
33683 object_declaration, derived_type_definition, component_definition,
33684 discriminant_specification, access_to_object_definition,
33685 access_function_definition, allocator, access_procedure_definition,
33686 access_definition, parameter_specification, All_Present and
33687 Constant_Present flags available on access_definition nodes.
33688
336892004-03-29 Robert Dewar <dewar@gnat.com>
33690
33691 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
33692 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
33693 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
33694 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
33695 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
33696 sem_prag.adb: Updates to handle multiple units/file
33697
33698 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
33699
33700 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
33701 sem_util.adb: Minor reformatting
33702
33703 * sem_ch12.adb: Add comment for previous change
33704
337052004-03-29 Laurent Pautet <pautet@act-europe.fr>
33706
33707 * osint.adb (Executable_Prefix): Set Exec_Name to the current
33708 executable name when not initialized. Otherwise, use its current value.
33709
33710 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
33711 initialize it to another executable name than the current one. This
33712 allows to configure paths for an executable name (gnatmake) different
33713 from the current one (gnatdist).
33714
337152004-03-29 Ed Schonberg <schonberg@gnat.com>
33716
33717 * exp_ch6.adb (Expand_Call): A call to a function declared in the
33718 current unit cannot be inlined if it appears in the body of a withed
33719 unit, to avoid order of elaboration problems in gigi.
33720
33721 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
33722 information for protected (wrapper) operation as well, to simplify gdb
33723 use.
33724
33725 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
33726 protected body, indicate that the entity for the generated spec comes
33727 from source, to ensure that references are properly generated for it.
33728 (Build_Body_To_Inline): Do not inline a function that returns a
33729 controlled type.
33730
33731 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
33732 apply convention to homonyms that are declared explicitly.
33733
33734 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
33735 that renames an equality operator and the operands are overloaded,
33736 resolve them with the declared formal types, before rewriting as an
33737 operator.
33738
337392004-03-29 GNAT Script <nobody@gnat.com>
33740
33741 * Make-lang.in: Makefile automatically updated
33742
6d11af89
AC
337432004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
33744
33745 * memtrack.adb: Log realloc calls, which are treated as free followed
33746 by alloc.
33747
337482004-03-25 Vincent Celier <celier@gnat.com>
33749
33750 * prj-makr.adb (Process_Directories): Detect when a file contains
33751 several units. Do not include such files in the config pragmas or
33752 in the naming scheme.
33753
33754 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
33755 Resolve links only when not in Trusted_Mode.
33756 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
33757 Do not resolve links for the display names.
33758
33759 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
33760 resolve links when computing the display names.
33761
337622004-03-25 Thomas Quinot <quinot@act-europe.fr>
33763
33764 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
33765 attribute reference does not denote a subtype, it can be any
33766 expression that has a classwide type, potentially after an implicit
33767 dereference. In particular, the prefix can be a view conversion for
33768 a classwide type (for which Is_Object_Reference holds), but it can
33769 also be a value conversion for an access-to-classwide type. In the
33770 latter case, there is an implicit dereference, and the original node
33771 for the prefix does not verify Is_Object_Reference.
33772
33773 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
33774 conversion of a discriminant-dependent component of a mutable object
33775 is one itself.
33776
337772004-03-25 Ed Schonberg <schonberg@gnat.com>
33778
33779 * freeze.adb (Freeze_Entity): When an inherited subprogram is
33780 inherited, has convention C, and has unconstrained array parameters,
33781 place the corresponding warning on the derived type declaration rather
33782 than the original subprogram.
33783
33784 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
33785 indication on renaming declaration, if formal has a box and actual
33786 is absent.
33787
33788 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
33789 determine whether to generate an implicit or explicit reference to
33790 the renamed entity.
33791
33792 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
33793 subprogram renaming comes from a defaulted formal subprogram in an
33794 instance.
33795
337962004-03-25 Gary Dismukes <dismukes@gnat.com>
33797
33798 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
33799 value expressions to ensure that calls within a component definition
33800 will be checked (since those are evaluated during the record type's
33801 elaboration).
33802
338032004-03-25 Arnaud Charlet <charlet@act-europe.fr>
33804
33805 * s-tpobop.adb: Code clean up:
33806 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
33807 code.
33808 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
33809
338102004-03-25 Jose Ruiz <ruiz@act-europe.fr>
33811
33812 * Makefile.in: Clean up in the ravenscar run time.
33813
22421b79
RK
338142004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33815
33816 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
33817 of No_Strict_Aliasing to build_pointer_type_for_mode.
33818 * utils.c (update_pointer_to): Walk pointer and ref chains.
33819
24105bab
AC
338202004-03-22 Cyrille Comar <comar@act-europe.fr>
33821
33822 * ali.ads: Fix Comment about Dynamic_Elab.
33823
33824 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
33825 Has_RACW, Is_Generic, etc.)
33826 (Output_Object, Gnatls): Take into account ALI files not attached to
33827 an object.
33828
338292004-03-22 Vincent Celier <celier@gnat.com>
33830
33831 * gprep.adb: Change all String_Access to Name_Id
33832 (Is_ASCII_Letter): new function
33833 (Double_File_Name_Buffer): New procedure
33834 (Preprocess_Infile_Name): New procedure
33835 (Process_Files): New procedure
33836 (Gnatprep): Check if output and input are existing directories.
33837 Call Process_Files to do the real job.
33838
338392004-03-22 Robert Dewar <dewar@gnat.com>
33840
33841 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
33842 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
33843
338442004-03-22 Sergey Rybin <rybin@act-europe.fr>
33845
33846 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
33847 case when the source contains only comments.
33848
338492004-03-22 Ed Schonberg <schonberg@gnat.com>
33850
33851 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
33852 declaration for a child subprogram body that acts as a spec, indicate
33853 that the entity in the declaration needs debugging information.
33854
33855 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
33856 full view if the subtype is created for a constrained record component;
33857 gigi has enough information to construct the record, and there is no
33858 place in the tree for the declaration.
33859
33860 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
33861 serial number for the dummy body that is built for analysis, to avoid
33862 inconsistencies in the generation of internal names when compiling
33863 with -gnatN.
33864
338652004-03-22 Thomas Quinot <quinot@act-europe.fr>
33866
33867 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
33868 object.
33869
338702004-03-22 GNAT Script <nobody@gnat.com>
33871
33872 * Make-lang.in: Makefile automatically updated
33873
6fce44af
RK
338742004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33875
33876 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33877 * trans.c (tree_transform, emit_index_check): Likewise.
33878 * utils.c (build_template): Likewise.
33879 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
33880 (maybe_unconstrained_array, unchecked_convert): Likewise.
33881 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
33882 (build_unary_op): Likewise.
33883 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
33884 (fill_vms_descriptor): Likewise.
33885 (build_call_alloc_dealloc): Likewise.
33886 ALIGN is unsigned.
33887 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
33888
802f6d4b
JM
338892004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
33890
33891 PR other/14630
33892 * gnat_ug.texi: Add info directory category and entry.
33893 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
33894 gnat_ug_wnt.texi: Regenerate.
33895
30f3b32b
AC
338962004-03-19 Arnaud Charlet <charlet@act-europe.fr>
33897
33898 * ada-tree.h: Update copyright notice.
33899 Minor reformatting.
33900
339012004-03-19 Olivier Hainque <hainque@act-europe.fr>
33902
33903 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
33904 as regular exception objects and not as mere integers representing the
33905 condition code. The latter approach required some dynamics to mask off
33906 severity bits, which did not fit well into the GCC table based model.
33907 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
33908 exception data objects. We don't it and it would conflict with the other
33909 external symbol we have to generate for such exceptions.
33910
33911 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
33912 the special code for VMS exceptions, since these are now represented
33913 as regular exceptions objects.
33914
7548281d
RK
339152004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33916
33917 * decl.c (debug_no_type_hash): Remove.
33918 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
33919 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
33920
9e94c78f 339212004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 33922
90afe2c9 33923 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 33924 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 33925
eb34af89
RK
339262004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33927
33928 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
33929 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
33930 (TYPE_RM_SIZE_INT): Directly use type.values.
33931 (TREE_LOOP_ID): Clean up check.
33932 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
33933 TYPE_VALUES, not TYPE_FIELDS.
33934 * trans.c (convert_with_check): Delay access of bounds of basetype
33935 until sure is numeric.
33936
a336eaca
AC
339372004-03-18 Arnaud Charlet <charlet@act-europe.fr>
33938
33939 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
33940
33941 Code clean up:
33942 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
33943 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
33944 Specific.Set instead of direct call to e.g pthread_setspecific.
33945
339462004-03-18 Thomas Quinot <quinot@act-europe.fr>
33947
33948 * adaint.c: Update comments.
33949
33950 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
33951 GNATLIB_SHARED for FreeBSD.
33952
339532004-03-18 Jose Ruiz <ruiz@act-europe.fr>
33954
33955 * init.c [VxWorks]: Do not fix the stack size for the environment task.
33956 When needed (stack checking) the stack size is retrieved
33957 from the VxWorks kernel.
33958
33959 * Makefile.in: Flag -nostdinc is required when building the run time
33960 for avoiding looking for files in the base compiler.
33961 Add the VxWorks specific version of the package body for
33962 System.Stack_checking.Operations (5zstchop.adb).
33963
33964 * Make-lang.in: Add the object file for
33965 System.Stack_Checking.Operations.
33966
33967 * Makefile.rtl: Add object file for the package
33968 System.Stack_Checking.Operations.
33969
33970 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
33971
33972 * s-stache.ads, s-stache.adb: Move the operations related to stack
33973 checking from this package to package System.Stack_Checking.Operations.
33974 This way, stack checking operations are only linked in the final
33975 executable when using the -fstack-check flag.
33976
339772004-03-18 Doug Rupp <rupp@gnat.com>
33978
33979 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
33980 Reorganize ifeq's.
33981
33982 * 5qsystem.ads, 5xcrtl.ads: New files.
33983
339842004-03-18 Vincent Celier <celier@gnat.com>
33985
33986 * prj.adb (Reset): Reset hash table Files_Htable
33987
33988 * prj-env.adb (Source_Paths, Object_Paths): New tables.
33989 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
33990 the procedures Add_To_Path_File.
33991 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
33992 making sure that each directory is present only once and, for object
33993 dirs, when a directory already present is added, the duplicate is
33994 removed and the directory is always put as the last in the table.
33995 Write the path files at the end of these accumulations.
33996
33997 * prj-nmsc.adb (Record_Source): Add source file name in hash table
33998 Files_Htable for all sources.
33999
34000 * prj-proc.adb (Process): Remove restrictions between not directly
34001 related extending projects.
34002
340032004-03-18 Emmanuel Briot <briot@act-europe.fr>
34004
34005 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
34006 (Find_Sources): Minor speed optimization.
34007
34008 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
34009 parameter Trusted_Mode.
34010
340112004-03-18 Sergey Rybin <rybin@act-europe.fr>
34012
34013 * scn.adb (Determine_License): Take into account a degenerated case
34014 when the source contains only comments.
34015
340162004-03-18 Ed Schonberg <schonberg@gnat.com>
34017
34018 * sem_warn.adb (Check_References): For a warning on a selected
34019 component that does not come from source, locate an uninitialized
34020 component of the record type to produce a more precise error message.
34021
e6f69614
AC
340222004-03-15 Jerome Guitton <guitton@act-europe.fr>
34023
34024 * 3zsoccon.ads: Fix multicast options.
34025
34026 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
34027 in the spec.
34028
340292004-03-15 Robert Dewar <dewar@gnat.com>
34030
34031 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
34032 pragma used for a private type.
34033
34034 * lib-xref.adb (Generate_Reference): Do not generate warning if
34035 reference is in a different unit from the pragma Unreferenced.
34036
34037 * 5vtpopde.adb: Minor reformatting
34038 Fix casing of To_Task_ID
34039
34040 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
34041 flag if we have an unchecked conversion to an access type in the same
34042 unit.
34043
340442004-03-15 Geert Bosch <bosch@gnat.com>
34045
34046 * a-ngcoty.adb (Modulus): In alternate formula for large real or
34047 imaginary parts, use Double precision throughout.
34048
34049 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
34050 we want to be able to compile run-time with -gnata for testing, but
34051 this may also be instantiated in user code that is compiled with -gnata.
34052
340532004-03-15 Olivier Hainque <hainque@act-europe.fr>
34054
34055 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
34056 codes. Having a separate type for this is useful to enforce consistency
34057 throughout the various run-time units.
34058 (Exception_Data): Use Exception_Code for Import_Code.
34059
34060 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
34061 Natural and Integer in various places.
34062 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
34063 with the severity bits masked off.
34064 (Register_VMS_Exception): Handle the additional exception data pointer
34065 argument.
34066
34067 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
34068 component, now reflected by an exported accessor.
34069 (is_handled_by): New routine to compute whether the propagated
34070 occurrence matches some handler choice specification. Extracted out of
34071 get_action_description_for, and expanded to take care of the VMS
34072 specifities.
34073 (get_action_description_for): Use is_handled_by instead of an explicit
34074 complex condition to decide if the current choice at hand catches the
34075 propagated occurrence.
34076
34077 * raise.h (Exception_Code): New type for C.
34078
34079 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
34080 System.Standard_Library.Exception_Code, to allow references from the
34081 pragma import/export expander.
34082
34083 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
34084 New accessors to allow easy access to GNAT exception data
34085 characteristics.
34086 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
34087 redundant Handled_By_Others component, helper for the personality
34088 routine which will now be able to call the appropriate exception data
34089 accessor instead.
34090
34091 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
34092 component of Standard_Exception_Type to be the closest possible to
34093 Exception_Code in System.Standard_Library, that we cannot get at this
34094 point. Expand a ??? comment to notify that this type node should
34095 probably be rewritten later on.
34096
34097 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
34098 registration call to include a pointer to the exception object in the
34099 arguments.
34100
34101 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
34102 instead of int and explicit bitmasks.
34103
341042004-03-15 Vincent Celier <celier@gnat.com>
34105
34106 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
34107 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
34108
34109 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
34110 longer needed now that it is in the spec of
34111 System.Tasking.Task_Attributes.
34112
34113 * adaint.h, adaint.c: (__gnat_create_output_file): New function
34114
34115 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
34116
34117 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
34118
34119 * make.adb (Gnatmake): Do not check the executable suffix; it is being
34120 taken care of in Scan_Make_Arg.
34121 (Scan_Make_Arg): Add the executable suffix only if the argument
34122 following -o, in canonical case, does not end with the executable
34123 suffix. When in verbose mode and executable file name does not end
34124 with executable suffix, output the executable name, in canonical case.
34125
34126 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
34127 to avoid warnings when instantiating Ada.Task_Attributes.
34128 Minor reformating.
34129
34130 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
34131 in the correct order.
34132
34133 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
34134 redirect standard output and error to a file for the invocation of the
34135 compiler, then read the file.
34136
34137 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
34138 directory, instead of the Value.
34139 (Find_Source_Dirs): Remove useless code & comments.
34140
341412004-03-15 Ed Schonberg <schonberg@gnat.com>
34142
34143 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
34144 tagged type is inherited, and the parent operation is not frozen yet,
34145 force generation of a freeze node for the inherited operation, so the
34146 corresponding dispatch entry is properly initialized.
34147 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
34148 when looking for user-defined equality operation.
34149
34150 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
34151 boolean when locating primitive equality of tagged component.
34152
34153 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
34154 bit-aligned field and the right-hand side a string literal, introduce
34155 a temporary before expanding assignment into a loop.
34156
34157 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
34158 priority in full, to ensure that any expanded subepxressions of it are
34159 elaborated in the scope of the init_proc.
34160
34161 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
34162 after object declaration, skipping over code that may have been
34163 generated for validity checks.
34164
34165 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
34166 discriminants, ignore the known discriminants of its full view, if
34167 any, to check legality.
34168
34169 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
34170 component if type has unknown discriminants.
34171 (Analyze_Private_Extension_Declaration): Discriminant constraint is
34172 null if type has unknown discriminants.
34173
34174 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
34175 for end label when present.
34176
34177 * s-fileio.adb (Open): When called with a C_Stream, use given name for
34178 temporary file, rather than an empty string.
34179
341802004-03-15 Ed Falis <falis@gnat.com>
34181
34182 * s-thread.adb: Removed, no longer used.
34183
341842004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34185
34186 * decl.c (target.h): Now include.
34187 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
34188 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
34189 (validate_size): For POINTER_TYPE, get smallest size permitted on
34190 machine.
34191
34192 * fe.h: Sort Einfo decls and add Set_Mechanism.
34193
34194 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
34195 (ada/decl.o): Depends on target.h.
34196
34197 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
34198 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
34199
342002004-03-15 Thomas Quinot <quinot@act-europe.fr>
34201
34202 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
34203
34204 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
34205 Insert_Dereference_Action when rewriting an implicit dereference into
34206 an explicit one, this will be taken care of during expansion of the
34207 explicit dereference.
34208 (Expand_N_Slice): Same. Always do the rewriting, even for the case
34209 of non-packed slices, since the dereference action generated by
34210 expansion of the explicit dereference is needed in any case.
34211 (Expand_N_Selected_Component): When rewriting an implicit dereference,
34212 analyze and resolve the rewritten explicit dereference so it is seen
34213 by the expander.
34214 (Insert_Dereference_Action): This procedure is now called only for the
34215 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
34216 dereferences that do not come from source (including explicit
34217 dereferences resulting from rewriting implicit ones), but do not
34218 recursively insert a check for the dereference nodes contained within
34219 the check.
34220 (Insert_Dereference_Action): Clarify and correct comment.
34221
e4c9c075
PB
342222004-03-08 Paolo Bonzini <bonzini@gnu.org>
34223
34224 PR ada/14131
34225 Move language detection to the top level.
34226 * config-lang.in: Build by default.
34227
8a6a52dc
AC
342282004-03-05 Robert Dewar <dewar@gnat.com>
34229
34230 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
34231
34232 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
34233 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 34234 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
34235 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
34236 unchecked conversion to spec to avoid warnings.
34237
34238 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
34239 to Task_ID
34240
34241 * 7stpopsp.adb: Correct casing in To_Task_ID call
34242
34243 * a-strsea.ads, a-strsea.adb: Minor reformatting
34244
34245 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
34246
34247 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
34248 Adjust Max_Msg_Length to be clearly large enough.
34249
34250 * fe.h: Define In_Same_Source_Unit
34251
34252 * osint.adb: Add pragma Warnings Off to suppress warnings
34253 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
34254 aliasing warnings.
34255
34256 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
34257
34258 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
34259
34260 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
34261
34262 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
34263
34264 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
34265
34266 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
34267 node. We now do generate them for gcc back end.
34268
34269 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
34270 warning.
34271
34272 * sinput-c.adb: Fix bad name in header.
34273 Add pragma Warnings Off to suppress aliasing warning.
34274
34275 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
34276
34277 * snames.h, snames.ads, snames.adb: Add entry for pragma
34278 No_Strict_Aliasing.
34279
342802004-03-05 Vincent Celier <celier@gnat.com>
34281
34282 * prj-com.ads: Add hash table Files_Htable to check when a file name
34283 is already a source of another project.
34284
34285 * prj-nmsc.adb (Record_Source): Before recording a new source, check
34286 if its file name is not already a source of another project. Report an
34287 error if it is.
34288
34289 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
34290 source file name, call gnatpp with all the sources of the main project.
34291
34292 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
34293 of file names.
34294
34295 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
34296 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
34297 /RUNTIME_SYSTEM=, converted to --RTS=
34298 /NOTABS, converted to -notabs
34299
343002004-03-05 Pascal Obry <obry@gnat.com>
34301
34302 * make.adb: Minor reformatting.
34303
343042004-03-05 Ed Schonberg <schonberg@gnat.com>
34305
34306 Part of implemention of AI-262.
34307 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
34308
34309 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
34310 procedure.
34311
34312 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
34313 when component type is a partially constrained class-wide subtype.
34314 (Constrain_Discriminated_Type): If parent type has unknown
34315 discriminants, a constraint is illegal, even if full view has
34316 discriminants.
34317 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
34318 with unknown discriminants whose full view is a discriminated record.
34319
34320 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
34321 flag, to handle properly derivations of tagged types with unknown
34322 discriminants.
34323 (Analyze_Package_Spec, Analyze_Package_Body): Install
34324 Private_With_Clauses before analyzing private part or body.
34325
34326 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
34327 Has_Discriminants can be true for a given type (documentation).
34328
343292004-03-05 Arnaud Charlet <charlet@act-europe.fr>
34330
34331 * s-restri.ads: Fix license (GPL->GMGPL).
34332
34333 * s-tassta.adb: Minor reformatting.
34334
34335 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34336 by calls to Exit_One_ATC_Level, since additional clean up is performed
34337 by this function.
34338
34339 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
34340 by calls to Exit_One_ATC_Level, since additional clean up is performed
34341 by this function.
34342
343432004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34344
34345 * trans.c: Reflect GCC changes to fix bootstrap problem.
34346 Add warning for suspicious aliasing unchecked conversion.
34347
343482004-03-05 GNAT Script <nobody@gnat.com>
34349
34350 * Make-lang.in: Makefile automatically updated
34351
555360a5
AC
343522004-03-02 Emmanuel Briot <briot@act-europe.fr>
34353
34354 * ali.adb (Read_Instantiation_Instance): Do not modify the
34355 current_file_num when reading information about instantiations, since
34356 this corrupts files in later references.
34357
343582004-03-02 Vincent Celier <celier@gnat.com>
34359
34360 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
34361 before checking if it is read-only.
34362
34363 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
34364 of SRC_DIRS and eliminate duplicates.
34365
34366 * gprcmd.adb: Replace command "path" with command "path_sep" to return
34367 the path separator.
34368 (Usage): Document path_sep
34369
34370 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
34371 C++ compiler. No need for a script.
34372 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
34373 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
34374 subst.
34375
34376 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
34377 where there are Ada sources.
34378 (Set_Ada_Paths): Only add to the include path the source dirs of project
34379 with Ada sources.
34380 (Add_To_Path): Add the Display_Values of the directories, not their
34381 Values.
34382
34383 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
34384 data.
34385
34386 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
34387 is not No_Name.
34388 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
34389 Value is canonicalized.
34390 (Language_Independent_Check): Do not copy Value to Display_Value when
34391 canonicalizing Value.
34392
34393 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
34394 path to find limited with cycles.
34395 (Parse_Single_Project): Use canonical cased path to find the end of a
34396 with cycle.
34397
343982004-03-02 Ed Schonberg <schonberg@gnat.com>
34399
34400 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
34401 and not a child unit.
34402
34403 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
34404 appear in a with_clause.
34405
34406 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
34407 only happen in type_annotate mode, do not try to elaborate it.
34408
34409 * exp_util.adb (Force_Evaluation): If expression is a selected
34410 component on the left of an assignment, use a renaming rather than a
34411 temporary to remove side effects.
34412
34413 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
34414 inlined instance body, which is analyzed before the end of the
34415 enclosing scope.
34416
344172004-03-02 Robert Dewar <dewar@gnat.com>
34418
34419 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
34420 sem_ch4.adb: Use new feature for substitution of keywords in VMS
34421
34422 * errout.ads, errout.adb: Implement new circuit for substitution of
34423 keywords in VMS.
34424
34425 * sem_case.adb (Analyze_Choices): Place message properly when case is
34426 a subtype reference rather than an explicit range.
34427
34428 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
34429
344302004-03-02 Doug Rupp <rupp@gnat.com>
34431
34432 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
34433
344342004-03-02 Thomas Quinot <quinot@act-europe.fr>
34435
34436 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
34437
344382004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34439
34440 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
34441 BLKmode bitfield.
34442
8a7988f5
AC
344432004-02-25 Robert Dewar <dewar@gnat.com>
34444
34445 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
34446 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
34447 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
34448 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
34449 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
34450 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
34451 the defining instance of the type to avoid aliasing problems.
34452 Fix copyright header. Fix bad comments in package header.
34453
34454 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
34455
344562004-02-25 Ed Schonberg <schonberg@gnat.com>
34457
34458 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
34459 rewritten as references when aliased through an address clause.
34460
34461 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
34462 whether call can be interpreted as an indirect call to the result of a
34463 parameterless function call returning an access subprogram.
34464
344652004-02-25 Arnaud Charlet <charlet@act-europe.fr>
34466
34467 Code clean up:
34468 * exp_ch7.adb (Make_Clean): Remove generation of calls to
34469 Unlock[_Entries], since this is now done by Service_Entries directly.
34470
34471 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
34472
34473 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
34474 Requeue_Call for better code readability. Change spec and update calls:
34475 PO_Service_Entries now unlock the PO on exit.
34476 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
34477 PO_Service_Entries.
34478
34479 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
34480
34481 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
34482
344832004-02-25 Sergey Rybin <rybin@act-europe.fr>
34484
34485 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
34486 protected subprogram call and analyzing the result of such expanding
34487 in case when the called protected subprogram is eliminated.
34488
34489 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
34490 names.
34491
344922004-02-25 Jerome Guitton <guitton@act-europe.fr>
34493
34494 * Makefile.in: Clean ups.
34495
6871ba5f
AC
344962004-02-23 Ed Schonberg <schonberg@gnat.com>
34497
34498 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
34499 protected operations if original subprogram is flagged as eliminated.
34500 (Expand_N_Subprogram_Body): For a protected operation, create
34501 discriminals for next operation before checking whether the operation
34502 is eliminated.
34503
34504 * exp_ch9.adb (Expand_N_Protected_Body,
34505 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
34506 for internal protected operations if the original subprogram is
34507 eliminated.
34508
34509 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
34510 declared in a single protected object.
34511
345122004-02-23 Vincent Celier <celier@gnat.com>
34513
34514 * prj-attr.adb: Make attribute Builder'Executable an associative array,
34515 case insensitive if file names are case insensitive, instead of a
34516 standard associative array.
34517
34518 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
34519 them as case insensitive on platforms where the file names are case
34520 sensitive.
34521
34522 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
34523 project file has already been parsed that canonical path are compared.
34524
345252004-02-23 Robert Dewar <dewar@gnat.com>
34526
34527 * sinput-c.ads: Correct bad unit title in header
34528
34529 * freeze.adb: Minor reformatting
34530
345312004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34532
34533 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
34534 nonaddressable COMPONENT_REF that is removing padding that we are
34535 taking the address of, take the address of the padded record instead
34536 if item is variable size.
34537
6e059adb
AC
345382004-02-20 Robert Dewar <dewar@gnat.com>
34539
34540 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
34541
345422004-02-20 Ed Schonberg <schonberg@gnat.com>
34543
34544 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
34545 itype references for the constrained designated type of a component
34546 whose base type is already frozen.
34547
345482004-02-20 Arnaud Charlet <charlet@act-europe.fr>
34549
34550 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
34551 avoid GCC warnings.
34552
345532004-02-20 Sergey Rybin <rybin@act-europe.fr>
34554
34555 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
34556 identifier for a phantom package that rewrites the formal package
34557 declaration with a box. The Add semantic decorations for the defining
34558 identifier from the original node (that represents the formal package).
34559
88e3a2a3
MK
345602004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
34561
34562 * Make-lang.in (ada/stamp-sdefault): Use the top level
34563 move-if-change.
34564
4221057e
RH
345652004-02-19 Richard Henderson <rth@redhat.com>
34566
34567 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
34568
5c1c8a03
AC
345692004-02-18 Emmanuel Briot <briot@act-europe.fr>
34570
34571 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
34572 Scan_ALI can be used for multiple ALI files without reinitializing
34573 between calls.
34574
345752004-02-18 Robert Dewar <dewar@gnat.com>
34576
34577 * debug.adb: Minor reformatting.
34578
345792004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34580
34581 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
34582 to zero if there is an address clause.
34583
345842004-02-18 Thomas Quinot <quinot@act-europe.fr>
34585
34586 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
34587
345882004-02-18 Gary Dismukes <dismukes@gnat.com>
34589
34590 * layout.adb (Layout_Component_List): Revise generation of call to
34591 discriminant-checking function to pass selections of all of the type's
34592 discriminants rather than just the variant-controlling discriminant.
34593
345942004-02-18 Olivier Hainque <hainque@act-europe.fr>
34595
34596 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
34597 fail in the current setup and triggers spurious system error messages.
34598 Pretend it occurred and failed instead.
34599
346002004-02-18 Vincent Celier <celier@gnat.com>
34601
34602 * bld.adb: Mark FLDFLAGS as saved
34603 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
34604 it is not the root project. Put each directory to be
34605 extended between double quotes to prevent it to be expanded on Windows.
34606 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
34607 the project file. Set them back to their initial values if they have not
34608 been set in the project file.
34609
34610 * gprcmd.adb: (Gprdebug, Debug): New global variables
34611 (Display_Command): New procedure
34612 (Usage): Document new command "linkopts"
34613 Call Display_Command when env var GPRDEBUG has the value "TRUE"
34614 Implement new command "linkopts"
34615 Remove quotes that may be around arguments for "extend"
34616 Always call Normalize_Pathname with arguments formatted for the platform
34617
34618 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
34619 Change @echo to @$(display) in target clean to be able to clean silently
34620
34621 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
34622
34623 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
34624 canonical case.
34625
34626 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
34627 = Extending_All when current project is an extending all project.
34628
34629 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
34630 set to True only for LINK command, after Unix switch -o.
34631 (Process_Arguments): Set Output_File_Expected to True for LINK command
34632 after Unix switch -o. When Output_File_Expected is True, never add an
34633 extension to a file name.
34634
34635 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
34636 option file name, only to the --for-linker= switch.
34637 (Option_File_Name): If option file name do not end with ".opt", append
34638 "/OPTIONS".
34639
346402004-02-18 GNAT Script <nobody@gnat.com>
34641
34642 * Make-lang.in: Makefile automatically updated
34643
80bcb4d2
MK
346442004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
34645
34646 * Make-lang.in (stamp-sdefault): Do not depend on
34647 move-if-change.
34648
1daa84b6
ZW
346492004-02-12 Zack Weinberg <zack@codesourcery.com>
34650
34651 * config-lang.in: Disable Ada by default until probe logic for
34652 a bootstrap Ada compiler can be moved to the top level configure
34653 script.
34654
18c0ecbe
AC
346552004-02-12 Olivier Hainque <hainque@act-europe.fr>
34656
34657 * decl.c (components_to_record): Don't claim that the internal fields
34658 we make to hold the variant parts are semantically addressable, because
34659 they are not.
34660
34661 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
34662 adjust the comment describing the modular type form when we can use it.
34663 (Install_PAT): Account for the Esiz renaming.
34664
34665 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
34666 sc_onstack context indication before raising the exception to which
34667 the signal is mapped. Allows better handling of later signals possibly
34668 triggered by the resumed user code if the exception is handled.
34669
346702004-02-12 Arnaud Charlet <charlet@act-europe.fr>
34671
34672 * 5zinit.adb: Removed, no longer used.
34673
346742004-02-12 Robert Dewar <dewar@gnat.com>
34675
34676 * ali.adb: Remove separating space between parameters on R line. Makes
34677 format consistent with format used by the binder for Set_Globals call.
34678
34679 * atree.ads, atree.adb: Minor reformatting (new function header format)
34680
34681 * bindgen.adb: Add Run-Time Globals documentation section containing
34682 detailed documentation of the globals passed from the binder file to
34683 the run time.
34684
34685 * gnatls.adb: Minor reformatting
34686
34687 * init.c (__gnat_set_globals): Add note pointing to documentation in
34688 bindgen.
34689
34690 * lib-writ.ads, lib-writ.adb: Remove separating space between
34691 parameters on R line.
34692 Makes format consistent with format used by the binder for Set_Globals
34693 call.
34694
34695 * osint.ads: Add 2004 to copyright notice
34696 Minor reformatting
34697
34698 * snames.ads: Correct capitalization of FIFO_Within_Priorities
34699 Noticed during code reading, documentation issue only
34700
34701 * usage.adb: Remove junk line for obsolete C switch
34702 Noticed during code reading
34703
347042004-02-12 Vincent Celier <celier@gnat.com>
34705
34706 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
34707 extend for each directory, so that multiple /** directories are
34708 extended individually.
34709 (Recursive_Process): Set the default for LANGUAGES to ada
34710
34711 * gprcmd.adb: Define new command "ignore", to do nothing.
34712 Implement new comment "path".
34713
34714 * Makefile.generic: Suppress output when SILENT is set
34715 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
34716 used, so that the correct compiler is invoked.
34717 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
34718 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
34719
347202004-02-12 Jerome Guitton <guitton@act-europe.fr>
34721
34722 * Makefile.in: Clean ups and remove obsolete targets.
34723
347242004-02-12 Ed Schonberg <schonberg@gnat.com>
34725
34726 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
34727 predicate declared in exp_util.
34728
34729 * exp_util.adb: Add comments.
34730
34731 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
34732 visibility before compiling context of the subunit.
34733
34734 * sem_res.adb (Check_Parameterless_Call): If the context expects a
34735 value but the name is a procedure, do not attempt to analyze as a call,
34736 in order to obtain more telling diagnostics.
34737
34738 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
34739 'Access on parameterless function calls.
34740 (Normalize_Actuals): For a parameterless function call with missing
34741 actuals, defer diagnostic until resolution of enclosing call.
34742
34743 * sem_util.adb (Wrong_Type): If the context type is an access to
34744 subprogram and the expression is a procedure name, suggest a missing
34745 'attribute.
34746
c1dcfa14
AC
347472004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
34748 Nathanael Nerode <neroden@gcc.gnu.org>
34749
6f7f72f9
EB
34750 PR ada/6637
34751 PR ada/5911
c1dcfa14 34752 Merge with libada-branch:
90afe2c9 34753 * config-lang.in: Build libada only when ada is built.
c1dcfa14 34754
2e071734
AC
347552004-02-09 Ed Schonberg <schonberg@gnat.com>
34756
34757 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
34758 for a tagged type, verify that both formals have the same type.
34759
34760 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
34761 temporary when the formal is an in-parameter and the actual a possibly
34762 unaligned slice.
34763
34764 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
34765 when expansion is disabled, to ensure proper name capture with
34766 overloaded literals. Condition can be of any boolean type, resolve
34767 accordingly.
34768
34769 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
34770 renaming is for a formal subprogram with a default operator name, and
34771 there is a usable operator that is visible at the point of
34772 instantiation.
34773
347742004-02-09 Robert Dewar <dewar@gnat.com>
34775
34776 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
34777 rewrite to ignore errors in ali files, intended to allow tools downward
34778 compatibility with new versions of ali files.
34779
34780 * ali.ads: Add new parameter Ignore_Errors
34781
34782 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
34783 duplicating the error message giving the file with restrictions.
34784
34785 * debug.adb: Add debug flag I for gnatbind
34786
34787 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
34788 operators for the case where the operator is a defining operator.
34789
34790 * exp_ch3.adb: Minor reformatting (new function spec format).
34791
34792 * exp_ch4.adb: Add comment for previous change, and make minor
34793 adjustment to loop to always check for improper loop termination.
34794 Minor reformatting throughout (new function spec format).
34795
34796 * gnatbind.adb: Implement -di debug flag for gnatbind
34797
34798 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
34799
34800 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
34801
34802 * lib-load.adb: Fix bad assertion.
34803 Found by testing and code reading.
34804 Minor reformatting.
34805
34806 * lib-load.ads: Minor reformatting.
34807
34808 * lib-writ.adb: There is only one R line now.
34809
34810 * lib-writ.ads: Add documentation on making downward compatible changes
34811 to ali files so old tools work with new ali files.
34812 There is only one R line now.
34813 Add documentation on format incompatibilities (with special GPS note)
34814
34815 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
34816
34817 * par-load.adb: Minor reformatting
34818
34819 * sem_ch8.adb: Fix to error message from last update
34820 Minor reformatting and restructuring of code from last update
34821
34822 * par-prag.adb, snames.adb, snames.ads, snames.h,
34823 sem_prag.adb: Implement pragma Profile.
34824
34825 * stylesw.adb: Implement -gnatyN switch to turn off all style check
34826 options.
34827
34828 * usage.adb: Add line for -gnatyN switch
34829
34830 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
34831
a41ea816
AC
348322004-02-09 Albert Lee <lee@gnat.com>
34833
34834 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
34835
348362004-02-09 Ed Schonberg <schonberg@gnat.com>
34837
34838 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
34839 slices.
34840
34841 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
34842 is nested in an instance that is not frozen yet, to avoid
34843 order-of-elaboration problems in gigi.
34844
34845 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
34846 body the attribute is legal.
34847
348482004-02-09 Robert Dewar <dewar@gnat.com>
34849
34850 * s-rident.ads: Minor comment correction
34851
34852 * targparm.adb: Remove dependence on uintp completely. There was
34853 always a bug in Make in that it called Targparm before initializing
34854 the Uint package. The old code appeared to get away with this, but
34855 the new code did not! This caused an assertion error in gnatmake.
34856
34857 * targparm.ads: Fix bad comment, restriction pragmas with parameters
34858 are indeed fully supported.
34859
725c60f8
AM
348602004-02-06 Alan Modra <amodra@bigpond.net.au>
34861
34862 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
34863
136e64db
KH
348642004-02-05 Kazu Hirata <kazu@cs.umass.edu>
34865
34866 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
34867 with targetm.calls.promote_prototypes.
34868
06effe87
AC
348692004-02-04 Robert Dewar <dewar@gnat.com>
34870
34871 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
34872 ali.ads, gprcmd.adb: Minor reformatting
34873
34874 * bindgen.adb: Output restrictions string for new style restrictions
34875 handling
34876
34877 * impunit.adb: Add s-rident.ads (System.Rident) and
34878 s-restri (System.Restrictions)
34879
34880 * lib-writ.adb: Fix bug in writing restrictions string (last few
34881 entries wrong)
34882
34883 * s-restri.ads, s-restri.adb: Change name Restrictions to
34884 Run_Time_Restrictions to avoid conflict with package name.
34885 Add circuit to read and acquire run time restrictions.
34886
348872004-02-04 Jose Ruiz <ruiz@act-europe.fr>
34888
34889 * restrict.ads, restrict.adb: Use the new restriction
34890 No_Task_Attributes_Package instead of the old No_Task_Attributes.
34891
34892 * sem_prag.adb: No_Task_Attributes is a synonym of
34893 No_Task_Attributes_Package.
34894
34895 * snames.ads, snames.adb: New entry for proper handling of
34896 No_Task_Attributes.
34897
34898 * s-rident.ads: Adding restriction No_Task_Attributes_Package
34899 (AI-00249) that supersedes the GNAT specific restriction
34900 No_Task_Attributes.
34901
349022004-02-04 Ed Schonberg <schonberg@gnat.com>
34903
90afe2c9 34904 * sem_prag.adb:
06effe87
AC
34905 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
34906 body, an identifier may be wrapped in an unchecked conversion.
34907
349082004-02-04 Vincent Celier <celier@gnat.com>
34909
34910 * lib-writ.ads: Comment update for the W lines
34911
34912 * bld.adb: (Expression): An empty string list is static
34913
34914 * fname-uf.adb: Minor comment update
34915
34916 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
34917
34918 * gnatbind.adb: Initialize Cumulative_Restrictions with the
34919 restrictions on the target.
34920
2fb00d7f
KH
349212004-02-03 Kazu Hirata <kazu@cs.umass.edu>
34922
34923 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
34924 gen_rtx.
34925
5ed23e25
AC
349262004-02-02 Arnaud Charlet <charlet@gnat.com>
34927
34928 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
34929
6e937c1c
AC
349302004-02-02 Vincent Celier <celier@gnat.com>
34931
34932 * gprcmd.adb (Check_Args): If condition is false, print the invoked
34933 comment before the usage.
34934 Gprcmd: Fail when command is not recognized.
34935 (Usage): Document command "prefix"
34936
34937 * g-md5.adb (Digest): Process last block.
34938 (Update): Do not process last block. Store remaining characters and
34939 length in Context.
34940
34941 * g-md5.ads (Update): Document that several call to update are
34942 equivalent to one call with the concatenated string.
34943 (Context): Add fields to allow new Update behaviour.
34944
34945 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
34946 defaulted to False.
34947 When May_Fail is True and no existing file can be found, return No_File.
34948
34949 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
34950 functions.
34951
34952 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
34953 spec file name instead on the W line.
34954
349552004-02-02 Robert Dewar <dewar@gnat.com>
34956
34957 * ali.adb: Read and acquire info from new format restrictions lines
34958
34959 * bcheck.adb: Add circuits for checking restrictions with parameters
34960
34961 * bindgen.adb: Output dummy restrictions data
34962 To be changed later
34963
34964 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
34965 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
34966 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
34967 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
34968 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
34969
34970 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
34971 the warning message on access to possibly uninitialized variable S)
34972 Minor changes for new restrictions handling.
34973
34974 * gnatbind.adb: Minor reformatting
34975 Minor changes for new restrictions handling
34976 Move circuit for -r processing here from bcheck (cleaner)
34977
34978 * gnatcmd.adb, gnatlink.adb: Minor reformatting
34979
34980 * lib-writ.adb: Output new format restrictions lines
34981
34982 * lib-writ.ads: Document new R format lines for new restrictions
34983 handling.
34984
34985 * s-restri.ads/adb: New files
34986
34987 * Makefile.rtl: Add entry for s-restri.ads/adb
34988
34989 * par-ch3.adb: Fix bad error messages starting with upper case letter
34990 Minor reformatting
34991
34992 * restrict.adb: Major rewrite throughout for new restrictions handling
34993 Major point is to handle restrictions with parameters
34994
34995 * restrict.ads: Major changes in interface to handle restrictions with
34996 parameters. Also generally simplifies setting of restrictions.
34997
34998 * snames.ads/adb: New entry for proper handling of No_Requeue
34999
35000 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
35001 restriction counting.
35002 Other minor changes for new restrictions handling
35003
35004 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
35005 Restriction_Warnings now allows full parameter notation
35006 Major rewrite of Restrictions for new restrictions handling
35007
350082004-02-02 Javier Miranda <miranda@gnat.com>
35009
35010 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
35011 syntax rule for object renaming declarations.
35012 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
35013 component definitions.
35014
35015 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
35016 components.
35017 (Array_Type_Declaration): Give support to access components. In addition
35018 it was also modified to reflect the name of the object in anonymous
35019 array types. The old code did not take into account that it is possible
35020 to have an unconstrained anonymous array with an initial value.
35021 (Check_Or_Process_Discriminants): Allow access discriminant in
35022 non-limited types.
35023 (Process_Discriminants): Allow access discriminant in non-limited types
35024 Initialize the new Access_Definition field in N_Object_Renaming_Decl
35025 node. Change Ada0Y to Ada 0Y in comments
35026
35027 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
35028 equality operators.
35029 Change Ada0Y to Ada 0Y in comments
35030
35031 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
35032 renamings Change Ada0Y to Ada 0Y in comments
35033
35034 * sem_type.adb (Find_Unique_Type): Give support to the equality
35035 operators for universal access types
35036 Change Ada0Y to Ada 0Y in comments
35037
35038 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
35039
35040 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
35041 field.
35042 (N_Object_Renaming_Declaration): Addition of Access_Definition field
35043 Change Ada0Y to Ada 0Y in comments
35044
35045 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
35046 component definition and object renaming nodes
35047 Change Ada0Y to Ada 0Y in comments
35048
350492004-02-02 Jose Ruiz <ruiz@act-europe.fr>
35050
35051 * restrict.adb: Use the new restriction identifier
35052 No_Requeue_Statements instead of the old No_Requeue for defining the
35053 restricted profile.
35054
35055 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
35056 No_Requeue_Statements.
35057
35058 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
35059 that supersedes the GNAT specific restriction No_Requeue. The later is
35060 kept for backward compatibility.
35061
350622004-02-02 Ed Schonberg <schonberg@gnat.com>
35063
35064 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
35065 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
35066 pragma and fix incorrect ones.
35067
35068 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
35069 warning if the pragma is redundant.
35070
350712004-02-02 Thomas Quinot <quinot@act-europe.fr>
35072
35073 * 5staprop.adb: Add missing 'constant' keywords.
35074
35075 * Makefile.in: use consistent value for SYMLIB on
35076 platforms where libaddr2line is supported.
35077
350782004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35079
35080 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
35081 annotating types.
35082
350832004-02-02 Olivier Hainque <hainque@act-europe.fr>
35084
35085 * init.c (__gnat_install_handler): Setup an alternate stack for signal
35086 handlers in the environment thread. This allows proper propagation of
35087 an exception on stack overflows in this thread even when the builtin
35088 ABI stack-checking scheme is used without support for a stack reserve
35089 region.
35090
35091 * utils.c (create_field_decl): Augment the head comment about bitfield
35092 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
35093 here, because the former is not accurate enough at this point.
35094 Let finish_record_type decide instead.
35095 Don't make a bitfield if the field is to be addressable.
35096 Always set a size for the field if the record is packed, to ensure the
35097 checks for bitfield creation are triggered.
35098 (finish_record_type): During last pass over the fields, clear
35099 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
35100 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
35101 from DECL_BIT_FIELD.
35102
71cbe2c1
KC
351032004-01-30 Kelley Cook <kcook@gcc.gnu.org>
35104
90afe2c9 35105 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
35106 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
35107 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
35108
7f996f90
RO
351092004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35110
35111 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
35112
35113 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
35114 (ZCX_By_Default): Likewise.
35115 (Front_End_ZCX_Support): Likewise.
35116
35117 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
35118 (Initialize_Lock): Mark Level unreferenced.
35119 (Sleep): Mark Reason unreferenced.
35120 (Timed_Sleep): Likewise.
35121 (Wakeup): Likewise.
35122 (Exit_Task): Use Result.
35123 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 35124
7f996f90
RO
35125 * 5gtasinf.adb (New_Sproc): Make Attr constant.
35126 (Bound_Thread_Attributes): Make Sproc constant.
35127 (New_Bound_Thread_Attributes): Likewise.
35128
26fd4eae
AC
351292004-01-26 Ed Schonberg <schonberg@gnat.com>
35130
35131 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
35132 one-dimensional array an slice assignments, when component type is
35133 controlled.
35134
35135 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
35136 component type is controlled, and control_actions are in effect, use
35137 TSS procedure rather than generating inline code.
35138
35139 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
35140 arrays with controlled components.
35141
351422004-01-26 Vincent Celier <celier@gnat.com>
35143
35144 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
35145 command line for the non VMS case.
35146
35147 * gnatlink.adb (Process_Binder_File): When building object file, if
35148 GNU linker is used, put all object paths between quotes, to prevent ld
35149 error when there are unusual characters (such as '!') in the paths.
35150
35151 * Makefile.generic: When there are sources in Ada and the main is in
35152 C/C++, invoke gnatmake with -B, instead of -z.
35153
35154 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
35155 from VMS_Conversion.
35156 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
35157 specification of argument file on the command line.
35158
351592004-01-26 Bernard Banner <banner@gnat.com>
35160
35161 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
35162
351632004-01-26 Ed Schonberg <schonberg@gnat.com>
35164
35165 * snames.adb: Update copyright notice.
35166 Add info on slice assignment for controlled arrays.
35167
b7e429ab
AC
351682004-01-23 Robert Dewar <dewar@gnat.com>
35169
35170 * exp_aggr.adb: Minor reformatting
35171
35172 * exp_ch9.adb: Minor code clean up
35173 Minor reformatting
35174 Fix bad character in comment
35175
35176 PR ada/13471
35177 * targparm.adb (Get_Target_Parameters): Give clean abort error on
35178 unexpected end of file, along with more detailed message.
35179
351802004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35181
35182 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
35183 PAT.
35184
35185 * decl.c (copy_alias_set): New function.
35186 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
35187
351882004-01-23 Doug Rupp <rupp@gnat.com>
35189
35190 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
35191 lib$${file} in case subsequent character is not a separator.
35192
351932004-01-23 Vincent Celier <celier@gnat.com>
35194
35195 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
35196 when the GCC version is at least 3.
35197
35198 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
35199 Remove all "Opt.", to prepare for opt split
35200
35201 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
35202 Extends_All. Set to True when the project parsed is an extending all
35203 project. Fails for importing an extending all project only when the
35204 imported project is an extending all project.
35205 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
35206 depending on the value of Extends_All returned.
35207
35208 * prj-proc.adb (Process): Check that no project shares its object
35209 directory with a project that extends it, directly or indirectly,
35210 including a virtual project.
35211 Check that no project extended by another project shares its object
35212 directory with another also extended project.
35213
35214 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
35215 Kind = N_With_Clause
35216
35217 * prj-tree.ads: Minor reformatting
35218 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
35219
352202004-01-23 Ed Schonberg <schonberg@gnat.com>
35221
35222 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
35223 applies to a type with an incomplete view, use full view in Name of
35224 clause, for consistency with uses of Get_Attribute_Definition_Clause.
35225
352262004-01-23 Arnaud Charlet <charlet@act-europe.fr>
35227
35228 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
35229 SCHED_RR, since other values are not supported by this policy.
35230 (Initialize): Move initialization of mutex attribute to package
35231 elaboration, to prevent early access to this variable.
35232
35233 * Makefile.in: Remove mention of Makefile.adalib, unused.
35234
b291953f
AC
35235 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35236 1ssecsta.ads: Removed, unused.
b7e429ab 35237
adc04486
AC
352382004-01-21 Javier Miranda <miranda@gnat.com>
35239
35240 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
35241 entity if already built in the current scope.
35242
35243 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
35244 reminder in internal scopes. Required for nested limited aggregates.
35245
352462004-01-21 Doug Rupp <rupp@gnat.com>
35247
35248 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
35249 VMS. Replace all occurences of libgnat- and libgnarl- with
35250 libgnat$(hyphen) and libgnarl$(hyphen).
35251 Fixed shared library build problem on VMS.
35252
352532004-01-21 Robert Dewar <dewar@gnat.com>
35254
35255 * mlib-prj.adb: Minor reformatting
35256
352572004-01-21 Thomas Quinot <quinot@act-europe.fr>
35258
35259 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
35260 'constant' keywords for declaration of pointers that are not modified.
35261
35262 * exp_pakd.adb: Fix English in comment.
35263
352642004-01-21 Ed Schonberg <schonberg@gnat.com>
35265
35266 PR ada/10889
35267 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
35268 copy all attributes of the parent, including the foreign language
35269 convention.
35270
352712004-01-21 Sergey Rybin <rybin@act-europe.fr>
35272
35273 PR ada/10565
35274 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
35275 for 'delay until' statement.
35276
a541f69d
KC
352772004-01-20 Kelley Cook <kcook@gcc.gnu.org>
35278
35279 * Make-lang.in: Replace $(docdir) with doc.
35280 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
35281 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
35282 to use consistent MAKEINFO rule.
35283 (ada.man, ada.srcman): Dummy entry.
35284 (ADA_INFOFILES): Define.
35285 (ada.info, ada.srcinfo): New rules.
35286
c01a9391
AC
352872004-01-19 Arnaud Charlet <charlet@act-europe.fr>
35288
35289 * utils.c: Update copyright notice, missed in previous change.
35290
352912004-01-19 Vincent Celier <celier@gnat.com>
35292
35293 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
35294 args if Bind is True. Set First_ALI, if not already done.
35295 (Build_Library): For Stand Alone Libraries, extract from one ALI file
35296 an eventual --RTS switch, for gnatbind, and all backend switches +
35297 --RTS, for linking.
35298
352992004-01-19 Robert Dewar <dewar@gnat.com>
35300
35301 * sem_attr.adb, memtrack.adb: Minor reformatting
35302
353032004-01-19 Ed Schonberg <schonberg@gnat.com>
35304
35305 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
35306 that rename enumeration literals. This is properly done in sem_eval.
35307
35308 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
35309 to functions that rename enumeration literals.
35310
35311 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
35312 functions that rename enumeration literals.
35313
510d1e80
KH
353142004-01-16 Kazu Hirata <kazu@cs.umass.edu>
35315
35316 * Make-lang.in (utils.o): Depend on target.h.
35317 * utils.c: Include target.h.
35318 (process_attributes): Use targetm.have_named_sections instead
35319 of ASM_OUTPUT_SECTION_NAME.
35320
fbf3e0dd
AJ
353212004-01-16 Andreas Jaeger <aj@suse.de>
35322
35323 * Makefile.in: Add $(DESTDIR).
35324
acd47d2a
AC
353252004-01-15 Olivier Hainque <hainque@act-europe.fr>
35326
35327 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
35328 also when not defining if a Size clause applies. That information is
35329 not to be ignored.
35330
353312004-01-15 Arnaud Charlet <charlet@act-europe.fr>
35332
35333 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
35334 symbolic links for the shared gnat run time when needed.
35335
353362004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
35337
35338 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
35339 for writing, and terminate with an error message if not.
35340
353412004-01-15 Ed Schonberg <schonberg@gnat.com>
35342
35343 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
35344 warning on an access to subprogram in an instance, when the target
35345 type is declared in the same generic unit.
35346 (Eval_Attribute): If 'access is known to fail accessibility check,
35347 rewrite as a raise statement.
35348
353492004-01-15 GNAT Script <nobody@gnat.com>
35350
35351 * Make-lang.in: Makefile automatically updated
35352
03787dfd
KC
353532004-01-15 Kelley Cook <kcook@gcc.gnu.org>
35354
35355 * Make-lang.in (ada.srcextra): Dummy entry.
35356
73e232f0
KC
353572004-01-14 Kelley Cook <kcook@gcc.gnu.org>
35358
35359 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
35360
9bc43c53
AC
353612004-01-13 Ed Schonberg <schonberg@gnat.com>
35362
35363 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
35364 components that are initialized with aggregates.
35365
353662004-01-13 Vincent Celier <celier@gnat.com>
35367
35368 * gnatlink.adb (Process_Binder_File): To find directory of shared
35369 libgcc, if "gcc-lib" is not a subdirectory, look for the last
35370 subdirectory "lib" in the path of the shared libgnat or libgnarl.
35371
35372 * make.adb (Gnatmake): If GCC version is at least 3, link with
35373 -shared-libgcc, when there is at least one shared library project.
35374
35375 * opt.ads (GCC_Version): New integer constant.
35376
35377 * adaint.c (get_gcc_version): New function.
35378
353792004-01-13 Robert Dewar <dewar@gnat.com>
35380
35381 * sem_dist.adb, sem_res.adb, sem_util.adb,
35382 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
35383 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
35384
353852004-01-13 Thomas Quinot <quinot@act-europe.fr>
35386
35387 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
35388 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
35389 declarations.
35390
8b52de7b
AC
353912004-01-12 Arnaud Charlet <charlet@act-europe.fr>
35392
f6ea0188
AC
35393 * misc.c: Remove trailing spaces.
35394 Update copyright notice missed in previous change.
35395
8b52de7b
AC
35396 PR ada/13572
35397 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
35398 prefix/share/make
35399
35400 * Makefile.generic: Update copyright.
35401 Add license notice.
35402
35403 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
35404 of prefix/share/make.
35405
35406 * Makefile.prolog: Update copyright.
35407 Add license notice.
35408
354092004-01-12 Laurent Pautet <pautet@act-europe.fr>
35410
35411 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
35412 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
35413 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
35414 instead of String.
35415
35416 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
35417 signature.
35418
354192004-01-12 Javier Miranda <miranda@gnat.com>
35420
35421 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
35422 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
35423 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
35424 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
35425 Component_Definition node.
35426
354272004-01-12 Ed Falis <falis@gnat.com>
35428
35429 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
35430
354312004-01-12 Thomas Quinot <quinot@act-europe.fr>
35432
35433 * link.c: Change default libgnat kind to STATIC for FreeBSD.
35434
354352004-01-12 Bernard Banner <banner@gnat.com>
35436
35437 * Makefile.in: map 86numaux to a-numaux for x86_64
35438
354392004-01-12 Ed Schonberg <schonberg@gnat.com>
35440
35441 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
35442 generated to rename a generic actual, go to the actual itself, the
35443 subtype is not a user-visible entity.
35444
35445 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
35446 part is a private subtype, reset the visibility of its full view, if
35447 any, to be consistent.
35448
35449 PR ada/13417
35450 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
35451 to use a generic package G as a formal package for another generic
35452 declared within G.
35453
354542004-01-12 Robert Dewar <dewar@gnat.com>
35455
35456 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
35457
35458 * usage.adb: Remove mention of obsolete -gnatwb switch
35459 Noticed during code reading
35460
354612004-01-12 Jerome Guitton <guitton@act-europe.fr>
35462
35463 * 1ssecsta.adb: Minor changes for -gnatwa warnings
35464
354652004-01-12 GNAT Script <nobody@gnat.com>
35466
35467 * Make-lang.in: Makefile automatically updated
35468
0fab64a3
MM
354692004-01-09 Mark Mitchell <mark@codesourcery.com>
35470
35471 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
35472
47527624
RO
354732004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
35474
35475 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
35476
dedebde1
KC
354772004-01-05 Kelley Cook <kcook@gcc.gnu.org>
35478
fbf3e0dd 35479 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
35480 Update comment and copyright date.
35481 * stamp-xgnatug: Delete.
35482
91b1417d
AC
354832004-01-05 Robert Dewar <dewar@gnat.com>
35484
35485 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
35486 be modified by the binder generated main program if the -D switch is
35487 used.
35488
35489 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
35490 imported functions (since now we expect this to be done for imported
35491 functions)
35492
35493 * 5vtaprop.adb: Add several ??? for sections requiring more comments
35494 Minor reformatting throughout
35495
35496 * 5zinit.adb: Minor reformatting
35497 Add 2004 to copyright date
35498 Minor changes to avoid -gnatwa warnings
35499 Correct some instances of using OR instead of OR ELSE (noted while
35500 doing reformatting)
35501
35502 * sprint.adb: Minor updates to avoid -gnatwa warnings
35503
fbf3e0dd 35504 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
35505 (SS_Get_Max): New function to obtain high water mark for ss stack
35506 Default_Secondary_Stack is not a constant since it may be modified by
35507 the binder generated main program if the -D switch is used.
35508
35509 * switch-b.adb: New -Dnnn switch for binder
35510
fbf3e0dd 35511 * switch-c.adb:
91b1417d
AC
35512 Make -gnatg imply all warnings currently in -gnatwa
35513
35514 * vms_conv.adb: Minor reformatting
35515 Add 2004 to copyright notice
35516 Add 2004 to printed copyright notice
35517
35518 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
35519 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
35520 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
35521 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
35522 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
35523 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
35524 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
35525 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
35526 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
35527 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
35528 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
35529 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
35530 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
35531 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
35532 checks.adb, clean.adb, cstand.adb, einfo.ads,
35533 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
35534 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
35535 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
35536 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
35537 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
35538 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
35539 Minor reformatting and code clean ups.
35540 Minor changes to prevent -gnatwa warnings
35541
35542 * ali.adb: Minor reformatting and cleanup of code
35543 Acquire new SS indication of secondary stack use from ali files
35544
35545 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
35546 (since now we expect this to be done for imported functions)
35547
35548 * bindgen.adb: Generate call to modify default secondary stack size if
35549 -Dnnn switch given
35550
35551 * bindusg.adb: Add line for new -D switch
35552
35553 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
35554 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
35555 Add circuitry for both records and arrays to avoid gigi
35556 processing if the type involved has non-bit-aligned components
35557
35558 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
35559 N_String_Literal node always references an E_String_Literal_Subtype
35560 entity. This may not be true in the future.
35561 (Possible_Bit_Aligned_Component): Move processing of
35562 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
35563
35564 * exp_ch6.adb (Expand_Thread_Body): Pick up
35565 Default_Secondary_Stack_Size as variable so that we get value modified
35566 by possible -Dnnn binder parameter.
35567
35568 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
35569 (Type_May_Have_Bit_Aligned_Components): New function.
35570
35571 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
35572 (Type_May_Have_Bit_Aligned_Components): New function.
35573
35574 * fe.h: (Set_Identifier_Casing): Fix prototype.
35575 Add declaration for Sem_Elim.Eliminate_Error_Msg.
35576 Minor reformatting.
35577
35578 * freeze.adb (Freeze_Entity): Add RM reference to error message about
35579 importing constant atomic/volatile objects.
35580 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
35581 unless explicit Pure_Function pragma given, to avoid insidious bug of
35582 call to non-pure imported function getting eliminated.
35583
35584 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
35585 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
35586 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
35587 Add 2004 to printed copyright notice
35588
35589 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
35590 stack used.
35591
35592 * Makefile.rtl: Add entry for g-sestin.o
35593 g-sestin.ads: New file.
35594
35595 * mdll.adb: Minor changes to avoid -gnatwa warnings
35596
35597 * mlib-tgt.adb: Minor reformatting
35598
35599 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
35600 New switch Sec_Stack_Used (GNAT, GNATBIND)
35601 Make Default_Secondary_Stack_Size a variable instead of a constant,
35602 so that it can be modified by the new -Dnnn bind switch.
35603
35604 * rtsfind.adb (Load_Fail): Give full error message in configurable
35605 run-time mode if all_errors mode is set. This was not done in the case
35606 of a file not found, which was an oversight.
35607 Note if secondary stack unit is used by compiler.
35608
35609 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
35610 ineffective elaborate all pragmas on non-visible packages (this
35611 happened when a renamed subprogram was called). Now the elaborate all
35612 always goes on the package containing the renaming rather than the one
35613 containing the renamed subprogram.
35614
35615 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
35616 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
35617
35618 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
35619 has an Etype that references an E_String_Literal.
35620 (Eval_String_Literal): Avoid assumption that N_String_Literal node
35621 always references an E_String_Literal_Subtype entity. This may not
35622 be true in the future.
35623
35624 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
35625 pragma location.
35626
35627 * sem_res.adb (Resolve): Specialize msg for function name used in proc
35628 call.
35629
356302004-01-05 Ed Falis <falis@gnat.com>
35631
35632 * g-debuti.adb: Replaced direct boolean operator with short-circuit
35633 form.
35634
356352004-01-05 Vincent Celier <celier@gnat.com>
35636
35637 * bld.adb: Minor comment updates
35638 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
35639 of Item_Name).
35640
35641 * make.adb (Gnatmake): Special process for files to compile/check when
35642 -B is specified. Fail when there are only foreign mains in attribute
35643 Main of the project file and -B is not specified. Do not skip bind/link
35644 steps when -B is specified.
35645
35646 * makeusg.adb: Document new switch -B
35647
35648 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
35649
35650 * switch-m.adb: (Scan_Make_Switches): Process -B switch
35651
35652 * vms_data.ads: Add new GNAT PRETTY qualifier
35653 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
35654
356552004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35656
35657 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
35658 case.
35659
35660 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
35661 Set_Identifier_Casing.
35662
35663 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
35664 has size that overflows.
35665
356662004-01-05 Gary Dismukes <dismukes@gnat.com>
35667
35668 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
35669 -gnatwa warning on static condition.
35670
356712004-01-05 Doug Rupp <rupp@gnat.com>
35672
35673 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
35674
356752004-01-05 Arnaud Charlet <charlet@act-europe.fr>
35676
35677 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
35678 all attributes, including read-only attribute.
35679
356802004-01-05 Pascal Obry <obry@gnat.com>
35681
35682 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
35683 library naming scheme.
35684
35685 * mlib-prj.adb (Build_Library): Generate different names for the static
35686 or dynamic version of the GNAT runtime. This is needed to support the
35687 new shared library naming scheme.
35688 (Process_Binder_File): Add detection of shared library in binder file
35689 based on the new naming scheme.
35690
35691 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
35692 scheme for the shared runtime libraries.
35693
35694 * Makefile.in:
35695 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
35696 scheme.
35697 (install-gnatlib): Do not create symlinks for shared libraries.
35698 (gnatlib-shared-default): Idem.
35699 (gnatlib-shared-dual-win32): New target. Not used for now as the
35700 auto-import feature does not support arrays/records.
35701 (gnatlib-shared-win32): Do not create copy for the shared libraries.
35702 (gnatlib-shared-vms): Fix shared runtime libraries names.
35703
35704 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
35705 dependent runtime shared library name.
35706
357072004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
35708
35709 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
35710 than the object.
35711
357122004-01-05 Ed Schonberg <schonberg@gnat.com>
35713
35714 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
35715 protected objects when allocator has a subtype indication, not a
35716 qualified expression. Note that qualified expressions may have to be
35717 checked when limited aggregates are implemented.
35718
35719 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
35720 pure, emit warning.
35721 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
35722 subprogram is imported, remove warning.
35723
357242004-01-05 Geert Bosch <bosch@gnat.com>
35725
35726 * s-poosiz.adb: Update copyright notice.
35727 (Allocate): Use Task_Lock to protect against concurrent access.
35728 (Deallocate): Likewise.
35729
357302004-01-05 Joel Brobecker <brobecker@gnat.com>
35731
35732 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
35733 comment.
35734
2ab127f3
KC
357352003-12-23 Kelley Cook <kcook@gcc.gnu.org>
35736
35737 * gnat_ug.texi: Force a CVS commit by updating copyright.
35738 * gnat_ug_vxw.texi: Regenerate.
35739 * gnat_ug_wnt.texi: Regenerate.
35740 * gnat_ug_vms.texi: Regenerate.
35741 * gnat_ug_unx.texi: Regenerate.
35742
aed8bfdc
KH
357432003-12-20 Kazu Hirata <kazu@cs.umass.edu>
35744
35745 * trans.c: Remove uses of "register" specifier in
35746 declarations of local variables.
35747
90c2f1de
KC
357482003-12-18 Kelley Cook <kcook@gcc.gnu.org>
35749
35750 * stamp-xgnatug: New stamp file.
35751 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
35752 (ada/doctools/xgnatug): Add $(build_exeext).
35753 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
35754 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
35755
891a6e79
AC
357562003-12-17 Ed Falis <falis@gnat.com>
35757
35758 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
35759 eliminate warning.
35760
35761 * a-exextr.adb: Add context clause for
35762 Ada.Exceptions.Last_Chance_Handler.
35763
357642003-12-17 Sergey Rybin <rybin@act-europe.fr>
35765
35766 * cstand.adb (Create_Standard): Change the way how the declaration of
35767 the Duration type is created (making it the same way as it is for all
35768 the other standard types).
35769
357702003-12-17 Robert Dewar <dewar@gnat.com>
35771
35772 * s-crtl.ads: Fix header format
35773 Change Pure to Preelaborate
35774
357752003-12-17 Ed Schonberg <schonberg@gnat.com>
35776
35777 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
35778 the expression type only if it is declared in the current unit.
35779
35780 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
35781 are universal and already analyzed, as can occur in constrained
35782 subcomponents that depend on discriminants, when one constraint is a
35783 subtype mark.
35784
35785 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
35786 type Any_Fixed is legal as the argument of a conversion, if only one
35787 fixed-point type is in context.
35788
357892003-12-17 GNAT Script <nobody@gnat.com>
35790
35791 * Make-lang.in: Makefile automatically updated
35792
209db2bf
AC
357932003-12-15 Robert Dewar <dewar@gnat.com>
35794
35795 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
35796 sec stack size.
35797
357982003-12-15 Vincent Celier <celier@gnat.com>
35799
35800 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
35801 (Gnatchop): Do not set failure status when reporting the number of
35802 warnings.
35803
358042003-12-15 Doug Rupp <rupp@gnat.com>
35805
35806 * s-ctrl.ads: New file.
35807
35808 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
35809
35810 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
35811 (GNATBIND_OBJS): Add ada/s-crtl.o.
35812
35813 * Makefile.in [VMS]: Clean up ifeq rules.
35814
35815 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
35816 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
35817 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
35818 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
35819 s-tasdeb.adb: Update copyright.
35820 Import System.CRTL.
35821 Make minor modifications to use System.CRTL declared functions instead
35822 of importing locally.
35823
358242003-12-15 GNAT Script <nobody@gnat.com>
35825
35826 * Make-lang.in: Makefile automatically updated
35827
a9f4e3d2
AC
358282003-12-11 Ed Falis <falis@gnat.com>
35829
35830 * 5zinit.adb: Clean up.
35831
35832 * 5zintman.adb (Notify_Exception): replaced case statement with a call
35833 to __gnat_map_signal, imported from init.c to support
35834 signal -> exception mappings that depend on the vxWorks version.
35835
fbf3e0dd 35836 * init.c:
a9f4e3d2
AC
35837 Created and exported __gnat_map_signal to support signal -> exception
35838 mapping that is dependent on the VxWorks version.
35839 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
35840
358412003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
35842
35843 * 5wosinte.ads: Link with -mthreads switch.
35844
358452003-12-11 Arnaud Charlet <charlet@act-europe.fr>
35846
35847 * init.c (__gnat_install_handler [NetBSD]): Set
35848 __gnat_handler_installed, as done on all other platforms.
35849 Remove duplicated code.
35850
358512003-12-11 Jerome Guitton <guitton@act-europe.fr>
35852
35853 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
35854
358552003-12-11 Thomas Quinot <quinot@act-europe.fr>
35856
35857 * sinfo.ads: Fix inconsistent example code in comment.
35858
358592003-12-11 Robert Dewar <dewar@gnat.com>
35860
35861 * a-tiinau.adb: Add a couple of comments
35862
35863 * sem_ch3.adb: Minor reformatting
35864
fbf3e0dd 35865 * sem_prag.adb:
a9f4e3d2
AC
35866 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
35867 Minor reformatting throughout
35868
358692003-12-11 Ed Schonberg <schonberg@gnat.com>
35870
35871 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
35872 bounds of a loop, create a separate block in order to generate proper
35873 cleanup actions to prevent memory leaks.
35874
35875 * sem_res.adb (Resolve_Call): After a call to
35876 Establish_Transient_Scope, the call may be rewritten and relocated, in
35877 which case no further processing is needed.
35878
35879 * sem_util.adb: (Wrong_Type): Refine previous fix.
35880 Fixes ACATS regressions.
35881
35882 PR ada/13353
a9f4e3d2
AC
35883 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
35884 be inlined.
35885
c45b6ae0
AC
358862003-12-08 Jerome Guitton <guitton@act-europe.fr>
35887
35888 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
35889 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
35890 obsolete files.
35891
35892 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
35893 (rts-zfp): Ditto.
35894
358952003-12-08 Robert Dewar <dewar@gnat.com>
35896
35897 * 7sintman.adb: Minor reformatting
35898
35899 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
35900 standard linker options to get standard libraries linked. We now plan
35901 to provide dummy versions of these libraries to match the appropriate
35902 configurable run-time (e.g. if a library is not needed at all, provide
35903 a dummy empty library).
35904
35905 * targparm.ads: Configurable_Run_Time mode no longer affects linker
35906 options (-L parameters and standard libraries). What we plan to do is
35907 to provide dummy libraries where the libraries are not required.
35908
35909 * gnatbind.adb: Minor comment improvement
35910
359112003-12-08 Javier Miranda <miranda@gnat.com>
35912
35913 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
35914 aggregate in the parent. Otherwise constants with limited aggregates
35915 are not supported. Add new formal to pass the component type (Ctype).
35916 It is required to call the corresponding IP subprogram in case of
35917 default initialized components.
35918 (Gen_Assign): In case of default-initialized component, generate a
35919 call to the IP subprogram associated with the component.
35920 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
35921 of aggregate with default initialized components.
35922 (Has_Default_Init_Comps): Improve implementation to recursively check
35923 all the present expressions.
35924
35925 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
35926 to indicate that the initialization call corresponds to a
35927 default-initialized component of an aggregate.
35928 In case of default initialized aggregate with tasks this parameter is
35929 used to generate a null string (this is just a workaround that must be
35930 improved later). In case of discriminants, this parameter is used to
35931 generate a selected component node that gives access to the discriminant
35932 value.
35933
35934 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
35935 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
35936 allocated aggregates with default-initialized components.
35937
35938 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
35939 the box notation is used in positional aggregates.
35940
359412003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
35942
35943 * lib.ads: Fix typo in comment
35944
359452003-12-08 Vincent Celier <celier@gnat.com>
35946
35947 * prj.adb (Project_Empty): New component Unkept_Comments
35948 (Scan): Remove procedure; moved to Prj.Err.
35949
35950 * prj.ads (Project_Data): New Boolean component Unkept_Comments
35951 (Scan): Remove procedure; moved to Prj.Err.
35952
35953 * prj-dect.adb: Manage comments for the different declarations.
35954
35955 * prj-part.adb (With_Record): New component Node
35956 (Parse): New Boolean parameter Store_Comments, defaulted to False.
35957 Set the scanner to return ends of line and comments as tokens, if
35958 Store_Comments is True.
35959 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
35960 comments are associated with these nodes. Store the node IDs in the
35961 With_Records.
35962 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
35963 With_Records.
35964 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
35965 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
35966 current project. Call Tree.Restore afterwards. Set the various nodes
35967 for comment storage (Next_End, End_Of_Line, Previous_Line,
35968 Previous_End).
35969
35970 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
35971 defaulted to False.
35972
35973 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
35974 to False. When Truncated is True, truncate the string, never go to the
35975 next line.
35976 (Write_End_Of_Line_Comment): New procedure
35977 (Print): Process comments for nodes N_With_Clause,
35978 N_Package_Declaration, N_String_Type_Declaration,
35979 N_Attribute_Declaration, N_Typed_Variable_Declaration,
35980 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
35981 Process nodes N_Comment.
35982
35983 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
35984 without comments and there are some comments, set the flag
35985 Unkept_Comments to True.
35986 (Scan): If there are comments, set the flag Unkept_Comments to True and
35987 clear the comments.
35988 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
35989 (Next_End_Nodes: New table
35990 (Comment_Zones_Of): New function
35991 (Scan): New procedure; moved from Prj. Accumulate comments in the
35992 Comments table and set end of line comments, comments after, after end
35993 and before end.
35994 (Add_Comments): New procedure
35995 (Save, Restore, Seset_State): New procedures
35996 (There_Are_Unkept_Comments): New function
35997 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
35998 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
35999 procedures.
36000 (First_Comment_After, First_Comment_After_End): New functions
36001 (First_Comment_Before, First_Comment_Before_End): New functions
36002 (Next_Comment): New function
36003 (End_Of_Line_Comment, Follows_Empty_Line,
36004 Is_Followed_By_Empty_Line): New functions
36005 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
36006 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
36007 (Set_Next_Comment): New procedure
36008 (Default_Project_Node): Associate comment before if the node can store
36009 comments.
36010
36011 * scans.ads (Token_Type): New enumeration value Tok_Comment
36012 (Comment_Id): New global variable
36013
36014 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
36015 defaulted to False.
36016 (Scan): Store position of start of comment. If comments are tokens, set
36017 Comment_Id and set Token to Tok_Comment when scanning a comment.
36018 (Set_Comment_As_Token): New procedure
36019
36020 * sinput-p.adb: Update Copyright notice
36021 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
36022 that no longer exists.
36023
360242003-12-08 Javier Miranda <miranda@gnat.com>
36025
36026 * sem_aggr.adb: Add dependence on Exp_Tss package
36027 Correct typo in comment
36028 (Resolve_Aggregate): In case of array aggregates set the estimated
36029 type of the aggregate before calling resolve. This is needed to know
36030 the name of the corresponding IP in case of limited array aggregates.
36031 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
36032 in case of default initialized array components.
36033
36034 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
36035 types. Required to give support to limited aggregates in generic
36036 formals.
36037
360382003-12-08 Ed Schonberg <schonberg@gnat.com>
36039
36040 * sem_ch3.adb (Check_Initialization): For legality purposes, an
36041 inlined body functions like an instantiation.
36042 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
36043 until bounds are analyzed, to diagnose premature use of type.
36044
36045 * sem_util.adb (Wrong_Type): Improve error message when the type of
36046 the expression is used prematurely.
36047
360482003-12-08 GNAT Script <nobody@gnat.com>
36049
36050 * Make-lang.in: Makefile automatically updated
36051
0875a894
AC
360522003-12-08 Arnaud Charlet <charlet@act-europe.fr>
36053
7618d510
AC
36054 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
36055 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
36056 maintenance troubles.
36057
5b4994bc
AC
360582003-12-05 Thomas Quinot <quinot@act-europe.fr>
36059
36060 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
36061 version of this unit).
36062
360632003-12-05 Olivier Hainque <hainque@act-europe.fr>
36064
36065 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
36066 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
36067 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
36068 the body of System.Interrupt_Management common to several targets.
36069 Update copyright notice when appropriate.
36070
36071 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
36072 constant.
36073
36074 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
36075 to ensure that the kernel fills in the interrupted context structure
36076 before calling a signal handler, which is necessary to be able to
36077 unwind past it. Update the copyright notice.
36078
360792003-12-05 Jerome Guitton <guitton@act-europe.fr>
36080
36081 * a-elchha.ads: New file.
36082
36083 * a-elchha.adb: New default last chance handler. Contents taken from
36084 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
36085
36086 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
36087 is moved to a-elchha.adb to provide a target-independent default last
36088 chance handler.
36089
36090 * Makefile.rtl: Add a-elchha.o
36091
36092 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
36093
360942003-12-05 Ed Schonberg <schonberg@gnat.com>
36095
36096 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
36097 declared in an instance, do not inline the call if the instance is not
36098 frozen yet, to prevent order of elaboration problems.
36099
36100 * sem_prag.adb: Add comments for previous fix.
36101
361022003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
36103
36104 * g-table.adb: Use the right variable in Set_Item.
36105 Update copyright notice.
36106
361072003-12-05 Arnaud Charlet <charlet@act-europe.fr>
36108
36109 * Makefile.in: Remove unused rules.
36110
361112003-12-05 Vincent Celier <celier@gnat.com>
36112
36113 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
36114 -nostdlib. Not needed here after all.
36115
efdfd311
AC
361162003-12-03 Thomas Quinot <quinot@act-europe.fr>
36117
36118 PR ada/11724
fbf3e0dd 36119 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
36120 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
36121 on some platforms (including FreeBSD), it is a 64 bit value.
36122 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
36123
361242003-12-03 Arnaud Charlet <charlet@act-europe.fr>
36125
36126 * gnatvsn.ads (Library_Version): Now contain only the relevant
36127 version info.
36128 (Verbose_Library_Version): New constant.
36129
36130 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
36131 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
36132 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
36133
36134 * gnatlbr.adb: Clean up: replace Library_Version by
36135 Verbose_Library_Version.
36136
fbf3e0dd 36137 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
36138 Clean up: replace Library_Version by Verbose_Library_Version.
36139
36140 * 5lintman.adb: Removed.
36141
fbf3e0dd 36142 * Makefile.in:
efdfd311
AC
36143 Update and simplify computation of LIBRARY_VERSION.
36144 Fix computation of GSMATCH_VERSION.
36145 5lintman.adb is no longer used: replaced by 7sintman.adb.
36146
361472003-12-03 Robert Dewar <dewar@gnat.com>
36148
fbf3e0dd 36149 * exp_ch5.adb:
efdfd311
AC
36150 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
36151 name. Modified to consider small non-bit-packed arrays as troublesome
36152 and in need of component-by-component assigment expansion.
36153
361542003-12-03 Vincent Celier <celier@gnat.com>
36155
36156 * lang-specs.h: Process nostdlib as nostdinc
36157
36158 * back_end.adb: Update Copyright notice
36159 (Scan_Compiler_Arguments): Process -nostdlib directly.
36160
361612003-12-03 Jose Ruiz <ruiz@act-europe.fr>
36162
fbf3e0dd 36163 * Makefile.in:
efdfd311
AC
36164 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
36165 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
36166 included in HIE_NONE_TARGET_PAIRS.
36167
361682003-12-03 Ed Schonberg <schonberg@gnat.com>
36169
fbf3e0dd 36170 * sem_attr.adb:
efdfd311
AC
36171 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
36172 is legal in an instance, because legality is cheched in the template.
36173
fbf3e0dd 36174 * sem_prag.adb:
efdfd311
AC
36175 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
36176 appplied to an unchecked conversion of a formal parameter.
36177
fbf3e0dd 36178 * sem_warn.adb:
efdfd311
AC
36179 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
36180 variables.
36181
361822003-12-03 Olivier Hainque <hainque@act-europe.fr>
36183
36184 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
36185 routines. The second one is new functionality to deal with backtracing
36186 through signal handlers.
36187 (unwind): Split into the two separate subroutines above.
36188 Update the documentation, and deal properly with sizeof (REG) different
36189 from sizeof (void*).
36190
08aa9a4a
AC
361912003-12-01 Nicolas Setton <setton@act-europe.fr>
36192
36193 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
36194 so that the debugger can reliably access the value of the parameter,
36195 and therefore is able to display the exception name when an exception
36196 breakpoint is reached.
36197
361982003-12-01 Thomas Quinot <quinot@act-europe.fr>
36199
36200 * fmap.adb: Fix typo in warning message.
36201
36202 * g-socket.ads, g-socket.adb: Make Free a visible instance of
36203 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
36204
362052003-12-01 Vincent Celier <celier@gnat.com>
36206
36207 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
36208 ther is no Afile.
36209 (Build_Library): Get the switches only if Default_Switches is declared
36210 in package Binder.
36211
362122003-12-01 Ed Schonberg <schonberg@gnat.com>
36213
36214 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
36215 actuals that are indexed components, reanalyze actual to ensure that
36216 packed array references are properly expanded.
36217
36218 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
36219 attempted assignment to a discriminant.
36220
362212003-12-01 Robert Dewar <dewar@gnat.com>
36222
36223 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
36224 reformatting.
36225
36226 * switch-c.adb: Minor reformatting of comments
36227
362282003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36229
36230 * Makefile.in: Clean ups.
36231
362322003-12-01 GNAT Script <nobody@gnat.com>
36233
36234 * Make-lang.in: Makefile automatically updated
36235
c6135994
AC
362362003-12-01 Arnaud Charlet <charlet@act-europe.fr>
36237
36238 * 5wsystem.ads: Disable zero cost exception, not ready yet.
36239
51a30506
UW
362402003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
36241
36242 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
36243 to force serialization.
36244
81a5b587
AC
362452003-11-26 Thomas Quinot <quinot@act-europe.fr>
36246
fbf3e0dd 36247 * g-socket.ads, g-socket.adb:
81a5b587
AC
36248 Clarify documentation of function Stream. Introduce a Free procedure
36249 to release the returned Stream once it becomes unused.
36250
36251 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
36252
362532003-11-26 Arnaud Charlet <charlet@act-europe.fr>
36254
36255 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
36256 since NT 4 cannot handle timeout values that are too large,
36257 e.g. DWORD'Last - 1.
36258
362592003-11-26 Ed Schonberg <schonberg@gnat.com>
36260
fbf3e0dd 36261 * exp_ch4.adb:
81a5b587
AC
36262 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
36263 in procedure calls and whose expansion must be deferred.
36264
36265 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
36266 is in exp_ch4.
36267
fbf3e0dd 36268 * sem_ch3.adb:
81a5b587
AC
36269 (Build_Derived_Array_Type): Create operator for unconstrained type
36270 if ancestor is unconstrained.
36271
362722003-11-26 Vincent Celier <celier@gnat.com>
36273
36274 * make.adb (Project_Object_Directory): New global variable
36275 (Change_To_Object_Directory): New procedure
36276 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
36277 of Change_Dir directly. Do not change working directory to object
36278 directory of main project after each compilation.
36279 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
36280 directly.
36281 Change to object directory of main project before binding step.
36282 (Initialize): Initialize Project_Object_Directory to No_Project
36283
fbf3e0dd 36284 * mlib-prj.adb:
81a5b587
AC
36285 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
36286 binding a Stand-Alone Library.
36287
36288 * output.adb: Update Copyright notice
36289 (Write_Char): Output buffer when full
36290
362912003-11-26 Robert Dewar <dewar@gnat.com>
36292
36293 * sem_ch13.adb: (Check_Size): Reset size if size is too small
36294
fbf3e0dd 36295 * sem_ch13.ads:
81a5b587
AC
36296 (Check_Size): Fix documentation to include bit-packed array case
36297
36298 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
36299
36300 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
36301
36302 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
36303
9e94c78f 363042003-11-24 Arnaud Charlet <charlet@act-europe.fr>
d4c47b51
AC
36305
36306 PR ada/13142
36307 * utils.c (init_gigi_decls): Change name of built-in setjmp to
36308 __builtin_setjmp, since this is apparently needed by recent
36309 non Ada changes.
36310
7677e9e0
RO
363112003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36312
d4c47b51 36313 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
36314 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
36315
6c1e24d3
AC
363162003-11-24 Jose Ruiz <ruiz@act-europe.fr>
36317
fbf3e0dd 36318 * Makefile.in:
6c1e24d3
AC
36319 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
36320 signals and interrupts.
36321
36322 * 5zintman.ads: New File.
36323
36324 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
36325 add exception signals to the set of unmasked signals.
36326
fbf3e0dd 36327 * 5ztaprop.adb:
6c1e24d3
AC
36328 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
36329 between signals and interrupts.
36330 Add to Unblocked_Signal_Mask the set of signals that are in
36331 Keep_Unmasked.
36332
fbf3e0dd 36333 * 7sinmaop.adb:
6c1e24d3
AC
36334 Adding a check to see whether the Interrupt_ID we want to unmask is in
36335 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
36336 reason is that the index type of the Keep_Unmasked array is not always
36337 Interrupt_ID; it may be a subtype of Interrupt_ID.
36338
363392003-11-24 Gary Dismukes <dismukes@gnat.com>
36340
fbf3e0dd 36341 * exp_util.adb:
6c1e24d3
AC
36342 (Remove_Side_Effects): Condition constantness of object created for a
36343 an unchecked type conversion on the constantness of the expression
36344 to ensure the correct value for 'Constrained when passing components
36345 of view-converted class-wide objects.
36346
363472003-11-24 Robert Dewar <dewar@gnat.com>
36348
36349 * par-load.adb (Load): Improve handling of misspelled and missing units
36350 Removes several cases of compilation abandoned messages
36351
36352 * lib.adb: (Remove_Unit): New procedure
36353
36354 * lib.ads: (Remove_Unit): New procedure
36355
36356 * lib-load.adb: Minor reformatting
36357
363582003-11-24 Vincent Celier <celier@gnat.com>
36359
fbf3e0dd 36360 * make.adb:
6c1e24d3
AC
36361 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
36362 (Marking_Label): Label to mark processed source files. Incremented for
36363 each executable.
36364 (Gnatmake): Increase Marking_Labet for each executable
36365 (Is_Marked): Compare against marking label
36366 (Mark): Mark with marking label
36367
363682003-11-24 Jerome Guitton <guitton@act-europe.fr>
36369
fbf3e0dd 36370 * s-thread.ads:
6c1e24d3
AC
36371 Move the declaration of the TSD for System.Threads to System.Soft_Links.
36372 Add some comments.
36373
36374 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
36375 (rts-cert): build a single relocatable object for the run-time lib.
36376 Fix perms.
36377
363782003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
36379
fbf3e0dd 36380 * Make-lang.in:
6c1e24d3
AC
36381 Use gnatls rather than gcc to obtain the location of GNAT RTL for
36382 crosstools build.
36383
363842003-11-24 Sergey Rybin <rybin@act-europe.fr>
36385
36386 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
36387 can not use it as before (that is, as a variable) when dumping it into
36388 the tree file. Add a local variable to store the result of this
36389 function and to be used as the string to be written into the tree.
36390
36391 * scn.adb (Initialize_Scanner): Add comments explaining the recent
36392 changes.
36393
36394 * sinput.adb (Source_First, Source_Last): In case of
36395 Internal_Source_File, replace returning attributes of
36396 Internal_Source_Ptr (which is wrong) with returning attributes of
36397 Internal_Source.
36398
363992003-11-24 Ed Schonberg <schonberg@gnat.com>
36400
fbf3e0dd 36401 * sem_ch3.adb:
6c1e24d3
AC
36402 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
36403 used for implicit concatenation operators.
36404 Code cleanup.
36405
fbf3e0dd 36406 * sem_elab.adb:
6c1e24d3
AC
36407 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
36408 task bodies that are in the scope of a Suppress pragma.
36409 (Check_A Call): Use the flag to prevent spurious elaboration checks.
36410
fbf3e0dd 36411 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
36412 New flag No_Elaboration_Check on function/procedure calls, to properly
36413 suppress checks on calls in task bodies that are within a local suppress
36414 pragma.
36415
fbf3e0dd 36416 * exp_ch4.adb:
6c1e24d3
AC
36417 (Expand_Concatenate_Other): Use the proper integer type for the
36418 expression for the upper bound, to avoid universal_integer computations
36419 when possible.
36420
6f2aeb72
KC
364212003-11-21 Kelley Cook <kcook@gcc.gnu.org>
36422
36423 * .cvsignore: Delete.
36424
e9f85cd6
AS
364252003-11-21 Andreas Schwab <schwab@suse.de>
36426
36427 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
36428
4e074baf
VF
364292003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
36430
36431 * 5wsystem.ads: Enable zero cost exception.
36432
f1f9fe30
AC
364332003-11-21 Jerome Guitton <guitton@act-europe.fr>
36434
36435 * 5ztiitho.adb: Remove an unreferenced variable.
36436
364372003-11-21 Thomas Quinot <quinot@act-europe.fr>
36438
36439 * adaint.c: For FreeBSD, use mkstemp.
36440
364412003-11-21 Arnaud Charlet <charlet@act-europe.fr>
36442
36443 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
36444
364452003-11-21 Robert Dewar <dewar@gnat.com>
36446
36447 * bld.adb: Remove useless USE of gnatvsn
36448
36449 * gnatchop.adb: Minor reformatting
36450 Clean up version handling to be more consistent
36451
36452 * gnatxref.adb: Minor reformatting
36453
36454 * gprcmd.adb: Minor reformatting
36455 Fix output of copyright to be more consistent with other tools
36456
364572003-11-21 Vincent Celier <celier@gnat.com>
36458
36459 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
36460
364612003-11-21 Sergey Rybin <rybin@act-europe.fr>
36462
36463 * atree.adb (Initialize): Add initializations for global variables
36464 used in New_Copy_Tree.
36465
36466 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
36467 Internal_Source_File as the actual).
36468 Put the set of statements creating Any_Character before the set of
36469 statements creating Any_Array to have Any_Character fully initialized
36470 when it is used in creating Any_Array.
36471
36472 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
36473 not call Scan in case if the actual is Internal_Source_File
36474 Add 2003 to copyright note.
36475
36476 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
36477 processing Internal_Source_File.
36478
36479 * types.ads: Add the constant Internal_Source_File representing the
36480 source buffer for artificial source-code-like strings created within
36481 the compiler (the definition of Source_File_Index is changed).
36482
c5b2a8ae
AC
364832003-11-20 Arnaud Charlet <charlet@act-europe.fr>
36484
36485 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
36486 56system.ads: New file, FreeBSD version.
36487
a03ad584
JM
364882003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
36489
36490 * Make-lang.in (ada.extraclean): Delete.
36491
19f0526a
AC
364922003-11-19 Arnaud Charlet <charlet@act-europe.fr>
36493
36494 * gnatmem.adb: Clean up verbose output.
36495
36496 * gprcmd.adb: Change copyright to FSF.
36497
364982003-11-19 Vincent Celier <celier@gnat.com>
36499
36500 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
36501 and Version (ignored).
36502
36503 * symbols.ads: (Policy): New type
36504 (Initialize): New parameter Reference, Symbol_Policy and
36505 Library_Version.
36506 Remove parameter Force.
36507 Minor reformatting.
36508
36509 * snames.ads, snames.adbadb: New standard names
36510 Library_Reference_Symbol_File and Library_Symbol_Policy
36511
fbf3e0dd 36512 * mlib-prj.adb:
19f0526a
AC
36513 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
36514 project.
36515
fbf3e0dd 36516 * mlib-tgt.adb:
19f0526a
AC
36517 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
36518
36519 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
36520
36521 * prj.adb: (Project_Empty): New component Symbol_Data
36522
36523 * prj.ads: (Policy, Symbol_Record): New types
36524 (Project_Data): New component Symbol_Data
36525
fbf3e0dd 36526 * prj-attr.adb:
19f0526a
AC
36527 New attributes Library_Symbol_File, Library_Symbol_Policy and
36528 Library_Reference_Symbol_File.
36529
fbf3e0dd 36530 * prj-nmsc.adb:
19f0526a
AC
36531 (Ada_Check): When project is a Stand-Alone library project, process
36532 attribute Library_Symbol_File, Library_Symbol_Policy and
36533 Library_Reference_Symbol_File.
36534
36535 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
36536 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
36537 5sml-tgt.adb (Build_Dynamic_Library): New parameter
36538 Symbol_Data (ignored).
36539
36540 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
36541 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
36542 functions Option_File_Name and Version_String. Set new options of
36543 gnatsym related to symbol file, symbol policy and reference symbol
36544 file.
36545
fbf3e0dd 36546 * 5vsymbol.adb:
19f0526a
AC
36547 Extensive modifications to take into account the reference symbol file,
36548 the symbol policy, the library version and to put in the symbol file the
36549 minor and major IDs.
36550
36551 * bld.adb (Process_Declarative_Items): Put second argument of
36552 gprcmd to_absolute between single quotes, to avoid problems with
36553 Windows.
36554
36555 * bld-io.adb: Update Copyright notice.
36556 (Flush): Remove last character of a line, if it is a back slash, to
36557 avoid make problems.
36558
fbf3e0dd 36559 * gnatsym.adb:
19f0526a
AC
36560 Implement new scheme with reference symbol file and symbol policy.
36561
36562 * g-os_lib.ads: (Is_Directory): Clarify comment
36563
365642003-11-19 Robert Dewar <dewar@gnat.com>
36565
36566 * atree.adb: Move New_Copy_Tree global variables to head of package
36567
36568 * errout.adb: Minor reformatting
36569
365702003-11-19 Javier Miranda <miranda@gnat.com>
36571
36572 * sem_ch4.adb: (Diagnose_Call): Improve error message.
36573 Add reference to Ada0Y (AI-50217)
36574
36575 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
36576 sem_util.adb: Add reference to AI-50217
36577
36578 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
36579
36580 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
36581
36582 * sem_aggr.adb: Complete documentation of AI-287 changes
36583
36584 * par-ch4.adb: Document previous changes.
36585
36586 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
36587 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
36588 Ada0Y (AI-50217)
36589
36590 * exp_aggr.adb: Add references to AI-287 in previous changes
36591
365922003-11-19 Ed Schonberg <schonberg@gnat.com>
36593
fbf3e0dd 36594 * exp_ch6.adb:
19f0526a
AC
36595 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
36596 in the rewriting is the result of an inlined call.
36597
36598 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
36599 parameter is a type conversion, use original node to construct the
36600 post-call assignment, because expression may have been rewritten, e.g.
36601 if it is a packed array.
36602
fbf3e0dd 36603 * sem_attr.adb:
19f0526a
AC
36604 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
36605 body, just as it is in an instance.
36606 Categorization routines
36607
36608 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
36609 Instantiate_Object): Set proper sloc reference for message on missing
36610 actual.
36611
366122003-11-19 Thomas Quinot <quinot@act-europe.fr>
36613
36614 * Makefile.in: Add FreeBSD libgnat pairs.
36615
36616 * usage.adb: Fix typo in usage message.
36617
366182003-11-19 Jerome Guitton <guitton@act-europe.fr>
36619
36620 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
36621 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
36622 pragma Thread_Body.
36623 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
36624
36625 * s-thread.adb: This file is now a dummy implementation of
36626 System.Thread.
36627
366282003-11-19 Sergey Rybin <rybin@act-europe.fr>
36629
36630 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
36631
366322003-11-19 Emmanuel Briot <briot@act-europe.fr>
36633
36634 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36635 instanciation references in the parent type description.
36636
0d77ab84
AC
366372003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36638
36639 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
36640
36641 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
36642 TYPE_PRECISION directly from esize.
36643
366442003-11-18 Thomas Quinot <quinot@act-europe.fr>
36645
fbf3e0dd 36646 * cstreams.c:
0d77ab84
AC
36647 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
36648
36649 * init.c: Initialization routines for FreeBSD
36650
36651 * link.c: Link info for FreeBSD
36652
36653 * sysdep.c: Add the case of FreeBSD
36654
cb7a5092
AC
366552003-11-17 Jerome Guitton <guitton@act-europe.fr>
36656
36657 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
36658 already called in System.Threads.
36659
36660 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
36661 environment task, as it has been moved to System.Threads.Initialization.
36662
366632003-11-17 Arnaud Charlet <charlet@act-europe.fr>
36664
36665 * adaint.c (__gnatlib_install_locks): Only reference
36666 __gnat_install_locks on VMS, since other platforms can avoid using
36667 --enable-threads=gnat
36668
366692003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36670
36671 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
36672
36673 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
36674 TYPE_PACKED_ARRAY_TYPE_P.
36675 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
36676
36677 Part of PR ada/12806
36678 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
36679 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
36680
366812003-11-17 Vincent Celier <celier@gnat.com>
36682
36683 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
36684 to False.
36685 Do not set exit status to Failure when Warning is True.
36686 (Gnatchop): Make errors "no compilation units found" and
36687 "no source files written" warnings only.
36688
36689 * make.adb (Gnatmake): When using a project file, set
36690 Look_In_Primary_Dir to False.
36691 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
36692 and Local_Configuration_Pragmas in the project where they are declared
36693 not an extending project which might have inherited them.
36694
36695 * osint.adb (Locate_File): If Name is already an absolute path, do not
36696 look for a directory.
36697
36698 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
36699 -gnats (Check_Syntax) is used, issue only a warning, not an error.
36700
36701 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
36702 in objects of type Variable_Value.
36703
36704 * prj.ads: (Variable_Value): New component Project
36705
36706 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
36707 is in a project extended by Project.
36708
36709 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
36710 Project of Variable_Values to this new parameter value.
36711 (Expression): Set component Project of Variable_Values.
36712 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
36713 Set the component Project in array elements.
36714
367152003-11-17 Sergey Rybin <rybin@act-europe.fr>
36716
36717 * errout.adb: (Initialize): Add initialization for error nodes.
36718
36719 * sem_ch12.adb (Initialize): Add missing initializations for
36720 Exchanged_Views and Hidden_Entities.
36721
367222003-11-17 Ed Schonberg <schonberg@gnat.com>
36723
36724 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
36725 already instantiated tree for use in subsequent inlining.
36726 (Analyze_Associations, Instantiate_Formal_Subprogram,
36727 Instantiate_Object): improve error message for mismatch in
36728 instantiations.
36729
36730 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
36731 instantiations of subprograms declared in instances.
36732
367332003-11-17 Javier Miranda <miranda@gnat.com>
36734
36735 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
36736 executed only under the Extensions_Allowed flag.
36737
367382003-11-17 Robert Dewar <dewar@gnat.com>
36739
36740 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
36741 zeroes suppressed.
36742 (Address_Image): Fix bug of returning 0x instead of 0x0
36743 Minor reformatting (function specs).
36744
36745 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
36746 (missed case of 33-63)
36747
36748 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
36749
36750 * s-thread.adb: Add comments for pragma Restriction
36751
36752 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
36753 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
36754
367552003-11-17 Ed Falis <falis@gnat.com>
36756
36757 * s-thread.adb: Added No_Tasking restriction for this implementation.
36758
367592003-11-17 Emmanuel Briot <briot@act-europe.fr>
36760
36761 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
36762 instanciation references in the parent type description.
36763
367642003-11-17 GNAT Script <nobody@gnat.com>
36765
36766 * Make-lang.in: Makefile automatically updated
36767
7d60db05
JM
367682003-11-16 Jason Merrill <jason@redhat.com>
36769
36770 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
36771 and TAGS files that include them for each front end.
36772
c0040397
AJ
367732003-11-14 Andreas Jaeger <aj@suse.de>
36774
a477ab83 36775 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 36776 is the canonical version.
a477ab83
AJ
36777 * misc.c (gnat_handle_option): Likewise.
36778
c0040397
AJ
36779 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
36780
36781 * 5nsystem.ads: New file for x86_64-linux-gnu.
36782
95a6aaf9
AC
367832003-11-14 Arnaud Charlet <charlet@act-europe.fr>
36784
262cc585 36785 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 36786
4a4fe537
AC
36787 * comperr.adb: Fix logic in previous change.
36788
65356e64
AC
367892003-11-13 Vincent Celier <celier@gnat.com>
36790
36791 * 5bml-tgt.adb (Build_Dynamic_Library): Use
36792 Osint.Include_Dir_Default_Prefix instead of
36793 Sdefault.Include_Dir_Default_Name.
36794
36795 * gnatlbr.adb: Update Copyright notice
36796 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
36797 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
36798 instead of Sdefault.Object_Dir_Default_Name
36799
c0040397 36800 * gnatlink.adb:
65356e64
AC
36801 (Process_Binder_File): Never suppress the option following -Xlinker
36802
c0040397 36803 * mdll-utl.adb:
65356e64
AC
36804 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
36805 Sdefault.Object_Dir_Default_Name.
36806
c0040397 36807 * osint.ads, osint.adb:
65356e64
AC
36808 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
36809 Minor reformatting.
36810
36811 * vms_conv.ads: Minor reformating
36812 Remove GNAT STANDARD and GNAT PSTA
36813
c0040397 36814 * vms_conv.adb:
65356e64
AC
36815 Allow GNAT MAKE to have several files on the command line.
36816 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
36817 Sdefault.Object_Dir_Default_Name.
36818 Minor Reformating
36819 Remove data for GNAT STANDARD
36820
c0040397 36821 * vms_data.ads:
65356e64
AC
36822 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
36823 Remove data for GNAT STANDARD
36824 Remove options and documentation for -gnatwb/-gnatwB: these warning
36825 options no longer exist.
36826
368272003-11-13 Ed Falis <falis@gnat.com>
36828
36829 * 5zthrini.adb: (Init_RTS): Made visible
36830
c0040397 36831 * 5zthrini.adb:
65356e64
AC
36832 (Register): Removed unnecessary call to taskVarGet that checked whether
36833 an ATSD was already set as a task var for the argument thread.
36834
c0040397 36835 * s-thread.adb:
65356e64
AC
36836 Updated comment to reflect that this is a VxWorks version
36837 Added context clause for System.Threads.Initialization
36838 Added call to System.Threads.Initialization.Init_RTS
36839
368402003-11-13 Jerome Guitton <guitton@act-europe.fr>
36841
c0040397 36842 * 5zthrini.adb:
65356e64
AC
36843 (Init_RTS): New procedure, for the initialization of the run-time lib.
36844
c0040397 36845 * s-thread.adb:
65356e64
AC
36846 Remove dependancy on System.Init, so that this file can be used in the
36847 AE653 sequential run-time lib.
36848
368492003-11-13 Robert Dewar <dewar@gnat.com>
36850
36851 * bindgen.adb: Minor reformatting
36852
368532003-11-13 Ed Schonberg <schonberg@gnat.com>
36854
c0040397 36855 * checks.adb:
65356e64
AC
36856 (Apply_Discriminant_Check): Do no apply check if target type is derived
36857 from source type with no applicable constraint.
36858
c0040397 36859 * lib-writ.adb:
65356e64
AC
36860 (Ensure_System_Dependency): Do not apply the style checks that may have
36861 been specified for the main unit.
36862
c0040397 36863 * sem_ch8.adb:
65356e64
AC
36864 (Find_Selected_Component): Further improvement in error message, with
36865 RM reference.
36866
c0040397 36867 * sem_res.adb:
65356e64
AC
36868 (Resolve): Handle properly the case of an illegal overloaded protected
36869 procedure.
36870
368712003-11-13 Javier Miranda <miranda@gnat.com>
36872
c0040397 36873 * exp_aggr.adb:
65356e64
AC
36874 (Has_Default_Init_Comps): New function to check the presence of
36875 default initialization in an aggregate.
36876 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
36877 extension aggregate of a limited record. In addition, a new formal
36878 was added to do not initialize the record controller (if any) during
36879 this recursive expansion of ancestors.
36880 (Init_Controller): Add support for limited record components.
36881 (Expand_Record_Aggregate): In case of default initialized components
36882 convert the aggregate into a set of assignments.
36883
36884 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
36885 describing the new syntax.
36886 Nothing else needed to be done because this subprogram delegates part of
36887 its work to P_Precord_Or_Array_Component_Association.
36888 (P_Record_Or_Array_Component_Association): Give support to the new
36889 syntax for default initialization of components.
36890
c0040397 36891 * sem_aggr.adb:
65356e64
AC
36892 (Resolve_Aggregate): Relax the strictness of the frontend in case of
36893 limited aggregates.
36894 (Resolve_Record_Aggregate): Give support to default initialized
36895 components.
36896 (Get_Value): In case of default initialized components, duplicate
36897 the corresponding default expression (from the record type
36898 declaration). In case of default initialization in the *others*
36899 choice, do not check that all components have the same type.
36900 (Resolve_Extension_Aggregate): Give support to limited extension
36901 aggregates.
36902
c0040397 36903 * sem_ch3.adb:
65356e64
AC
36904 (Check_Initialization): Relax the strictness of the front-end in case
36905 of aggregate and extension aggregates. This test is now done in
36906 Get_Value in a per-component manner.
36907
36908 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
36909 expression corresponds to a limited aggregate. This test is now done
36910 in Get_Value.
36911
36912 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
36913 Box_Present flag.
36914
36915 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
36916 present in an N_Component_Association node
36917
369182003-11-13 Thomas Quinot <quinot@act-europe.fr>
36919
36920 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
36921 type-conformant entry only if they are homographs.
36922
369232003-11-13 GNAT Script <nobody@gnat.com>
36924
36925 * Make-lang.in: Makefile automatically updated
36926
49add53f
RO
369272003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36928
36929 * adadecode.c: Use <> form of include for ctype.h.
36930 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
36931
94bae1cc
RO
369322003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36933
36934 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
36935 Works around PR middle-end/6552.
36936
463f452c
AC
369372003-11-10 Ed Falis <falis@gnat.com>
36938
36939 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
36940
36941 * 5zinit.adb: (Install_Handler): Moved back to spec
36942 (Install_Signal_Handlers): Deleted
36943
36944 * 5zthrini.adb: Added context clause for System.Storage_Elements
36945 (Register): Only handles creation of taskVar; initialization moved to
36946 Thread_Body_Enter.
36947 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
36948 Added declaration of environment task secondary stack and
36949 initialization.
36950
36951 * s-thread.adb: Implement bodies for thread body processing
36952
c0040397 36953 * s-thread.ads:
463f452c
AC
36954 Added comment identifying supported targets for pragma Thread_Body.
36955
369562003-11-10 Pascal Obry <obry@gnat.com>
36957
36958 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
36959 GNAT_MAX_PATH_LEN.
36960
c0040397 36961 * s-fileio.adb:
463f452c
AC
36962 (Open): Properly check for string length before copying into the buffer.
36963 Raises Name_Error if buffer is too small. Note that this was a potential
36964 buffer overflow.
36965
369662003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
36967
36968 * bindgen.adb, comperr.adb: Code clean ups.
36969 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
36970
369712003-11-10 Sergey Rybin <rybin@act-europe.fr>
36972
36973 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
36974
369752003-11-10 Vincent Celier <celier@gnat.com>
36976
c0040397 36977 * gprcmd.adb:
463f452c
AC
36978 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
36979 installation.
36980
36981 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
36982
36983 * prj.adb: (Project_Empty): Add new boolean component Virtual
36984
36985 * prj.ads: (Virtual_Prefix): New constant string
36986 (Project_Data): New boolean component Virtual
36987
36988 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
36989 a library project is extended by a virtual extending project.
36990
c0040397 36991 * prj-part.adb:
463f452c
AC
36992 Modifications throughout to implement extending-all project, including:
36993 (Virtual_Hash, Processed_Hash): New hash tables
36994 (Create_Virtual_Extending_Project): New procedure
36995 (Look_For_Virtual_Projects_For): New procedure
36996
c0040397 36997 * prj-proc.adb:
463f452c
AC
36998 (Process): After checking the projects, if main project is an
36999 extending-all project, set the object directory of all virtual extending
37000 project to the object directory of the main project.
37001 Adjust error message when a virtual extending project has the same
37002 object directory as an project being extended.
37003 (Recursive_Process): If name starts with the virtual prefix, set Virtual
37004 to True in the project data.
37005
c0040397 37006 * prj-tree.adb:
463f452c
AC
37007 (Default_Project_Node): Add new boolean component Extending_All
37008 (Is_Extending_All): New function
37009 (Set_Is_Extending_All): New procedure
37010
37011 * prj-tree.ads: (Is_Extending_All): New function
37012 (Set_Is_Extending_All): New procedure
37013 (Project_Node_Record): New boolean component Extending_All
37014
37015 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
37016
c0040397 37017 * vms_data.ads:
463f452c
AC
37018 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
37019
37020 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
37021 "gprcmd prefix" to define it.
37022
370232003-11-10 Thomas Quinot <quinot@act-europe.fr>
37024
37025 * einfo.ads: Fix a typo and remove an extraneous word in comments.
37026
c0040397 37027 * lib-load.adb:
463f452c
AC
37028 (Create_Dummy_Package_Unit): Set the scope of the entity for the
37029 created dummy package to Standard_Standard, not to itself, to
37030 defend other parts of the front-end against encoutering a cycle in
37031 the scope chain.
37032
c0040397 37033 * sem_ch10.adb:
463f452c
AC
37034 (Analyze_With_Clause): When setting the entities for the successive
37035 N_Expanded_Names that constitute the name of a child unit, do not
37036 attempt to go further than Standard_Standard in the chain of scopes.
37037 This case arises from the placeholder units created by
37038 Create_Dummy_Package_Unit in the case of a with_clause for a
37039 nonexistent child unit.
37040
370412003-11-10 Ed Schonberg <schonberg@gnat.com>
37042
c0040397 37043 * exp_ch6.adb:
463f452c
AC
37044 (Expand_Thread_Body): Place subprogram on scope stack, so that new
37045 declarations are given the proper scope.
37046
c0040397 37047 * sem_ch13.adb:
463f452c
AC
37048 (Check_Expr_Constants): Reject an expression that contains a constant
37049 created during expansion, and that appears after the object to which
37050 the address clause applies.
37051
37052 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
37053 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
37054 that uses 'Range of a function call with controlled components, so
37055 that the function result can be finalized before starting the loop.
37056
c0040397 37057 * sem_ch8.adb:
463f452c
AC
37058 (Find_Selected_Component): Improve error message when prefix is
37059 an implicit dereference of an incomplete type.
37060
370612003-11-10 Robert Dewar <dewar@gnat.com>
37062
37063 * opt.ads: New Print_Standard flag for -gnatS switch
37064
37065 * sem_ch13.adb: Remove some additional checks for unaligned arrays
37066
37067 * cstand.adb (Create_Standard): Print out package standard if -gnatS
37068 switch set
37069
37070 * debug.adb: Update doc for -gnatds to discuss relationship with new
37071 -gnatS flag
37072
37073 * sinfo.adb: Add new field Entity_Or_Associated_Node
37074
37075 * sinfo.ads: Add new field Entity_Or_Associated_Node
37076 Update documentation for Associated_Node and Entity fields to clarify
37077 relationship and usage.
37078
c0040397 37079 * sprint.adb:
463f452c
AC
37080 (Write_Id): Properly process Associated_Node field in generic template
37081
c0040397 37082 * switch-c.adb:
463f452c
AC
37083 Recognize new -gnatS switch for printing package Standard
37084 This replaces gnatpsta
37085
c0040397 37086 * usage.adb:
463f452c
AC
37087 Add line for new -gnatS switch for printing package Standard
37088 This replaces gnatpsta
37089
c77c5f2e
AJ
370902003-11-10 Andreas Jaeger <aj@suse.de>
37091
37092 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
37093 integer.
37094
5c90f17f
AC
370952003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37096
37097 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
37098 by gnat1.
37099
139f0d1e
AC
371002003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37101
37102 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
37103 no longer needed.
37104
37105 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
37106
37107 * sysdep.c: Add handling of cygwin.
37108
f3e4c05c
GS
371092003-11-10 GNAT Script <nobody@gnat.com>
37110
37111 * Make-lang.in: Makefile automatically updated
37112
2cdc8909
AC
371132003-11-10 Arnaud Charlet <charlet@act-europe.fr>
37114
37115 PR 12950
37116 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
37117 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
37118 Replace GNAT_ROOT by GCC_ROOT.
37119
37120 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
37121
37783865
ZW
371222003-11-06 Zack Weinberg <zack@codesourcery.com>
37123
37124 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
37125 and update for changed meaning of GET_MODE_BITSIZE.
37126
6bc1c519
AC
371272003-11-04 Doug Rupp <rupp@gnat.com>
37128
37129 * sysdep.c: Problem discovered during IA64 VMS port.
37130 [VMS] #include <unixio.h> to get proper prototypes.
37131
37783865 37132 * adaint.c:
6bc1c519
AC
37133 Issues discovered/problems fixed during IA64 VMS port.
37134 [VMS] #define _POSIX_EXIT for proper semantics.
37135 [VMS] #include <unixio.h> for proper prototypes.
37136 [VMS] (fork): #define IA64 version.
37137 (__gnat_os_exit): Remove unnecessary VMS specific code.
37138
371392003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37140
37141 Part of PR ada/12806
6bc1c519
AC
37142 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
37143 tree, not integer.
37144
37783865 37145 * decl.c:
6bc1c519
AC
37146 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
37147 not integer.
37148
37149 * targtyps.c, decl.c, misc.c,
37150 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
37151 routines to work around change in FP sizing semantics in GCC.
37152
37783865 37153 * utils.c:
6bc1c519
AC
37154 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
37155
37156 * gigi.h: (enumerate_modes): New function.
37157
37158 * Make-lang.in: (ada/misc.o): Add real.h.
37159
37160 * misc.c: (enumerate_modes): New function.
37161
371622003-11-04 Robert Dewar <dewar@gnat.com>
37163
37164 * 3vtrasym.adb: Minor reformatting
37165 Use terminology encoded/decoded name, rather than C++ specific notion
37166 of mangling (this is the terminology used throughout GNAT).
37167
37168 * einfo.h: Regenerated
37169
37170 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
37171
37783865 37172 * exp_ch6.adb:
6bc1c519
AC
37173 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
37174
37175 * par-prag.adb: Add dummy entry for Thread_Body pragma
37176
37783865 37177 * rtsfind.ads:
6bc1c519
AC
37178 Add entries for System.Threads entities for thread body processing
37179
37783865 37180 * sem_attr.adb:
6bc1c519
AC
37181 (Analyze_Pragma, Access attributes): Check these are not applied to a
37182 thread body, since this is not permitted
37183
37184 * sem_prag.adb: Add processing for Thread_Body pragma.
37185 Minor comment fix.
37186
37783865 37187 * sem_res.adb:
6bc1c519
AC
37188 (Resolve_Call): Check for incorrect attempt to call a thread body
37189 procedure with a direct call.
37190
37191 * snames.ads, snames.adb: Add entry for Thread_Body pragma
37192 Add names associated with thread body expansion
37193
37194 * snames.h: Add entry for Thread_Body pragma
37195
37196 * s-thread.adb: Add entries for thread body processing
37197 These are dummy bodies so far
37198
37199 * s-thread.ads: Add documentation on thread body handling.
37200 Add entries for thread body processing.
37201
372022003-11-04 Javier Miranda <miranda@gnat.com>
37203
37783865 37204 * sem_ch10.adb:
6bc1c519
AC
37205 (Build_Limited_Views): Return after posting an error in case of limited
37206 with_clause on subprograms, generics, instances or generic renamings
37207 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
37208 on subprograms, generics, instances or generic renamings
37209
372102003-11-04 Arnaud Charlet <charlet@act-europe.fr>
37211
37212 * raise.c (setup_to_install): Correct mistake in last revision; two
37213 arguments out of order.
37214
37215 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
37216 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
37217 notice, missed in previous change.
37218 Remove trailing blanks and other style errors introduced in previous
37219 change.
37220
372212003-11-04 Olivier Hainque <hainque@act-europe.fr>
37222
37223 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
37224 rid of the wrapper for a LJM type, ensuring we don't do that if the
37225 field is addressable. This avoids potential low level type view
37226 mismatches later on, for instance in a by-reference argument passing
37227 process.
37228
372292003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37230
37231 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
37232 aligned at byte boundary.
37233
372342003-11-04 Joel Brobecker <brobecker@gnat.com>
37235
37236 * decl.c (components_to_record): Do not delete the empty variants from
37237 the end of the union type.
37238
372392003-11-04 Ed Schonberg <schonberg@gnat.com>
37240
37241 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
37242 operation for a derived type, an explicit declaration may use a local
37243 subtype of Boolean.
37244
372452003-11-04 Vincent Celier <celier@gnat.com>
37246
37247 * make.adb (Gnatmake): Allow main sources on the command line with a
37248 library project when it is only for compilation (no binding or
37249 linking).
37250
487e9fff
RO
372512003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37252
37253 * Makefile.in: Remove many duplicate variables.
37254
63069342
KC
372552003-11-03 Kelley Cook <kcook@gcc.gnu.org>
37256
37257 * Make-lang.in (dvi): Move targets to $(docobjdir).
37258 (gnat_ug_vms.dvi): Simplify rule and adjust target.
37259 (gnat_ug_wnt.dvi): Likewise.
37260 (gnat_ug_unx.dvi): Likewise.
37261 (gnat_ug_vxw.dvi): Likewise.
37262 (gnat_rm.dvi): Likewise.
37263 (gnat-style.dvi): Likewise.
37264
c2edc52b
KC
372652003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37266
37267 * gigi.h: Missed commit from update for C90.
37268
14df9585
KC
372692003-10-31 Kelley Cook <kcook@gcc.gnu.org>
37270
37271 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
37272
acd8e984
AS
372732003-10-31 Andreas Schwab <schwab@suse.de>
37274
37275 * raise.c (get_action_description_for): Fix typo in last change.
37276
b2c62c45
NN
372772003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
37278
37279 PR ada/12761
37280 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
37281 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
37282
9373164a
KC
372832003-10-30 Kelley Cook <kcook@gcc.gnu.org>
37284
37285 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
37286 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
37287 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
37288 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
37289 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
37290
bde58e32
AC
372912003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
37292
37783865 37293 * 3vtrasym.adb:
bde58e32
AC
37294 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
37295 numbers when symbol name is too long.
37296
372972003-10-30 Ed Falis <falis@gnat.com>
37298
37299 * g-signal.ads, g-signal.adb: New files
37300
37301 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
37302
37303 * Makefile.rtl: Introduce GNAT.Signals
37304
373052003-10-30 Robert Dewar <dewar@gnat.com>
37306
37307 * freeze.adb: Minor reformatting
37308
37309 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
37310
37783865
ZW
37311 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
37312 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
37313 New handling of Id_Check parameter to improve recognition of keywords
37314 used as identifiers.
37315 Update copyright notice to include 2003
37316
657a9dd9
AC
373172003-10-29 Robert Dewar <dewar@gnat.com>
37318
37319 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
37320 sem_ch10.adb: Minor reformatting
37321
37322 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
37323 (Expand_Assign_Record): Test right hand side for bit unaligned as well
37324
373252003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
37326
37783865 37327 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
37328 Support for TBK$SYMBOLIZE-based symbolic traceback.
37329
373302003-10-29 Jose Ruiz <ruiz@act-europe.fr>
37331
37783865 37332 * exp_disp.adb:
657a9dd9
AC
37333 Revert previous change, that did not work well when pragma No_Run_Time
37334 was used in conjunction with a run-time other than ZFP.
37335
373362003-10-29 Vincent Celier <celier@gnat.com>
37337
37783865 37338 * make.adb:
657a9dd9
AC
37339 (Gnatmake): When there are no Ada mains in attribute Main, disable the
37340 bind and link steps only is switch -z is not used.
37341
373422003-10-29 Arnaud Charlet <charlet@act-europe.fr>
37343
37344 * Makefile.generic: Remove duplicated setting of CC.
37345
37346 * Makefile.prolog: Set CC to gcc by default, to override make's
37347 default (cc).
37348
37349 * einfo.h: Regenerated.
37350
373512003-10-29 Ed Schonberg <schonberg@gnat.com>
37352
37353 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
37354 current body, after compiling subunit.
37355
37356 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
37357 when in deleted code, because gigi needs properly ordered freeze
37358 actions to annotate types.
37359
37360 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
37361 prevent the premature freezing of record type that contains
37362 subcomponents with a private type that does not yet have a completion.
37363
373642003-10-29 Javier Miranda <miranda@gnat.com>
37365
37783865 37366 * sem_ch12.adb:
657a9dd9
AC
37367 (Analyze_Package_Instantiation): Check that instances can not be used in
37368 limited with_clauses.
37369
37783865 37370 * sem_ch8.adb:
657a9dd9
AC
37371 (Analyze_Package_Renaming): Check that limited withed packages cannot
37372 be renamed. Improve text on error messages related to limited
37373 with_clauses.
37374
37375 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
37376
37377 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
37378 Update copyright notice.
37379
37380 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
37381 (Install_Limited_Context_Clauses): New subprogram that isolates all the
37382 checks required for limited context_clauses and installs the limited
37383 view.
37384 (Install_Limited_Withed_Unit): Complete its documentation.
37385 (Analyze_Context): Check that limited with_clauses are only allowed in
37386 package specs.
37387 (Install_Context): Call Install_Limited_Context_Clauses after the
37388 parents have been installed.
37389 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
37390 package as 'From_With_Type'; this mark indicates that the limited view
37391 is installed. Used to check bad usages of limited with_clauses.
37392 (Build_Limited_Views): Do not add shadow entities to the scope's list
37393 of entities. Do not add real entities to the Non_Limited_Views chain.
37394 Improve error notification.
37395 (Remove_Context_Clauses): Remove context clauses in two phases:
37396 limited views first and regular views later (to maintain the
37397 stack model).
37398 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
37399 its visible entities.
37400
374012003-10-29 Thomas Quinot <quinot@act-europe.fr>
37402
37403 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
37404 with any type that Is_Fixed_Point_Type.
37405
37406 * sinfo.ads: Fix documentation for Associated_Node attribute.
37407
374082003-10-29 Sergey Rybin <rybin@act-europe.fr>
37409
37410 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
37411 both '-gnatc' and '-gnatt' are specified.
37412
37413 * atree.adb (Initialize): Add initialization for Node_Count (set to
37414 zero).
37415
374162003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37417
37418 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
37419 do not consider as Pure.
37420
37421 Part of implementation of function-at-a-time:
37422
37423 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
37424 (tree_transform): Add new argument to build_component_ref.
37425 (tree_transform, case N_Assignment_Statement): Make and return an
37426 EXPR_STMT.
37427 (tree_transform): If result IS_STMT, set flags and return it.
37428 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37429
37430 * utils2.c (build_simple_component_ref, build_component_ref): Add new
37431 arg, NO_FOLD_P.
37432 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
37433 (build_allocator): Likewise.
37434
37435 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
37436 Add new arg to build_component_ref.
37437 (maybe_unconstrained_array, unchecked_convert): Likewise.
37438
37439 * ada-tree.def (EXPR_STMT): New code.
37440
37441 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
37442
37443 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
37444 build_component_ref calls.
37445
37446 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
37447
37448 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
37449 (build_component_ref): Add new argument, NO_FOLD_P.
37450
ecad994d
AC
374512003-10-27 Arnaud Charlet <charlet@act-europe.fr>
37452
37453 * Makefile.generic: Add missing substitution on object_deps handling.
37454
6f7f72f9 37455 PR ada/5909
ecad994d
AC
37456 * Make-lang.in (check-ada): Enable ACATS test suite.
37457
374582003-10-27 Robert Dewar <dewar@gnat.com>
37459
37783865 37460 * exp_ch3.adb:
ecad994d
AC
37461 (Freeze_Array_Type): We do not need an initialization routine for types
37462 derived from String or Wide_String. They should be treated the same
37463 as String and Wide_String themselves. This caused problems with the
37464 use of Initialize_Scalars.
37465
37783865 37466 * exp_ch5.adb:
ecad994d
AC
37467 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
37468 composites. This allows use of component clauses that are not byte
37469 aligned.
37470
37783865 37471 * sem_prag.adb:
ecad994d
AC
37472 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
37473 is an attempt to pack an array of atomic objects.
37474
37475 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
37476
374772003-10-27 Pascal Obry <obry@gnat.com>
37478
37783865 37479 * g-dirope.adb:
ecad994d
AC
37480 (Basename): Check for drive letters in a pathname only on DOS based OS.
37481
374822003-10-27 Vincent Celier <celier@gnat.com>
37483
37783865 37484 * make.adb:
ecad994d
AC
37485 (Gnatmake): When unable to change dir to the object dir, display the
37486 content of the parent dir of the obj dir, to try to understand why this
37487 happens.
37488
374892003-10-27 GNAT Script <nobody@gnat.com>
37490
37491 * Make-lang.in: Makefile automatically updated
37492
374932003-10-27 Ed Schonberg <schonberg@gnat.com>
37494
37783865 37495 * sem_ch12.adb:
ecad994d
AC
37496 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
37497 should not be done in Save/Restore_Scope_Stack, because it is performed
37498 locally.
37499
37783865 37500 * sem_ch8.adb:
ecad994d
AC
37501 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37502 whether use clauses should be removed/restored.
37503
37783865 37504 * sem_ch8.ads:
ecad994d
AC
37505 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
37506 whether use clauses should be removed/restored.
37507
b6b3c138
AJ
375082003-10-26 Andreas Jaeger <aj@suse.de>
37509
37510 * Makefile.in: Remove duplicated lines.
37511
b6d83931
AC
375122003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37513
37514 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
37515 minimize the differences with ACT tree.
37516
37517 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
37518 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
37519 Gnatvsn.Gnat_Static_Version_String to reduce differences between
37520 ACT and FSF trees.
37521
375222003-10-24 Pascal Obry <obry@gnat.com>
37523
6f7f72f9 37524 PR ada/12014
b6d83931
AC
37525 * adadecode.c (ostrcpy): New function.
37526 (__gnat_decode): Use ostrcpy of strcpy.
37527 (has_prefix): Set first parameter a const.
37528 (has_suffix): Set first parameter a const.
37529 Update copyright notice. Fix source name in header.
37530 Removes a trailing space.
b6d83931
AC
37531
375322003-10-24 Jose Ruiz <ruiz@act-europe.fr>
37533
b6b3c138 37534 * exp_disp.adb:
b6d83931
AC
37535 Remove the test against being in No_Run_Time_Mode before generating a
37536 call to Register_Tag. It is redundant with the test against the
37537 availability of the function Register_Tag.
37538
375392003-10-24 Vincent Celier <celier@gnat.com>
37540
37541 * g-catiio.adb: (Month_Name): Correct spelling of February
37542
37543 * make.adb: (Mains): New package
37544 (Initialize): Call Mains.Delete
37545 (Gnatmake): Check that each main on the command line is a source of a
37546 project file and, if there are several mains, each of them is a source
37547 of the same project file.
37548 (Gnatmake): When a foreign language is specified in attribute Languages,
37549 no main is specified on the command line and attribute Mains is not
37550 empty, only build the Ada main. If there is no Ada main, just compile
37551 the Ada sources and their closure.
37552 (Gnatmake): If a main is specified on the command line with directory
37553 information, check that the source exists and, if it does, that the path
37554 is the actual path of a source of a project.
37555
b6b3c138 37556 * prj-env.adb:
b6d83931
AC
37557 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
37558 Full_Path is True, return the full path instead of the simple file name.
37559 (Project_Of): New function
37560
b6b3c138 37561 * prj-env.ads:
b6d83931
AC
37562 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
37563 defaulted to False.
37564 (Project_Of): New function
37565
375662003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37567
b6b3c138 37568 * Makefile.generic:
b6d83931
AC
37569 Ensure objects of main project are always checked and rebuilt if needed.
37570 Set CC to gcc by default.
37571 Prepare new handling of link by creating a global archive (not activated
37572 yet).
37573
37574 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37575 stringt.h: Update copyright notice. Remove trailing blanks.
37576 Fix source name in header.
37577
375782003-10-24 Robert Dewar <dewar@gnat.com>
37579
37580 * sem_ch12.adb: Minor reformatting
37581
b6b3c138 37582 * sem_ch3.adb:
b6d83931
AC
37583 Minor reformatting (including new function return style throughout)
37584
b6b3c138 37585 * sem_ch3.ads:
b6d83931
AC
37586 Minor reformatting (including new function return style throughout)
37587
375882003-10-24 Arnaud Charlet <charlet@act-europe.fr>
37589
37590 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
37591 stringt.h: Update copyright notice. Remove trailing blanks.
37592 Fix source name in header.
37593
375942003-10-24 GNAT Script <nobody@gnat.com>
37595
37596 * Make-lang.in: Makefile automatically updated
37597
b4e2d709
NN
375982003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
37599
37600 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
37601 stringt.h: Convert to ISO C90 declarations and definitions.
37602
9d7d51be
AC
376032003-10-23 Thomas Quinot <quinot@act-europe.fr>
37604
6f7f72f9 37605 PR ada/11978
9d7d51be
AC
37606 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
37607 External_Tag attribute definition clauses.
37608
376092003-10-23 Ed Schonberg <schonberg@gnat.com>
37610
6f7f72f9 37611 PR ada/7613
9d7d51be
AC
37612 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
37613 child unit, generate a fully qualified name to avoid spurious errors
37614 when the context contains renamings of different child units with
37615 the same simple name.
37616
37617 * exp_dbug.ads: Add documentation on name qualification for renamings
37618 of child units.
37619
376202003-10-23 Robert Dewar <dewar@gnat.com>
37621
37622 * g-regpat.ads, g-regpat.adb: Minor reformatting
37623
376242003-10-23 Jose Ruiz <ruiz@act-europe.fr>
37625
37626 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
37627
376282003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37629
37630 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
37631 Machine call.
37632
37633 * urealp.h: (Machine): Update to proper definition.
37634
6d244bbe
AC
376352003-10-23 Arnaud Charlet <charlet@act-europe.fr>
37636
37637 * init.c, adaint.c: Minor reformatting.
37638
8f4eb34b
DS
376392003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
37640
6d244bbe 37641 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
37642 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
37643 rather than t_create, t_access in call to GetFileTime. Use union
37644 to convert between FILETIME and unsigned long long.
37645 (__gnat_file_time_name): Test for invalid file handle.
37646 (__gnat_set_filetime_name): Support win32 targets using
37647 w32api SetFileTime.
37648
25412599
DS
376492003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
37650
37651 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
37652
37653 * ctrl_c.c (__gnat_int_handler): Remove declaration.
37654
37655 * decl.c (creat_concat_name): Const-ify prefix.
37656
37657 * adaint.c: Include ctype.h if __MINGW32__.
37658 (__gnat_readlink): Mark arguments as possibly unused.
37659 (__gnat_symlink): Likewise.
37660 (__gnat_is_symbolic_link): Likewise.
37661 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
37662 declaration
b6b3c138 37663 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
37664 not needed.
37665 (__gnat_is_absolute_path): Add parenthesis around condition of
37666 'if' statement to avoid warning.
37667 (__gnat_plist_init): Specify void as parameter.
37668 (plist_enter): Likewise.
37669 (plist_leave): Likewise.
37670 (remove_handle): Make static. Initialize prev.
37671
698a5e79
AC
376722003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37673
6f7f72f9
EB
37674 PR ada/10110
37675 * Makefile.in: Disable build of gnatpsta.
698a5e79
AC
37676 * cstreams.c (__gnat_full_name): Minor improvements and clean up
37677 of previous change.
37678
e97c30aa
RO
376792003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37680
37681 * tracebak.c (MAX): Avoid redefinition warning.
37682
37683 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
37684 Change msg to const char *.
37685 (__gnat_install_handler): Remove ss, unused.
37686 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
37687 to const char *.
37688 * cstreams.c (__gnat_full_name): Declare p only when used.
37689 (__gnat_full_name) [sgi] Return buffer.
37690
65f1ebd1
AC
376912003-10-22 Arnaud Charlet <charlet@act-europe.fr>
37692
37693 * mingw32.h: New file.
0c644933
AC
37694 * gnat_wrapper.adb: New file.
37695
6d244bbe 376962003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
37697
37698 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
37699 string match a pre compiled regular expression (the corresponding
37700 version of the function working on a raw regular expression)
37701 Fix typos in various comments
37702 Update copyright notice in spec
37703
6d244bbe 377042003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 37705
b6b3c138 37706 * exp_ch3.adb:
0c644933
AC
37707 (Component_Needs_Simple_Initialization): Return False when the type is a
37708 packed bit array. Revise spec comments to document this case.
37709
b6b3c138 37710 * exp_prag.adb:
0c644933
AC
37711 (Expand_Pragma_Import): Set any expression on the imported object to
37712 empty to avoid initializing imported objects (in particular this
37713 covers the case of zero-initialization of bit arrays).
37714 Update copyright notice.
37715
6d244bbe 377162003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 37717
b6b3c138 37718 * sem_ch12.adb:
0c644933
AC
37719 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
37720 a subunit is missing.
37721 (Instantiate_Subprogram_Body): If body of function is missing, set type
37722 of return expression explicitly in dummy body, to prevent cascaded
37723 errors when a subunit is missing.
37724 Fixes PR 5677.
37725
b6b3c138 37726 * sem_ch3.adb:
0c644933
AC
37727 (Access_Subprogram_Declaration): Verify that return type is valid.
37728 Fixes PR 8693.
37729
b6b3c138 37730 * sem_elab.adb:
0c644933
AC
37731 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
37732 generic.
37733 Fixes PR 12318.
37734
b6b3c138 37735 * sem_util.adb:
0c644933
AC
37736 (Corresponding_Discriminant): If the scope of the discriminant is a
37737 private type without discriminant, use its full view.
37738 Fixes PR 8247.
65f1ebd1 37739
fbf5a39b
AC
377402003-10-21 Arnaud Charlet <charlet@act-europe.fr>
37741
37742 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
37743 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
37744 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
37745 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
37746 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
37747 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
37748 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37749 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
37750 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
37751 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
37752 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
37753 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
37754 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
37755 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
37756 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
37757 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
37758 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
37759 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
37760 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
37761 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
37762 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
37763 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
37764 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
37765 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
37766 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
37767 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
37768 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
37769 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
37770 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
37771 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
37772 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
37773 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
37774 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
37775 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
37776 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
37777 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
37778 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
37779 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
37780 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
37781 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
37782 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
37783 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
37784 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
37785 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
37786 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
37787 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
37788 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
37789 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
37790 vms_conv.ads, vms_conv.adb, vms_data.ads,
37791 vxaddr2line.adb: Files added. Merge with ACT tree.
37792
37793 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
37794 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
37795 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
37796 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
37797 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
37798 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
37799 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
37800 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
37801 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
37802 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
37803
37804 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
37805 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
37806 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
37807 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
37808 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
37809 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
37810 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
37811 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
37812 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
37813 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
37814 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
37815 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
37816 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
37817 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
37818 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
37819 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
37820 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
37821 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
37822 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
37823 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
37824 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
37825 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37826 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37827 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37828 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
37829 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
37830 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
37831 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37832 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
37833 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37834 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37835 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
37836 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
37837 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
37838 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
37839 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
37840 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
37841 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
37842 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
37843 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
37844 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
37845 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
37846 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
37847 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
37848 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
37849 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
37850 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
37851 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
37852 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
37853 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
37854 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
37855 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
37856 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
37857 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
37858 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
37859 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
37860 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
37861 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
37862 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
37863 checks.adb, checks.ads, cio.c, comperr.adb,
37864 comperr.ads, csets.adb, cstand.adb, cstreams.c,
37865 debug_a.adb, debug_a.ads, debug.adb, decl.c,
37866 einfo.adb, einfo.ads, errout.adb, errout.ads,
37867 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
37868 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
37869 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
37870 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
37871 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
37872 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
37873 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
37874 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
37875 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
37876 fe.h, fmap.adb, fmap.ads, fname.adb,
37877 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
37878 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
37879 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
37880 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
37881 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
37882 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
37883 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
37884 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
37885 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
37886 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
37887 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
37888 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
37889 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
37890 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
37891 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
37892 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
37893 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
37894 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
37895 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
37896 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
37897 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
37898 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
37899 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
37900 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
37901 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
37902 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
37903 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
37904 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
37905 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
37906 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
37907 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
37908 layout.adb, lib.adb, lib.ads, lib-list.adb,
37909 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
37910 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
37911 link.c, live.adb, make.adb, make.ads,
37912 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
37913 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
37914 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
37915 misc.c, mkdir.c, mlib.adb, mlib.ads,
37916 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
37917 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
37918 namet.adb, namet.ads, namet.h, nlists.ads,
37919 nlists.h, nmake.adt, opt.adb, opt.ads,
37920 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
37921 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
37922 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
37923 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
37924 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
37925 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
37926 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
37927 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
37928 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
37929 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
37930 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
37931 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
37932 prj-util.adb, prj-util.ads, raise.c, raise.h,
37933 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
37934 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
37935 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
37936 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
37937 scans.ads, scn.adb, scn.ads, s-crc32.adb,
37938 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
37939 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
37940 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
37941 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
37942 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
37943 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
37944 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
37945 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
37946 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
37947 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
37948 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
37949 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
37950 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
37951 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
37952 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
37953 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
37954 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
37955 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
37956 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
37957 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
37958 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
37959 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
37960 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
37961 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
37962 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
37963 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
37964 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
37965 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
37966 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
37967 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
37968 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
37969 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
37970 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
37971 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
37972 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
37973 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
37974 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
37975 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37976 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37977 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
37978 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
37979 stringt.adb, stringt.ads, stringt.h, style.ads,
37980 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
37981 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
37982 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
37983 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
37984 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
37985 table.adb, table.ads, targparm.adb, targparm.ads,
37986 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
37987 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
37988 ttypes.ads, types.ads, types.h, uintp.adb,
37989 uintp.ads, uintp.h, uname.adb, urealp.adb,
37990 urealp.ads, urealp.h, usage.adb, utils2.c,
37991 utils.c, validsw.adb, validsw.ads, widechar.adb,
37992 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
37993 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
37994 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
37995 gnatvsn.ads: Merge with ACT tree.
37996
37997 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
37998
97ae108d
MM
379992003-10-20 Mark Mitchell <mark@codesourcery.com>
38000
de696511
MM
38001 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
38002 (gnat_ug_vmx.info): Likewise.
38003 (gnat_ug_vxw.info): Likewise.
38004 (gnat_ug_wnt.info): Likewise.
38005 (gnat_rm.info): Likewise.
38006 (gnat-style.info): Likewise.
38007
97ae108d
MM
38008 * Make-lang.in (ada.install-info): Remove target.
38009 (info): New target.
38010 (install-info): Likewise.
38011 (gnat_ug_unx.info): Simplify rule.
38012 (gnat_ug_vmx.info): Likewise.
38013 (gnat_ug_vxw.info): Likewise.
38014 (gnat_ug_wnt.info): Likewise.
38015 (gnat_rm.info): Likewise.
38016 (gnat-style.info): Likewise.
38017
43aba518
NN
380182003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
38019
38020 * Make-lang.in: Replace uses of $(target_alias) with
38021 $(target_noncanonical).
38022 * ada/Makefile.in: Remove unused mention of $(target_alias).
38023
62b81e45
MM
380242003-10-06 Mark Mitchell <mark@codesourcery.com>
38025
38026 * Make-lang.in (ada.info): Replace with ...
38027 (info): ... this.
38028 (ada.dvi): Replace with ...
38029 (dvi): ... this.
38030
783be936
ZW
380312003-09-29 Zack Weinberg <zack@codesourcery.com>
38032
38033 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
38034 initialize dconstp5 and dconstmp5.
38035
177560b2
RH
380362003-09-28 Richard Henderson <rth@redhat.com>
38037
38038 * trans.c (tree_transform): Update call to expand_asm_operands.
38039
f31686a3
RH
380402003-09-21 Richard Henderson <rth@redhat.com>
38041
38042 * trans.c, utils.c: Revert.
38043
7e2af53a
RH
380442003-09-21 Richard Henderson <rth@redhat.com>
38045
38046 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
38047 change to const.
38048
5f1e32fa
MM
380492003-09-04 Michael Matz <matz@suse.de>
38050
38051 * misc.c: Include "target.h".
38052 * Make-lang.in (misc.o): Add dependency on target.h.
38053
61f71b34
DD
380542003-09-03 DJ Delorie <dj@redhat.com>
38055
38056 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
38057 hook.
38058
2ed26f6b
ZW
380592003-08-30 Zack Weinberg <zack@codesourcery.com>
38060
38061 * Makefile.in: Update substitutions to match changes to
38062 configure. Use include directives instead of @-insertions
38063 to read in host and target fragments. Add a rule to
38064 regenerate ada/Makefile.
38065
b2e608ca
NB
380662003-07-18 Neil Booth <neil@daikokuya.co.uk>
38067
38068 * lang-options.h: Remove.
38069 * lang.opt: Add help text.
38070
0cea056b
NS
380712003-07-07 Nathan Sidwell <nathan@codesourcery.com>
38072
38073 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
38074 calls.
38075
cb66e385
NB
380762003-07-06 Neil Booth <neil@daikokuya.co.uk>
38077
38078 * misc.c (gnat_handle_option): Don't handle filenames.
38079
9e94c78f 380802003-07-04 H.J. Lu <hongjiu.lu@intel.com>
8c90b13a
L
38081
38082 * Make-lang.in: Replace PWD with PWD_COMMAND.
38083 * Makefile.adalib: Likewise.
38084 * Makefile.in: Likewise.
38085
9c286213
MK
380862003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
38087
38088 * misc.c (gnat_argv): Revert last change.
38089 (gnat_handle_option, gnat_init_options): Copy arguments.
38090
b9add449
NB
380912003-07-03 Neil Booth <neil@daikokuya.co.uk>
38092
9c286213 38093 * misc.c (gnat_argv): Make const.
b9add449 38094
836d77a9
NB
380952003-07-02 Neil Booth <neil@daikokuya.co.uk>
38096
38097 * misc.c (save_argc, save_argv): Keep non-static!
38098
b86f6cd9
NB
380992003-07-02 Neil Booth <neil@daikokuya.co.uk>
38100
38101 * misc.c (save_argc, save_argv): Make static.
38102 (gnat_init_options): New prototype.
38103 (gnat_init_options): Update.
38104
6344b1f1
MK
381052003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
38106
38107 * gnat_ug.texi: Remove unlikely characters from @vars.
38108 * gnat_ug_vms.texi: Regenerate.
38109
2e040219
NS
381102003-06-27 Nathan Sidwell <nathan@codesourcery.com>
38111
38112 * misc.c (record_code_position): Adjust emit_note call.
38113
9eee5e72
NB
381142003-06-26 Neil Booth <neil@daikokuya.co.uk>
38115
38116 * misc.c (gnat_handle_option): Don't check for missing arguments.
38117
1f9cc6db
NS
381182003-06-20 Nathan Sidwell <nathan@codesourcery.com>
38119
38120 * utils.c (end_subprog_body): Adjust expand_function_end call.
38121
23d6baa3
MK
381222003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
38123
38124 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
38125 Bind_Main_Program.
38126
be43ab4e
NB
381272003-06-15 Neil Booth <neil@daikokuya.co.uk>
38128
38129 * lang.opt: Declare Ada.
38130 * misc.c (gnat_init_options): Update.
38131
ee6b0296
NS
381322003-06-14 Nathan Sidwell <nathan@codesourcery.com>
38133
38134 * utils.c (begin_subprog_body): Adjust init_function_start call.
38135
d7b42618
NB
381362003-06-14 Neil Booth <neil@daikokuya.co.uk>
38137
38138 * Make-lang.in: Update to use options.c and options.h.
38139 * misc.c: Include options.h not aoptions.h.
38140 (gnat_handle_option): Abort on unrecognized switch.
38141 (gnat_init_options): Request Ada switches.
38142
57eb6503
NB
381432003-06-14 Neil Booth <neil@daikokuya.co.uk>
38144
38145 * lang.opt: Add -Wall.
38146 * misc.c (gnat_handle_option): Handle it.
38147
70fd6569
NB
381482003-06-12 Neil Booth <neil@daikokuya.co.uk>
38149
38150 * misc.c (gnat_handle_option): Fix warnings.
38151
8cdea5a1
MK
381522003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
38153
38154 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
38155
3c900cb5
NB
381562003-06-11 Neil Booth <neil@daikokuya.co.uk>
38157
38158 * Make-lang.in: Update to handle command-line options.
38159 * lang.opt: New file.
38160 * misc.c: Include aoptions.h.
38161 (cl_options_count, cl_options): Remove.
38162 (gnat_handle_option): New.
38163 (gnat_decode_option): Remove.
38164 (LANG_HOOKS_DECODE_OPTION): Remove.
38165 (LANG_HOOKS_HANDLE_OPTION): Override.
38166
e8face4c
NN
381672003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
38168
38169 * init.c, misc.c, trans.c, utils.c: Remove dead code.
38170
4665e56c
NN
381712003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
38172
38173 * Makefile.in: Replace "host_canonical" with "host" for autoconf
38174 substitution.
38175
a165c302
NB
381762003-06-08 Neil Booth <neil@daikokuya.co.uk>
38177
38178 * Make-lang.in: Update.
38179 * misc.c: Include opts.h. Define cl_options_count and cl_options.
38180
2772ef3e
NB
381812003-06-07 Neil Booth <neil@daikokuya.co.uk>
38182
38183 * misc.c (gnat_init_options): Update.
38184
d8277a55
MK
381852003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38186
38187 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
38188 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
38189 __attribute__ ((__unused__)).
38190
602a82f3 381912003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
38192
38193 * Make-lang.in: Add support for stageprofile and stagefeedback
38194
3aa07c6d
MK
381952003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
38196
38197 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
38198 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
38199
f1093866
MK
382002003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
38201
38202 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
38203 Remove non-VMS directive.
38204 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
38205 alternatives.
38206 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
38207
382082003-06-04 Olivier Hainque <hainque@act-europe.fr>
38209
6f7f72f9 38210 PR ada/9953
2ed26f6b
ZW
38211 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
38212 and turn ZCX_By_Default back to False since the underlying support
38213 is not quite there yet.
dee2df72 38214
80eaf415
AJ
382152003-06-01 Andreas Jaeger <aj@suse.de>
38216
38217 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
38218 and ROUND_TYPE_SIZE_UNIT.
38219
9e94c78f 382202003-05-22 Geert Bosch <bosch@gnat.com>
36f9020c
GB
38221
38222 * gnat_rm.texi : Remove reference to Ada Core Technologies.
38223
e7b5f0c9
NS
382242003-05-03 Nathan Sidwell <nathan@codesourcery.com>
38225
38226 * trans.c (tree_transform): Use location_t and input_location
38227 directly.
38228 (build_unit_elab): Likewise.
38229 * utils.c (create_label_decl): Likewise.
38230
d479d37f
NS
382312003-05-01 Nathan Sidwell <nathan@codesourcery.com>
38232
561712fe
NS
38233 * trans.c (tree_transform, build_unit_elab,
38234 set_lineno): Rename lineno to input_line.
d479d37f
NS
38235 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
38236 end_subprog_body): Likewise.
38237 * utils2.c (build_call_raise): Likewise.
38238
9e94c78f 382392003-05-01 Laurent Guerby <guerby@acm.org>
4f9335cd 38240
2ed26f6b
ZW
38241 PR ada/10546
38242 * 5iosinte.ads: Increase pthread_cond_t size to match recent
38243 LinuxThread and NPTL version, merge from ACT.
80eaf415 38244
0864034e
ZW
382452003-04-28 Zack Weinberg <zack@codesourcery.com>
38246
38247 * utils.c (convert): No need to clear TREE_CST_RTL.
38248
9e94c78f 382492003-04-23 Geert Bosch <bosch@gnat.com>
bcea76b6
GB
38250
38251 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
38252 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
38253 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
38254 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
38255 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
38256 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
38257 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
38258 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
38259 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
38260 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
38261 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
38262 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
38263 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
38264 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
38265 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
38266 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
38267 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
38268 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
38269 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
38270 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38271 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38272 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
38273 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
38274 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
38275 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
38276 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
38277 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
38278 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
38279 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
38280 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
38281 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
38282 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
38283 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
38284 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
38285 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
38286 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
38287 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
38288 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
38289 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
38290 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
38291 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
38292 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
38293 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
38294 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
38295 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
38296 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
38297 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
38298 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
38299 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
38300 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
38301 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
38302 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
38303 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
38304 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
38305 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
38306 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
38307 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
38308 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
38309 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
38310 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
38311 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
38312 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
38313 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
38314 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
38315 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
38316 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
38317 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
38318 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
38319 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
38320 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
38321 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
38322 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
38323 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
38324 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
38325 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
38326 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
38327 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
38328 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
38329 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
38330 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
38331 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
38332 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
38333 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
38334 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
38335 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
38336 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
38337 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
38338 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
38339 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
38340 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
38341 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
38342 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
38343 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
38344 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
38345 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
38346 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
38347 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
38348 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
38349 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
38350 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
38351 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
38352 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
38353 ali.adb, ali.ads, alloc.ads, argv.c,
38354 atree.adb, atree.ads, atree.h, aux-io.c,
38355 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
38356 binde.adb, binde.ads, binderr.adb, binderr.ads,
38357 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
38358 butil.adb, butil.ads, cal.c, calendar.ads,
38359 casing.adb, casing.ads, ceinfo.adb, checks.adb,
38360 checks.ads, cio.c, comperr.adb, comperr.ads,
38361 config-lang.in, csets.adb, csets.ads, csinfo.adb,
38362 cstand.adb, cstand.ads, cuintp.c, debug.adb,
38363 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
38364 dec-io.ads, dec.ads, deftarg.c, directio.ads,
38365 einfo.adb, einfo.ads, elists.adb, elists.ads,
38366 elists.h, errno.c, errout.adb, errout.ads,
38367 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
38368 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
38369 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
38370 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
38371 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
38372 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
38373 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
38374 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
38375 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
38376 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
38377 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
38378 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
38379 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
38380 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
38381 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
38382 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
38383 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
38384 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
38385 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
38386 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
38387 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
38388 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
38389 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
38390 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
38391 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
38392 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
38393 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
38394 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
38395 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
38396 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
38397 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
38398 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
38399 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
38400 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
38401 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
38402 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
38403 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
38404 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
38405 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
38406 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
38407 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
38408 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
38409 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
38410 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
38411 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
38412 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
38413 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
38414 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
38415 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
38416 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
38417 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
38418 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
38419 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
38420 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
38421 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
38422 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
38423 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
38424 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
38425 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
38426 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
38427 lib.adb, lib.ads, live.adb, live.ads,
38428 machcode.ads, make.adb, make.ads, makeusg.adb,
38429 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
38430 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
38431 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
38432 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
38433 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
38434 mlib.ads, namet.adb, namet.ads, nlists.adb,
38435 nlists.ads, opt.adb, opt.ads, osint-b.adb,
38436 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
38437 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
38438 osint.ads, output.adb, output.ads, par-ch10.adb,
38439 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
38440 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
38441 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
38442 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
38443 par-tchk.adb, par-util.adb, par.adb, par.ads,
38444 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
38445 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
38446 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
38447 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
38448 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
38449 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
38450 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
38451 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
38452 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
38453 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
38454 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
38455 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
38456 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
38457 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
38458 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
38459 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
38460 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
38461 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
38462 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
38463 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
38464 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
38465 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
38466 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
38467 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
38468 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
38469 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
38470 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
38471 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
38472 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
38473 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
38474 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
38475 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
38476 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
38477 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
38478 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
38479 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
38480 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
38481 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
38482 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
38483 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
38484 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
38485 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
38486 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
38487 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
38488 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
38489 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
38490 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
38491 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
38492 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
38493 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
38494 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
38495 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
38496 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
38497 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
38498 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
38499 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
38500 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
38501 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
38502 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
38503 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
38504 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
38505 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
38506 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
38507 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
38508 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
38509 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
38510 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
38511 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
38512 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
38513 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
38514 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
38515 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
38516 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
38517 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
38518 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
38519 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
38520 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
38521 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
38522 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
38523 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38524 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
38525 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
38526 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
38527 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
38528 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
38529 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
38530 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
38531 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
38532 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
38533 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
38534 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
38535 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
38536 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
38537 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
38538 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
38539 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
38540 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
38541 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
38542 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
38543 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
38544 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
38545 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
38546 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
38547 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
38548 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
38549 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
38550 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
38551 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
38552 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
38553 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
38554 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
38555 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
38556 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
38557 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
38558 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
38559 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
38560 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
38561 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
38562 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
38563 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
38564 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
38565 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
38566 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
38567 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
38568 snames.ads, sprint.adb, sprint.ads, stand.adb,
38569 stand.ads, stringt.adb, stringt.ads, style.adb,
38570 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
38571 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
38572 switch-m.ads, switch.adb, switch.ads, system.ads,
38573 table.adb, table.ads, targparm.adb, targparm.ads,
38574 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
38575 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
38576 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
38577 ttypef.ads, ttypes.ads, types.adb, types.ads,
38578 uintp.adb, uintp.ads, uname.adb, uname.ads,
38579 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
38580 usage.adb, usage.ads, validsw.adb, validsw.ads,
38581 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
38582 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
38583 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
38584 formatting and other trivial changes from ACT.
38585
dcf92453
ZW
385862003-04-12 Zack Weinberg <zack@codesourcery.com>
38587
38588 * gigi.h, utils2.c (build_constructor):
38589 Rename gnat_build_constructor. Use build_constructor.
38590 * decl.c (gnat_to_gnu_entity)
38591 * trans.c (tree_transform, pos_to_constructor, extract_values)
38592 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
38593 (unchecked_convert)
38594 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
38595 (fill_vms_descriptor):
38596 Update to match.
38597
d78e771d
ZW
385982003-04-06 Zack Weinberg <zack@codesourcery.com>
38599
38600 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
38601 * misc.c (gnat_tree_size): New function.
38602 (LANG_HOOKS_TREE_SIZE): Override.
38603
78d55cc8
JM
386042003-04-03 Jason Merrill <jason@redhat.com>
38605
38606 * misc.c (gnat_adjust_rli): #if 0.
38607
9e94c78f 386082003-03-31 Geert Bosch <bosch@gnat.com>
b174e2d4
GB
38609
38610 PR ada/10020
38611 * link.c : Fix misspelled "const" keyword
38612
f29a2bd1
MM
386132003-03-23 Mark Mitchell <mark@codesourcery.com>
38614
38615 PR c++/7086
38616 * utils2.c: Adjust calls to put_var_into_stack.
38617
08e247b1
NN
386182003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
38619
38620 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
38621
4bfec483
NB
386222003-03-08 Neil Booth <neil@daikokuya.co.uk>
38623
38624 * misc.c (gnat_init): Update for new prototype.
38625
3d713bb8
GB
386262003-03-05 Olivier Hainque <hainque@gnat.com>
38627
38628 ada/9961
78d55cc8
JM
38629 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
38630 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 38631
8b89fcdf
TT
386322003-03-04 Tom Tromey <tromey@redhat.com>
38633
38634 * Make-lang.in (ada.tags): New target.
38635
3d713bb8 386362003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
38637
38638 ada/9911
38639 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
38640 wrapper, which name remains constant whatever underlying GCC
38641 scheme.
38642
38643 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
38644 the stable interface needed for a-except.
38645
f4ae98be
AJ
386462003-03-02 Andreas Jaeger <aj@suse.de>
38647
38648 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38649 gnat_ug_wnt.texi: Regenerate.
38650
9e94c78f 386512003-03-02 Laurent Guerby <guerby@acm.org>
5348742b 38652
f4ae98be 38653 * Makefile.in (install-gnatlib): Match previous change there
5348742b 38654 so it works.
f4ae98be 38655
8c108db2
AS
386562003-02-28 Andreas Schwab <schwab@suse.de>
38657
38658 * Make-lang.in (install-gnatlib): Change to ada directory before
38659 running make instead of using ada/Makefile directly.
38660
601d71bc
BE
386612003-02-18 Ben Elliston <bje@redhat.com>
38662
6f7f72f9 38663 Part of PR ada/9406
601d71bc
BE
38664 * gnat_ug.texi (Binder output file): Grammar fix.
38665
bf7c02dd
BE
386662003-02-18 Ben Elliston <bje@redhat.com>
38667
38668 PR other/7350
38669 * 5qtaprop.adb (Sleep): Fix typo in comment.
38670
b3a8389d
JM
386712003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
38672
38673 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
38674 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38675 gnat_ug_wnt.texi: Regenerate.
38676
9e94c78f 386772003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5da14cb5
CC
38678
38679 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
38680 be created if necessary.
38681 (ada.install-common): Let $(DESTDIR)$(bindir) be created
38682 if necessary. Remove erroneous and redundant gnatchop
38683 installation commands. Test for gnatdll before attempting
38684 to install it.
38685 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
38686 and gnatdll from all plausible locations.
38687
271bd540
RS
386882003-02-01 Richard Sandiford <rsandifo@redhat.com>
38689
38690 * utils2.c (build_unary_op): Don't check flag_volatile.
38691 * gnat_ug.texi: Remove -fvolatile from example.
38692 * gnat_ug_vxw.texi: Likewise.
38693
9e94c78f 386942003-01-29 Laurent Guerby <guerby@acm.org>
c1cc6a51 38695
d78e771d
ZW
38696 PR ada/8344
38697 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
38698 * Makefile.in: match previous change.
38699 * Make-lang.in: match previous change.
c1cc6a51 38700
9e94c78f 387012003-01-29 Joel Sherrill <joel@OARcorp.com>
c4039eb0
JS
38702
38703 * 5rosinte.ads: Add SIGXCPU.
38704 * 5rtpopsp.adb: New file.
38705 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
38706 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
38707 specific file 5rtpopsp.adb.
38708 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
38709 is likely needed for all newlib targets.
38710 * init.c: Add RTEMS specific version of __gnat_initialize().
38711
00d29f7d
RO
387122003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38713
38714 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
38715
437026ef
RO
387162003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38717
38718 * init.c (__gnat_error_handler): Make msg const.
38719
38720 * gmem.c (convert_addresses): Move declaration ...
38721 * adaint.h: ... here.
38722 * adaint.c (convert_addresses): Adapt addrs type to match
38723 prototype.
38724
38725 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
38726
e12825cd
AS
387272003-01-24 Andreas Schwab <schwab@suse.de>
38728
38729 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
38730 size_t to avoid warning.
38731
a8729406
ZW
387322003-01-21 Zack Weinberg <zack@codesourcery.com>
38733
b09b91b9 38734 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 38735
17211ab5
GK
387362003-01-09 Geoffrey Keating <geoffk@apple.com>
38737
38738 * gnat_rm.texi: Remove RCS version number.
38739
38740 * ada-tree.h (union lang_tree_node): Add chain_next option.
38741
1d27195c
CC
387422003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
38743
38744 * Make-lang.in (ada.install-info, ada.install-common,
38745 ada.uninstall): Prepend $(DESTDIR) to the destination
38746 directory in all (un)installation commands.
38747 * Makefile.in (install-gnatlib, install-rts): Ditto.
38748
bdefb2ab
JM
387492002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
38750
38751 * gnat_rm.texi, gnat_ug.texi: Use @copying.
38752 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38753 gnat_ug_wnt.texi: Regenerate.
38754
46d40353
JM
387552002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
38756
38757 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
38758 only.
38759 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
38760 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
38761 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
38762 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
38763 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
38764 $(srcdir)/doc/include/gcc-common.texi.
38765
9e94c78f 387662002-12-15 Geert Bosch <bosch@gnat.com>
d2f97d3e
GB
38767
38768 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
38769
9e94c78f 387702002-12-14 Geert Bosch <bosch@gnat.com>
93a81b02 38771
6f7f72f9 38772 PR ada/5690
4977bab6
ZW
38773 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
38774 case of a body created for a Renaming_As_Body, on which
6f7f72f9 38775 conformance checks are not performed.
4977bab6
ZW
38776
387772002-11-30 Zack Weinberg <zack@codesourcery.com>
38778
38779 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
38780 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
38781 not already included.
38782 * Make-lang.in: Update dependencies.
93a81b02 38783
dfc15546
NN
387842002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
38785 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 38786 solution to buffer overflow bug on GNU/Linux.
dfc15546 38787
8b54424d 387882002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9
EB
38789
38790 PR ada/5856
38791 PR ada/6919
8b54424d
NN
38792 * bindgen.adb: Remove all references to Public_Version.
38793 * comperr.adb: Remove all references to Public_Version and
38794 GNATPRO_Version; correct bug reporting instructions.
38795 * comperr.ads: Change to match bug box.
38796 * gnatvsn.ads: Remove all references to Public version and
38797 GNATPRO version.
38798
cc41268d 387992002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 38800
1a083c0e
NN
38801 PR ada/6919
38802 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
38803 GNU/Linux.
38804
cc41268d
NN
38805 PR ada/6558
38806 * config-lang.in: Remove diff_excludes.
38807
1c7b0712 388082002-11-05 Graham Stott <graham.stott@btinternet.com>
6f7f72f9 38809
1c7b0712
GS
38810 PR ada/8358
38811 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 38812 (build_unit_elab): Use..
1c7b0712 38813
9e94c78f 388142002-10-30 Geert Bosch <bosch@gnat.com>
6f7f72f9 38815
1c4048ca
GB
38816 PR ada/6558
38817 * misc.c : Include optabs.h
38818
38819 * Make-lang.in (misc.o): Add dependency on optabs.h
38820
9e94c78f 388212002-10-29 Geert Bosch <bosch@gnat.com>
6f7f72f9 38822
4977bab6 38823 PR ada/6558
f0d96f9c
GB
38824 * Make-lang.in (gnatbind): Depend on CONFIG_H
38825
a7512dec 388262002-10-29 Geert bosch <bosch@gnat.com>
6f7f72f9 38827
4977bab6
ZW
38828 PR ada/6558
38829 * misc.c: Unrevert misc.c (1.13)
a7512dec 38830
c6362f4f
NN
388312002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
38832
38833 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
38834 maintainership comments.
38835
388362002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6f7f72f9 38837
91ed4b19 38838 PR ada/5904
4977bab6
ZW
38839 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
38840 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
38841 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
38842 7staprop.adb: Correct statements in comments about
91ed4b19
NN
38843 maintainership of GNAT.
38844
1f02b6af 38845 PR ada/5904
4977bab6
ZW
38846 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
38847 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
38848 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
38849 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
38850 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
38851 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
38852 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
38853 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
38854 comments about maintainership of GNAT.
38855
71ff80dc 38856 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
38857 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
38858 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
38859 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
38860 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
38861 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
38862 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
38863 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
38864 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
38865 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
38866 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
38867 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
38868 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
38869 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
38870 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
38871 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
38872 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
38873 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
38874 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
38875 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
38876 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
38877 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
38878 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
38879 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
38880 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
38881 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
38882 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
38883 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
38884 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
38885 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
38886 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
38887 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
38888 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
38889 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
38890 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
38891 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
38892 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
38893 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
38894 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
38895 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
38896 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
38897 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
38898 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
38899 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
38900 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
38901 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
38902 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
38903 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
38904 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
38905 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
38906 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
38907 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
38908 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
38909 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
38910 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
38911 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
38912 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
38913 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
38914 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
38915 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
38916 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
38917 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
38918 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
38919 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
38920 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
38921 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
38922 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
38923 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
38924 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
38925 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
38926 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
38927 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
38928 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
38929 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
38930 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
38931 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
38932 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
38933 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
38934 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
38935 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
38936 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
38937 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
38938 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
38939 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
38940 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
38941 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
38942 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
38943 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
38944 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
38945 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
38946 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
38947 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
38948 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
38949 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
38950 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
38951 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
38952 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
38953 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
38954 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
38955 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
38956 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
38957 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
38958 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
38959 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
38960 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
38961 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
38962 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
38963 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
38964 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
38965 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
38966 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
38967 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
38968 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
38969 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
38970 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
38971 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
38972 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
38973 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
38974 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
38975 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
38976 par-endh.adb par-labl.adb par-load.adb par-prag.adb
38977 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
38978 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
38979 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
38980 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
38981 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
38982 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
38983 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
38984 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
38985 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
38986 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
38987 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
38988 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
38989 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
38990 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
38991 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
38992 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
38993 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
38994 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
38995 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
38996 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
38997 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
38998 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
38999 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
39000 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
39001 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
39002 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
39003 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
39004 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
39005 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
39006 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
39007 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
39008 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
39009 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
39010 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
39011 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
39012 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
39013 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
39014 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
39015 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
39016 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
39017 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
39018 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
39019 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
39020 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
39021 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
39022 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
39023 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
39024 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
39025 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
39026 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
39027 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
39028 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
39029 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
39030 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
39031 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
39032 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
39033 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
39034 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
39035 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
39036 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
39037 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
39038 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
39039 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
39040 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
39041 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
39042 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
39043 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
39044 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
39045 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
39046 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
39047 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
39048 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
39049 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
39050 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
39051 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
39052 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
39053 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
39054 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
39055 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
39056 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
39057 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
39058 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
39059 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
39060 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
39061 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
39062 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
39063 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
39064 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
39065 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
39066 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
39067 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
39068 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
39069 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
39070 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
39071 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
39072 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
39073 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
39074 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
39075 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
39076 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
39077 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
39078 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
39079 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
39080 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
39081 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
39082 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
39083 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
39084 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
39085 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
39086 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
39087 stringt.ads stringt.h style.adb style.ads stylesw.adb
39088 stylesw.ads switch.adb switch.ads sysdep.c system.ads
39089 table.adb table.ads targparm.adb targparm.ads targtyps.c
39090 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
39091 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
39092 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
39093 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
39094 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
39095 usage.ads utils.c utils2.c validsw.adb validsw.ads
39096 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
39097 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
39098 xtreeprs.adb: Correct statements in comments about maintainership
39099 of GNAT.
39100
b4f94ac1
ZW
391012002-09-23 Zack Weinberg <zack@codesourcery.com>
39102
39103 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
39104 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
39105 * gnatvsn.ads: Gnat_Version_String is now a function.
39106 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
39107 copy the C version_string into a String and return it.
39108 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
39109 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
39110 Remove pragma Ident (Gnat_Version_String). If this was the
39111 sole use of package Gnatvsn, remove the with statement too.
39112 * gnat1drv.adb: Tweak -gnatv output.
39113
eaff3bf8
RH
391142002-09-17 Richard Henderson <rth@redhat.com>
39115
39116 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
39117 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
39118 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
39119 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
39120 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
39121 and real_2expN instead of a loop.
39122 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
39123 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
39124
9e94c78f
EB
391252002-08-25 Andre Leis <a.leis@gmx.net>
39126 David Billinghurst <David.Billinghurst@riotinto.com>
d241f75b 39127
f4ae98be 39128 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 39129
4320085a
RO
391302002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39131
39132 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
39133 Remove $(CONFIG_H) dependency.
39134
22aa533e
NS
391352002-08-08 Nathan Sidwell <nathan@codesourcery.com>
39136
39137 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
39138
1dcd444b
KG
391392002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39140
39141 * adadecode.c (ada_demangle): Use xstrdup in lieu of
39142 xmalloc/strcpy.
39143 * misc.c (gnat_decode_option): Likewise.
39144
7bc7d27b
FW
391452002-07-15 Florian Weimer <fw@deneb.enyo.de>
39146
39147 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39148 function approach did not work well because of a side effect (the
39149 function call could reallocate the table which was being indexed
39150 using its result). Fixes ada/4851. [RESURRECTED]
39151
6a2dd09a
RS
391522002-07-01 Roger Sayle <roger@eyesopen.com>
39153
39154 * ada/utils.c (builtin_function): Accept an additional parameter.
39155
c168bbd7
AJ
391562002-06-28 Andreas Jaeger <aj@suse.de>
39157
39158 PR ada/7144
39159 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
39160 <adi@thur.de>.
39161
b41e09a7
KG
391622002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39163
39164 * Makefile.in (SHELL): Set to @SHELL@.
39165
62c71f4b
KG
391662002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39167
39168 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
39169 array size calculation.
39170
94213cff
AJ
391712002-06-04 Andreas Jaeger <aj@suse.de>
39172
39173 * Make-lang.in (gnatbind): Readd rule that has been lost in last
39174 patch.
39175
e2500fed
GK
391762002-06-03 Geoffrey Keating <geoffk@redhat.com>
39177
39178 Merge from pch-branch:
39179
39180 * config-lang.in (gtfiles): Add ada-tree.h.
39181 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
39182 (SET_TYPE_MODULUS): New.
39183 (SET_TYPE_INDEX): New.
39184 (SET_TYPE_DIGITS_VALUE): New.
39185 (SET_TYPE_RM_SIZE): New.
39186 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
39187 (SET_TYPE_ADA_SIZE): New.
39188 (SET_TYPE_ACTUAL_BOUNDS): New.
39189 (SET_DECL_CONST_CORRESPONDING_VAR): New.
39190 (SET_DECL_ORIGINAL_FIELD): New.
39191 (TREE_LOOP_ID): Correct typo.
39192 * decl.c: Use new macros.
39193 * utils.c: Include debug.h, use new macros.
94213cff 39194 * utils2.c: Use new macros.
e2500fed
GK
39195
39196 * ada-tree.h: Update all macros for new tree description.
39197 (struct tree_loop_id): New.
39198 (union lang_tree_node): New.
39199 (struct lang_decl): New.
39200 (struct lang_type): New.
39201 * misc.c (gnat_mark_tree): Delete.
39202 (LANG_HOOKS_MARK_TREE): Delete.
39203 * trans.c (tree_transform): No longer any need to cast
39204 for TREE_LOOP_ID.
39205
39206 * utils.c (struct language_function): New dummy structure.
39207
39208 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
39209 (misc.o): Likewise.
39210 (utils.o): Likewise; also gtype-ada.h.
39211 * Make-lang.in (gnat1): Add dependency on s-gtype.
39212 (gnatbind): Add dependency on $(CONFIG_H).
39213 * utils.c: Correct last #include.
39214 (stuct e_stack): Remove unnecessary 'static'.
39215 (mark_e_stack): Remove unused prototype.
39216
39217 * scn-nlit.adb: Remove whitespace after version number to
39218 keep lines under 80 chars.
39219 * snames.adb: Likewise.
39220 * treepr.ads: Likewise.
94213cff 39221
e2500fed
GK
39222 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
39223 (misc.o): Likewise.
39224 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
39225 * config-lang.in (gtfiles): New.
39226 * decl.c: Use gengtype for roots.
39227 * gigi.h: Use gengtype for roots.
39228 * trans.c: Use gengtype for roots.
39229 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
39230
27e511e0
GDR
392312002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
39232
39233 * misc.c (gnat_init): Adjust setting of internal_error_function.
39234
113dc143
JM
392352002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
39236
39237 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
39238 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39239 gnat_ug_wnt.texi: Regenerate.
39240
5321fb3e
FW
392412002-05-31 Florian Weimer <fw@deneb.enyo.de>
39242
15e6136e
FW
39243 * 5ntaprop.adb (with System.OS_Primitives): Remove.
39244
019310ac
FW
39245 * cstreams.c (max_path_len): Move from here ...
39246 * adaint.c (__gnat_max_path_len): ... to here.
39247 * adaint.c (__gnat_max_path_len): Declare.
39248 * g-dirope.adb (Max_Path): Adjust.
39249 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 39250 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
39251 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
39252 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
39253
5321fb3e
FW
39254 * Makefile.in, Make-lang.in: Documentation is now built in
39255 Make-lang.in. Store Info and generated Texinfo files in the
39256 source directory.
39257 * gnat_ug.texi: Remove CVS keywords, correct version number.
39258 Set file name correctly.
39259
39260 * gnat_ug_*.texi: Add.
39261 * .cvsignore: Ignore generated Texinfo files.
39262
b1c12c4b
ZW
392632002-05-30 Zack Weinberg <zack@codesourcery.com>
39264
39265 * ada.h: Add MI guard macro.
39266 (SUBTYPE): Define constants with an anonymous enum, not static
39267 const variables.
39268 (IN): Cast constants to appropriate type before use.
39269
ead33da9
JM
392702002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
39271
39272 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
39273 (experimental)".
39274
7d600178
RO
392752002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39276
39277 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
39278 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
39279 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
39280 (ALL_ADA_CFLAGS): Likewise.
39281 (ADA_INCLUDES): Likewise.
39282 Adapt for new working dir.
39283 (GNATBIND): Use Makefile.in version.
39284 (.SUFFIXES): Copy from Makefile.in.
39285 (ada-warn): Define.
39286 (.adb.o, .ads.o): Copy from Makefile.in.
39287 Added $(OUTPUT_OPTION).
39288 (GNAT1_C_OBJS): Moved from Makefile.in.
39289 Prefix with ada subdir.
39290 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
39291 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
39292 Adapt for new working dir.
39293 (EXTRA_GNATBIND_OBJS): Likewise.
39294 (ADA_BACKEND): Moved from Makefile.in.
39295 Renamed to avoid conflict with global BACKEND.
39296 Use that one.
39297 (TARGET_ADA_SRCS): Moved from Makefile.in.
39298 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
39299 Use ADA_BACKEND.
39300 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
39301 (ada_extra_files): Moved from Makefile.in.
39302 Prefix with ada subdir.
39303 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
39304 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
39305 (ada/nmake.ads): Likewise.
39306 (update-sources): Moved from Makefile.in.
39307 Prefix with ada subdir.
39308 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
39309 (ADA_TREE_H): Likewise.
39310 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
39311 (ada/memtrack.o): Likewise.
39312 (ada/adadecode.o): Likewise.
39313 Update dependencies.
39314 (ada/adaint.o): New.
39315 (ada/argv.o): Moved from Makefile.in.
39316 Prefix with ada subdir.
94213cff 39317 Update dependencies.
7d600178
RO
39318 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
39319 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
39320 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
39321 Prefix with ada subdir.
39322 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
39323 (GNAT DEPENDENCIES): Regenerate.
39324 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
39325 toplevel Makefile.in.
39326 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
39327 (TARGET_ADA_SRCS): Removed.
39328 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
39329 (GNATBIND_OBJS): Likewise.
39330 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
39331 (BACKEND): Removed.
39332 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
39333 (TREE_H): Likewise.
39334 (ada_extra_files): Likewise.
39335 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
39336 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
39337 (update-sources): Likewise.
39338 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
39339 (ADA_TREE_H): Likewise.
39340 (adadecoce.o): Likewise.
39341 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
39342 (GNAT DEPENDENCIES): Likewise.
39343
1e6347d8
RO
393442002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39345
39346 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
39347 * Makefile.in: Likewise.
39348
db80834f
RO
393492002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39350
39351 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
39352 Restore $(CONFIG_H) and prefix.o dependencies.
39353 (ada.stage[1-4]): Depend on stage?-start.
39354
39355 * Makefile.in (b_gnatb.c): Depend on interfac.o.
39356
ac293f98
JW
393572002-05-02 Jim Wilson <wilson@redhat.com>
39358
39359 * utils.c (finish_record_type): Change record_size to record_type.
39360
b303008e
JDA
393612001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
39362
39363 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
39364 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
39365 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 39366
ff45c01e
NB
393672002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
39368
39369 * misc.c (gnat_parse_file): Update.
39370
349ae713
NB
393712002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
39372
39373 * misc.c (gnat_init): Don't set lang_attribute_common.
39374
ace133aa
JM
393752002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
39376
39377 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
39378
5c558dd9
FW
393792002-04-21 Florian Weimer <fw@deneb.enyo.de>
39380
b4f94ac1 39381 * gnat_ug.texi: New file.
88e1739c 39382
5c558dd9
FW
39383 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
39384 instead of gfdl.texi
39385
39386 * xgnatug.adb, ug_words: New files.
39387
39388 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 39389 gnat_rm and gnat-style manuals.
5c558dd9 39390
7a228918
NB
393912002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
39392
39393 * gigi.h (incomplete_type_error): Remove.
39394 * utils.c (incomplete_type_error): Remove.
39395
b2123dc0
MM
393962002-04-16 Mark Mitchell <mark@codesourcery.com>
39397
39398 * trans.c (tree_transform): Add has_scope argument to
39399 expand_start_stmt_expr.
39400
78ef5b89
NB
394012002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39402
39403 * gigi.h (truthvalue_conversion): Rename.
39404 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
39405 * trans.c (tree_transform): Update.
39406 * utils2.c (truthvalue_conversion): Rename, update.
39407 (build_binary_op, build_unary_op): Update.
39408
a71742a8
LG
394092002-04-04 Laurent Guerby <guerby@acm.org>
39410
39411 * make.adb: Implement -margs, remove restriction about file name placement.
39412 * makeusg.adb: Documentation update.
39413 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
39414 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
39415
82a4b025
NB
394162002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
39417
39418 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
39419 (builtin_function): Similarly.
39420
dffd7eb6
NB
394212002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39422
39423 * decl.c (gnat_to_gnu_entity): Update.
39424 * gigi.h (mark_addressable): Rename.
39425 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
39426 * trans.c (tree_transform): Update.
39427 * utils.c (create_var_decl): Update.
39428 * util2.c (build_binary_op, build_unary_op,
39429 fill_vms_descriptor): Update.
39430 (mark_addressable): Rename, update.
39431
ceef8ce4
NB
394322002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
39433
39434 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
39435 Rename.
39436 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
39437 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
39438 * trans.c (tree_transform, convert_with_check): Update.
39439 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
39440 Rename.
39441
48a7a235
NB
394422002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
39443
39444 * gigi.h (finish_incomplete_decl): Rename.
39445 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
39446 * utils.c (gnat_init_decl_processing): Don't set hook.
39447 (finish_incomplete_decl): Rename.
39448
1d5af871
AS
394492002-03-29 Andreas Schwab <schwab@suse.de>
39450
39451 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
39452 directory.
39453
9e94c78f 394542001-03-28 Robert Dewar <dewar@gnat.com>
8cbb664e
MG
39455
39456 * checks.ads:
39457 (Remove_Checks): New procedure
39458
39459 * checks.adb:
39460 (Remove_Checks): New procedure
39461
39462 * exp_util.adb:
39463 Use new Duplicate_Subexpr functions
39464 (Duplicate_Subexpr_No_Checks): New procedure
39465 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39466 (Duplicate_Subexpr): Restore original form (checks duplicated)
39467 (Duplicate_Subexpr): Call Remove_Checks
39468
82a4b025 39469 * exp_util.ads:
8cbb664e
MG
39470 (Duplicate_Subexpr_No_Checks): New procedure
39471 (Duplicate_Subexpr_No_Checks_Orig): New procedure
39472 Add 2002 to copyright notice
39473
39474 * sem_util.adb: Use new Duplicate_Subexpr functions
39475
82a4b025 39476 * sem_eval.adb:
8cbb664e
MG
39477 (Eval_Indexed_Component): This is the place to call
39478 Constant_Array_Ref and to replace the value. We simply merge
39479 the code of this function in here, since it is now no longer
39480 used elsewhere. This fixes the problem of the back end not
39481 realizing we were clever enough to see that this was
39482 constant.
39483 (Expr_Val): Remove call to Constant_Array_Ref
39484 (Expr_Rep_Val): Remove call to Constant_Array_Ref
39485 Minor reformatting
39486 (Constant_Array_Ref): Deal with string literals (patch
39487 suggested by Zack Weinberg on the gcc list)
39488
9e94c78f 394892001-03-28 Ed Schonberg <schonber@gnat.com>
8cbb664e 39490
82a4b025 39491 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
39492 Duplicate_Subexpr_Move_Checks.
39493
82a4b025 39494 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
39495 Duplicate_Subexpr_Move_Checks.
39496
82a4b025
NB
39497 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
39498 value of array exists before retrieving it (it may a private
8cbb664e
MG
39499 protected component in a function).
39500
9e94c78f 395012002-03-28 Geert Bosch <bosch@gnat.com>
792c4e74
GB
39502
39503 * prj-pp.adb : New file.
39504
39505 * prj-pp.ads : New file.
39506
915e8bad
AJ
395072002-03-28 Andreas Jaeger <aj@suse.de>
39508
39509 * Makefile.in (stamp-sdefault): Fix path for Makefile.
39510
0840811c
NB
395112002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
39512
39513 * misc.c (gnat_expand_expr): Move prototype.
39514
7ffb4fd2
NB
395152002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39516
39517 * misc.c (insert_default_attributes): Remove.
39518
c9d892a8
NB
395192002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39520
39521 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
39522 (gnat_init): Don't set hook.
39523 (gnat_expand_expr): Fix prototype.
39524
31c816cf
NB
395252002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
39526
39527 * misc.c (ggc_p): Remove.
39528
ef83161c
GB
395292002-03-27 Geert Bosch <bosch@gnat.com>
39530
39531 * prj-makr.ads, prj-makr.adb : New files.
39532
4f0ade92
NB
395332002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
39534
39535 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
39536 (lang_mark_tree): Make static, rename.
39537
c88770e9
NB
395382002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
39539
39540 * misc.c (maybe_build_cleanup): Remove.
39541
05671968
NB
395422002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
39543
39544 * gigi.h (yyparse): Remove.
39545
ad42149c
FW
395462002-03-23 Florian Weimer <fw@deneb.enyo.de>
39547
9e94c78f 39548 From Ben Brosgol <brosgol@gnat.com>
82a4b025 39549 * gnat_rm.texi: Sync with ACT version.
ad42149c 39550
7afff7cf
NB
395512002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
39552
39553 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
39554 (gnat_init): Remove old hook.
39555
52dabb6c
NB
395562002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
39557
39558 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
39559 (yyparse): Rename gnat_parse_file.
39560
6cbcc541
GK
395612002-03-14 Geoffrey Keating <geoffk@redhat.com>
39562
39563 Delete all lines containing "$Revision:".
39564 * xeinfo.adb: Don't look for revision numbers.
39565 * xnmake.adb: Likewise.
39566 * xsinfo.adb: Likewise.
39567 * xsnames.adb: Likewise.
39568 * xtreeprs.adb: Likewise.
39569
2f9834e8
KG
395702002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39571
39572 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
39573 gnat_tree_code_name): Delete.
39574 (tree_code_type, tree_code_length, tree_code_name): Define.
39575 (gnat_init): Don't try to copy into the various tree_code
39576 arrays.
39577
63adb4ff
RH
395782002-03-11 Richard Henderson <rth@redhat.com>
39579
39580 * Makefile.in (.NOTPARALLEL): Add fake tag.
39581
43ff4547
GB
395822002-03-07 Geert Bosch <bosch@gnat.com>
39583
82a4b025
NB
39584 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
39585 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
39586 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
39587 switch-m.adb, switch-m.ads : New files.
39588
07fc65c4
GB
395892002-03-07 Geert Bosch <bosch@gnat.com>
39590
39591 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
39592 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
39593 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
39594 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
39595 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
39596 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
39597 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
39598 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
39599 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
39600 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
39601 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
39602 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
39603 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
39604 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
39605 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
39606 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
39607 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
39608 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
39609 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39610 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
39611 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
39612 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
39613 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
39614 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
39615 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
39616 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
39617 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
39618 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
39619 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
39620 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
39621 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
39622 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
39623 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
39624 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
39625 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39626 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
39627 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39628 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
39629 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
39630 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
39631 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
39632 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
39633 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
39634 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
39635 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
39636 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
39637 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
39638 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
39639 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
39640 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
39641 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
39642 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
39643 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
39644 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
39645 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
39646 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
39647 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
39648 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
39649 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
39650 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
39651 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
39652 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
39653 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
39654 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
39655 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
39656 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
39657 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
39658 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
39659 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
39660 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
39661 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
39662 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
39663 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
39664 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
39665 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
39666 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39667 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
39668 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39669 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
39670 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39671 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
39672 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
39673 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
39674 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
39675 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
39676 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
39677 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
39678 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
39679 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
39680 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
39681 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
39682 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
39683 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
39684 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
39685 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
39686 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
39687 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
39688
39689 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
39690 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
39691 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
39692 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
39693
39694 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
39695 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
39696
39697 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
39698 to mdll-fil.ad[bs] and mdll-util.ad[bs]
39699
39700 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
39701 from mdllfile.ad[bs] and mdlltool.ad[bs]
39702
ca7558fc
KG
397032002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39704
39705 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
39706 lieu of explicit sizeof/sizeof.
39707
63e1b1c4
NB
397082002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
39709
39710 * misc.c (copy_lang_decl): Remove.
39711
f458d1d5
ZW
397122002-02-27 Zack Weinberg <zack@codesourcery.com>
39713
39714 * misc.c: Delete traditional-mode-related code copied from the
39715 C front end but not used, or used only to permit the compiler
39716 to link.
39717
21e09952
RH
397182002-02-07 Richard Henderson <rth@redhat.com>
39719
39720 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
39721 * adaint.h (__gnat_to_gm_time): Update prototype.
39722
ead39bdf 397232002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
39724
39725 * trans.c (tree_transform) [N_Loop_Statement]: Use
39726 expand_exit_loop_top_cond.
39727
72ac12bf
RH
397282001-12-23 Richard Henderson <rth@redhat.com>
39729
39730 * utils.c (end_subprog_body): Push GC context around
39731 rest_of_compilation for nested functions.
39732
14aacce7
RH
397332001-12-23 Richard Henderson <rth@redhat.com>
39734
39735 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
39736
b3d45d87
FW
397372001-12-23 Florian Weimer <fw@deneb.enyo.de>
39738
ece2d1b8
FW
39739 * gnat-style.texi (Declarations and Types): Remove ancient style
39740 rule which was mandated by code generation issues.
82a4b025 39741
b3d45d87
FW
39742 * gnat-style.texi (header): Add @dircategory, @direntry.
39743 (title page): Remove date.
39744 (general) Add @./@: where approriate, and two spaces after the
39745 full stop at the end of a sentence. Use @samp markup when
39746 referring concrete lexical entities (keywords, attribute names
39747 etc.), and @syntax for ARM grammar elements. Use @r for English
39748 text in comments. Use @emph for emphasis. Change "if-statements"
39749 etc. to "if statements" (without @samp). Break long lines. Make
39750 casing of section names consistent.
39751 (Identifiers): Use @samp markup for variable names.
39752 (Comments): Use @samp markup for comment characters. Line-end
39753 comments may follow any Ada code, not just statements. Fix
39754 misspelling of "Integer" as "integer".
39755 (Loop statements): Do not use variable name "I", use "J".
39756 (Subprogram Declarations): Document alignment.
39757 (Subprogram Bodies, Block statements): Document empty line before
39758 "begin".
39759
7a73ad55
FW
397602001-12-22 Florian Weimer <fw@deneb.enyo.de>
39761
39762 * make.adb (Add_Switch): Make Generic_Position a procedure. The
39763 function approach did not work well because of a side effect (the
39764 function call could reallocate the table which was being indexed
39765 using its result). Fixes ada/4851.
39766
9e94c78f 397672001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
39768
39769 * bindgen.adb: Minor reformatting
82a4b025 39770
17c5c8a5 39771 * cstand.adb: Minor reformatting
82a4b025 39772
17c5c8a5
GB
39773 * fmap.adb: Minor reformatting
39774 Change name from Add for Add_To_File_Map (Add is much too generic)
39775 Change Path_Name_Of to Mapped_Path_Name
39776 Change File_Name_Of to Mapped_File_Name
39777 Fix copyright dates in header
82a4b025 39778
17c5c8a5
GB
39779 * fmap.ads:
39780 Change name from Add for Add_To_File_Map (Add is much too generic)
39781 Change Path_Name_Of to Mapped_Path_Name
39782 Change File_Name_Of to Mapped_File_Name
39783 Fix copyright dates in header
82a4b025 39784
17c5c8a5
GB
39785 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
39786 Add use clause for Fmap.
82a4b025 39787
17c5c8a5 39788 * make.adb: Minor reformatting
82a4b025 39789
17c5c8a5
GB
39790 * osint.adb: Minor reformatting. Change of names in Fmap.
39791 Add use clause for Fmap.
82a4b025 39792
17c5c8a5 39793 * prj-env.adb: Minor reformatting
82a4b025 39794
17c5c8a5 39795 * prj-env.ads: Minor reformatting
82a4b025 39796
07fc65c4
GB
39797 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
39798 error found (there were odd exceptions to this general rule in
17c5c8a5 39799 -gnatec/-gnatem processing)
82a4b025 39800
9e94c78f 398012001-12-19 Olivier Hainque <hainque@gnat.com>
17c5c8a5 39802
07fc65c4
GB
39803 * raise.c (__gnat_eh_personality): Exception handling personality
39804 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 39805 and still containing a bunch of debugging artifacts.
07fc65c4 39806 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 39807 inspired from the C++ library.
82a4b025 39808
07fc65c4 39809 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 39810 exception handling integration.
82a4b025 39811
9e94c78f 398122001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5
GB
39813
39814 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
39815 (HIE_SOURCES): Add s-secsta.ad{s,b}.
39816 (HIE_OBJS): Add s-fat*.o
07fc65c4 39817 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
39818 interrupt handling files.
39819 (RAVEN_MOD): Removed, no longer needed.
82a4b025 39820
9e94c78f 398212001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
39822
39823 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
39824 Add 2001 to copyright date
82a4b025 39825
07fc65c4 39826 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 39827 need to force universal inlining for these cases.
82a4b025 39828
9e94c78f 398292001-12-19 Arnaud Charlet <charlet@gnat.com>
17c5c8a5 39830
07fc65c4 39831 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 39832 Ravenscar HI.
82a4b025 39833
17c5c8a5
GB
39834 * exp_ch7.adb: Allow use of secondary stack in HI mode.
39835 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 39836
9e94c78f 398372001-12-19 Vincent Celier <celier@gnat.com>
17c5c8a5 39838
07fc65c4 39839 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 39840 Pkg_Id and Case_Insensitive.
82a4b025 39841
9e94c78f 398422001-12-19 Pascal Obry <obry@gnat.com>
17c5c8a5
GB
39843
39844 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 39845
9e94c78f 398462001-12-19 Robert Dewar <dewar@gnat.com>
17c5c8a5
GB
39847
39848 * prj-tree.ads: Minor reformatting
39849
38be19f6
JM
398502001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
39851
39852 * config-lang.in (diff_excludes): Remove.
39853
9e94c78f 398542001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 39855
07fc65c4
GB
39856 * sem_res.adb (Resolve_Selected_Component): do not generate a
39857 discriminant check if the selected component is a component of
6510f4c9
GB
39858 the argument of an initialization procedure.
39859
07fc65c4
GB
39860 * trans.c (tree_transform, case of arithmetic operators): If result
39861 type is private, the gnu_type is the base type of the full view,
6510f4c9 39862 given that the full view itself may be a subtype.
82a4b025 39863
9e94c78f 398642001-12-17 Robert Dewar <dewar@gnat.com>
6510f4c9
GB
39865
39866 * sem_res.adb: Minor reformatting
82a4b025 39867
07fc65c4
GB
39868 * trans.c (tree_transform, case N_Real_Literal): Add missing third
39869 parameter in call to Machine (unknown horrible effects from this
6510f4c9 39870 omission).
82a4b025 39871
6510f4c9
GB
39872 * urealp.h: Add definition of Round_Even for call to Machine
39873 Add third parameter for Machine
82a4b025 39874
9e94c78f 398752001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 39876
07fc65c4 39877 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 39878 predefined units in No_Run_Time mode.
82a4b025 39879
9e94c78f 398802001-12-17 Richard Kenner <kenner@gnat.com>
6510f4c9
GB
39881
39882 * misc.c (insn-codes.h): Now include.
82a4b025 39883
9e94c78f 398842001-12-17 Olivier Hainque <hainque@gnat.com>
6510f4c9 39885
07fc65c4 39886 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
39887 exception handling mechanism
39888 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
39889 to factorize previous code sequences and make them externally callable,
39890 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
39891 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
39892 Use the new notification routines.
82a4b025 39893
9e94c78f 398942001-12-17 Emmanuel Briot <briot@gnat.com>
6510f4c9
GB
39895
39896 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 39897
9e94c78f 398982001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9 39899
07fc65c4 39900 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 39901 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 39902
07fc65c4 39903 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 39904 mode on 32 bits targets.
82a4b025 39905
9e94c78f 399062001-12-17 Vincent Celier <celier@gnat.com>
6510f4c9
GB
39907
39908 * fmap.adb: Initial version.
82a4b025 39909
6510f4c9 39910 * fmap.ads: Initial version.
82a4b025 39911
6510f4c9
GB
39912 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
39913 If search is successfully done, add to mapping.
82a4b025 39914
6510f4c9 39915 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 39916
6510f4c9
GB
39917 * make.adb:
39918 (Gnatmake): Add new local variable Mapping_File_Name.
39919 Create mapping file when using project file(s).
39920 Delete mapping file before exiting.
82a4b025 39921
6510f4c9 39922 * opt.ads (Mapping_File_Name): New variable
82a4b025 39923
6510f4c9 39924 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 39925
6510f4c9 39926 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 39927
6510f4c9 39928 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 39929
07fc65c4 39930 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 39931 (Mapping_File)
82a4b025 39932
6510f4c9 39933 * usage.adb: Add entry for new switch -gnatem.
82a4b025 39934
6510f4c9 39935 * Makefile.in: Add dependencies for fmap.o.
82a4b025 39936
9e94c78f 399372001-12-17 Ed Schonberg <schonber@gnat.com>
6510f4c9 39938
07fc65c4 39939 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
39940 is a package instantiation rewritten as a package body.
39941 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 39942
9e94c78f 399432001-12-17 Gary Dismuke <dismukes@gnat.com>
6510f4c9
GB
39944
39945 * layout.adb:
39946 (Compute_Length): Move conversion to Unsigned to callers.
39947 (Get_Max_Size): Convert Len expression to Unsigned after calls to
39948 Compute_Length and Determine_Range.
39949 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
39950 Compute_Length and Determine_Range.
39951 Above changes fix problem with length computation for supernull arrays
07fc65c4 39952 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 39953 conversion used by Compute_Length.
82a4b025 39954
9e94c78f 399552001-12-17 Arnaud Charlet <charlet@gnat.com>
6510f4c9
GB
39956
39957 * rtsfind.ads:
39958 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
39959 System.Secondary_Stack.
39960 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
39961 in HI-E mode.
39962 Remove unused entity RE_Exception_Data.
82a4b025 39963
6510f4c9 39964 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 39965
6510f4c9
GB
39966 * rident.ads (No_Secondary_Stack): New restriction.
39967
9e94c78f 399682001-12-17 Joel Brobecker <brobecke@gnat.com>
3a77b68d 39969
07fc65c4 39970 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
39971 regarding "Bit_Order Clauses" that was sent to a customer.
39972 Very interesting documentation!
82a4b025 39973
9e94c78f 399742001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d 39975
07fc65c4
GB
39976 * sem_case.adb (Choice_Image): Avoid creating improper character
39977 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 39978 fixes bombs in certain error message cases.
82a4b025 39979
9e94c78f 399802001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d
GB
39981
39982 * a-reatim.adb: Minor reformatting.
82a4b025 39983
9e94c78f 399842001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 39985
07fc65c4
GB
39986 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
39987 case where the formal is an extension of another formal in the current
3a77b68d 39988 unit or in a parent generic unit.
82a4b025 39989
9e94c78f 399902001-12-17 Arnaud Charlet <charlet@gnat.com>
3a77b68d 39991
07fc65c4 39992 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 39993 Minor code clean up.
82a4b025 39994
3a77b68d 39995 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 39996
9e94c78f 399972001-12-17 Gary Dismukes <dismukes@gnat.com>
3a77b68d 39998
07fc65c4 39999 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 40000 when Java_VM.
82a4b025 40001
9e94c78f 400022001-12-17 Robert Dewa <dewar@gnat.com>
3a77b68d
GB
40003
40004 * exp_attr.adb: Minor reformatting
82a4b025 40005
9e94c78f 400062001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 40007
07fc65c4 40008 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
40009 derivations nested within a child unit: verify that the parent
40010 type is declared in an outer scope.
82a4b025 40011
9e94c78f 400122001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
40013
40014 * sem_ch12.adb: Minor reformatting
82a4b025 40015
9e94c78f 400162001-12-17 Ed Schonberg <schonber@gnat.com>
3a77b68d 40017
07fc65c4
GB
40018 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
40019 warning if current unit is a predefined one, from which bodies may
3a77b68d 40020 have been deleted.
82a4b025 40021
9e94c78f 400222001-12-17 Robert Dewar <dewar@gnat.com>
3a77b68d
GB
40023
40024 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
40025 Fix header format. Add 2001 to copyright date.
82a4b025 40026
07fc65c4 40027 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
40028 which caused CE during compilation if checks were enabled.
40029
9e94c78f 400302001-12-17 Vincent Celier <celier@gnat.com>
79503fdd
GB
40031
40032 * make.adb:
40033 (Switches_Of): New function
40034 (Test_If_Relative_Path): New procedure
40035 (Add_Switches): Use new function Switches_Of
40036 (Collect_Arguments_And_Compile): Use new function Switches_Of.
40037 When using a project file, test if there are any relative
40038 search path. Fail if there are any.
07fc65c4
GB
40039 (Gnatmake): Only add switches for the primary directory when not using
40040 a project file. When using a project file, change directory to the
40041 object directory of the main project file. When using a project file,
40042 test if there are any relative search path. Fail if there are any.
40043 When using a project file, fail if specified executable is relative
40044 path with directory information, and prepend executable, if not
40045 specified as an absolute path, with the exec directory. Make sure
79503fdd 40046 that only one -o switch is transmitted to the linker.
82a4b025 40047
79503fdd 40048 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 40049
79503fdd
GB
40050 * prj-nmsc.adb:
40051 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
40052 when using a non standard naming scheme.
40053 (Check_Ada_Naming_Scheme): Make sure that error messages
40054 do not raise exceptions.
40055 (Is_Illegal_Append): Return True if there is no dot in the suffix.
40056 (Language_Independent_Check): Check the exec directory.
82a4b025 40057
79503fdd 40058 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 40059
79503fdd
GB
40060 * prj.ads:
40061 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
40062 (Project_Data): Add component Exec_Directory
82a4b025 40063
79503fdd 40064 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 40065
79503fdd 40066 * snames.ads: Added Exec_Dir
82a4b025 40067
9e94c78f 400682001-12-17 Robert Dewar <dewar@gnat.com>
79503fdd
GB
40069
40070 * make.adb: Minor reformatting
82a4b025 40071
79503fdd 40072 * prj-nmsc.adb: Minor reformatting
82a4b025 40073
79503fdd 40074 * snames.adb: Updated to match snames.ads
82a4b025 40075
79503fdd
GB
40076 * snames.ads: Alphebetize entries for project file
40077
9e94c78f 400782001-12-17 Ed Schonberg <schonber@gnat.com>
79503fdd 40079
07fc65c4 40080 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 40081 subprogram that was already elaborated.
82a4b025 40082
9e94c78f 400832001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 40084
07fc65c4 40085 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
40086 and Esize if object is referenced via pointer.
40087
9e94c78f 400882001-12-17 Ed Schonberg <schonber@gnat.com>
855ff2e1 40089
07fc65c4 40090 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 40091 is discrete before analyzing choices.
82a4b025 40092
9e94c78f 400932001-12-17 Joel Brobecker <brobecke@gnat.com>
855ff2e1 40094
07fc65c4
GB
40095 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
40096 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
40097 intended for the debugger.
40098 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 40099
9e94c78f 401002001-12-17 Robert Dewar <dewar@gnat.com>
855ff2e1
GB
40101
40102 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 40103
855ff2e1 40104 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 40105
855ff2e1 40106 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 40107
855ff2e1 40108 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 40109
855ff2e1 40110 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 40111
855ff2e1
GB
40112 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
40113
9e94c78f 401142001-12-17 Robert Dewar <dewar@gnat.com>
c1c22e7a
GB
40115
40116 * ali.adb: Type reference does not reset current file.
82a4b025 40117
c1c22e7a 40118 * ali.adb: Recognize and scan renaming reference
82a4b025 40119
c1c22e7a 40120 * ali.ads: Add spec for storing renaming references.
82a4b025 40121
c1c22e7a 40122 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 40123
c1c22e7a 40124 * lib-xref.adb: Implement output of renaming reference.
82a4b025 40125
c1c22e7a
GB
40126 * checks.adb:
40127 (Determine_Range): Document local variables
40128 (Determine_Range): Make sure Hbound is initialized. It looks as though
40129 there could be a real problem here with an uninitialized reference
40130 to Hbound, but no actual example of failure has been found.
82a4b025 40131
9e94c78f 401322001-12-17 Laurent Pautet <pautet@gnat.com>
c1c22e7a
GB
40133
40134 * g-socket.ads:
40135 Fix comment of Shutdown_Socket and Close_Socket. These functions
40136 should not fail silently because if they are called twice, this
40137 probably means that there is a race condition in the user program.
40138 Anyway, this behaviour is consistent with the rest of this unit.
40139 When an error occurs, an exception is raised with the error message
40140 as exception message.
40141
9e94c78f 401422001-12-17 Robert Dewar <dewar@gnat.com>
7eb7bb07 40143
07fc65c4 40144 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 40145 that it happens before modification of Sloc values for -gnatD.
82a4b025 40146
07fc65c4 40147 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 40148 so that it happens before modification of Sloc values for -gnatD.
82a4b025 40149
7eb7bb07
RD
40150 * switch.adb: Minor reformatting
40151
b6434700
RH
401522001-12-15 Richard Henderson <rth@redhat.com>
40153
40154 * sem_ch7.adb: Wrap comment.
40155
44d6a706
JM
401562001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40157
40158 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
40159 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
40160 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
40161 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
40162 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
40163 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
40164 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
40165 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
40166 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
40167 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
40168 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
40169 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
40170 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
40171 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
40172 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
40173 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
40174 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
40175 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
40176 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
40177 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
40178 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
40179 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
40180 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
40181 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
40182 spelling errors.
40183
9e94c78f 401842001-12-14 Vincent Celier <celier@gnat.com>
226ada7a 40185
07fc65c4 40186 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 40187 put the .dg file in the same directory as the object file.
82a4b025 40188
9e94c78f 401892001-12-14 Robert Dewar <dewar@gnat.com>
226ada7a
GB
40190
40191 * osint.adb: Minor reformatting
82a4b025 40192
07fc65c4 40193 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 40194 instantiation references.
82a4b025 40195
226ada7a 40196 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 40197
07fc65c4 40198 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 40199 instantiation references
82a4b025 40200
226ada7a 40201 * ali.ads: Add spec for storing instantiation references
82a4b025 40202
226ada7a 40203 * bindusg.adb: Minor reformatting
82a4b025 40204
226ada7a 40205 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40206
226ada7a 40207 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40208
226ada7a 40209 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40210
226ada7a 40211 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40212
226ada7a
GB
40213 * csets.ads:
40214 Fix header format
40215 Add 2001 to copyright date
40216 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 40217
9e94c78f 402182001-12-14 Matt Gingell <gingell@gnat.com>
226ada7a 40219
07fc65c4 40220 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 40221 expression.
82a4b025 40222
9e94c78f 402232001-12-14 Richard Kenner <kenner@gnat.com>
226ada7a 40224
07fc65c4 40225 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 40226 if operand is CONSTRUCTOR.
82a4b025 40227
9e94c78f 402282001-12-14 Ed Schonberg <schonber@gnat.com>
226ada7a 40229
07fc65c4
GB
40230 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
40231 before emiting check on right-hand side, so that exception information
226ada7a
GB
40232 is correct.
40233
9e94c78f 402342001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 40235
07fc65c4 40236 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 40237 if just annotating types and non-constant.
82a4b025 40238
9e94c78f 402392001-12-14 Vincent Celier <celier@gnat.com>
226ada7a
GB
40240
40241 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
40242 Default_Ada_...
82a4b025 40243
07fc65c4 40244 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
40245 Remove functions.
40246 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 40247
07fc65c4 40248 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
40249 Remove functions.
40250 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
40251
9b94bf9e
JM
402522001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
40253
40254 * ChangeLog: Remove piece of diff output.
40255
9e94c78f 402562001-12-14 Geert Bosch <bosch@gnat.com>
449d2be3
GB
40257
40258 * config-lang.in: Update copyright notice
40259
40260 * layout.adb: Remove commented out code.
40261
40262 * mdllfile.ads: Update copyright notice. Fix header format.
40263
40264 * sem_case.ads: Likewise.
40265
40266 * sem_ch3.adb: Minor reformatting.
40267
9e94c78f 402682001-12-12 Geert Bosch <bosch@gnat.com>
e5bd5cb4
GB
40269
40270 * freeze.ads: Update copyright date.
40271
40272 * g-comlin.ads: Minor reformatting.
40273
40274 * gnat-style.texi: Fix typo.
40275
9e94c78f 402762001-12-12 Geert Bosch <bosch@gnat.com>
b468d8ec
GB
40277
40278 * einfo.h: Regenerate.
40279
9e94c78f 402802001-12-12 Ed Schonberg <schonber@gnat.com>
ed7da216 40281
07fc65c4 40282 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 40283 on known node types, rather than untyped fields. Further cleanups.
82a4b025 40284
9e94c78f 402852001-12-12 Robert Dewar <dewar@gnat.com>
ed7da216
GB
40286
40287 * sem_ch12.adb:
40288 (Save_Entity_Descendant): Minor comment update.
40289 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 40290 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 40291 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 40292 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 40293 reference nodes, since this field is used in such nodes.
82a4b025 40294
ed7da216
GB
40295 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
40296
9e94c78f 402972001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
40298
40299 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 40300
de76a39c 40301 * par-ch12.adb: Minor reformatting
82a4b025 40302
de76a39c 40303 * prj-dect.ads: Fix copyright header
82a4b025 40304
07fc65c4 40305 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 40306 inputs fit in 32 bits, but the result still overflows.
82a4b025 40307
de76a39c 40308 * s-fatgen.ads: Minor comment improvement
82a4b025 40309
9e94c78f 403102001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 40311
07fc65c4
GB
40312 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
40313 formal derived type, look for an inherited component from the full
de76a39c 40314 view of the parent, if any.
82a4b025 40315
9e94c78f 403162001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
40317
40318 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 40319
07fc65c4
GB
40320 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
40321 ensure that the alignment of objects with address clauses is
de76a39c
GB
40322 appropriate, and raise PE if not.
40323
07fc65c4 40324 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 40325 Exp_Pakd.Known_Aligned_Enough
82a4b025 40326
de76a39c
GB
40327 * mdllfile.ads: Minor reformatting
40328
40329 * mlib-fil.ads: Minor reformatting
82a4b025 40330
9e94c78f 403312001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 40332
07fc65c4
GB
40333 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
40334 fix to any component reference if enclosing record has non-standard
de76a39c 40335 representation.
82a4b025 40336
9e94c78f 403372001-12-12 Vincent Celier <celier@gnat.com>
de76a39c 40338
07fc65c4 40339 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 40340 Iteration
82a4b025 40341
9e94c78f 403422001-12-12 Ed Schonberg <schonber@gnat.com>
de76a39c 40343
07fc65c4 40344 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 40345 sem_attr.
82a4b025 40346
9e94c78f 403472001-12-12 Robert Dewar <dewar@gnat.com>
de76a39c
GB
40348
40349 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 40350
9e94c78f 403512001-12-12 Emmanuel Briot <briot@gnat.com>
de76a39c
GB
40352
40353 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
40354 and it adds dependencies to system.io.
82a4b025 40355
9e94c78f 403562001-12-12 Pascal Obry <obry@gnat.com>
de76a39c 40357
07fc65c4 40358 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
40359 variable name.
40360
9e94c78f 403612001-12-11 Ed Schonberg <schonber@gnat.com>
0b09835f
ES
40362
40363 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
40364 that is the parent of other generics, the instance body replaces the
40365 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
40366 that is visible in clients and within the body.
40367
9e94c78f 403682001-12-11 Vincent Celier <celier@gnat.com>
598c3446
GB
40369
40370 * gnatmain.adb: Initial version.
82a4b025 40371
598c3446 40372 * gnatmain.ads: Initial version.
82a4b025 40373
598c3446 40374 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 40375
598c3446 40376 * snames.adb: Updated to match snames.ads.
82a4b025 40377
598c3446 40378 * snames.ads: Added Gnatstub.
82a4b025 40379
9e94c78f 403802001-12-11 Vincent Celier <celier@gnat.com>
598c3446 40381
07fc65c4 40382 * prj-attr.adb (Initialization_Data): Change name from
598c3446 40383 Initialisation_Data.
82a4b025 40384
9e94c78f 403852001-12-11 Emmanuel Briot <briot@gnat.com>
598c3446
GB
40386
40387 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
40388 + and * applied to backslashed expressions like \r.
82a4b025 40389
9e94c78f 403902001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
598c3446 40391
07fc65c4 40392 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 40393 subtype of String_List.
82a4b025 40394
9e94c78f 403952001-12-11 Robert Dewar <dewar@gnat.com>
598c3446
GB
40396
40397 * g-os_lib.ads: Change copyright to FSF
40398 Add comments for String_List type
82a4b025 40399
9e94c78f 404002001-12-11 Vincent Celier <celier@gnat.com>
598c3446 40401
07fc65c4 40402 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
40403 string to the buffer).
40404
9e94c78f 404052001-12-11 Ed Schonberg <schonber@gnat.com>
7fb754a1
GB
40406
40407 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
40408 sem_attr.
82a4b025 40409
7fb754a1 40410 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
40411 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
40412 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
40413 constraint error.
40414
9e94c78f 404152001-12-11 Robert Dewar <dewar@gnat.com>
7fb754a1 40416
07fc65c4 40417 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 40418 handled.
82a4b025 40419
9e94c78f 404202001-12-11 Ed Schonber <schonber@gnat.com>
7fb754a1 40421
07fc65c4 40422 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 40423 renamed unit before checking for recursive instantiations.
82a4b025 40424
9e94c78f 404252001-12-11 Emmanuel Briot <briot@gnat.com>
7fb754a1
GB
40426
40427 * prj.ads: Add comments for some of the fields.
40428
9e94c78f 404292001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc 40430
07fc65c4 40431 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 40432 the main unit if they are not otherwise referenced.
82a4b025 40433
9e94c78f 404342001-12-11 Ed Schonberg <schonber@gnat.com>
0873bafc 40435
07fc65c4 40436 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 40437 code and diagnose additional illegal uses
82a4b025 40438
07fc65c4 40439 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 40440 object only if the prefix is.
82a4b025 40441
9e94c78f 404422001-12-11 Vincent Celier <celier@gnat.com>
0873bafc
GB
40443
40444 * g-diopit.adb: Initial version.
82a4b025 40445
0873bafc 40446 * g-diopit.ads: Initial version.
82a4b025 40447
0873bafc
GB
40448 * g-dirope.adb:
40449 (Expand_Path): Avoid use of Unbounded_String
40450 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 40451
0873bafc 40452 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 40453
9e94c78f 404542001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
40455
40456 * sem_attr.adb: Minor reformatting
40457
9e94c78f 404582001-12-11 Ed Schonberg <schonber@gnat.com>
d087cd96
GB
40459
40460 * sem_ch3.adb: Clarify some ???.
82a4b025 40461
9e94c78f 404622001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96 40463
07fc65c4 40464 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 40465 Exp_Pakd.Known_Aligned_Enough
82a4b025 40466
07fc65c4 40467 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
40468 version is moved to Exp_Ch13.
40469
9e94c78f 404702001-12-11 Robert Dewar <dewar@gnat.com>
d087cd96
GB
40471
40472 * einfo.ads: Minor reformatting
82a4b025 40473
d087cd96 40474 * exp_ch5.adb: Add comment for previous.change
82a4b025 40475
d087cd96 40476 * ali.adb: New interface for extended typeref stuff.
82a4b025 40477
d087cd96 40478 * ali.ads: New interface for typeref stuff.
82a4b025 40479
d087cd96 40480 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 40481
d087cd96 40482 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 40483
d087cd96 40484 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 40485
07fc65c4
GB
40486 * lib-xref.adb: Extend generation of <..> notation to cover
40487 subtype/object types. Note that this is a complete rewrite,
40488 getting rid of the very nasty quadratic algorithm previously
d087cd96 40489 used for derived type output.
82a4b025 40490
07fc65c4
GB
40491 * lib-xref.ads: Extend description of <..> notation to cover
40492 subtype/object types. Uses {..} for these other cases.
d087cd96 40493 Also use (..) for pointer types.
82a4b025 40494
d087cd96 40495 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 40496
07fc65c4 40497 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
40498 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
40499
9e94c78f 405002001-12-11 Vincent Celier <celier@gnat.com>
290986ed
GB
40501
40502 * gnatcmd.adb:
40503 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
40504 Changed /BIND_ONLY to /ACTIONS=BIND
40505 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 40506
290986ed
GB
405072001-12-11 Ed Schonberg <schonber@gnat.com>
40508
40509 * sem_ch8.adb (Find_Selected_Component): improved search for a
40510 candidate package in case of error.
82a4b025 40511
290986ed
GB
40512 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
40513 chain back on scope stack before reinstalling use clauses.
82a4b025 40514
290986ed
GB
40515 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
40516 is enabled, do not kill the code for the condition, to preserve
40517 warning.
40518
9e94c78f 405192001-12-11 Robert Dewar <dewar@gnat.com>
84157f51 40520
07fc65c4 40521 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
40522 of conversion, not to result of conversion.
40523
9e94c78f 405242001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 40525
07fc65c4
GB
40526 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
40527 before freezing parent. If the declarations are mutually recursive,
40528 an access to the current record type may be frozen before the
84157f51
GB
40529 derivation is complete.
40530
9e94c78f 405312001-12-05 Vincent Celier <celier@gnat.com>
7ffa903f 40532
07fc65c4 40533 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 40534 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 40535
7ffa903f
VC
40536 * opt.ads:
40537 (Bind_Only): New Flag
40538 (Link_Only): New flag
82a4b025 40539
07fc65c4 40540 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 40541 and -l (Link_Only)
82a4b025 40542
7ffa903f 40543 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 40544
7ffa903f
VC
40545 * make.adb:
40546 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
40547 (Gnatmake): Set the step flags. Only perform a step if the
40548 corresponding step flag is True.
40549 (Scan_Make_Arg): Reset the bind and link step flags when -u
40550 or -gnatc has been specified.
40551
9e94c78f 405522001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 40553
07fc65c4 40554 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 40555 get bounds from right operand.
82a4b025 40556
f91b40db 40557 * sem_eval.adb: Minor reformatting
82a4b025 40558
07fc65c4 40559 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 40560 than Index'First, its lower bound may be different from 1.
82a4b025 40561
07fc65c4 40562 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 40563 and C48009J
82a4b025 40564
9e94c78f 405652001-12-05 Vincent Celier <celier@gnat.com>
f91b40db
GB
40566
40567 * prj-nmsc.adb Minor reformatting
82a4b025 40568
07fc65c4 40569 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 40570 set and libraries are not supported.
82a4b025 40571
9e94c78f 405722001-12-05 Ed Schonberg <schonber@gnat.com>
f91b40db 40573
07fc65c4
GB
40574 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
40575 private view explicitly, so the back-end can treat as a global
f91b40db
GB
40576 when appropriate.
40577
9e94c78f 405782001-12-05 Ed Schonberg <schonber@gnat.com>
45d04cbb
GB
40579
40580 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
40581 unit, always replace instance node with new body, for ASIS use.
40582
9e94c78f 405832001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 40584
07fc65c4
GB
40585 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
40586 libraries are not supported and both attributes Library_Name and
45d04cbb 40587 Library_Dir are specified.
82a4b025 40588
07fc65c4 40589 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 40590 first term.
82a4b025 40591
45d04cbb
GB
40592 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
40593 (prj-nmsc is now importing MLib.Tgt)
82a4b025 40594
45d04cbb
GB
40595 * prj-proc.adb: Put the change indicated above that was forgotten.
40596
9e94c78f 405972001-12-05 Robert Dewar <dewar@gnat.com>
84436014
RD
40598
40599 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
40600
9e94c78f 406012001-12-05 Ed Schonberg <schonber@gnat.com>
7ae0dcd8
ES
40602
40603 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
40604 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 40605
7ae0dcd8
ES
40606 * sem_ch3.adb: Minor reformatting
40607
9e94c78f 406082001-12-05 Robert Dewar <dewar@gnat.com>
c9a4817d 40609
07fc65c4 40610 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 40611 Minor reformatting
82a4b025 40612
c9a4817d
RD
40613 * exp_ch6.adb: Minor reformatting
40614 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
40615 a parameter whose root type is System.Address, since treating such
40616 subprograms as pure in the code generator is almost surely a mistake
40617 that will lead to unexpected results.
82a4b025 40618
07fc65c4 40619 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 40620 change handling of conversions.
82a4b025 40621
c9a4817d
RD
40622 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
40623
9e94c78f 406242001-12-05 Ed Schonberg <schonber@gnat.com>
2514b839 40625
07fc65c4
GB
40626 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
40627 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
40628 declaration.
40629
9e94c78f 406302001-12-05 Robert Dewar <dewar@gnat.com>
457b6274 40631
07fc65c4 40632 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
40633 Fixes compilation abandoned bomb in B24009B.
40634
9e94c78f 406352001-12-05 Ed Schonberg <schonber@gnat.com>
19349925
ES
40636
40637 * sem_ch12.adb:
40638 Document use of Associated_Node on Selected_Components.
40639 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
40640 to clarify use of untyped descendant fields.
40641
9e94c78f 406422001-12-05 Robert Dewar <dewar@gnat.com>
6663c393
RD
40643
40644 * prj-dect.ads: Add ??? comment
40645 Add 2001 to copyright notice (was not done in after all)
82a4b025 40646
6663c393 40647 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 40648
6663c393 40649 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 40650
6663c393
RD
40651 * snames.ads: Minor reformatting
40652
9e94c78f 406532001-12-05 Geert Bosch <bosch@gnat.com>
d7b2a6af
GB
40654
40655 * snames.adb: Autoupdate
40656
9e94c78f 406572001-12-05 Vincent Celier <celier@gnat.com>
fbc9a404
VC
40658
40659 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 40660
fbc9a404 40661 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 40662
fbc9a404 40663 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 40664
fbc9a404 40665 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 40666
07fc65c4 40667 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 40668 Tok_Extends.
82a4b025 40669
fbc9a404 40670 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 40671
fbc9a404 40672 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 40673
fbc9a404 40674 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 40675
fbc9a404
VC
40676 * snames.ads: Change modifying to extends.
40677
9e94c78f 406782001-12-05 Robert Dewar <dewar@gnat.com>
7cff0b1b 40679
07fc65c4 40680 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 40681 do this after all.
82a4b025 40682
07fc65c4 40683 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
40684 do this after all. Add 2001 to copyright notice
40685
9e94c78f 406862001-12-04 Geert Bosch <bosch@gnat.com>
4f56ebb7
GB
40687
40688 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
40689
9e94c78f 406902001-12-04 Robert Dewar <dewar@gnat.com>
053defdf 40691
07fc65c4
GB
40692 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
40693 location if we already have errors. Stops some cases of cascaded
053defdf 40694 errors.
82a4b025 40695
053defdf
RD
40696 * errout.adb: Improve comment.
40697
9e94c78f 406982001-12-04 Robert Dewar <dewar@gnat.com>
f311e166
RD
40699
40700 * sem_ch12.adb:
40701 (Analyze_Formal_Type_Definition): Defend against Error.
40702 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 40703
07fc65c4 40704 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
40705 remove following semicolon if present. Removes cascaded error.
40706
9e94c78f 407072001-12-04 Douglas B. Rupp <rupp@gnat.com>
d61bd65a
DR
40708
40709 * bindgen.adb:
40710 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
40711 exceptions equals 0.
40712 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
40713 Fixes PIWG E tests (which have to be run with -gnatL).
40714
9e94c78f 407152001-12-04 Robert Dewar <dewar@gnat.com>
4ba603e2
RD
40716
40717 * einfo.ads: Minor reformatting
40718
9e94c78f 407192001-12-04 Ed Schonberg <schonber@gnat.com>
57568d91 40720
07fc65c4
GB
40721 * einfo.ads: Block_Node points to the identifier of the block, not to
40722 the block node itself, to preserve the link when the block is
40723 rewritten, e.g. within an if-statement with a static condition.
82a4b025 40724
07fc65c4 40725 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 40726 entity using new meaning of Block_Node.
82a4b025 40727
07fc65c4 40728 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
40729 identifier of block node, rather than to node itself.
40730
9e94c78f 407312001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 40732
0815d36a
GD
40733 * layout.adb:
40734 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
40735 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 40736 because the Vname component does not exist at this point and will
0815d36a
GD
40737 fail name resolution. Also set Analyzed.
40738 Remove with and use of Sem_Res.
40739
9e94c78f 407402001-12-04 Arnaud Charlet <charlet@gnat.com>
edc0f304
AC
40741
40742 * Makefile.in: (HIE_SOURCES): add s-fat*.
40743
9e94c78f 407442001-12-04 Robert Dewar <dewar@gnat.com>
32213142
RD
40745
40746 * sem_attr.adb:
40747 (Compile_Time_Known_Attribute): New procedure.
40748 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
40749 proper range check.
40750
9e94c78f 407512001-12-04 Ed Schonberg <schonber@gnat.com>
c0def2ad 40752
07fc65c4 40753 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
40754 processing discriminants to diagnose illegal default values.
40755
9e94c78f 407562001-12-04 Ed Schonberg <schonber@gnat.com>
ee0a48c5 40757
07fc65c4
GB
40758 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
40759 access discriminant within a type extension that constrains its
ee0a48c5
ES
40760 parent discriminants.
40761
9e94c78f 407622001-12-04 Ed Schonberg <schonber@gnat.com>
dd5875a6 40763
07fc65c4 40764 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 40765 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 40766
07fc65c4 40767 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
40768 type definition is illegal.
40769 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
40770 misplaced.
40771
9e94c78f 407722001-12-04 Ed Schonberg <schonber@gnat.com>
c2a41e57 40773
07fc65c4 40774 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
40775 constants.
40776
9e94c78f 407772001-12-04 Robert Dewar <dewar@gnat.com>
0ae84753
RD
40778
40779 * errout.adb: Minor reformatting
40780
9e94c78f 407812001-12-04 Robert Dewar <dewar@gnat.com>
63db260e
RD
40782
40783 * exp_util.adb: Minor reformatting from last change
82a4b025 40784
07fc65c4
GB
40785 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
40786 which is a rewriting of an expression, traverse the original
63db260e
RD
40787 expression to remove warnings that may have been posted on it.
40788
9e94c78f 407892001-12-04 Ed Schonberg <schonber@gnat.com>
c6d289f4 40790
07fc65c4 40791 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
40792 record that has other packed components.
40793
9e94c78f 407942001-12-04 Douglass B. Rupp <rupp@gnat.com>
5917e80d
DR
40795
40796 * adaint.c: Minor cleanups.
40797
9e94c78f 407982001-12-04 Douglass B. Rupp <rupp@gnat.com>
2c70f9dd
DR
40799
40800 * adaint.c: Do not use utime.h on vxworks.
40801
9e94c78f 408022001-12-04 Arnaud Charlet <charlet@gnat.com>
e59b3387 40803
07fc65c4 40804 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
40805 more confusion than it solves.
40806
9e94c78f 408072001-12-04 Geert bosch <bosch@gnat.com>
e288604a
GB
40808
40809 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
40810
5ac21013
GB
408112001-12-04 Geert Bosch <bosch@gnat.com>
40812
07fc65c4 40813 * Makefile.in (update-sources): New target.
5ac21013
GB
40814 For use by gcc_release script.
40815
9e94c78f 408162001-12-04 Ed Schonberg <schonber@gnat.com>
7dd5bd5e 40817
07fc65c4 40818 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
40819 a configuration pragma, it is now legal wherever a pragma can appear.
40820
a078a589
ZW
408212001-12-04 Zack Weinberg <zack@codesourcery.com>
40822
40823 * Makefile.in: Don't set ALL. Delete @cross_defines@,
40824 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
40825 is now @CROSS@ -DIN_GCC; update comment.
40826
9e94c78f 408272001-12-04 Robert Dewar <dewar@gnat.com>
0839863c
GB
40828
40829 * einfo.adb (Has_Pragma_Pure_Function): New flag.
40830 Fix problem that stopped ceinfo from working
82a4b025 40831
0839863c 40832 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 40833
0839863c
GB
40834 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
40835
9e94c78f 408362001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
40837
40838 * gnatchop.adb:
40839 (File_Time_Stamp): New procedure.
40840 (Preserve_Mode): New boolean.
40841 (Write_Unit): Pass time stamp.
40842 Implement -p switch (preserve time stamps).
82a4b025 40843
9678de49 40844 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 40845
9678de49 40846 * gnatchop.adb: Do usage info for -p switch
82a4b025 40847
9678de49 40848 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 40849
9678de49 40850 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 40851
9678de49
DR
40852 * adaint.h: Fix typo
40853
9e94c78f 408542001-12-03 Robert Dewar <dewar@gnat.com>
3b9a13c4 40855
667e5c5d 40856 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 40857 have Associated_Node.
3b9a13c4 40858
9e94c78f 408592001-12-03 Robert Dewar <dewar@gnat.com>
767b404e
RD
40860
40861 * prj-proc.adb: Minor reformatting
667e5c5d 40862
767b404e
RD
40863 * make.adb: Minor reformatting
40864
9e94c78f 408652001-12-03 Geert Bosch <bosch@gnat.com>
11ac71ba 40866
667e5c5d 40867 * make.adb: Minor reformatting.
11ac71ba 40868
ef3d4d6e 408692001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
40870
40871 * sem_ch12.adb: Minor reformatting
40872
9e94c78f 408732001-12-03 Ed Schonberg <schonber@gnat.com>
d6d32b24 40874
667e5c5d
AJ
40875 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
40876 push Standard on the stack before analyzing the instance body,
d6d32b24 40877 in order to have a clean visibility environment.
667e5c5d
AJ
40878
40879 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 40880
9e94c78f 408812001-12-03 Ed Schonberg <schonber@gnat.com>
13f08f03 40882
667e5c5d 40883 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
40884 instantiation of a body that contains an inlined body.
40885
9e94c78f 408862001-12-03 Ed Schonberg <schonber@gnat.com>
3bd6c100
ES
40887
40888 * sem_ch12.adb:
40889 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
40890 to prevent freezing within formal packages.
40891 (Freeze_Subprogram_Body): If body comes from another instance that
40892 appeared before its own body, place freeze node at end of current
40893 declarative part, to prevent a back-end crash.
40894 (Inline_Instance_Body): Handle properly a package instance within
40895 a subprogram instance that is a child unit.
40896
58d07d8f
GS
408972001-12-01 Graham Stott <grahams@redhat.com>
40898
40899 * Makefile.in (misc.o): Add missing $(srcdir) prefix
40900 and add optabs.h dependency.
40901
40902 * misc.c: Include optabs.h
40903 (gnat_tree_code_type): Make static and const.
40904 (gnat_tree_code_length): Likewise.
40905 (gnat_tree_code_name): Likewise.
40906 (update_setjmp_buf): Obtain operands mode from insn_data.
40907
c87222f0
RH
409082001-11-29 Richard Henderson <rth@redhat.com>
40909
40910 * init.c: Remove obsolete dwarf2 frame.h section.
40911
d3945f0a
JM
409122001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
40913
40914 * Make-lang.in (ada.generated-manpages): New dummy target.
40915
9e94c78f 409162001-11-29 Ed Schonberg <schonber@gnat.com>
9f639397 40917
667e5c5d
AJ
40918 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
40919 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
40920 ACATS B460005.
40921
9e94c78f 409222001-11-28 Geert Bosch <bosch@gnat.com>
c835e5c6
GB
40923
40924 * init.c: Minor whitespace changes.
40925
9e94c78f 409262001-11-28 Doug Rupp <rupp@gnat.com>
49bb4548 40927
667e5c5d 40928 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
40929 signal stack.
40930
ea2417e5
ZW
409312001-11-28 Zack Weinberg <zack@codesourcery.com>
40932
40933 * misc.c (gnat_expand_constant): Move declaration above
40934 definition of lang_hooks.
40935 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
40936 (gnat_init): lang_expand_constant no longer exists.
40937
40938 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
40939 always have vprintf.
40940 (gnat_init): Always call set_internal_error_function.
40941
f8e0aa73
AJ
409422001-11-27 Andreas Jaeger <aj@suse.de>
40943
40944 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
40945
d99b0e79
LG
409462001-11-27 Laurent Guerby <guerby@acm.org>
40947
40948 * Makefile.in: Regenerate Ada dependencies.
40949
3f0496e5
RH
409502001-11-26 Richard Henderson <rth@redhat.com>
40951
40952 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
40953 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
40954 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
40955
92fa4733
LG
409562001-11-25 Laurent Guerby <guerby@acm.org>
40957
40958 * sysdep.c (rts_get_*): Fix style.
40959
07626501
LG
409602001-11-19 Laurent Guerby <guerby@acm.org>
40961
40962 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
40963 since it is of no apparent use and cause warnings.
40964
22703ccc
NB
409652001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
40966
40967 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
40968 static too.
40969 (gnat_init): Don't return NULL.
40970 (finish_parse): Remove.
40971
b0df4321
LG
409722001-11-17 Laurent Guerby <guerby@acm.org>
40973
40974 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
40975 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
40976 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
40977 * lang-spec.h: Add missing struct field to silence warnings.
40978 * sysdep.c (rts_get_*): Provide K&R prototype.
40979 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
40980 * traceback.c (Unlock_Task, Lock_Task): Likewise.
40981 * tracebak.c (__gnat_backtrace): Remove unused variable.
40982 * utils.c (end_subprog_body): Move to K&R style.
40983
d215024f
RK
40984Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40985
40986 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
40987
f5e99456
NB
409882001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
40989
40990 * misc.c (gnat_init): Change prototype. Include the
40991 functionality of the old init_parse and init_decl_processing.
40992 (gnat_init_decl_processing): New prototype.
40993 (init_parse): Remove.
40994 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
40995
5d69f816
NB
409962001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
40997
40998 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
40999 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
41000 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
41001 set_yydebug): Remove.
41002
3ac88239
NB
410032001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
41004
41005 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
41006 (struct lang_hooks): Constify.
41007 (language_string, lang_identify): Remove.
41008 * utils.c (init_decl_processing): Update.
41009
d23c55c2
NB
410102001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
41011
41012 * misc.c: Include langhooks-def.h.
41013 * Makefile.in: Update.
41014
9e94c78f 410152001-10-30 Robert Dewar <dewar@gnat.com>
04a1b79c
RD
41016
41017 * style.adb:
41018 (Check_Identifier): Rewrite circuit to be compatible with use of letters
41019 in the upper half of ASCII.
41020 (Check_Identifier): Minor reformatting
41021
9e94c78f 410222001-10-30 Geert Bosch <bosch@gnat.com>
81fa2d39 41023
f8e0aa73 41024 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
41025 Freeze_Entity.
41026
9e94c78f 410272001-10-30 Robert Dewar <dewar@gnat.com>
ffc5527f
RD
41028
41029 * a-reatim.ads: Minor reformatting
41030
9e94c78f 410312001-10-30 Robert Dewar <dewar@gnat.com>
865335eb 41032
f8e0aa73 41033 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
41034 undocumented declarations.
41035
9e94c78f 410362001-10-30 Pascal Obry <obry@gnat.com>
5e257178 41037
f8e0aa73 41038 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
41039 to the binder and linker.
41040 Minor style fix.
f8e0aa73 41041
5e257178
PO
41042 * mdll.ads: Fix layout. Update copyright notice.
41043
41044 * mdll.adb: Fix layout. Update copyright notice.
41045
9e94c78f 410462001-10-30 Robert Dewar <dewar@gnat.com>
1753e0ad
RD
41047
41048 * usage.adb: Minor fix to output for -gnaty.
41049
9e94c78f 410502001-10-30 Ed Schonberg <schonber@gnat.com>
84bfdde0 41051
f8e0aa73
AJ
41052 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
41053 to accommodate all its possible values.
84bfdde0 41054
f8e0aa73 41055 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
41056 and of small absolute values of T.
41057
9e94c78f 410582001-10-30 Richard Kenner <kenner@gnat.com>
c296e5fc 41059
f8e0aa73
AJ
41060 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
41061 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
41062 fixes ACATS failures.
41063
9e94c78f 410642001-10-30 Geert Bosch <bosch@gnat.com>
07c809df
GB
41065
41066 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
41067 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
41068
9e94c78f 410692001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 41070
54d22416 41071 * bindusg.adb: Undocument -f switch.
f8e0aa73 41072
54d22416 41073 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
41074
41075 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 41076 obsolescent.
f8e0aa73 41077
54d22416 41078 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 41079
54d22416
RD
41080 * gnatbind.adb: Minor update of warning msg.
41081
9e94c78f 410822001-10-30 Vincent Celier <celier@gnat.com>
af5cf6f8 41083
f8e0aa73 41084 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 41085 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 41086 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
41087 or MEDIUM or HIGH)
41088
9e94c78f 410892001-10-30 Geert Bosch <bosch@gnat.com>
984bc4c3
GB
41090
41091 * decl.c: Minor whitespace fixes.
41092
9e94c78f 410932001-10-30 Richard Kenner <kenner@gnat.com>
5dece937
RK
41094
41095 * utils2.c (build_allocator): Test for SIZE overflow in array case too
41096
9e94c78f 410972001-10-30 Geert Bosch <bosch@gnat.com>
de4bf6cb 41098
f8e0aa73 41099 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 41100 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 41101
de4bf6cb
GB
41102 * layout.adb:
41103 (Get_Max_Size): Use variant record for tracking value/expression.
41104 Makes logic clearer and prevents warnings for uninitialized variables.
41105 (Layout_Array_Type): Use variant record for tracking value/expression.
41106 Makes logic clearer and prevents warnings for uninitialized variables.
41107
9e94c78f 411082001-10-30 Robert Dewar <dewar@gnat.com>
f5e44987
RD
41109
41110 * lib.adb: Minor reformatting
41111
41112 * s-taprop.ads: Minor reformatting
41113
45659035 411142001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 41115
45659035
GB
41116 * init.c:
41117 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
41118 const.
41119 (_gnat_error_handler): Make MSG const.
41120
9e94c78f 411212001-10-29 Richard Kenner <kenner@gnat.com>
45659035
GB
41122
41123 * sysdep.c: Fix localtime_r problem on LynxOS.
41124 Also remove #elif to avoid warnings.
f8e0aa73
AJ
41125
41126 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 41127 used by this.
f8e0aa73 41128
45659035
GB
41129 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
41130
638e383e
JM
411312001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
41132
41133 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
41134 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
41135 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
41136 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
41137 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
41138 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
41139 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
41140 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
41141 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
41142 types.ads, urealp.adb: Fix spelling errors.
41143
9e94c78f 411442001-10-27 Laurent Guerby <guerby@acm.org>
97f6baa0
LG
41145
41146 * trans.c (gigi): Fix non determinism leading to bootstrap
41147 comparison failures for debugging information.
41148
46b58b8c
FW
411492001-10-26 Florian Weimer <fw@deneb.enyo.de>
41150
41151 * gnat_rm.texi: Use @./@: where appropriate.
41152
9e94c78f 411532001-10-26 Robert Dewar <dewar@gnat.com>
30151c7b
RD
41154
41155 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
41156
9e94c78f 411572001-10-26 Richard Kenner <kenner@gnat.com>
c0b1738d
RK
41158
41159 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
41160
9e94c78f 411612001-10-26 Richard Kenner <kenner@gnat.com>
5b09c153 41162
f8e0aa73 41163 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
41164 implication that compiler is modifying the size.
41165
9e94c78f 411662001-10-26 Robert Dewar <dewar@gnat.com>
4d553668
RD
41167
41168 * prj-util.adb: Minor reformatting. Fix bad header format.
41169
9e94c78f 411702001-10-26 Robert Dewar <dewar@gnat.com>
3e542a58
RD
41171
41172 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 41173
3e542a58 41174 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
41175
41176 * sem_ch12.adb: Change Node4 to Associated_Node. Change
41177 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
41178 much more narrowly in places where needed. These are cleanups.
41179
9e94c78f 411802001-10-26 Joel Brobecker <brobecke@gnat.com>
0bf08bfe
JB
41181
41182 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 41183
0bf08bfe
JB
41184 * 5ztaprop.adb:
41185 (Initialize_TCB): Initialize thread ID to null, to be able to verify
41186 later that this field has been set.
41187 (Finalize_TCB): ditto.
41188 (Suspend_Task): Verify that the thread ID is not null before using it.
41189 (Resume_Task): ditto.
f8e0aa73 41190
0bf08bfe
JB
41191 * s-tasdeb.adb:
41192 (Resume_All_Tasks): Lock the tasks list before using it.
41193 (Suspend_All_Tasks): ditto.
41194
9e94c78f 411952001-10-26 Richard Kenner <kenner@gnat.com>
7a3a8c06 41196
f8e0aa73 41197 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
41198 Make constant variant of designated type for Is_Access_Constant.
41199 Call update_pointer_to with main variant.
f8e0aa73
AJ
41200
41201 * trans.c (process_freeze_entity, process_type):
7a3a8c06 41202 Call update_pointer_to on main variant.
f8e0aa73 41203
7a3a8c06
RK
41204 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
41205 If main variant, update all other variants.
f8e0aa73
AJ
41206
41207 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
41208 TREE_STATIC.
41209
9e94c78f 412102001-10-26 Robert Dewar <dewar@gnat.com>
a160babb
RD
41211
41212 * prj-util.adb: Minor reformatting
41213
9e94c78f 412142001-10-26 Robert Dewar <dewar@gnat.com>
b403bd17
RD
41215
41216 * prj-util.adb: Minor reformatting
41217
9e94c78f 412182001-10-26 Robert Dewar <dewar@gnat.com>
5fc3b4c7
RD
41219
41220 * prj-attr.adb: Minor reformatting throughout
41221
9e94c78f 412222001-10-26 Robert Dewar <dewar@gnat.com>
8c736034
RD
41223
41224 * prj-attr.ads: Minor reformatting
41225 Add ??? comment (this whole spec has almost no comments)
41226
9e94c78f 412272001-10-26 Vincent Celier <celier@gnat.com>
47d5b6ed 41228
f8e0aa73 41229 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 41230 ("//") that precede the drive letter on Interix.
47d5b6ed 41231
9e94c78f 412322001-10-26 Geert Bosch <bosch@gnat.com>
41af791f
GB
41233
41234 * gnat_rm.texi: Add GNAT Reference Manual.
41235
9e94c78f 412362001-10-25 Robert Dewar <dewar@gnat.com>
ed4a1468 41237
f8e0aa73 41238 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 41239 is Error. Similar change for other renaming cases.
ed4a1468 41240
9e94c78f 412412001-10-25 Robert Dewar <dewar@gnat.com>
24377ae4
RD
41242
41243 * s-atacco.ads: Add pragma Inline_Always for functions.
41244 Fix header format. Add copyright 2001
41245
9e94c78f 412462001-10-25 Ed Schonberg <schonber@gnat.com>
fef3204e 41247
f8e0aa73 41248 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 41249 return Error rather than Empty so that analysis can proceed.
fef3204e 41250
9e94c78f 412512001-10-25 Ed Schonberg <schonber@gnat.com>
dfc69d80 41252
f8e0aa73 41253 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 41254 messages when a unit appears in its own context.
dfc69d80 41255
9e94c78f 412562001-10-25 Ed Schonberg <schonber@gnat.com>
5a15af62 41257
f8e0aa73 41258 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 41259 entity to specification, so that semantic analysis can proceed.
5a15af62 41260
9e94c78f 412612001-10-25 Robert Dewar <dewar@gnat.com>
2b881d53 41262
f8e0aa73 41263 * sem_util.adb
b4f94ac1 41264 (Defining_Entity): Deal with Error.
2b881d53
RD
41265 (Process_End_Label): Deal with bad end label for.
41266
9e94c78f 412672001-10-25 Ed Schonberg <schonber@gnat.com>
578053f2 41268
f8e0aa73 41269 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
41270 instance but callee is not declared in the generic unit.
41271
9e94c78f 412722001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
41273
41274 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
41275 enclosing unit, which may already be different from the calling unit.
41276
9e94c78f 412772001-10-25 Geert Bosch <bosch@gnat.com>
3de6e6da
GB
41278
41279 * 4gintnam.ads: fix header format.
41280
9e94c78f 412812001-10-25 Ed Schonberg <schonber@gnat.com>
6f311316 41282
f8e0aa73 41283 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
41284 operation on the result of a parameterless call, perform elaboration
41285 check after the node has been properly rewritten.
f8e0aa73
AJ
41286
41287 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
41288 inlined within the generic tree, the defining identifier is not a
41289 compilation_unit.
6f311316 41290
9e94c78f 412912001-10-25 Ed Schonberg <schonber@gnat.com>
17be0cdf 41292
f8e0aa73 41293 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 41294 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
41295
41296 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 41297 compatibility by retrieving the access type of the generic copy.
17be0cdf 41298
9e94c78f 412992001-10-25 Robert Dewar <dewar@gnat.com>
ce9e9122
RD
41300
41301 * sem_ch3.adb:
41302 (Analyze_Number_Declaration): Handle error expression.
41303 (Signed_Integer_Type_Declaration): Handle error bound.
41304 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 41305
ce9e9122
RD
41306 * sem_util.adb (Get_Index_Bounds): Check for Error.
41307
9e94c78f 413082001-10-25 Robert Dewar <dewar@gnat.com>
e12fbc9e 41309
f8e0aa73 41310 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
41311 in no run time mode.
41312
9e94c78f 413132001-10-25 Pascal Obry <obry@gnat.com>
52b80488 41314
f8e0aa73 41315 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 41316 mode case for ALLOC case.
f8e0aa73
AJ
41317
41318 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 41319 all platforms. Improvement of last change.
52b80488 41320
9e94c78f 413212001-10-25 Robert Dewar <dewar@gnat.com>
316ad9c5
RD
41322
41323 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
41324
1a7e4df4
GB
413252001-10-25 Geert Bosch <bosch@gnat.com>
41326
41327 * osint.adb (Is_Relative): Remove duplicate.
41328
9e94c78f 413292001-10-25 Pascal Obry <obry@gnat.com>
90a9fff2 41330
f8e0aa73 41331 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 41332 pathnames in UNIX and DOS style with drive letter.
90a9fff2 41333 (Is_Relative): new routine.
f8e0aa73 41334
90a9fff2 41335 * osint.adb: Minor reformatting
f8e0aa73
AJ
41336
41337 * osint.adb (Is_Relative): implementation using
b4f94ac1 41338 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 41339
9e94c78f 413402001-10-25 Pascal Obry <obry@gnat.com>
5c1ba4cc 41341
f8e0aa73 41342 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 41343 original Path and the translated one.
f8e0aa73 41344
5c1ba4cc
PO
41345 * g-dirope.adb: (Base_Name): add some comments.
41346
9e94c78f 413472001-10-25 Robert Dewar <dewar@gnat.com>
a7fb206d 41348
f8e0aa73 41349 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 41350 in HIE mode, avoids compilation abandoned message
f8e0aa73 41351
a7fb206d 41352 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 41353
a7fb206d
RD
41354 * exp_imgv.adb: Correct typo in previous change (not my day!)
41355
9e94c78f 413562001-10-25 Robert Dewar <dewar@gnat.com>
e6a7e62e
RD
41357
41358 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
41359
9e94c78f 413602001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 41361
f8e0aa73 41362 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 41363 declarations. This is more uniform with other GNAT spec.
75c09e7d 41364
0d2b8e0b 413652001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
41366
41367 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
41368
0d2b8e0b 413692001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
41370
41371 * Makefile.in (tools, gnattools): Remove gnatmem.
41372
17ed6335
RH
413732001-10-17 Richard Henderson <rth@redhat.com>
41374
41375 * Makefile.in (misc.o): Depend on langhooks.h.
41376 * misc.c: Include it.
41377 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
41378 (LANG_HOOKS_DECODE_OPTION): New.
41379 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
41380
f2436274
FW
413812001-10-16 Florian Weimer <fw@deneb.enyo.de>
41382
41383 * trans.c (tree_transform): Adjust to recent change in
41384 expand_asm_operands to implement named asm operands.
41385
b14127e6
ES
413862001-10-11 Ed Schonberg <schonber@gnat.com>
41387
f8e0aa73 41388 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
41389 renaming of discriminant for mutable record type.
41390
e70ee92a
RD
413912001-10-11 Robert Dewar <dewar@gnat.com>
41392
41393 * validsw.adb: Properly save -gnatVn status.
41394
9e94c78f 413952001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 41396
9a5621d7
RD
41397 * usage.adb: Add lines for V switch.
41398
f8e0aa73 41399 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
41400 (/VALIDITY_CHECKING).
41401
9e94c78f 414022001-10-11 Ed Schonberg <schonber@gnat.com>
45667f04 41403
f8e0aa73 41404 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
41405 an extension of System is known to be visible.
41406
9e94c78f 414072001-10-11 Ed Schonberg <schonber@gnat.com>
c3de5c4c 41408
f8e0aa73 41409 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
41410 properly. Fixes regression on ACATS C34005G.
41411
9e94c78f 414122001-10-11 Robert Dewar <dewar@gnat.com>
4fa964a6 41413
f8e0aa73 41414 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
41415 loop in generic instance, since this is likely not very useful.
41416
9e94c78f 414172001-10-11 Robert Dewar <dewar@gnat.com>
0868e09c 41418
f8e0aa73 41419 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 41420 the error message for high integrity mode.
f8e0aa73
AJ
41421
41422 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 41423 is not available in high integrity mode.
f8e0aa73 41424
0868e09c
RD
41425 * rtsfind.ads:
41426 (OK_To_Use_In_HIE_Mode): New array.
41427 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
41428
41429 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
41430 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
41431
41432 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
41433 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 41434 caused by new Rtsfind changes.
f8e0aa73
AJ
41435
41436 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 41437 body is deleted.
f8e0aa73
AJ
41438
41439 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
41440 giving message for entity not available in high integrity mode.
41441
9e94c78f 414422001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 41443
934abf9c
PO
41444 * impunit.adb: Add GNAT.CRC32.
41445
9e94c78f 414462001-10-11 Ed Schonberg <schonber@gnat.com>
3c72bea4 41447
f8e0aa73
AJ
41448 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
41449 properly the case where one universal operand in a non-static
3c72bea4
ES
41450 exponentiation of a real literal.
41451
9e94c78f 414522001-10-11 Ed Schonberg <schonber@gnat.com>
44d8d2bb 41453
f8e0aa73
AJ
41454 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
41455 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 41456
9e94c78f 414572001-10-11 Ed Schonberg <schonber@gnat.com>
9e2b9627 41458
f8e0aa73
AJ
41459 * exp_ch7.adb (Make_Transient_Block): if statement is within
41460 exception handler, always use new transient scope to place Clean
9e2b9627
ES
41461 procedure.
41462
9e94c78f 414632001-10-11 Pascal Obry <obry@gnat.com>
cfac6e9f
PO
41464
41465 * Makefile.in:
41466 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41467 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
41468 (GNATLS_RTL_OBJS): add g-crc32.o
41469 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 41470
cfac6e9f
PO
41471 * ali-util.adb:
41472 (CRC_Match): new function.
f8e0aa73 41473 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
41474 instead of the previous simple checksum algorithm.
41475 (Time_Stamp_Mismatch): use CRC_Match for comparison.
41476 (Set_Source_Table): idem.
f8e0aa73 41477
cfac6e9f 41478 * ali-util.ads:
f8e0aa73 41479 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
41480 instead of simple checksum.
41481 (CRC_Match): new function.
41482 (CRC_Error): new constant.
f8e0aa73
AJ
41483
41484 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
41485 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 41486 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
41487
41488 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 41489 is what this variable will store.
f8e0aa73 41490
cfac6e9f 41491 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
41492 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
41493 rename All_Checksum_Match to All_CRC_Match. Change due to API
41494 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 41495 CRC using GNAT.CRC32.
f8e0aa73
AJ
41496
41497 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 41498 now and not anymore a simple checksum.
f8e0aa73
AJ
41499
41500 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 41501 places.
f8e0aa73 41502
cfac6e9f 41503 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 41504
cfac6e9f
PO
41505 * scans.adb:
41506 (Restore_Scan_State): rename Checksum to CRC.
41507 (Save_Scan_State): idem.
f8e0aa73 41508
cfac6e9f
PO
41509 * scans.ads:
41510 With GNAT.CRC32.
41511 (Checksum): rename to CRC.
41512 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
41513
41514 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 41515 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
41516
41517 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 41518 GNAT.CRC32). Update copyright notice.
f8e0aa73 41519
cfac6e9f
PO
41520 * scn.adb:
41521 (Accumulate_Checksum): removed.
41522 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 41523
cfac6e9f
PO
41524 * sinput-l.adb:
41525 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 41526 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 41527 Source_CRC)
f8e0aa73
AJ
41528
41529 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 41530 Source_CRC in S initialization.
f8e0aa73 41531
cfac6e9f 41532 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 41533
cfac6e9f
PO
41534 * sinput.ads (Source_Checksum): renamed to Source_CRC.
41535 Update comments for the CRC.
f8e0aa73 41536
cfac6e9f 41537 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
41538
41539 * types.ads (Get_Hex_String): Returns the hexadecimal representation
41540 for a word. This is currently used only for CRC. In previous version,
41541 the checksum was using a representation with all letter being
41542 upper-case. With the new implementation (using CRC) we do not remove
41543 the 32th bit of the CRC, so we can have an upper-case starting letter
41544 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
41545 It is ambigous since the CRC was optional and could be followed by
41546 options like EB, EE. So now this routines uses lower-case letter for
41547 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 41548 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 41549
cfac6e9f 41550 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
41551
41552 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 41553 for the compiler.
f8e0aa73
AJ
41554
41555 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 41556 for the compiler.
f8e0aa73 41557
cfac6e9f
PO
41558 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
41559 Add 2001 to copyright notice
41560 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
41561
41562 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 41563 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 41564
cfac6e9f
PO
41565 * ali.adb: Undo some of previous changes, not needed.
41566 Keep the change for lower case letters in the checksum.
f8e0aa73 41567
cfac6e9f
PO
41568 * ali.ads: Undo previous change not needed.
41569
41570 * bcheck.adb: Undo most of previous change, not needed.
41571 But do use Checksums_Match for checksum comparison.
f8e0aa73 41572
cfac6e9f
PO
41573 * gnatls.adb: Undo most of previous change, not needed.
41574 But do use Checksums_Match for comparing checksums.
f8e0aa73 41575
cfac6e9f 41576 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 41577
cfac6e9f 41578 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
41579
41580 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 41581 not upper case letters.
f8e0aa73 41582
cfac6e9f 41583 * scans.adb: Undo previous change, not needed
f8e0aa73 41584
cfac6e9f 41585 * scans.ads: Undo previous change, not needed.
f8e0aa73 41586
cfac6e9f 41587 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 41588
cfac6e9f 41589 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 41590
cfac6e9f
PO
41591 * scn.adb:
41592 (Accumulate_Checksum): Use System.CRC32.
41593 (Initialize_Checksum): New procedure.
41594 Remove other changes of previous revision.
f8e0aa73 41595
cfac6e9f 41596 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 41597
cfac6e9f
PO
41598 * sinput.adb: Undo previous change, not needed.
41599
41600 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
41601
41602 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 41603 on new checksum algorithm
f8e0aa73 41604
cfac6e9f
PO
41605 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
41606 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 41607
cfac6e9f 41608 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 41609
cfac6e9f
PO
41610 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
41611
4d6d06a5
GB
416122001-10-11 Geert Bosch <bosch@gnat.com>
41613
41614 * einfo.h: Regenerate.
41615
41616 * nmake.ads: Regenerate.
41617
41618 * nmake.adb: Regenerate.
41619
41620 * sinfo.h: Regenerate.
41621
41622 * treeprs.adb: Regenerate.
41623
c97412e2
GB
416242001-10-10 Geert Bosch <bosch@gnat.com>
41625
41626 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 41627
9e94c78f 416282001-10-10 Ed Schonberg <schonber@gnat.com>
b83018ca 41629
f8e0aa73 41630 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
41631 is Flag174.
41632
e834fe1f
GB
416332001-10-10 Geert Bosch <bosch@gnat.com>
41634
41635 * snames.ads: Add new names for project facility.
41636
41637 * snames.adb: Update to reflect snames.ads changes.
41638
41639 * snames.h: Update to reflect snames.ads changes.
41640
9e94c78f 416412001-10-10 Vincent Celier <celier@gnat.com>
b30668b7
VC
41642
41643 * make.adb:
41644 (Add_Switches): reflect the changes for the switches attributes
41645 Default_Switches indexed by the programming language,
41646 Switches indexed by the file name.
41647 (Collect_Arguments_And_Compile): Idem.
41648 Reflect the attribute name changes.
f8e0aa73 41649
b30668b7
VC
41650 * prj-attr.adb:
41651 (Initialisation_Data): Change the names of some packages and
41652 attributes.
41653 (Initialize): process case insensitive associative arrays.
f8e0aa73 41654
b30668b7
VC
41655 * prj-attr.ads:
41656 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 41657
b30668b7
VC
41658 * prj-dect.adb:
41659 (Parse_Attribute_Declaration): For case insensitive associative
41660 arrays, set the index string to lower case.
f8e0aa73 41661
b30668b7
VC
41662 * prj-env.adb:
41663 Reflect the changes of the project attributes.
f8e0aa73 41664
b30668b7
VC
41665 * prj-nmsc.adb:
41666 Replace Check_Naming_Scheme by Ada_Check and
41667 Language_Independent_Check.
f8e0aa73 41668
b30668b7
VC
41669 * prj-nmsc.ads:
41670 Replaced Check_Naming_Scheme by 2 procedures:
41671 Ada_Check and Language_Independent_Check.
f8e0aa73 41672
b30668b7
VC
41673 * prj-proc.adb:
41674 (Process_Declarative_Items): For case-insensitive associative
41675 arrays, set the index string to lower case.
41676 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
41677 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 41678
b30668b7
VC
41679 * prj-tree.adb:
41680 (Case_Insensitive): New function
41681 (Set_Case_Insensitive): New procedure
f8e0aa73 41682
b30668b7
VC
41683 * prj-tree.ads:
41684 (Case_Insensitive): New function
41685 (Set_Case_Insensitive): New procedure
41686 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 41687
b30668b7
VC
41688 * prj-util.adb:
41689 (Value_Of): new function to get the string value of a single
41690 string variable or attribute.
f8e0aa73 41691
b30668b7
VC
41692 * prj-util.ads:
41693 (Value_Of): new function to get the string value of a single
41694 string variable or attribute.
f8e0aa73 41695
b30668b7
VC
41696 * prj.adb:
41697 (Ada_Default_Spec_Suffix): New function
41698 (Ada_Default_Impl_Suffix): New function
41699 Change definitions of several constants to reflect
41700 new components of record types.
f8e0aa73 41701
b30668b7
VC
41702 * prj.ads:
41703 (Naming_Data): Change several components to reflect new
41704 elements of naming schemes.
41705 (Project_Data): New flags Sources_Present and
41706 Language_Independent_Checked.
41707 (Ada_Default_Spec_Suffix): New function.
41708 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 41709
b30668b7
VC
41710 * snames.ads:
41711 Modification of predefined names for project manager: added
41712 Implementation, Specification_Exceptions, Implementation_Exceptions,
41713 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
41714 Default_Switches, _Languages, Builder, Cross_Reference,
41715 Finder. Removed Body_Part, Specification_Append, Body_Append,
41716 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
41717 Gnatlink.
f8e0aa73 41718
b30668b7
VC
41719 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41720 Add comments.
f8e0aa73 41721
b30668b7
VC
41722 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
41723 not that it is Nil_Variable_Value.
f8e0aa73 41724
b30668b7
VC
41725 * prj.ads: Add ??? for uncommented declarations
41726
9e94c78f 417272001-10-10 Ed Schonberg <schonber@gnat.com>
662e57b4 41728
f8e0aa73
AJ
41729 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
41730 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
41731 treat it as a bona fide constant.
41732
9e94c78f 417332001-10-10 Robert Dewar <dewar@gnat.com>
72e4357f
RD
41734
41735 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 41736
72e4357f 41737 * snames.ads: Add entry for pragma External.
f8e0aa73 41738
72e4357f 41739 * par-prag.adb: Add pragma External.
f8e0aa73 41740
72e4357f
RD
41741 * snames.adb: Updated to match snames.ads.
41742
9e94c78f 417432001-10-10 Ed Schonberg <schonber@gnat.com>
7bc1c7df
ES
41744
41745 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
41746 a dynamic task if the allocator appears in an indexed assignment
41747 or selected component assignment.
f8e0aa73
AJ
41748
41749 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
41750 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
41751 assignment to generate meaningful name.
41752
9e94c78f 417532001-10-10 Ed Schonberg <schonber@gnat.com>
c84700e7 41754
f8e0aa73 41755 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
41756 a generic package.
41757
41758 * einfo.ads: Body_Entity is also defined for generic package.
41759 Documentation change only
f8e0aa73
AJ
41760
41761 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
41762 others_choice for a discriminated component initialization,
41763 convert discriminant references into the corresponding discriminals.
41764
41765 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
41766 only if original type is private and expression has to be wrapped
c84700e7 41767 in a conversion.
f8e0aa73
AJ
41768
41769 * checks.adb:
41770 (Apply_Constraint_Check): Do not perform length check
c84700e7 41771 if expression is an aggregate with only an others_choice.
f8e0aa73 41772 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
41773 (typically the discriminal in an init_proc) denote the same value.
41774 Two useful optimization uncovered by bugfixes above.
41775
9e94c78f 417762001-10-10 Robert Dewar <dewar@gnat.com>
d8d80dcd 41777
f8e0aa73 41778 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
41779 This fixes a problem in the C representation of component alignment.
41780 Add 2001 to copyright notice
41781
9e94c78f 417822001-10-10 Richard Kenner <kenner@gnat.com>
a8fee948 41783
f8e0aa73 41784 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
41785 if it is a packed array type.
41786
9e94c78f 417872001-10-10 Richard Kenner <kenner@gnat.com>
c2d7fe59 41788
f8e0aa73 41789 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
41790 VAR_DECL for constant if not Is_Public but -O0.
41791
fb75e100
RK
417922001-10-10 Richard Kenner <kenner@gnat.com>
41793
41794 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
41795
1724557a
GB
417962001-10-10 Geert Bosch <bosch@gnat.com>
41797
f8e0aa73 41798 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
41799 use '/' as switch character, allowing for absolute file names.
41800
9f2f9eb6
JM
418012001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
41802
41803 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
41804 FSF address.
41805
8fecf41d
GB
418062001-10-08 Geert Bosch <bosch@gnat.com>
41807
41808 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
41809 Automatically build utilities when files need to be regenerated.
41810
589f1edf
GB
418112001-10-08 Geert Bosch <bosch@gnat.com>
41812
41813 * xsnames.adb: New utility for updating snames.ads and snames.adb
41814
67f28219
ZW
418152001-10-08 Zack Weinberg <zack@codesourcery.com>
41816
41817 * Make-lang.in (ADAFLAGS): Add -W -Wall.
41818 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
41819 (gnat1): Also depend on attribs.o.
41820 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
41821 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
41822 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
41823 (ADAFLAGS): Add -W -Wall.
41824 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
41825 take out CFLAGS.
41826
41827 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
41828 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
41829 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
41830 Use $(ADAC), not $(CC), as compilation command.
41831
41832 (gnattools): Depend directly on tools to build, don't use
41833 recursive make.
41834 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
41835
41836 * einfo.h, sinfo.h: New files (autogenerated).
41837
295ef2bb
RH
418382001-10-08 Richard Henderson <rth@redhat.com>
41839
41840 * comperr.adb (Abort_In_Progress): New.
41841 (Compiler_Abort): Use it to prevent recursion.
41842
9e94c78f 418432001-10-08 Robert Dewar <dewar@gnat.com>
5c736541
RD
41844
41845 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
41846
41847 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 41848 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
41849
41850 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 41851 to help error recovery. Part of general work on 9407-004.
67f28219 41852
5c736541 41853 * par.adb: Add ??? for misuse of error
67f28219 41854
5c736541
RD
41855 * sem_res.adb:
41856 (Resolve): Defend against Error, fixes 9407-003.
41857 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
41858
41859 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
41860 to Any_Type to help error recovery).
41861
9e94c78f 418622001-10-08 Richard Kenner <kenner@gnat.com>
a153ae15
RK
41863
41864 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
41865 Consistently set MEM attributes from expression; fixes
41866 bootstrap failure on x86.
41867
9e94c78f 418682001-10-08 Geert Bosch <bosch@gnat.com>
743f3c7b
GB
41869
41870 * 5oosinte.adb: Add 2001 to copyright notice.
41871
9e94c78f 418722001-10-08 Geert Bosch <bosch@gnat.com>
210c4ef4
GB
41873
41874 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
41875
41876 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
41877
cc712abf
JM
418782001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
41879
41880 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
41881
9e94c78f 418822001-10-05 Geert Bosch <bosch@gnat.com>
4c4abc0f
GB
41883
41884 * adaint.h: Small formatting fix.
41885
7f50e2e3
GB
418862001-10-04 Geert Bosch <bosch@gnat.com>
41887
41888 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
41889 Arg is int, not FILE *, in dummy version of functions.
67f28219 41890
7f50e2e3
GB
41891 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
41892 Arg is int, not FILE *.
41893
5d1a9698
GB
418942001-10-04 Geert Bosch <bosch@gnat.com>
41895
41896 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 41897
5d1a9698
GB
41898 * 4lintnam.ads: Fix header format.
41899 Change Linux to GNU/Linux.
67f28219 41900
5d1a9698
GB
41901 * 5iosinte.adb: Change Linux to GNU/Linux.
41902
41903 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 41904
5d1a9698 41905 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 41906
5d1a9698
GB
41907 * 5itaspri.ads: Change Linux to GNU/Linux.
41908 Update copyright notice.
67f28219 41909
5d1a9698 41910 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 41911
5d1a9698 41912 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 41913
5d1a9698 41914 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 41915
5d1a9698 41916 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 41917
5d1a9698 41918 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 41919
5d1a9698 41920 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 41921
5d1a9698 41922 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 41923
5d1a9698 41924 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 41925
5d1a9698
GB
41926 * 5qtaspri.ads: Change Linux to GNU/Linux.
41927 Add 2001 to copyright notice.
67f28219 41928
5d1a9698
GB
41929 * 5vintman.ads: Change Linux to GNU/Linux.
41930 Fix header format. Add 2001 to copyright notice.
67f28219 41931
5d1a9698 41932 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 41933
5d1a9698
GB
41934 * g-trasym.ads: Change Linux to GNU/Linux.
41935 Add 2001 to copyright notice.
67f28219 41936
5d1a9698 41937 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 41938
5d1a9698
GB
41939 * s-intman.ads: Change Linux to GNU/Linux.
41940 Add 2001 to copyright notice. Fix header format.
67f28219 41941
5d1a9698 41942 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 41943
5d1a9698 41944 * adaint.c: Change Linux to GNU/Linux.
67f28219 41945
5d1a9698 41946 * cio.c: Change Linux to GNU/Linux.
67f28219 41947
5d1a9698 41948 * cstreams.c: Change Linux to GNU/Linux.
67f28219 41949
5d1a9698 41950 * init.c: Change Linux to GNU/Linux.
67f28219 41951
5d1a9698 41952 * gmem.c: Change Linux to GNU/Linux.
67f28219 41953
5d1a9698
GB
41954 * tracebak.c: Change Linux to GNU/Linux.
41955
41956
c25ca2d7
GB
419572001-10-02 Geert Bosch <bosch@gnat.com>
41958
41959 * misc.c (insert_default_attributes): Add dummy version.
This page took 6.071988 seconds and 5 git commands to generate.